summaryrefslogtreecommitdiff
path: root/evil-surround.el
diff options
context:
space:
mode:
authorTom Dalziel <33435574+tomdl89@users.noreply.github.com>2022-04-12 19:13:34 +0200
committerGitHub <noreply@github.com>2022-04-12 19:13:34 +0200
commit648da3c544cbb0e03b81295c07aeecac2f5bf221 (patch)
tree60725fd297c180c51848e494045a034b72d214df /evil-surround.el
parent282a975bda83310d20a2c536ac3cf95d2bf188a5 (diff)
parent8449d19d055ad403d47abc5e3d9674ebe5f64efe (diff)
Merge pull request #190 from MintSoup/master
Fix visual screen-line surrounding bug.
Diffstat (limited to 'evil-surround.el')
-rw-r--r--evil-surround.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/evil-surround.el b/evil-surround.el
index 26cf211..942e252 100644
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -406,7 +406,7 @@ Becomes this:
(setq beg-pos (point))
(insert open)
(when force-new-line (newline-and-indent))
- (evil-end-of-visual-line)
+ (goto-char (overlay-end overlay))
(if force-new-line
(when (eobp)
(newline-and-indent))