Skip to content

Commit eb5c77e

Browse files
delirious-lettucejonathanslenders
authored andcommitted
Fix typos:
`Contrel` -> `Control`, `hypen` -> `hyphen`, `explicitely` -> `explicitly`, `disinguesh` -> `distinguish`, `Dictiory` -> `Dictionary`, `throughthe` -> `through the`, `folow` -> `follow`
1 parent fa16b54 commit eb5c77e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

prompt_toolkit/input/vt100_parser.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class _Flush(object):
4545
'\x02': Keys.ControlB, # Control-B (emacs cursor left)
4646
'\x03': Keys.ControlC, # Control-C (interrupt)
4747
'\x04': Keys.ControlD, # Control-D (exit)
48-
'\x05': Keys.ControlE, # Contrel-E (end)
48+
'\x05': Keys.ControlE, # Control-E (end)
4949
'\x06': Keys.ControlF, # Control-F (cursor forward)
5050
'\x07': Keys.ControlG, # Control-G
5151
'\x08': Keys.ControlH, # Control-H (8) (Identical to '\b')
@@ -72,7 +72,7 @@ class _Flush(object):
7272
'\x1c': Keys.ControlBackslash, # Both Control-\ (also Ctrl-| )
7373
'\x1d': Keys.ControlSquareClose, # Control-]
7474
'\x1e': Keys.ControlCircumflex, # Control-^
75-
'\x1f': Keys.ControlUnderscore, # Control-underscore (Also for Ctrl-hypen.)
75+
'\x1f': Keys.ControlUnderscore, # Control-underscore (Also for Ctrl-hyphen.)
7676

7777
# ASCII Delete (0x7f)
7878
# Vt220 (and Linux terminal) send this when pressing backspace. We map this
@@ -184,7 +184,7 @@ class _Flush(object):
184184
# (Iterm sends ESC followed by the normal arrow_up/down/left/right
185185
# sequences, and the OSX Terminal sends ESCb and ESCf for "alt
186186
# arrow_left" and "alt arrow_right." We don't handle these
187-
# explicitely, in here, because would could not distinguesh between
187+
# explicitly, in here, because would could not distinguish between
188188
# pressing ESC (to go to Vi navigation mode), followed by just the
189189
# 'b' or 'f' key. These combinations are handled in
190190
# the input processor.)
@@ -202,7 +202,7 @@ class _Flush(object):
202202

203203
class _IsPrefixOfLongerMatchCache(dict):
204204
"""
205-
Dictiory that maps input sequences to a boolean indicating whether there is
205+
Dictionary that maps input sequences to a boolean indicating whether there is
206206
any key that start with this characters.
207207
"""
208208
def __missing__(self, prefix):
@@ -224,7 +224,7 @@ def __missing__(self, prefix):
224224
class Vt100Parser(object):
225225
"""
226226
Parser for VT100 input stream.
227-
Data can be fed throughthe `feed` method and the given callback will be
227+
Data can be fed through the `feed` method and the given callback will be
228228
called with KeyPress objects.
229229
230230
::
@@ -389,7 +389,7 @@ def flush(self):
389389
sequence, we don't know whether escape has been pressed, or whether
390390
it's something else. This flush function should be called after a
391391
timeout, and processes everything that's still in the buffer as-is, so
392-
without assuming any characters will folow.
392+
without assuming any characters will follow.
393393
"""
394394
self._input_parser.send(_Flush)
395395

0 commit comments

Comments
 (0)