Browse Source

Calm down Vim's default syntax highlighter

When case is left without quotes, Vim's default syntax highlighter shows
the left bracket in strong, error-y red style (not sure why, e.g.
ShellCheck does not complain about that notation).  It seems to work
fine when quoted, though.
Alois Mahdal 8 years ago
parent
commit
8be418af6b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      dotfiles/bash/post.bashrc

+ 1
- 1
dotfiles/bash/post.bashrc View File

@@ -74,7 +74,7 @@ __bashum__set_title() {
74 74
     # http://www.davidpashley.com/articles/xterm-titles-with-bash.html
75 75
     #
76 76
     case "$BASH_COMMAND" in
77
-        *\033]0*)
77
+        *"\033]"0*)
78 78
             # The command is trying to set the title bar as well;
79 79
             # this is most likely the execution of $PROMPT_COMMAND.
80 80
             # In any case nested escapes confuse the terminal, so don't