diff options
author | Guldoman <giulio.lettieri@gmail.com> | 2022-07-11 06:33:03 +0200 |
---|---|---|
committer | Guldoman <giulio.lettieri@gmail.com> | 2022-07-11 06:33:03 +0200 |
commit | a45126f3d7941c4f6e1e42a26c37d250ccb843b8 (patch) | |
tree | 1bf31f90f0d0f4be299a0e699b1e0b7c62143768 | |
parent | 1ea1994c232d5fae868c7468ed44fed71baa5709 (diff) | |
download | lite-xl-plugins-a45126f3d7941c4f6e1e42a26c37d250ccb843b8.tar.gz lite-xl-plugins-a45126f3d7941c4f6e1e42a26c37d250ccb843b8.zip |
`autoinsert`: remove duplicate `Doc:get_char` call
-rw-r--r-- | plugins/autoinsert.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/autoinsert.lua b/plugins/autoinsert.lua index d9bf291..94bcc74 100644 --- a/plugins/autoinsert.lua +++ b/plugins/autoinsert.lua @@ -88,7 +88,6 @@ command.add(predicate, { ["autoinsert:backspace"] = function() local doc = core.active_view.doc local l, c = doc:get_selection() - local chr = doc:get_char(l, c) if c > 1 then local chr = doc:get_char(l, c) local mapped = config.plugins.autoinsert.map[doc:get_char(l, c - 1)] |