diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-02-28 17:52:44 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-02-28 17:52:44 -0500 |
commit | 28b4a90aa7609d7a37cd2c32eef97ba4be112084 (patch) | |
tree | a494990f6dd80237b1422af930e134e595c00411 /core/ui.lua | |
parent | 2e8301161d5b0ef1e7a5762c090b3776da53dc60 (diff) |
Autopair, typeover, and backspace delete match works with multiple selection.
Diffstat (limited to 'core/ui.lua')
-rw-r--r-- | core/ui.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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('^[^/]+') |