]> git.neil.brown.name Git - edlib.git/commitdiff
search: make sure point is visible when search is aborted.
authorNeilBrown <neil@brown.name>
Wed, 2 Dec 2015 03:51:16 +0000 (14:51 +1100)
committerNeilBrown <neil@brown.name>
Wed, 2 Dec 2015 03:51:16 +0000 (14:51 +1100)
Signed-off-by: NeilBrown <neil@brown.name>
lib-popup.c
render-lines.c

index c93e800e1d0a04c8de12c5bfbc2ef8540ef9525c..f818fb1ec605764c47aaa9c54d84eed3f9d1b855 100644 (file)
@@ -75,6 +75,7 @@ DEF_CMD(popup_handle)
        }
        if (strcmp(ci->key, "popup:Abort") == 0) {
                pane_focus(ppi->target);
+               call3("Abort", ppi->target, 0, NULL);
                pane_close(ppi->popup);
                return 1;
        }
index 5dbc9fcb95b7a6b20b1f8012d634cbc8c62d6fcd..5aef7d9fcd97848be23d5607608e75fda3516530 100644 (file)
@@ -924,6 +924,8 @@ static void render_lines_register_map(void)
        key_add(rl_map, "Move-Line", &render_lines_move_line);
 
        key_add(rl_map, "Replace", &render_lines_other_move);
+       /* Make it easy to stop ignoring point */
+       key_add(rl_map, "Abort", &render_lines_other_move);
 
        key_add(rl_map, "Close", &render_lines_close);
        key_add(rl_map, "Clone", &render_lines_clone);