1. Paul Ruane
  2. tmsu

Commits

Paul Ruane  committed 4087031

Fixed bug in Zsh completion for 'files' command.

  • Participants
  • Parent commits 2fc4fce
  • Branches default

Comments (0)

Files changed (1)

File misc/zsh/_tmsu

View file
 }
 
 _tmsu_query() {
-    # can't include 'le' in the regular expression as it causes some kind of dump
-    if [[ $words[$#words-1] =~ '=|!=|<|>|<=|>=' || \
-          $words[$#words-1] =~ 'eq|EQ||ne|NE|lt|LT|gt|GT|ge|GE' || \
-          $words[$#words-1] == 'le' || \
-          $words[$#words-1] == 'LE' ]]
+    if [[ ! $words[$#words-1] =~ '--' && $words[$#words-1] =~ '=|!=|<|>|<=|>=' ]]
     then
         typeset -a value_list
         local line