Minor tweaks to reduce false positive of PVS Studio static analyzer.

This commit is contained in:
omar
2019-02-06 13:08:30 +01:00
parent 5bdc7d7a6f
commit f366828dd2
5 changed files with 13 additions and 10 deletions

View File

@ -3225,7 +3225,7 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
select_all = true;
}
if (flags & ImGuiInputTextFlags_AlwaysInsertMode)
edit_state.StbState.insert_mode = true;
edit_state.StbState.insert_mode = 1;
if (!is_multiline && (focus_requested_by_tab || (user_clicked && io.KeyCtrl)))
select_all = true;
}