Commits

ZyX_I committed 2f6a013

Do not commit anything if there are no matches

  • Participants
  • Parent commits eac424e

Comments (0)

Files changed (1)

autoload/aurum/commit.vim

             \'emptmsg': 'Message must contain at least one non-blank character',
             \'nocfile': 'Unsure what should be commited',
             \  'nocom': 'Nothing to commit',
+            \'nomatch': 'Provided patterns did not match any files',
         \}
 let s:_options={
             \'remembermsg':         {'default': 1, 'filter': 'bool'},
                 let files+=curfiles
             endif
         endfor
+        if empty(files)
+            call s:_f.throw('nomatch')
+        endif
     elseif files is 0
         call s:_f.throw('nocfile')
     endif