diff options
author | pommicket <pommicket@gmail.com> | 2025-09-30 11:09:43 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-30 11:09:43 -0400 |
commit | d2fba7af36c6ae76c954da76ed64e3383e0d64f9 (patch) | |
tree | e5e3f51f543606e41d719a289c43b7cdf9261058 /command.c | |
parent | 3a1af93e9c0f983da64070d3774596844c2a26e1 (diff) |
code_action_select_best
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -369,7 +369,9 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen break; case CMD_NEWLINE: case CMD_NEWLINE_BACK: - if (ted->find) { + if (code_action_is_open(ted)) { + code_action_select_best(ted); + } else if (ted->find) { if (buffer == ted->find_buffer || buffer == ted->replace_buffer) { if (c == CMD_NEWLINE) find_next(ted); |