helix/helix-view/src
Ingrid 1d0a3d49d3
Consistently maintain view position (#10559)
* replicate t-monaghan's changes

* remove View.offset in favour of Document.view_data.view_position

* improve access patterns for Document.view_data

* better borrow checker wrangling with doc_mut!()

* reintroduce ensure_cursor_in_view in handle_config_events

since we sorted out the borrow checker issues using partial borrows,
there's nothing stopping us from going back to the simpler implementation

* introduce helper functions on Document .view_offset, set_view_offset

* fix rebase breakage
2024-07-23 19:54:00 +02:00
..
annotations only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
handlers only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
annotations.rs render diagnostic inline 2024-07-15 16:35:30 +02:00
base64.rs Fix new clippy lints (#5892) 2023-02-09 16:27:08 -06:00
clipboard.rs FIx incorrectly spelled cfg options (#10703) 2024-05-07 18:14:02 +02:00
document.rs Consistently maintain view position (#10559) 2024-07-23 19:54:00 +02:00
editor.rs Consistently maintain view position (#10559) 2024-07-23 19:54:00 +02:00
events.rs only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
graphics.rs tui: Constify functions, shrink Margin representation 2024-05-21 04:34:36 +09:00
gutter.rs use newtype parttern for langauge server id 2024-04-22 12:27:47 +09:00
handlers.rs only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
info.rs Use refactored Registers type 2023-07-31 15:05:38 +09:00
input.rs Normalize `S-<lower-ascii>` keymaps to uppercase ascii (#9213) 2024-01-09 10:04:34 +09:00
keyboard.rs build(deps): bump bitflags from 1.3.2 to 2.0.2 (#6387) 2023-03-22 08:12:08 +08:00
lib.rs Consistently maintain view position (#10559) 2024-07-23 19:54:00 +02:00
macros.rs Apply transactions to all views (#4733) 2022-11-23 12:28:49 +09:00
register.rs Return document display name from the '%' special register (#11275) 2024-07-23 06:56:26 +09:00
theme.rs Add tree-sitter-highlight-name command (#8170) 2023-09-10 14:57:44 +02:00
tree.rs Resolve new Clippy lints 2024-05-07 15:15:52 -04:00
view.rs Consistently maintain view position (#10559) 2024-07-23 19:54:00 +02:00