Nvy icon indicating copy to clipboard operation
Nvy copied to clipboard

Fix: window doesn't resize after `set lines`, `set columns`

Open bprb opened this issue 1 year ago • 1 comments

Detect a grid change and resize the (win32) window. Neovim might not send a flush so manually force a full grid redraw.

bprb avatar Jun 30 '24 23:06 bprb

To repro:

  1. start nvy with --geometry 100x20
  2. use set lines to verify line count is 20
  3. use set lines=30 to increase nvy window height
  4. observe that GUI window doesn't resize, but the nvim window does, so the status bar & cmd area are invisible

bprb avatar Jun 30 '24 23:06 bprb

Sorry for the slow response and thanks for the repro, I am not sure why neovim is not sending a flush but in any case I don't see any harm in a few extra manual flushes to make sure things like this work. Merging 👍

RMichelsen avatar Sep 03 '24 08:09 RMichelsen