You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want a sidebar (from the right side) so what I do:
Create buffer
Create split index from the buffer
Use ResizePane function on freshly created pane of sidebar
localsidebar_buf=buffer.NewBuffer("", "sidebar")
-- true here means to create it from rightsidebar=bp:VSplitIndex(sidebar_buf, true)
sidebar:ResizePane(35)
What I expect:
Sidebar shrinks to size 35.
What I get:
The opened file that is on the left side shrinks to size 35
After getting something wrong I decided to try another thing. I decided to create sidebar on the left side and see what I will get. When I created the sidebar on the left side and tried to change it is size, I saw that this time it worked as expected. The sidebar shrink but I think it is only because it was on the left side and the function has a bug. It doesn't actually resize pane from which it was called. It just resizes the most left pane
The problem is from my point of view within splits.go#L143 respective splits.go#L164, because they don't really respect if the last or a previous child will be resized and depending on this the action done c1 and c2 need to be exchanged.
Yep, I know...I reproduced it with the current master.
I think we've to add a bit more logic into the above two functions to get it running as expected. But even then, don't expect it to be merged quite soon, because the project owner currently hasn't the time to take care and we volunteers don't have the rights. ;)
Description of the problem or steps to reproduce
I want a sidebar (from the right side) so what I do:
What I expect:
Sidebar shrinks to size 35.
What I get:
The opened file that is on the left side shrinks to size 35
After getting something wrong I decided to try another thing. I decided to create sidebar on the left side and see what I will get. When I created the sidebar on the left side and tried to change it is size, I saw that this time it worked as expected. The sidebar shrink but I think it is only because it was on the left side and the function has a bug. It doesn't actually resize pane from which it was called. It just resizes the most left pane
Specifications
Commit hash: Version: 2.0.11 (it doesn't show commit hash)
OS: Debian 12
Terminal: foot
The text was updated successfully, but these errors were encountered: