ZIm/crates/vim/src
Hans 9cbde74274
Refactor selection expansion logic into a separate method (#10117)
Release Notes:

- N/A

This commit introduces a new method `range` to calculate the target
range for selection expansion based on the current selection, movement
times, and other parameters. The `expand_selection` method is refactored
to use this new `range` method, simplifying the logic for expanding a
selection and making the code more modular and reusable. The `range`
method encapsulates the logic for calculating the new selection range,
including handling linewise selection and adjustments for surrounding
newlines, making it easier to understand and maintain the selection
expansion functionality.

---------

Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
2024-04-04 08:35:26 +02:00
..
normal Fix vim code working on display map chars (#10103) 2024-04-02 22:16:52 -06:00
test Fix assorted linux issues (#10061) 2024-04-01 17:22:59 -07:00
command.rs Enable clippy::useless_conversion (#8767) 2024-03-03 10:22:55 -05:00
editor_events.rs Introduce InlineCompletionProvider (#9777) 2024-03-26 13:28:06 +01:00
insert.rs vim: Keep multi-cursor on escape (#8464) 2024-02-26 22:54:02 -07:00
mode_indicator.rs vim: Fix some problems with visual mode testing (#8461) 2024-02-26 20:15:27 -07:00
motion.rs Refactor selection expansion logic into a separate method (#10117) 2024-04-04 08:35:26 +02:00
normal.rs Fix vim code working on display map chars (#10103) 2024-04-02 22:16:52 -06:00
object.rs Fix vim code working on display map chars (#10103) 2024-04-02 22:16:52 -06:00
replace.rs Fix undo in replace mode (#10086) 2024-04-03 11:35:04 -06:00
state.rs Remove Copy trait for enum Operator (#9378) 2024-03-14 22:20:55 -06:00
test.rs vim: Avoid removing keymap context when blurred (#9960) 2024-04-01 16:43:14 -06:00
utils.rs Compute scrollbar markers asynchronously (#10080) 2024-04-03 12:21:17 +02:00
vim.rs Fix undo in replace mode (#10086) 2024-04-03 11:35:04 -06:00
visual.rs vim: Fix t operand not working correctly when cursor is on tag (#9899) 2024-03-28 10:16:54 +01:00