Giter Club home page Giter Club logo

Comments (5)

dustdfg avatar dustdfg commented on September 24, 2024

And there is no way to make it accessible again (no way to make its width non-zero again).

I understand what you mean but technically I found that user can access it again and even make it visible

  1. It is still in the nodes tree so I tried to apply Ctrl+w several times and I cycled to the invisible split. It is invisible but you can still write there and perform actions: save file, set buffer local options... but I won't make it visible

  2. Close the fourth split and you will see the third

  • Init layout
    screen-1701600474
  • After bug layout
    screen-1701600483
  • After closing fourth split layout
    screen-1701600493

from micro.

dmaluka avatar dmaluka commented on September 24, 2024

You are right, but I think all that is not so important. What's important is how to fix it. (I assume you agree that this is a bug that needs to be fixed?)

I think we have 2 issues here, likely related to each other:

  1. We need to ensure (recursively) that when resizing a pane, not only the width of this pane never goes below zero, but also widths of any its child panes never go below zero. E.g. if a vertical split pane has 3 child vertical split panes, then if we resize the parent pane and its width narrows down to 3 characters, we should not allow resizing it further.
  2. Although micro seemingly implements proportional scaling of child panes when resizing a parent pane, this proportional scaling does not work quite as it should.

from micro.

JoeKar avatar JoeKar commented on September 24, 2024

Hm, from user perspective we could allow resizing till the content isn't visible any longer, but what we shouldn't allow is to resize it that low to hide the split divider, because that's the only anchor for any further access.

from micro.

dmaluka avatar dmaluka commented on September 24, 2024

Yes, that's exactly the issue.

from micro.

dustdfg avatar dustdfg commented on September 24, 2024
  1. We need to ensure (recursively) that when resizing a pane, not only the width of this pane never goes below zero, but also widths of any its child panes never go below zero. E.g. if a vertical split pane has 3 child vertical split panes, then if we resize the parent pane and its width narrows down to 3 characters, we should not allow resizing it further.

Maybe it can be done by returning from child maximum available space before 0 and if it is smaller that available space to neighbor/screen border...?

from micro.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.