From: NeilBrown Date: Mon, 9 Oct 2023 22:35:04 +0000 (+1100) Subject: autospell: fix detection of existing spell range handler X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=e7f65c60bacdd50b047d8f7ea83d5c0516591168;p=edlib.git autospell: fix detection of existing spell range handler Two cases: no rangecheck at all - return is 0 rangecheck existgs, but not for spell: return is Efalse So test <= 0. Signed-off-by: NeilBrown --- diff --git a/python/lib-autospell.py b/python/lib-autospell.py index 79c6c3d8..5b13abc6 100644 --- a/python/lib-autospell.py +++ b/python/lib-autospell.py @@ -152,8 +152,8 @@ class autospell_view(edlib.Pane): self.vstart = mark.dup() self.vend = mark2.dup() if (not self.helper_attached and - not self.call("doc:notify:rangetrack:add", - "autospell")): + self.call("doc:notify:rangetrack:add", + "autospell") <= 0): if self.call("rangetrack:new", "autospell") > 0: self.helper_attached = True else: