aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar maxfl <gmaxfl@gmail.com>2012-07-03 09:25:09 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-06 15:31:45 -0700
commit7fccad156ef84fd5927f7d35db9c097fe9e43962 (patch)
tree7fa8313826448ded784626cee1d80f994651ac03 /reader.cpp
parent11e56456a042a6aec2e7e0b533acb195597af272 (diff)
Fix fish_prompt event
I've found that this modification fixes fish_prompt event Fixes #164
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/reader.cpp b/reader.cpp
index e68677a2..29645d74 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -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