sjbach / lusty

LustyExplorer / LustyJuggler for Vim
http://www.vim.org/scripts/script.php?script_id=1890
257 stars 30 forks source link

LustyExplorer Horizontal Splits #52

Closed ghost closed 12 years ago

ghost commented 12 years ago

mkdir ~/test-lusty-bug cd ~/test-lust-bug

Open vim.

Create two buffers a.txt and b.txt and split horizontally (a.txt open in top 50%, and b.txt open in bottom 50%)

:ls 2 %a "b.txt" line 1 3 a "a.txt" line 0

Press leader and lr to open Lusty Explorer

You'll see that the heights of a.txt and b.txt are not maintained, rather a.txt shrinks to 1 line visible and b.txt now takes whole view (minus lusty window at bottom). Cancelling returns to normal but this is an annoyance as I can no longer study most of real estate when opening lustyexplorer.

sjbach commented 12 years ago

Sounds like you are requesting that the splits maintain their relative proportions when the explorer is active?

skwp commented 12 years ago

I am also seeing this issue. It's especially annoying when you have a quickfix window open as a bottom split because lusty will cause the entire screen to jump up and disrupt your vision. The standard behavior of opening a split, as far as i know automatically retains equal proportions. So when yo open the lusty split, you should just do a regular split and then resize it to whatever size it should be. Everything else will be maintained by default (I think). So maybe lusty is doing something sort of custom there. I haven't looked at the code yet.

dlobraico commented 12 years ago

Any updates on this? It's sort of irritating to me also and if someone else has already figured out a fix, I'd love to see a patch...

sjbach commented 12 years ago

I'm a little overextended these days so probably won't have time to fix this myself, but I'd be happy to accept a patch. :-)

dlobraico commented 12 years ago

No worries, I'll take a look this evening and see what I can do in the way of a patch.

sjbach commented 12 years ago

Fixed by pygatea.