mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Fix fish_prompt event
I've found that this modification fixes fish_prompt event Fixes #164
This commit is contained in:
@@ -2372,8 +2372,6 @@ static void handle_end_loop()
|
||||
*/
|
||||
static int read_i()
|
||||
{
|
||||
event_fire_generic(L"fish_prompt");
|
||||
|
||||
reader_push(L"fish");
|
||||
reader_set_complete_function( &complete );
|
||||
reader_set_highlight_function( &highlight_shell );
|
||||
@@ -2386,6 +2384,7 @@ static int read_i()
|
||||
{
|
||||
const wchar_t *tmp;
|
||||
|
||||
event_fire_generic(L"fish_prompt");
|
||||
if( function_exists( PROMPT_FUNCTION_NAME ) )
|
||||
reader_set_prompt( PROMPT_FUNCTION_NAME );
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user