From d0530fb83921acc92cd51fd6fa3a8d4846ad5aec Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 22 Mar 2021 18:06:52 +0900 Subject: Fix a scrolling crash where it would jump past the end of the buffer. --- helix-core/src/auto_pairs.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-core/src/auto_pairs.rs') diff --git a/helix-core/src/auto_pairs.rs b/helix-core/src/auto_pairs.rs index e6b8f667..aa668f29 100644 --- a/helix-core/src/auto_pairs.rs +++ b/helix-core/src/auto_pairs.rs @@ -54,6 +54,7 @@ fn next_char(doc: &Rope, pos: usize) -> Option { } Some(doc.char(pos)) } +// TODO: selections should be extended if range, moved if point. // TODO: if not cursor but selection, wrap on both sides of selection (surround) fn handle_open( -- cgit v1.2.3-70-g09d2