mirror of
https://github.com/zellij-org/zellij.git
synced 2024-12-24 17:53:36 +03:00
server/panes/grid: Document dropping 0-width chars
and add a reference to the issue discussing/tracking this (https://github.com/zellij-org/zellij/issues/1538).
This commit is contained in:
parent
348a197eb9
commit
d8fcaf8e05
@ -1193,6 +1193,10 @@ impl Grid {
|
||||
}
|
||||
pub fn add_character(&mut self, terminal_character: TerminalCharacter) {
|
||||
let character_width = terminal_character.width;
|
||||
// Drop zero-width Unicode/UTF-8 codepoints, like for example Variation Selectors.
|
||||
// This breaks unicode grapheme segmentation, and is the reason why some characters
|
||||
// aren't displayed correctly. Refer to this issue for more information:
|
||||
// https://github.com/zellij-org/zellij/issues/1538
|
||||
if character_width == 0 {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user