context.vim icon indicating copy to clipboard operation
context.vim copied to clipboard

The separator line keep visible when context is toggle off

Open vds2212 opened this issue 1 year ago • 3 comments

I'm using:

  • gVim 9.1.474 on Windows 10 and
  • Neovim 0.10 on Windows 10

On both I have the same problem with the version of the 10th of July.

Remark:

  • The version of 1st of July, commit: 5d14952, seems to work fine
  • It seems that the commit: f8f619e is the one that induces the behavior

When I toggle context.vim off using the :ContextToggle command the context separator line is not removed like it was before the new release of the 10 of July 2024.

Before 10th of July with context.vim activate: image Before 10th of July with context.vim deactivate (:ContextToggle) image

After 10th of July with context.vim activate: image After 10 of July with context.vim deactivate (:ContextToggle) and any cursor motion (l, h, ...) image

After 10th of July:

  • The separator line doesn't go to the margin (good or not could be discussed).
  • When toggle off the separator line stay and the context stay (a bit like it is not off)

It can be reproduced with any kind of file. Here is the file I use for the screenshot in case it helps.

class Hello:
    def __init__(self):
        print("hello")

    def hello(self, message):
        if message:
            print(message)
        else:
            print("hello")

class Foo:
    def __init__(self):
        print("foo")

    def hello(self, message):
        if message:
            print(message)
        else:
            print("hello")

vds2212 avatar Jul 11 '24 18:07 vds2212

Same issue here. Trying :ContextDisable makes it flash off then back on. I suspect theres something automatically enabling it all the time, and the issue is not that its not disabling.

GregShiner avatar Jul 11 '24 22:07 GregShiner

Thank you. Could you check again now, please?

wellle avatar Jul 19 '24 09:07 wellle

Thank you for merging the changes. I just started my holidays :-/ I'll check when I'll be back probably around 12th of August

vds2212 avatar Jul 20 '24 09:07 vds2212