Previous output leeches through to nvim w/ WebGL Addon enabled
See original GitHub issuePrevious commands’ output leeches through to nvim. The old output is only visible on the same lines you see the nvim prompt text - see screenshot. Doesn’t happen with other editors, tried vi
, nano
, micro
. Only happens when using the WebGL Addon.
Details
- Browser and browser version: Firefox 101.0.1
- OS version: Linux 5.15.49-1-MANJARO
- xterm.js version: latest
Steps to reproduce
- Run some commands until at least half of your screen is filled with output bottom to top
- Run
nvim
Issue Analytics
- State:
- Created a year ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Message - Neovim docs
The previous command output is cleared when another command produces output. The "g<" output is not redirected. If you want to find help...
Read more >Untitled - Snap!
Recursively sort the rest of the list, then insert the one left-over item ... ,favorite,sign,china,michael,conference,windows,previous,trip,english,poor ...
Read more >Jhm - River Thames Conditions - Environment Agency - GOV.UK
Dziwny blok w warszawie, Hyakka ryouran yukimura, Anh hai h c, Bike special paint, ... Brad's story a 12 year-old with adhd, Praxiteles...
Read more >Are We Wayland Yet? - Hacker News
It's not just the Wayland/EGL stuff with Nvidia. They've been called 'the worst company to work with' by the Linux kernel devs and...
Read more >Diff - platform/external/mesa3d - android Git repositories
+ +# fixes: The commit requires earlier commits 639c4f2b54a6 and ... quit() + with open(args.output, 'w') as git_sha1_h: + git_sha1_h.write(new_sha1) +else: ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, there are actually two different bugs mentioned here: 1) the issue mentioned by OP and this comment, where some texts are not cleared correctly and 2) Rendering artefects (e.g. dots) on the cursor canvas.
I figured out what is wrong with 1. It can happen when neovim sets some colors and then deletes some characters, and this is what happens inside the
WebglRenderer
:setColors()
is called, and it clearsthis._model
but notthis._glyphRenderer
._updateModel()
is called to updatethis._model
to match the terminal buffer. Becausethis._model
was cleared earlier, the code here thinks that the cell is up-to-date and there is no need to updatethis._glyphRenderer
.I think the correct fix for this is to make sure we clear
this._glyphRenderer
when we clearthis._model
. I will send a pull request soon.@deadb0d4 I think this was landing in 1.72 (early October)