Closed andis-sprinkis closed 3 years ago
0.1.1 - can't make window smaller than 8 rows now, but at least it doesn't crash anymore :)
I fixed the crash then I thought about it and realized that allowing to users to make window zero size is unnecessary. I hope no one is using window under ~200 pixel.
In tiling window manager scenarios it's possible to end up with window lazily squashed to a couple of lines (<200px), and most text input and plugin TUI (e.g. vim-fugitive) windows in vim happen to be mostly usable even if it's 1 or 2 lines, so I'd prefer that limit to be as low as possible.
This is how my vim windows and buffers end up from time to time, and it's still usable to me :D
That being said, it looks like RESIZE mode of i3wm can ignore the limit on 0.1.1. .
If you or anyone don't like this limit we can simply remove it cause we fixed the actual issue. But as you said the window managers can ignore the limit it's safe to keep it because 0 size window is not looks good and may dissapear from monitor. Also we may limit minimum size as cell size (not pixel) like 2 rows and 16 columns.
Personally I'm OK with the limit now that I have checked that tiling window managers on Linux can and most likely will ignore it. With ordinary floating windows it doesn't bother me at all.
Please complete the following information:
Describe the bug Neoray crashes with error message when using mouse cursor resize to reduce window content size to the height of 1 line or 0. Sometimes it will succeed resizing to 0 height without crash, but will crash trying to increase the window height from that point.
Steps to reproduce Drag window border to reduce window height towards 0 height.
https://user-images.githubusercontent.com/52537705/134231132-d6ff8446-e07f-4af8-bbe9-045a248142a4.mp4
Your neoray config in init.vim (Only the part that concerns neoray!)
Crash log if available (may be generated by neoray after crash)
Debug output (you can generate starting neoray with --verbose option)