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.
2 parents 2f46027 + b8d78f0 commit 37e0eccCopy full SHA for 37e0ecc
plugins/indent.js
@@ -218,7 +218,7 @@ codeInput.plugins.Indent = class extends codeInput.Plugin {
218
// find the index of the line our cursor is currently on
219
for (let i = 0; i < lines.length; i++) {
220
letterI += lines[i].length + 1;
221
- if(inputElement.selectionEnd <= letterI) {
+ if(inputElement.selectionEnd < letterI) {
222
currentLineI = i;
223
break;
224
}
0 commit comments