mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-31 14:43:40 -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
|
||||
(evil-apply-on-block
|
||||
(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)
|
||||
(move-to-column col)
|
||||
(when (= (current-column) col)
|
||||
|
Reference in New Issue
Block a user