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

Calling :WToggleClean several times, resizes the gvim window so much, that the command line is no longer visible

Open chrisbra opened this issue 9 years ago • 3 comments

First, great plugin. I like the idea. However, I started playing around and noticed that once you issued :WToggleClean commands several times, the window border will slighlty increase more and more (on the second :WToggleClean command, i.e. the command that disable the clean command), making the effective window size smaller and smaller, until you can't tell what will be entered in the command line.

chrisbra avatar Jan 04 '16 12:01 chrisbra

I believe this is fixed in the dev branch. If you can confirm that for me I'd be happy to publish a new version and close this.

kkoenig avatar Jan 04 '16 20:01 kkoenig

On Mo, 04 Jan 2016, kkoenig wrote:

I believe this is fixed in the dev branch. If you can confirm that for me I'd be happy to publish a new version and close this.

Can you provide the binaries for that branch as well please? Thanks.

Best, Christian

chrisbra avatar Jan 04 '16 20:01 chrisbra

I'm still running into this, but I noticed if you comment out these lines you'll at least be able to see underscores and the command line stops shrinking:

https://github.com/kkoenig/wimproved.vim/blob/f824a382753716f82f4f8528494a463426126300/wimproved.c#L223-L224

It looks like subtracting the clean/unclean child window deltas every call is shrinking the child/vim text area window.

(Edit: also seems related to #31 )

gsuuon avatar Jun 24 '20 19:06 gsuuon