mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
vim-patch:8.1.1201: output of :command is hard to read
Problem: Output of :command is hard to read.
Solution: Make some columns wider, some narrower. Truncate the command when
listing all.
725310d89e
This commit is contained in:
@@ -1773,7 +1773,7 @@ def CheckSpacingForFunctionCall(filename, line, linenum, error):
|
||||
fncall = match.group(1)
|
||||
break
|
||||
|
||||
# Except in if/for/while/switch, there should never be space
|
||||
# Except in if/for/while/switch/case, there should never be space
|
||||
# immediately inside parens (eg "f( 3, 4 )"). We make an exception
|
||||
# for nested parens ( (a+b) + c ). Likewise, there should never be
|
||||
# a space before a ( when it's a function argument. I assume it's a
|
||||
@@ -1787,7 +1787,7 @@ def CheckSpacingForFunctionCall(filename, line, linenum, error):
|
||||
# Note that we assume the contents of [] to be short enough that
|
||||
# they'll never need to wrap.
|
||||
if ( # Ignore control structures.
|
||||
not Search(r'\b(if|for|while|switch|return|sizeof)\b', fncall) and
|
||||
not Search(r'\b(if|for|while|switch|case|return|sizeof)\b', fncall) and
|
||||
# Ignore pointers/references to functions.
|
||||
not Search(r' \([^)]+\)\([^)]*(\)|,$)', fncall) and
|
||||
# Ignore pointers/references to arrays.
|
||||
|
Reference in New Issue
Block a user