From: Michael D. Lowis Date: Mon, 2 Jan 2017 03:47:46 +0000 (-0500) Subject: ctrl+f warps pointer to the next match X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=5f3c618a26e4aea9a1932c38c9c3ef8be0a8a38a;p=projs%2Ftide.git ctrl+f warps pointer to the next match --- 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) {