diff options
author | Florian Fischer <gitlab@muhq.space> | 2023-09-15 15:52:48 +0000 |
---|---|---|
committer | Florian Fischer <gitlab@muhq.space> | 2023-09-15 15:52:48 +0000 |
commit | 1f5335b4377080eb8e57ffd2b09b31e6af29a003 (patch) | |
tree | ab133b56784d8e79ce14623621f9d10d5bdcec84 | |
parent | 3f450198c5c47a65d238ff3d0c17cf9ae7ce744f (diff) | |
parent | 70f3a8968217d09b14b6fd4e41af78d7ae54bdeb (diff) | |
download | vis-spellcheck-1f5335b4377080eb8e57ffd2b09b31e6af29a003.tar.gz |
Merge branch 'noreturn' into 'master'
don't return anything in WIN_HIGHLIGHT event
See merge request muhq/vis-spellcheck!13
-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 = {} |