diff options
author | AlexSm <[email protected]> | 2023-12-27 23:31:58 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-12-27 23:31:58 +0100 |
commit | d67bfb4b4b7549081543e87a31bc6cb5c46ac973 (patch) | |
tree | 8674f2f1570877cb653e7ddcff37ba00288de15a /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout | |
parent | 1f6bef05ed441c3aa2d565ac792b26cded704ac7 (diff) |
Import libs 4 (#758)
Diffstat (limited to 'contrib/python/prompt-toolkit/py3/prompt_toolkit/layout')
4 files changed, 6 insertions, 6 deletions
diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py index 5de87b08a7b..100d4aaebca 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/containers.py @@ -2050,7 +2050,7 @@ class Window(Container): new_buffer_row[x + xpos] = char # When we print a multi width character, make sure - # to erase the neighbours positions in the screen. + # to erase the neighbors positions in the screen. # (The empty string if different from everything, # so next redraw this cell will repaint anyway.) if char_width > 1: @@ -2537,7 +2537,7 @@ class Window(Container): scroll_offset_end=offsets.right, cursor_pos=get_cwidth(current_line_text[: ui_content.cursor_position.x]), window_size=width - current_line_prefix_width, - # We can only analyse the current line. Calculating the width off + # We can only analyze the current line. Calculating the width off # all the lines is too expensive. content_size=max( get_cwidth(current_line_text), self.horizontal_scroll + width diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py index c13960bc43a..c30c0effa8c 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/controls.py @@ -491,7 +491,7 @@ class _ProcessedLine(NamedTuple): class BufferControl(UIControl): """ - Control for visualising the content of a :class:`.Buffer`. + Control for visualizing the content of a :class:`.Buffer`. :param buffer: The :class:`.Buffer` object to be displayed. :param input_processors: A list of @@ -603,7 +603,7 @@ class BufferControl(UIControl): width can be done by calculating the longest line, but this would require applying all the processors to each line. This is unfeasible for a larger document, and doing it for small - documents only would result in inconsistent behaviour. + documents only would result in inconsistent behavior. """ return None diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py index 1a21237a849..2c2ccb6436e 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py @@ -679,7 +679,7 @@ class MultiColumnCompletionsMenu(HSplit): filter=full_filter & show_meta & any_completion_has_meta, ) - # Initialise split. + # Initialize split. super().__init__([completions_window, meta_window], z_index=z_index) diff --git a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py index 90c017ade7c..b7376115e4e 100644 --- a/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py +++ b/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/processors.py @@ -288,7 +288,7 @@ class HighlightSelectionProcessor(Processor): if from_ == 0 and to == 0 and len(fragments) == 0: # When this is an empty line, insert a space in order to - # visualise the selection. + # visualize the selection. return Transformation([(selected_fragment, " ")]) else: for i in range(from_, to): |