aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2021-12-28 21:39:45 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2021-12-28 21:39:45 +0100
commit5904cdb7134bbfe7ce226e095fa9ed6c1784cbfa (patch)
treea92d425280d9d636980ecb1479bb553462ef557b
parent1538883ba5a1ff1c442abe9881f0fd716d1ae7ad (diff)
downloadvis-spellcheck-5904cdb7134bbfe7ce226e095fa9ed6c1784cbfa.tar.gz
make format
-rw-r--r--spellcheck.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/spellcheck.lua b/spellcheck.lua
index 91acf31..3ff757e 100644
--- a/spellcheck.lua
+++ b/spellcheck.lua
@@ -7,7 +7,7 @@ else
spellcheck.default_lang = 'en_US'
end
-spellcheck.get_lang = function ()
+spellcheck.get_lang = function()
if vis.win.file.spell_language then
return vis.win.file.spell_language
else
@@ -181,7 +181,8 @@ vis.events.subscribe(vis.events.WIN_HIGHLIGHT, function(win)
end
for _, start, finish in typo_iter(viewport_text, typos, ignored) do
- win:style(spellcheck.typo_style_id, viewport.start + start - 1, viewport.start + finish - 1)
+ win:style(spellcheck.typo_style_id, viewport.start + start - 1,
+ viewport.start + finish - 1)
end
last_viewport = viewport_text