InputText: Internal renaming of some fields + final copy uses edit_state.CurLenA+1 instead of buf_size.

This commit is contained in:
omar
2018-08-21 14:23:54 +02:00
parent 0fd6e9bc0d
commit 4de6e1f7e4
4 changed files with 30 additions and 29 deletions

View File

@ -1429,7 +1429,7 @@ struct ImGuiTextEditCallbackData
ImGuiKey EventKey; // Key pressed (Up/Down/TAB) // Read-only
char* Buf; // Current text buffer // Read-write (pointed data only, can't replace the actual pointer)
int BufTextLen; // Current text length in bytes // Read-write
int BufSize; // Maximum text length in bytes // Read-only
int BufSize; // Capacity (maximum text length + 1) // Read-only
bool BufDirty; // Set if you modify Buf/BufTextLen!! // Write
int CursorPos; // // Read-write
int SelectionStart; // // Read-write (== to SelectionEnd when no selection)