Skip to content

Commit

Permalink
Small tweaks based on suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
katemonster33 committed Feb 16, 2024
1 parent 5acbf0b commit 412b330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/input_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -609,8 +609,8 @@ void keybindings_ui::draw_controls()
if( last_status != status && status == s_show ) {
ImGui::SetKeyboardFocusHere( 0 );
}
strncpy( filter_text_impl, filter_text.c_str(), strlen( filter_text.c_str() ) );
ImGui::InputText( "##NOLABEL", filter_text_impl, 255,
strncpy( filter_text_impl, filter_text.c_str(), filter_text.length() );
ImGui::InputText( "##NOLABEL", filter_text_impl, std::extent< decltype( filter_text_impl )>::value,

Check failure on line 613 in src/input_context.cpp

View workflow job for this annotation

GitHub Actions / build (src)

use c++17 style variable templates [modernize-type-traits,-warnings-as-errors]
status == s_show ? ImGuiInputTextFlags_None : ImGuiInputTextFlags_ReadOnly );
filter_text.assign( filter_text_impl );
ImGui::Separator();
Expand Down

0 comments on commit 412b330

Please sign in to comment.