question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Previous output leeches through to nvim w/ WebGL Addon enabled

See original GitHub issue

Previous 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

  1. Run some commands until at least half of your screen is filled with output bottom to top
  2. Run nvim

image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JasonXJcommented, Sep 5, 2022

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 clears this._model but not this._glyphRenderer.
  • _updateModel() is called to update this._model to match the terminal buffer. Because this._model was cleared earlier, the code here thinks that the cell is up-to-date and there is no need to update this._glyphRenderer.

I think the correct fix for this is to make sure we clear this._glyphRenderer when we clear this._model. I will send a pull request soon.

0reactions
Tyriarcommented, Sep 22, 2022

@deadb0d4 I think this was landing in 1.72 (early October)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found