]> git.mdlowis.com Git - projs/tide.git/commitdiff
ctrl+f warps pointer to the next match
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 2 Jan 2017 03:47:46 +0000 (22:47 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 2 Jan 2017 03:47:46 +0000 (22:47 -0500)
TODO.md
xedit.c

diff --git a/TODO.md b/TODO.md
index 5c163cc1e90969ac15e9562bc8f8321835542353..1197a0521af23dca41b5366af271976987d54968 100644 (file)
--- a/TODO.md
+++ b/TODO.md
@@ -5,7 +5,6 @@ Up Next:
 * Tag line count should account for wrapped lines
 * block selection should handle brace-balancing
 * context sensitive selection of words, commands, line numbers, or filenames.
-* ctrl+f should move the pointer to the match
 * ctrl+shift+f should find next occurence of previous search term
 * check for file changes on save
 * check for file changes when window regains focus
diff --git a/xedit.c b/xedit.c
index c3894d70519773a2ba893d05877865df889808ca..34146d3db2928aadb7bb1beb60070fc5b77cb3d6 100644 (file)
--- a/xedit.c
+++ b/xedit.c
@@ -533,6 +533,7 @@ static void search(void) {
     char* str = view_getctx(currview());
     view_findstr(getview(EDIT), str);
     free(str);
+    Regions[EDIT].warp_ptr = true;
 }
 
 static void execute(void) {