]> git.mdlowis.com Git - projs/tide.git/commitdiff
Temporary fix for overlong status lines
authorMichael D. Lowis <mike@mdlowis.com>
Tue, 28 Mar 2017 00:46:28 +0000 (20:46 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Tue, 28 Mar 2017 00:46:28 +0000 (20:46 -0400)
docs/edit.1.md
lib/win.c

index dd5858abfdd4cbe56d11e6538cd3f139edd06ad8..134f99a80796e7f467b99d605beff406972b80ba 100644 (file)
@@ -50,3 +50,4 @@ Michael D. Lowis
 ## SEE ALSO
 
 xedit(1) xpick(1) xfilepick(1) xtagpick(1)
+
index 69aa0c2c913845b5d83fc0245c8a32bc7ed79455..1d492dedd6a0afca4cdb23f931f28568ace92c51 100644 (file)
--- a/lib/win.c
+++ b/lib/win.c
@@ -76,6 +76,7 @@ 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) {