vhakulinen / gnvim

GUI for neovim, without any web bloat
MIT License
1.86k stars 68 forks source link

Fold closes when losing focus #192

Closed urxvtcd closed 1 year ago

urxvtcd commented 2 years ago

To reproduce:

  1. Create two files. First is minimal.vim:
    set nocompatible
    au FocusLost * echo('Lost')
    filetype plugin indent on
    syntax on
    set hidden

    Then minimal.txt:

    " {
    " vim: foldmethod=marker foldlevel=0 foldmarker={,}
    " It's a test
    " }
  2. Run gnvim on the two files:
    gnvim minimal.txt -- -u minimal.vim
  3. Open the fold with za
  4. Move mouse so gnvim loses focus. The fold will close.

nvim version:

NVIM v0.8.0-dev-968-g09c6ce8c4

gnvim version:

gnvim v0.1.6-88-g6ba4737

Probably related to: https://github.com/equalsraf/neovim-qt/issues/591

vhakulinen commented 1 year ago

Gnvim was rewritten from ground up for gtk4. If the problem persists, feel free to reopen this issue.