emacs-evil/evil-surround

Visual-line-mode still breaks (with region)

Closed this issue · 0 comments

Hey everyone,

a few months back I submitted #173 and #174 to make evil-surround play nicely with visual-line-mode, but I didn't cover the case when evil-surround was used with evil-visual-screen-line (Shift-V, it's like visual mode but selects line by line instead of character by character). When evil-surround is used with evil-visual-screen-line, it only surrounds the current line, not the entire selection. From what I can tell, the variable type in evil-surround-region is still 'screen-line (relevant parts are line 390-400). Can anyone confirm this? Unfortunately I don't think I'll be able to come up with a fix as quickly this time, so any help would be greatly appreciated.