Quellcode durchsuchen

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 vor 8 Jahren
Ursprung
Commit
8be418af6b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      dotfiles/bash/post.bashrc

+ 1
- 1
dotfiles/bash/post.bashrc Datei anzeigen

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