zellij-org / zellij

A terminal workspace with batteries included
https://zellij.dev
MIT License
21.09k stars 643 forks source link

Unicode character cause holes in vim/neovim colorscheme #2592

Open Martins3 opened 1 year ago

Martins3 commented 1 year ago

what's happening

When editing a document containing CKJ character or emoji with neovim, after the window splitted and closed, there are holes. image

/tmp/zellij-1000/zellij-log/

INFO   |zellij_client            | 2023-07-01 11:36:24.555 [main      ] [zellij-client/src/lib.rs:143]: Starting Zellij client! 
INFO   |zellij_server            | 2023-07-01 11:36:24.557 [main      ] [zellij-server/src/lib.rs:237]: Starting Zellij server! 
INFO   |zellij_server            | 2023-07-01 11:36:24.608 [main      ] [zellij-server/src/lib.rs:862]: Compiling plugins using Cranelift 
INFO   |zellij_server::plugins   | 2023-07-01 11:36:24.608 [wasm      ] [zellij-server/src/plugins/mod.rs:124]: Wasm main thread starts 
INFO   |zellij_utils::input::plug| 2023-07-01 11:36:24.610 [async-std/runti] [zellij-utils/src/input/plugins.rs:139]: Plugin 'status-bar.wasm' exists in the 'PLUGIN DIR' at '/home/martins3/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_utils::input::plug| 2023-07-01 11:36:24.610 [async-std/runti] [zellij-utils/src/input/plugins.rs:139]: Plugin 'tab-bar.wasm' exists in the 'PLUGIN DIR' at '/home/martins3/.local/share/zellij/plugins/' but is being ignored 
INFO   |zellij_server::plugins::p| 2023-07-01 11:36:24.613 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:595]: Loaded plugin 'tab-bar' from cache folder at '/home/martins3/.cache/zellij' in 2.505403ms 
INFO   |zellij_server::plugins::p| 2023-07-01 11:36:24.614 [async-std/runti] [zellij-server/src/plugins/plugin_loader.rs:595]: Loaded plugin 'status-bar' from cache folder at '/home/martins3/.cache/zellij' in 3.142088ms 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:24.701 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:24.701 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[55], [102, 105, 108, 101, 58, 47, 47, 110, 105, 120, 111, 115, 47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:24.712 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:29.404 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:29.404 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [115, 116, 116, 121]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:29.431 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:29.431 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[55], [102, 105, 108, 101, 58, 47, 47, 110, 105, 120, 111, 115, 47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:36:29.440 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:37:33.161 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:37:33.161 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [110, 118, 105, 109]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:37:33.189 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:21.255 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:21.257 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:21.258 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[55], [102, 105, 108, 101, 58, 47, 47, 110, 105, 120, 111, 115, 47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:21.270 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:22.783 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:22.784 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [110, 118, 105, 109]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:40:22.812 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:42:16.049 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:42:16.051 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:42:16.053 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[55], [102, 105, 108, 101, 58, 47, 47, 110, 105, 120, 111, 115, 47, 116, 109, 112]] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:42:16.062 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 61->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:42:17.335 [screen    ] [zellij-server/src/panes/grid.rs:3007]: Unhandled esc_dispatch: 62->[] 
WARN   |zellij_server::panes::gri| 2023-07-01 11:42:17.336 [screen    ] [zellij-server/src/panes/grid.rs:2395]: Unhandled osc: [[49], [113]] 

Basic information

  1. zellij --version: zellij 0.37.2
  2. stty size:60 252
  3. uname -av or ver(Windows): Linux nixos 6.4.0 #1-NixOS SMP PREEMPT_DYNAMIC Sun Jun 25 23:29:58 UTC 2023 x86_64 GNU/Linux
  4. NVIM v0.9.1
  5. VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jan 01 1980 00:00:00)
  6. wezterm 20230408-112425-69ae8472
  7. kitty 0.28.1 created by Kovid Goyal

Further information

Reproduction steps:

  1. create a file named test with following content
    hello
    こんにちは
    你好
    안녕하세요
    🥑🥑🥑
  2. nvim --clean test
  3. in nvim, execute following commands
    :colorscheme blue # change the background
    <c-w> v # split window
    <c-w> l # move to the second window
    :x # close second window

additional information

but helix is not influenced

hx --version
helix 23.05

maybe related to #1034

Zykino commented 1 year ago

May also be related to #1538

imsnif commented 1 year ago

@Martins3 - could you please provide the debug logs as mentioned in the issue template? (specifically the zellij-<number>.log)

This will allow me to recreate the issue immediately and easily rather than chasing after versions and themes and trying to find out just exactly what happened (it's often quite nuanced and very hard to reproduce without these logs). Thanks!