-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Open
Labels
Description
Summary
Second-to-last line behaves weirdly if inlay-hints are enabled and last line is empty.
- Use this minimal config:
{
"ui_font_size": 16,
"buffer_font_size": 15,
"vim_mode": true,
"inlay_hints": {
"enabled": true // <-- IMPORTANT FOR THIS BUG
},
"theme": {
"mode": "system",
"light": "One Light",
"dark": "One Dark"
}
}- create
test.rsfile:
mod test {
#[test]
fn test_new() {
// repeat enough times to cover entire screen vertically
assert!(true);
assert!(true);
assert!(true);
assert!(true);
assert!(true);
assert!(true);
assert!(true);
assert!(true);
}
}IMPORTANT: label mod test should be visible on the last line
- Position cursor like so:
});
ˇ}
}- press
j
Expected: cursor should appear on next line }ˇ, just before the inlay text.
Actual: cursor jumps over next line, goes to the last empty line instead
Probably related problem. This one requires Helix mode on:
- position cursor here:
});
}ˇ mod test <-- NON-SELECTABLE INLAY
}- press
Vorx
Expected: line with } should be highlighted
Actual: line with } and next empty line is highlighted
Weirdly, if you disable inlay_hints, problem is not occurring.
Zed Version and System Specs
Zed: v0.198.1 (Zed Preview)
OS: macOS 15.5.0
Memory: 32 GiB
Architecture: aarch64