Преглед на файлове

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 преди 10 години
родител
ревизия
8be418af6b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      dotfiles/bash/post.bashrc

+ 1
- 1
dotfiles/bash/post.bashrc Целия файл

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