Skip to content

Commit

Permalink
Fix various typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanslenders committed Nov 16, 2023
1 parent b1cb8fa commit ae37e94
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ Fixes:

Fixes:
- Fixed a race condition in `ThreadedHistory` that happens when continuously
pasting input text (which would continously repopulate the history).
pasting input text (which would continuously repopulate the history).
- Move cursor key mode resetting (for vt100 terminals) to the renderer. (Mostly
cleanup).

Expand Down Expand Up @@ -451,7 +451,7 @@ Other changes:

Fixes:
- Bugfix in shift-selection key bindings.
- Fix hight calculation of `FormattedTextControl` when line wrapping is turned
- Fix height calculation of `FormattedTextControl` when line wrapping is turned
on.
- Fixes for SSH server:
* Missing encoding property.
Expand Down Expand Up @@ -615,7 +615,7 @@ Bug fixes:
Bug fixes:
- Fixes the issue where changes made to the buffer in the accept handler were
not reflected in the history.
- Fix in the application invalidate handler. This prevents a significat slow
- Fix in the application invalidate handler. This prevents a significant slow
down in some applications after some time (especially if there is a refresh
interval).
- Make `print_container` utility work if the input is not a pty.
Expand Down Expand Up @@ -882,7 +882,7 @@ Changes:
of the content. `TokenListControl` (renamed to `FormattedTextControl`) does
not have an alignment argument anymore.
* All container objects, like `Window`, got a `style` argument. The style for
parent containers propagate to child containers, but can be overriden.
parent containers propagate to child containers, but can be overridden.
This is in particular useful for setting a background color.
* `FillControl` does not exist anymore. Use the `style` and `char` arguments
of the `Window` class instead.
Expand Down
2 changes: 1 addition & 1 deletion PROJECTS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Full screen applications:
- `kubeterminal <https://github.com/samisalkosuo/kubeterminal>`_: Kubectl helper tool.
- `pydoro <https://github.com/JaDogg/pydoro>`_: Pomodoro timer.
- `sanctuary-zero <https://github.com/t0xic0der/sanctuary-zero>`_: A secure chatroom with zero logging and total transience.
- `Hummingbot <https://github.com/CoinAlpha/hummingbot>`_: A Cryptocurrency Algorithimic Trading Platform
- `Hummingbot <https://github.com/CoinAlpha/hummingbot>`_: A Cryptocurrency Algorithmic Trading Platform
- `git-bbb <https://github.com/MrMino/git-bbb>`_: A `git blame` browser.

Libraries:
Expand Down
4 changes: 2 additions & 2 deletions docs/pages/advanced_topics/styling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ There are four different levels of color depths available:
+--------+-----------------+-----------------------------+---------------------------------+

By default, 256 colors are used, because this is what most terminals support
these days. If the ``TERM`` enviroment variable is set to ``linux`` or
these days. If the ``TERM`` environment variable is set to ``linux`` or
``eterm-color``, then only ANSI colors are used, because of these terminals. The 24
bit true color output needs to be enabled explicitely. When 4 bit color output
bit true color output needs to be enabled explicitly. When 4 bit color output
is chosen, all colors will be mapped to the closest ANSI color.

Setting the default color depth for any prompt_toolkit application can be done
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/advanced_topics/unit_testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ with `sys.stdin` and `sys.stdout`. In unit tests however, we want to replace
these.

- For the input, we want a "pipe input". This is an input device, in which we
can programatically send some input. It can be created with
can programmatically send some input. It can be created with
:func:`~prompt_toolkit.input.create_pipe_input`, and that return either a
:class:`~prompt_toolkit.input.posix_pipe.PosixPipeInput` or a
:class:`~prompt_toolkit.input.win32_pipe.Win32PipeInput` depending on the
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/upgrading/2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ the completer in a :class:`~prompt_toolkit.completion.ThreadedCompleter`.
Filters
^^^^^^^

We don't distiguish anymore between `CLIFilter` and `SimpleFilter`, because the
We don't distinguish anymore between `CLIFilter` and `SimpleFilter`, because the
application object is no longer passed around. This means that all filters are
a `Filter` from now on.

Expand Down
2 changes: 1 addition & 1 deletion examples/prompts/placeholder-text.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
"""
Example of a placeholer that's displayed as long as no input is given.
Example of a placeholder that's displayed as long as no input is given.
"""
from prompt_toolkit import prompt
from prompt_toolkit.formatted_text import HTML
Expand Down
2 changes: 1 addition & 1 deletion src/prompt_toolkit/filters/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@


# NOTE: `has_focus` below should *not* be `memoized`. It can reference any user
# control. For instance, if we would contiously create new
# control. For instance, if we would continuously create new
# `PromptSession` instances, then previous instances won't be released,
# because this memoize (which caches results in the global scope) will
# still refer to each instance.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_async_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def _sync_generator():

def test_generator_to_async_generator():
"""
Test conversion of sync to asycn generator.
Test conversion of sync to async generator.
This should run the synchronous parts in a background thread.
"""
async_gen = generator_to_async_generator(_sync_generator)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def _to_text(button: Button) -> str:
return fragment_list_to_text(control.text())


def test_defaulf_button():
def test_default_button():
button = Button("Exit")
assert _to_text(button) == "< Exit >"

Expand Down

0 comments on commit ae37e94

Please sign in to comment.