Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

[22639] Fix backspaceKey #2123

Open
wants to merge 2 commits into
base: develop-9.6
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2480,8 +2480,10 @@ on backspaceKey
put __GetPreference("editor,autoformat", true) into tAutoFormat

if tAutoFormat then
if tTo is 0 then put 1 into tTo
put caretPositionLeft(tLineStart, tTo, tScript) + 1 into tAt
else
if tTo is 0 then put 1 into tTo
put tTo into tAt
end if
put tTo - tAt + 1 into tLength
Expand Down
1 change: 1 addition & 0 deletions notes/bugfix-22639.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Fix backspaceKey returning wrong position to SE