Skip to content

Commit

Permalink
fix(Studio): Move caret after insert when auto-completing command/sni…
Browse files Browse the repository at this point in the history
…ppet
  • Loading branch information
psyGamer committed Nov 15, 2024
1 parent a6da68f commit eeedb94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Studio/CelesteStudio/Editing/Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,8 @@ private void GenerateBaseAutoCompleteEntries() {
});
}
SelectQuickEditIndex(0);
} else if (Settings.Instance.CaretInsertPosition == CaretInsertPosition.PreviousPosition) {
Document.Caret = ClampCaret(oldCaret);
} else {
desiredVisualCol = Document.Caret.Col = Document.Lines[Document.Caret.Row].Length;
}

if (hasArguments) {
Expand Down

0 comments on commit eeedb94

Please sign in to comment.