Correct a comment position

This commit is contained in:
Sinai 2022-04-24 19:38:17 +10:00
parent 7be7daf4d7
commit b8cf96438c

View File

@ -440,7 +440,7 @@ namespace UnityExplorer.CSConsole
// depending on which one we are not at. // depending on which one we are not at.
if (LastCaretPosition == nonWhitespaceStartIdx) if (LastCaretPosition == nonWhitespaceStartIdx)
SetCaretPosition(thisline.startCharIdx); SetCaretPosition(thisline.startCharIdx);
else // jump to the next line start index - 1, ie. end of this line else
SetCaretPosition(nonWhitespaceStartIdx); SetCaretPosition(nonWhitespaceStartIdx);
} }
else else
@ -448,7 +448,7 @@ namespace UnityExplorer.CSConsole
// If there is no next line, jump to the end of this line (+1, to the invisible next character position) // If there is no next line, jump to the end of this line (+1, to the invisible next character position)
if (nextLine.startCharIdx <= 0) if (nextLine.startCharIdx <= 0)
SetCaretPosition(Input.Text.Length); SetCaretPosition(Input.Text.Length);
else else // jump to the next line start index - 1, ie. end of this line
SetCaretPosition(nextLine.startCharIdx - 1); SetCaretPosition(nextLine.startCharIdx - 1);
} }
} }