We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653f2e2 commit effbfbbCopy full SHA for effbfbb
rt-shell/objects/obj_shell/Step_0.gml
@@ -46,7 +46,8 @@ if (!isOpen) {
46
} else if (self.keyComboPressed([metaKey], vk_backspace) || (metaKey == vk_control && ord(keyboard_string) == 127)) {
47
// delete characters from the cursor position to the preceding space or start of the line
48
var precedingSpaceIndex = 1;
49
- for (var i = cursorPos; i > 1; i--) {
+ // don't want to check for space at or before the cursor position, so start 2 back
50
+ for (var i = cursorPos - 2; i > 1; i--) {
51
if (string_char_at(consoleString, i) == " ") {
52
precedingSpaceIndex = i;
53
break;
0 commit comments