From 70f3a8968217d09b14b6fd4e41af78d7ae54bdeb Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Thu, 14 Sep 2023 05:38:31 -0600 Subject: don't return anything in WIN_HIGHLIGHT event Returning true prevents a user from defining a WIN_HIGHLIGHT event in addition to spellchecking. --- spellcheck.lua | 7 ------- 1 file changed, 7 deletions(-) diff --git a/spellcheck.lua b/spellcheck.lua index 1272e32..94b0f57 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -187,13 +187,6 @@ vis.events.subscribe(vis.events.WIN_HIGHLIGHT, function(win) last_viewport = viewport_text last_typos = typos - -- TODO: think about returning true here - -- http://martanne.github.io/vis/doc/index.html#Events - -- The vis documentation states that a no further event handlers are called if one - -- returns not nil - -- Should we terminate the WIN_HIGHLIGHT event handling if we are ready highltighting - -- typos ? - return true end) local wrapped_lex_funcs = {} -- cgit v1.2.3