mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 15:05:27 +08:00
Fire fish_posterror event on tokenization error (#6880)
* Fire fish_postexec event after tokenization error This is a fix for issue #6816 "shell integration with tokenization error" * Pass command-line to fish_postexec on tokenization error * Rename and move event for tokenization error
This commit is contained in:
parent
d256ff84f7
commit
a93ee3a4e9
@ -2946,6 +2946,8 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat
|
||||
} else {
|
||||
// Result must be some combination including an error. The error message will
|
||||
// already be printed, all we need to do is repaint.
|
||||
wcstring_list_t argv(1, el->text());
|
||||
event_fire_generic(parser(), L"fish_posterror", &argv);
|
||||
s_reset(&screen, screen_reset_abandon_line);
|
||||
mark_repaint_needed();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user