]> git.mdlowis.com Git - projs/tide.git/commitdiff
'\!' sigil should not select anything
authorMichael D. Lowis <mike@mdlowis.com>
Wed, 21 Dec 2016 02:26:58 +0000 (21:26 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Wed, 21 Dec 2016 02:26:58 +0000 (21:26 -0500)
TODO.md
xedit.c

diff --git a/TODO.md b/TODO.md
index ba47b899ad6a2f1568ae5bdff142331cce8c8dc2..75150f67a80d4cb548c3b373d79629737ba10375 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -2,9 +2,9 @@
 
 * Indent on first line of buffer causes infinite loop
 * block selection should handle brace-balancing
-* Add tag for ctags lookup and line number jump
+* Add a GoTo tag for ctags lookup and line number jump
 * Add a SaveAs tag that takes an argument for the filename to save as
-* add a shortcut to autocomplete ctag
+* Add a ctrl+space 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
 * check for file changes on save
diff --git a/xedit.c b/xedit.c
index fa4d512963bc68093b03be2a163654861ab7930f..2c0aafde21488b12da325c45608388cb021cf5fc 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -691,7 +691,7 @@ static void cmd_exec(char* cmd) {
     /* execute the command */
     char *input = NULL, *output = NULL, *error = NULL;
     enum RegionId dest = EDIT;
-    if (op && op != '<' && 0 == view_selsize(getview(EDIT)))
+    if (op && op != '<' && op != '!' && 0 == view_selsize(getview(EDIT)))
         getview(EDIT)->selection = (Sel){ .beg = 0, .end = buf_end(getbuf(EDIT)) };
     input = view_getstr(getview(EDIT), NULL);