From 942adc0e44454087db34687c466e1c487f096204 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 2 Dec 2016 22:44:26 -0500 Subject: [PATCH] reset cursor column when jumping to a line --- TODO.md | 1 - libedit/view.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.51.0