mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
clean up formatting
This commit is contained in:
parent
dde63dde22
commit
3b72a03a72
1 changed files with 6 additions and 8 deletions
|
@ -30,7 +30,6 @@ def load_xonsh_bindings(key_bindings_manager):
|
|||
|
||||
DEDENT_TOKENS = frozenset(['raise', 'return', 'pass', 'break', 'continue'])
|
||||
|
||||
|
||||
@handle(Keys.Tab, filter=TabShouldInsertIndentFilter())
|
||||
def _(event):
|
||||
"""
|
||||
|
@ -80,8 +79,7 @@ def load_xonsh_bindings(key_bindings_manager):
|
|||
# if there are stray parens hanging aroung inside quotes
|
||||
elif (re.search(parens, b.document.text) is not None and
|
||||
((b.document.text.count('(') -
|
||||
re.search(parens, b.document.text).group().count('('))
|
||||
>
|
||||
re.search(parens, b.document.text).group().count('(')) >
|
||||
(b.document.text.count(')') -
|
||||
re.search(parens, b.document.text).group().count(')')))):
|
||||
b.newline()
|
||||
|
|
Loading…
Add table
Reference in a new issue