Multicursor vim registers (#13025)
Release Notes: - vim: Added support for multicursor registers (#11687) - vim: Added support for the `"/` register
This commit is contained in:
parent
068b1c235c
commit
a5af5b2883
17 changed files with 333 additions and 250 deletions
|
@ -17,7 +17,6 @@ use crate::{
|
|||
normal::{mark, normal_motion},
|
||||
state::{Mode, Operator},
|
||||
surrounds::SurroundsType,
|
||||
utils::coerce_punctuation,
|
||||
visual::visual_motion,
|
||||
Vim,
|
||||
};
|
||||
|
@ -1764,6 +1763,14 @@ fn window_bottom(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn coerce_punctuation(kind: CharKind, treat_punctuation_as_word: bool) -> CharKind {
|
||||
if treat_punctuation_as_word && kind == CharKind::Punctuation {
|
||||
CharKind::Word
|
||||
} else {
|
||||
kind
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue