mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-04 15:03:42 -05:00
Prevent visual 'gzz' placing cursors on invisible lines
e.g. over folded lines
This commit is contained in:
@@ -32,7 +32,8 @@ pauses cursors."
|
|||||||
(save-excursion
|
(save-excursion
|
||||||
(evil-apply-on-block
|
(evil-apply-on-block
|
||||||
(lambda (ibeg _)
|
(lambda (ibeg _)
|
||||||
(unless (= line-at-pt (line-number-at-pos ibeg))
|
(unless (or (= line-at-pt (line-number-at-pos ibeg))
|
||||||
|
(invisible-p ibeg))
|
||||||
(goto-char ibeg)
|
(goto-char ibeg)
|
||||||
(move-to-column col)
|
(move-to-column col)
|
||||||
(when (= (current-column) col)
|
(when (= (current-column) col)
|
||||||
|
Reference in New Issue
Block a user