From 5f3c618a26e4aea9a1932c38c9c3ef8be0a8a38a Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Sun, 1 Jan 2017 22:47:46 -0500 Subject: [PATCH] ctrl+f warps pointer to the next match --- TODO.md | 1 - xedit.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 5c163cc..1197a05 100644 --- 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 c3894d7..34146d3 100644 --- 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) { -- 2.51.0