Skip to content

Commit f441cdc

Browse files
Merge branch 'MulticursorAutoclose' into dev
2 parents daddf22 + c895461 commit f441cdc

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

runtime/plugins/autoclose/autoclose.lua

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ function preInsertNewline(bp)
8484
end
8585

8686
function preBackspace(bp)
87-
local activeCursorNum = bp.Buf:GetActiveCursor().Num
88-
for i = 1,#bp.Buf:getCursors() do
89-
bp.Cursor = bp.Buf:GetCursor(i-1)
90-
preBackspaceAct(bp)
91-
end
92-
bp.Cursor = bp.Buf:GetCursor(activeCursorNum)
87+
preBackspaceAct(bp)
9388
return true
9489
end

0 commit comments

Comments
 (0)