diff options
author | Randy Palamar <palamar@ualberta.ca> | 2023-09-14 05:38:31 -0600 |
---|---|---|
committer | Randy Palamar <palamar@ualberta.ca> | 2023-09-14 07:18:04 -0600 |
commit | 70f3a8968217d09b14b6fd4e41af78d7ae54bdeb (patch) | |
tree | ab133b56784d8e79ce14623621f9d10d5bdcec84 | |
parent | 3f450198c5c47a65d238ff3d0c17cf9ae7ce744f (diff) | |
download | vis-spellcheck-70f3a8968217d09b14b6fd4e41af78d7ae54bdeb.tar.gz |
don't return anything in WIN_HIGHLIGHT event
Returning true prevents a user from defining a WIN_HIGHLIGHT event in
addition to spellchecking.
-rw-r--r-- | spellcheck.lua | 7 |
1 files changed, 0 insertions, 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 = {} |