fix: Typos (#15313)
Fixed typos in the code base according with output from `codespell` tool. Release Notes: - N/A
This commit is contained in:
parent
6af385c09e
commit
3751f67730
11 changed files with 17 additions and 16 deletions
|
@ -99,7 +99,7 @@ pub enum Motion {
|
|||
WindowMiddle,
|
||||
WindowBottom,
|
||||
|
||||
// we don't have a good way to run a search syncronously, so
|
||||
// we don't have a good way to run a search synchronously, so
|
||||
// we handle search motions by running the search async and then
|
||||
// calling back into motion with this
|
||||
ZedSearchResult {
|
||||
|
|
|
@ -272,7 +272,7 @@ pub fn change_surrounds(text: Arc<str>, target: Object, cx: &mut WindowContext)
|
|||
match chars_and_offset.peek() {
|
||||
Some((next_ch, _)) => {
|
||||
// If the next position is already a space or line break,
|
||||
// we don't need to splice another space even under arround
|
||||
// we don't need to splice another space even under around
|
||||
if surround && !next_ch.is_whitespace() {
|
||||
open_str.push_str(" ");
|
||||
} else if !surround && next_ch.to_string() == " " {
|
||||
|
@ -556,7 +556,7 @@ mod test {
|
|||
async fn test_add_surrounds(cx: &mut gpui::TestAppContext) {
|
||||
let mut cx = VimTestContext::new(cx, true).await;
|
||||
|
||||
// test add surrounds with arround
|
||||
// test add surrounds with around
|
||||
cx.set_state(
|
||||
indoc! {"
|
||||
The quˇick brown
|
||||
|
@ -573,7 +573,7 @@ mod test {
|
|||
Mode::Normal,
|
||||
);
|
||||
|
||||
// test add surrounds not with arround
|
||||
// test add surrounds not with around
|
||||
cx.set_state(
|
||||
indoc! {"
|
||||
The quˇick brown
|
||||
|
@ -712,7 +712,7 @@ mod test {
|
|||
)])
|
||||
});
|
||||
|
||||
// test add surrounds with arround
|
||||
// test add surrounds with around
|
||||
cx.set_state(
|
||||
indoc! {"
|
||||
The quˇick brown
|
||||
|
@ -729,7 +729,7 @@ mod test {
|
|||
Mode::Normal,
|
||||
);
|
||||
|
||||
// test add surrounds not with arround
|
||||
// test add surrounds not with around
|
||||
cx.set_state(
|
||||
indoc! {"
|
||||
The quˇick brown
|
||||
|
@ -907,7 +907,7 @@ mod test {
|
|||
Mode::Normal,
|
||||
);
|
||||
|
||||
// test multi cursor delete surrounds with arround
|
||||
// test multi cursor delete surrounds with around
|
||||
cx.set_state(
|
||||
indoc! {"
|
||||
Tˇhe [ quick ] brown
|
||||
|
@ -1035,7 +1035,7 @@ mod test {
|
|||
Mode::Normal,
|
||||
);
|
||||
|
||||
// test multi cursor change surrount with not arround
|
||||
// test multi cursor change surrount with not around
|
||||
cx.set_state(
|
||||
indoc! {"
|
||||
Thˇe { quick } brown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue