In STTextViewController.swift, the setCursorPosition function was changed so that, if the currently open file is empty, the cursor is automatically set to the first position and active. This behavior is similar to other text editors e.g. VSCode.
A related PR is opened in CodeEdit, which works in tandem with this one, so that newly-created files automatically open in a new editor tab.
Description
STTextViewController.swift
, thesetCursorPosition
function was changed so that, if the currently open file is empty, the cursor is automatically set to the first position and active. This behavior is similar to other text editors e.g. VSCode.A related PR is opened in CodeEdit, which works in tandem with this one, so that newly-created files automatically open in a new editor tab.
Related Issue
Checklist
Screenshots