diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-10-30 00:56:49 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-02-16 07:49:44 -0500 |
commit | 7955c05accaac452c1350d08af62d9d75387f24f (patch) | |
tree | f04f3f3522984b2ddf638e9785631dc128afea19 /src/clint.py | |
parent | 986eafce4708c8f49552d7dcd0cc5fe471caa655 (diff) | |
download | rneovim-7955c05accaac452c1350d08af62d9d75387f24f.tar.gz rneovim-7955c05accaac452c1350d08af62d9d75387f24f.tar.bz2 rneovim-7955c05accaac452c1350d08af62d9d75387f24f.zip |
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.
https://github.com/vim/vim/commit/725310d89e1ba268bf410472b7de054c6c260161
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clint.py b/src/clint.py index 12bada6aac..8dc41fdb93 100755 --- a/src/clint.py +++ b/src/clint.py @@ -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. |