editor: Fix panics in CursorPosition::update_position (#41237)
Fixes a regression introduced in https://github.com/zed-industries/zed/pull/39857. As for the exact reason this causes this issue I am not yet sure will investigate (as per the todos in code) Fixes ZED-23R Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -1417,6 +1417,7 @@ impl std::ops::Deref for DisplaySnapshot {
|
||||
}
|
||||
}
|
||||
|
||||
/// A zero-indexed point in a text buffer consisting of a row and column adjusted for inserted blocks.
|
||||
#[derive(Copy, Clone, Default, Eq, Ord, PartialOrd, PartialEq)]
|
||||
pub struct DisplayPoint(BlockPoint);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user