Skip to content

Commit 37e0ecc

Browse files
authored
Merge pull request #150 from WebCoder49/indent-unindent-fix
Make deleting indentation on a line then pressing enter remove indentation on that next line
2 parents 2f46027 + b8d78f0 commit 37e0ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/indent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ codeInput.plugins.Indent = class extends codeInput.Plugin {
218218
// find the index of the line our cursor is currently on
219219
for (let i = 0; i < lines.length; i++) {
220220
letterI += lines[i].length + 1;
221-
if(inputElement.selectionEnd <= letterI) {
221+
if(inputElement.selectionEnd < letterI) {
222222
currentLineI = i;
223223
break;
224224
}

0 commit comments

Comments
 (0)