Pressing Control-C (or otherwise changeing the command line content through the commandline builtin) should clear the search buffer.

darcs-hash:20090221154420-ac50b-52641fb6dd6e76aebc6244211e07c0861fb3eff0.gz
This commit is contained in:
axel 2009-02-22 01:44:20 +10:00
parent 5fc42fcaff
commit b1357d11b2

View File

@ -2099,6 +2099,10 @@ void reader_set_buffer( wchar_t *b, int p )
data->buff_pos=l;
}
data->search_mode = NO_SEARCH;
sb_clear( &data->search_buff );
history_reset();
reader_super_highlight_me_plenty( data->buff_pos,
0 );
reader_repaint_needed();