]> git.mdlowis.com Git - projs/tide.git/commitdiff
Added logic to peg the cursor to the line end when end key is pressed
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 15 Jun 2017 17:25:39 +0000 (13:25 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 15 Jun 2017 17:25:39 +0000 (13:25 -0400)
lib/view.c

index cd1c978d89cea6700c77d3ca739f642f40072e12..72a86ed0f89733442ab38afa8630dcaf1714d9e0 100644 (file)
@@ -256,6 +256,7 @@ void view_bol(View* view, bool extsel) {
 
 void view_eol(View* view, bool extsel) {
     move_to(view, extsel, buf_eol(&(view->buffer), view->selection.end));
+    view->selection.col = -1; // Peg cursor to line end
 }
 
 void view_bof(View* view, bool extsel) {