Blessed xterm fixes#4
Conversation
|
In my code comment for the clone() usage, I wrote: "clone options or all widget instances will show at least the same style, etc" How do you think this issue is now adresses by just removing the clone() call? I do not see what you are doing instead? |
|
Hi @rse , thanks for reviewing! I saw the comment. Could you please elaborate the problem of widgets having the same style? I tried reproducing using the sample.js file by applying different styles to the two terminals and it worked without the clone() call. Thanks! |
|
I've currently no time to reproduce, but AFAIK the issue was that the style of a window being rendered active, or scrolling (in visual mode) or in error state was broken without this. One of those three states was not rendered correctly AFAIK. |
|
@rse no worries I'll try to reproduce on my side too. From a design standpoint I don't think it should be needed to clone the options. So if it is needed I think it would be more of a bug in blessed/blessed-xterm. My 2 cents ofc :) |
In this PR I propose to
Thanks!