From 13d21c4c4b8f15fe7e882d9a0283c5c7ac98697d Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 26 Mar 2022 20:42:07 +0900 Subject: feat(events)!: restore absolute cursor position * this restores cursor's precise position instead of only restoring the last line (cursor moves to the start of the line) --- fnl/nvrc/events.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fnl/nvrc/events.fnl b/fnl/nvrc/events.fnl index 545294d..4548d5f 100644 --- a/fnl/nvrc/events.fnl +++ b/fnl/nvrc/events.fnl @@ -17,7 +17,7 @@ (ag! restore-last-cursor-line (au! BufReadPost * (if (and (> (line "'\"") 1) (<= (line "'\"") (line "$"))) - (cmd! "normal! g'\"")))) + (cmd! "normal! g`\"")))) ; Resize splits on window resize (ag! resize-splits-on-resize -- cgit 1.4.1