Skip to content

Commit

Permalink
Implement input history for overmap search (#62296)
Browse files Browse the repository at this point in the history
  • Loading branch information
EIIKaO authored Nov 21, 2022
1 parent 0de166f commit b3b97e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/overmap_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,11 @@ static bool search( const ui_adaptor &om_ui, tripoint_abs_omt &curs, const tripo
{
std::string term = string_input_popup()
.title( _( "Search term:" ) )
.description( _( "Multiple entries separated with comma (,). Excludes starting with hyphen (-)." ) )
.description( string_format( "%s\n%s",
_( "Multiple entries separated with comma (,). Excludes starting with hyphen (-)." ),
colorize( _( "UP: history, CTRL-U: clear line, ESC: abort, ENTER: save" ), c_green ) ) )
.desc_color( c_white )
.identifier( "overmap_search" )
.query_string();
if( term.empty() ) {
return false;
Expand Down

0 comments on commit b3b97e0

Please sign in to comment.