From: Michael D. Lowis Date: Sat, 3 Dec 2016 03:44:26 +0000 (-0500) Subject: reset cursor column when jumping to a line X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=refs%2Fheads%2Fnon-modal;p=projs%2Ftide.git reset cursor column when jumping to a line --- diff --git a/TODO.md b/TODO.md index 8ebac84..6d24c36 100644 --- 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 diff --git a/libedit/view.c b/libedit/view.c index 426ee35..980e833 100644 --- a/libedit/view.c +++ b/libedit/view.c @@ -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; }