]> git.mdlowis.com Git - projs/tide.git/commitdiff
reset cursor column when jumping to a line non-modal
authorMichael D. Lowis <mike@mdlowis.com>
Sat, 3 Dec 2016 03:44:26 +0000 (22:44 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sat, 3 Dec 2016 03:44:26 +0000 (22:44 -0500)
TODO.md
libedit/view.c

diff --git a/TODO.md b/TODO.md
index 8ebac84fcadea2dc6a0268271bdef20fcea0ab36..6d24c36ed75e11469d05d7a2cb041a7835184562 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -1,6 +1,5 @@
 # Implementation Tweaks and Bug Fixes
 
-* bug when jumping to ctag from tag view instead of edit view
 * add a shortcut to autocomplete ctag
 * Use select to check for error strings in exec.c
 * Should not be able to undo initial tag line text insertion
index 426ee35867c1a1bc3100674a11df0a9ebd3b99e0..980e833f9853e0cdf0fff4c3b065b163c3373507 100644 (file)
@@ -551,6 +551,7 @@ void view_scrollpage(View* view, int move) {
 void view_setln(View* view, size_t line) {
     view->selection.end = buf_setln(&(view->buffer), line);
     view->selection.beg = view->selection.end;
+    view->selection.col = 0;
     view->sync_needed   = true;
     view->sync_center   = true;
 }