Use US English spelling of "behavior" and "customize" (#15117)
This PR fixes some instances that weren't using US English spellings of "behavior" and "customize". Release Notes: - N/A
This commit is contained in:
@@ -6,9 +6,9 @@ The backlog is maintained in the `#vim` channel notes.
|
||||
|
||||
## Testing against Neovim
|
||||
|
||||
If you are making a change to make Zed's behaviour more closely match vim/nvim, you can create a test using the `NeovimBackedTestContext`.
|
||||
If you are making a change to make Zed's behavior more closely match vim/nvim, you can create a test using the `NeovimBackedTestContext`.
|
||||
|
||||
For example, the following test checks that Zed and Neovim have the same behaviour when running `*` in visual mode:
|
||||
For example, the following test checks that Zed and Neovim have the same behavior when running `*` in visual mode:
|
||||
|
||||
```rust
|
||||
#[gpui::test]
|
||||
@@ -31,6 +31,6 @@ cargo test -p vim --features neovim test_visual_star_hash
|
||||
This will run your keystrokes against a headless neovim and cache the results in the test_data directory.
|
||||
|
||||
|
||||
## Testing zed-only behaviour
|
||||
## Testing zed-only behavior
|
||||
|
||||
Zed does more than vim/neovim in their default modes. The `VimTestContext` can be used instead. This lets you test integration with the language server and other parts of zed's UI that don't have a NeoVim equivalent.
|
||||
|
||||
@@ -35,7 +35,7 @@ impl SharedState {
|
||||
pub fn assert_matches(&self) {
|
||||
if self.neovim != self.editor || self.neovim_mode != self.editor_mode {
|
||||
panic!(
|
||||
indoc! {"Test failed (zed does not match nvim behaviour)
|
||||
indoc! {"Test failed (zed does not match nvim behavior)
|
||||
# initial state:
|
||||
{}
|
||||
# keystrokes:
|
||||
@@ -67,7 +67,7 @@ impl SharedState {
|
||||
let message = if self.neovim != marked_text {
|
||||
"Test is incorrect (currently expected != neovim_state)"
|
||||
} else {
|
||||
"Editor does not match nvim behaviour"
|
||||
"Editor does not match nvim behavior"
|
||||
};
|
||||
panic!(
|
||||
indoc! {"{}
|
||||
@@ -110,7 +110,7 @@ impl SharedClipboard {
|
||||
let message = if expected == self.neovim {
|
||||
"Test is incorrect (currently expected != neovim_state)"
|
||||
} else {
|
||||
"Editor does not match nvim behaviour"
|
||||
"Editor does not match nvim behavior"
|
||||
};
|
||||
|
||||
panic!(
|
||||
|
||||
@@ -392,7 +392,7 @@ impl Vim {
|
||||
}
|
||||
|
||||
// When handling an action, you must create visual marks if you will switch to normal
|
||||
// mode without the default selection behaviour.
|
||||
// mode without the default selection behavior.
|
||||
fn store_visual_marks(&mut self, cx: &mut WindowContext) {
|
||||
let mode = self.state().mode;
|
||||
if mode.is_visual() {
|
||||
|
||||
Reference in New Issue
Block a user