Explorar el Código

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 hace 10 años
padre
commit
8be418af6b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      dotfiles/bash/post.bashrc

+ 1
- 1
dotfiles/bash/post.bashrc Ver fichero

@@ -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