-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Characters disappear when NERDTree pane opens #255
Comments
I'm willing to bet #254 is related to this as well. I haven't dug into it yet, but I hope to soon (maybe not until hacktoberfest, though). |
Hi @jacobmischka, have you had any chance to look into this? I can help if needed (by running test, debugging, etc). |
I haven't, sorry. |
#[derive(Clone)]
pub struct Cell {
pub hl: Rc<Highlight>,
pub ch: String,
pub dirty: bool,
pub double_width: bool,
}
impl Cell {
pub fn new_empty() -> Cell {
Cell {
hl: Rc::new(Highlight::new()),
ch: String::new(),
dirty: true,
double_width: false,
}
}
pub fn clear(&mut self, hl: Rc<Highlight>) {
self.ch.clear();
self.hl = hl;
self.dirty = true;
self.double_width = false;
}
} one usage for (cell_idx, cell) in line.line.iter().enumerate() {
if cell.double_width {
continue;
}
if !cell.ch.is_empty() {
line_str.push_str(&cell.ch);
} else {
line_str.push(' ');
}
let len = line_str.len() - byte_offset;
for _ in 0..len {
cell_to_byte.push(cell_idx);
}
let next = style_attr.next(byte_offset, byte_offset + len, cell, hl);
if let Some(next) = next {
style_attr.insert_into(&attr_list);
style_attr = next;
}
byte_offset += len;
} Could also be that those are double_with ligatures to be drawn. neovim-gtk has at least two character ligatures as
But I suppose it has to be a byte != str.len issue. |
After system upgrade the issue is fixed for me
|
Describe the bug
Some characters disappear when toggling NERDTree pane open, notably lines where NERDTree displays directories are affected.
Technical information:
Reverting libpango to 1.44 fixes the issue
The text was updated successfully, but these errors were encountered: