about summary refs log tree commit diff
path: root/fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-03-26 20:42:07 +0900
committersefidel <contact@sefidel.net>2022-03-26 20:42:07 +0900
commit13d21c4c4b8f15fe7e882d9a0283c5c7ac98697d (patch)
tree8d24a658a4b0f59e9b0df7b49f382811cd3dba78 /fnl
parentee295c9dc1b46ea2798ff9fe38e04e3b26258bac (diff)
downloadnvimrc-13d21c4c4b8f15fe7e882d9a0283c5c7ac98697d.tar.gz
nvimrc-13d21c4c4b8f15fe7e882d9a0283c5c7ac98697d.zip
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)
Diffstat (limited to 'fnl')
-rw-r--r--fnl/nvrc/events.fnl2
1 files changed, 1 insertions, 1 deletions
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