From 28b4a90aa7609d7a37cd2c32eef97ba4be112084 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 28 Feb 2020 17:52:44 -0500 Subject: Autopair, typeover, and backspace delete match works with multiple selection. --- core/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/ui.lua b/core/ui.lua index 88dd83c6..b5c46114 100644 --- a/core/ui.lua +++ b/core/ui.lua @@ -324,7 +324,7 @@ local GETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[1] -- Sets buffer statusbar text. events_connect(events.UPDATE_UI, function(updated) if updated and updated & 3 == 0 then return end -- ignore scrolling - local pos = buffer.current_pos + local pos = buffer.selection_n_caret[buffer.main_selection] local line, max = buffer:line_from_position(pos) + 1, buffer.line_count local col = buffer.column[pos] + 1 local lexer = buffer:private_lexer_call(GETLEXERLANGUAGE):match('^[^/]+') -- cgit v1.2.3