mirror of
https://github.com/helix-editor/helix
synced 2024-11-10 10:34:45 +01:00
60f84be40c
increment/decrement (C-a/C-x) had some buggy behavior where selections could be offset incorrectly or the editor could panic with some edits that changed the number of characters in a number or date. These stemmed from the automatic jumping behavior which attempted to find the next date or integer to increment. The jumping behavior also complicated the code quite a bit and made the behavior somewhat difficult to predict when using many cursors. This change removes the automatic jumping behavior and only increments or decrements when the full text in a range of a selection is a number or date. This simplifies the code and fixes the panics and buggy behaviors from changing the number of characters. |
||
---|---|---|
.. | ||
increment | ||
auto_pairs.rs | ||
chars.rs | ||
comment.rs | ||
config.rs | ||
diagnostic.rs | ||
diff.rs | ||
graphemes.rs | ||
history.rs | ||
indent.rs | ||
lib.rs | ||
line_ending.rs | ||
macros.rs | ||
match_brackets.rs | ||
movement.rs | ||
object.rs | ||
path.rs | ||
position.rs | ||
register.rs | ||
search.rs | ||
selection.rs | ||
shellwords.rs | ||
surround.rs | ||
syntax.rs | ||
test.rs | ||
textobject.rs | ||
transaction.rs | ||
wrap.rs |