Fix ctrl+backspace from few recent commits ago

This commit is contained in:
UnknownShadow200 2018-04-26 21:21:37 +10:00
parent 70a5c73854
commit b5f2c1f9f3

View File

@ -333,7 +333,7 @@ namespace ClassicalSharp.Gui.Widgets {
if (caret >= Text.Length) caret = -1; if (caret >= Text.Length) caret = -1;
if (caret == -1 && Text.Length > 0) { if (caret == -1 && Text.Length > 0) {
Text.value[Text.Length] = ' '; Text.InsertAt(Text.Length, ' ');
} else if (caret >= 0 && Text.value[caret] != ' ') { } else if (caret >= 0 && Text.value[caret] != ' ') {
Text.InsertAt(caret, ' '); Text.InsertAt(caret, ' ');
} }