]> git.mdlowis.com Git - projs/tide.git/commitdiff
fixed selection bug when running a reverse selection through an external command
authorMichael D. Lowis <mike@mdlowis.com>
Fri, 24 Feb 2017 22:13:48 +0000 (17:13 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Fri, 24 Feb 2017 22:13:48 +0000 (17:13 -0500)
TODO.md
lib/view.c

diff --git a/TODO.md b/TODO.md
index e6f8dffbc166e8238e7542b817222b98c171fb63..f2da0168bdad219084d1f6435829622df93cdc9f 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -2,7 +2,6 @@
 
 Up Next:
 
-* reverse selections passed to commands do not have results highlighted properly
 * check for file changes on save
 * check for file changes when window regains focus
 * Right click in tags region should search edit region
index be6dc24cf40ba44db0f8212886afa188e9d77658..d43de7ba9b9f565f4e2f879ed6b80e6cf4447840 100644 (file)
@@ -482,6 +482,7 @@ void view_redo(View* view) {
 }
 
 void view_putstr(View* view, char* str) {
+    selswap(&(view->selection));
     unsigned beg = view->selection.beg;
     buf_loglock(&(view->buffer));
     while (*str) {