]> git.mdlowis.com Git - projs/tide.git/commitdiff
don't reset the cursor to zero when setext is called
authorMichael D. Lowis <mike@mdlowis.com>
Sun, 2 Apr 2017 18:51:36 +0000 (14:51 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Sun, 2 Apr 2017 18:51:36 +0000 (14:51 -0400)
lib/win.c

index 1d492dedd6a0afca4cdb23f931f28568ace92c51..69aa0c2c913845b5d83fc0245c8a32bc7ed79455 100644 (file)
--- a/lib/win.c
+++ b/lib/win.c
@@ -76,7 +76,6 @@ void win_settext(WinRegion id, char* text) {
     view_putstr(view, text);
     view_selprev(view); // clear the selection
     buf_logclear(&(view->buffer));
-    view->selection = (Sel){0,0,0};
 }
 
 void win_setruler(size_t ruler) {