Skip block lines when moving up and down
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
856768a43c
commit
0f1eb3dd2e
3 changed files with 32 additions and 10 deletions
|
@ -302,6 +302,10 @@ impl DisplayMapSnapshot {
|
|||
self.folds_snapshot.is_line_folded(tab_point.row())
|
||||
}
|
||||
|
||||
pub fn is_block_line(&self, display_row: u32) -> bool {
|
||||
self.blocks_snapshot.is_block_line(display_row)
|
||||
}
|
||||
|
||||
pub fn soft_wrap_indent(&self, display_row: u32) -> Option<u32> {
|
||||
let wrap_row = self
|
||||
.blocks_snapshot
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue