Skip to content

Commit

Permalink
Pressing Control-C (or otherwise changeing the command line content t…
Browse files Browse the repository at this point in the history
…hrough the commandline builtin) should clear the search buffer.

darcs-hash:20090221154420-ac50b-52641fb6dd6e76aebc6244211e07c0861fb3eff0.gz
  • Loading branch information
liljencrantz committed Feb 21, 2009
1 parent 5fc42fc commit b1357d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b1357d1

Please sign in to comment.