From 958e732ed3cd7968524ba9cde5f9da1d5d42f830 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 20 Dec 2016 21:26:58 -0500 Subject: [PATCH] '\!' sigil should not select anything --- TODO.md | 4 ++-- xedit.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index ba47b89..75150f6 100644 --- 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 fa4d512..2c0aafd 100644 --- 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); -- 2.51.0