Skip to content

Commit

Permalink
Update src/input_context.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: akrieger <[email protected]>
  • Loading branch information
katemonster33 and akrieger authored Feb 15, 2024
1 parent 04b4413 commit 2644638
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/input_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,10 +807,7 @@ action_id input_context::display_menu( const bool permit_execute_action )
break;
}
} else if( action == "TEXT.INPUT_FROM_FILE" ) {
std::string entered = get_input_string_from_file();
utf8_wrapper wrap( kb_menu.filter_text );
wrap.append( utf8_wrapper( entered.c_str() ) );
kb_menu.filter_text += wrap.str();
kb_menu.filter_text += get_input_string_from_file();
} else if( action == "HELP_KEYBINDINGS" ) {
// update available hotkeys in case they've changed
kb_menu.hotkeys = ctxt.get_available_single_char_hotkeys( display_help_hotkeys );
Expand Down

0 comments on commit 2644638

Please sign in to comment.