GithubHelp home page GithubHelp logo

Comments (9)

kyx0r avatar kyx0r commented on June 14, 2024

*Update never mind the anysize patch, it's actually caused by this patch :
https://st.suckless.org/patches/vim_browse/

from neatvi.

aligrudi avatar aligrudi commented on June 14, 2024

from neatvi.

kyx0r avatar kyx0r commented on June 14, 2024

Hello Ali,

Here is how generally it works in unpatched st version and other terminals like xterm, tty, etc.
https://ibb.co/k8XDfht
On the image vi.c is open and cursor moved to line that says "WITH REGARD TO THIS SOFTWARE ..."
then 'o' is pressed. The bottom portion of the screen gets moved down and new line is created. This is just how it should
work, no issue here.

https://ibb.co/nwYd9VJ
This is how the same operation looks like in patched st build with vim_browse. You can see that the "WITH REGARD TO THIS SOFTWARE ..." was "eaten" and instead of bottom part shifting down, the top part moved up instead and now there is also a weird new line at line 0.

from neatvi.

kyx0r avatar kyx0r commented on June 14, 2024

It feels like because vim_browse patch adds a history buffer that is "above" the current displayed characters, it also messes up the line where the '\n' should be created, meaning that '\n' is always inserted on line 0. So if you keep hitting linefeed (enter) the result will look like this: https://ibb.co/grZ3DVD

from neatvi.

aligrudi avatar aligrudi commented on June 14, 2024

from neatvi.

kyx0r avatar kyx0r commented on June 14, 2024

It doesn't.

unpatched: https://ibb.co/5x17Pp4
patched:https://ibb.co/6WQ2LBg

from neatvi.

kyx0r avatar kyx0r commented on June 14, 2024

Either way, I think the terminal is at fault here, I hope the patch maintainer from suckless sees this report here and fixes it, because terminal should not be changing the way basic commands like this work.

from neatvi.

aligrudi avatar aligrudi commented on June 14, 2024

from neatvi.

kyx0r avatar kyx0r commented on June 14, 2024

Fixed by maintainers.

from neatvi.

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.