From 9a43e504722672075233e9919c939647df0686da Mon Sep 17 00:00:00 2001 From: TomJGooding <101601846+TomJGooding@users.noreply.github.com> Date: Tue, 27 Aug 2024 15:15:04 +0100 Subject: [PATCH] behaviour -> behavior --- docs/guide/layout.md | 2 +- docs/guide/reactivity.md | 2 +- docs/widgets/text_area.md | 2 +- src/textual/document/_document_navigator.py | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/guide/layout.md b/docs/guide/layout.md index 8c80a14b0..c644e7aa3 100644 --- a/docs/guide/layout.md +++ b/docs/guide/layout.md @@ -105,7 +105,7 @@ As mentioned earlier, widgets expand to fill the _width_ of their parent contain They do not, however, expand to fill the container's height. Thus, we need explicitly assign `height: 100%` to achieve this. -A consequence of this "horizontal growth" behaviour is that if we remove the width restriction from the above example (by deleting `width: 1fr;`), each child widget will grow to fit the width of the screen, +A consequence of this "horizontal growth" behavior is that if we remove the width restriction from the above example (by deleting `width: 1fr;`), each child widget will grow to fit the width of the screen, and only the first widget will be visible. The other two widgets in our layout are offscreen, to the right-hand side of the screen. In the case of `horizontal` layout, Textual will _not_ automatically add a scrollbar. diff --git a/docs/guide/reactivity.md b/docs/guide/reactivity.md index eb058a130..453e36467 100644 --- a/docs/guide/reactivity.md +++ b/docs/guide/reactivity.md @@ -200,7 +200,7 @@ The color is parsed in `on_input_submitted` and assigned to `self.color`. Becaus Textual only calls watch methods if the value of a reactive attribute _changes_. If the newly assigned value is the same as the previous value, the watch method is not called. -You can override this behaviour by passing `always_update=True` to `reactive`. +You can override this behavior by passing `always_update=True` to `reactive`. ### Dynamically watching reactive attributes diff --git a/docs/widgets/text_area.md b/docs/widgets/text_area.md index 0824f4c69..2580cdeb6 100644 --- a/docs/widgets/text_area.md +++ b/docs/widgets/text_area.md @@ -292,7 +292,7 @@ This immediately updates the appearance of the `TextArea`: ```{.textual path="docs/examples/widgets/text_area_custom_theme.py" columns="42" lines="8"} ``` -### Tab and Escape behaviour +### Tab and Escape behavior Pressing the ++tab++ key will shift focus to the next widget in your application by default. This matches how other widgets work in Textual. diff --git a/src/textual/document/_document_navigator.py b/src/textual/document/_document_navigator.py index 25b44e842..6dbc3c6d5 100644 --- a/src/textual/document/_document_navigator.py +++ b/src/textual/document/_document_navigator.py @@ -21,7 +21,7 @@ class DocumentNavigator: may move your cursor to a position further along the current raw document line, rather than on to the next line in the raw document. - The DocumentNavigator class manages that behaviour. + The DocumentNavigator class manages that behavior. Given a cursor location in the unwrapped document, and a cursor movement action, this class can inform us of the destination the cursor will move to considering @@ -49,9 +49,9 @@ class DocumentNavigator: document-space line. This is a codepoint index, rather than a visual offset. In "ABCDEF" with wrapping at width 3, there is a single wrap offset of 3. - "Smart home" refers to a modification of the "home" key behaviour. If smart home is + "Smart home" refers to a modification of the "home" key behavior. If smart home is enabled, the first non-whitespace character is considered to be the home location. - If the cursor is currently at this position, then the normal home behaviour applies. + If the cursor is currently at this position, then the normal home behavior applies. This is designed to make cursor movement more useful to end users. """ @@ -389,7 +389,7 @@ class DocumentNavigator: Args: location: The location to consider. - smart_home: Enable/disable 'smart home' behaviour. + smart_home: Enable/disable 'smart home' behavior. Returns: The home location, relative to the given location.