diff options
Diffstat (limited to 'spellcheck.lua')
| -rw-r--r-- | spellcheck.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spellcheck.lua b/spellcheck.lua index 0c3549d..d09f1e9 100644 --- a/spellcheck.lua +++ b/spellcheck.lua @@ -167,7 +167,8 @@ vis.events.subscribe(vis.events.WIN_HIGHLIGHT, function(win) not win:style_define(spellcheck.typo_style_id, spellcheck.typo_style) then return end - local viewport = win.viewport + -- Be backward compatible with vis < v0.9 + local viewport = win.viewport.bytes or win.viewport local viewport_text = win.file:content(viewport) local typos |
