mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 03:25:14 -04:00
Fix ctrl+backspace from few recent commits ago
This commit is contained in:
parent
70a5c73854
commit
b5f2c1f9f3
@ -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, ' ');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user