summaryrefslogtreecommitdiff
path: root/evil-surround.el
diff options
context:
space:
mode:
authorHenrik Lissner <henrik@lissner.net>2016-03-20 13:04:31 -0400
committerHenrik Lissner <henrik@lissner.net>2016-03-20 13:04:31 -0400
commit491e17093b6a8b5c63653b374a69225e8e06bc71 (patch)
treeae349fd25d0f418fc13d0d90b4fd24a2bb7b5a04 /evil-surround.el
parent430c81f2a14062a1d4e2e66f317fe22591241c7a (diff)
Generalize operator surround detection
Diffstat (limited to 'evil-surround.el')
-rwxr-xr-xevil-surround.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/evil-surround.el b/evil-surround.el
index f1c0539..0841bcf 100755
--- a/evil-surround.el
+++ b/evil-surround.el
@@ -299,10 +299,8 @@ Becomes this:
(or force-new-line
;; Force newline if not invoked from an operator, e.g. VS)
(eq evil-this-operator 'evil-surround-region)
- ;; Or on multi-line yanks (but not on single-line yanks),
- ;; e.g. ysj)
- (and (eq evil-this-operator 'evil-yank)
- (/= (line-number-at-pos) (line-number-at-pos (1- end))))))
+ ;; Or on multi-line operator surrounds (like 'ysj]')
+ (/= (line-number-at-pos) (line-number-at-pos (1- end)))))
(back-to-indentation)
(setq beg-pos (point))