diff options
| author | Henrik Lissner <henrik@lissner.net> | 2016-03-20 13:04:31 -0400 |
|---|---|---|
| committer | Henrik Lissner <henrik@lissner.net> | 2016-03-20 13:04:31 -0400 |
| commit | 491e17093b6a8b5c63653b374a69225e8e06bc71 (patch) | |
| tree | ae349fd25d0f418fc13d0d90b4fd24a2bb7b5a04 /evil-surround.el | |
| parent | 430c81f2a14062a1d4e2e66f317fe22591241c7a (diff) | |
Generalize operator surround detection
Diffstat (limited to 'evil-surround.el')
| -rwxr-xr-x | evil-surround.el | 6 |
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)) |
