Commits

Markus Braun  committed 1aef709

add `unsilence` to inputdialog() to force printing the message

  • Participants
  • Parent commits a63ab76

Comments (0)

Files changed (1)

File plugin/localvimrc.vim

               else
                 let l:message = "localvimrc: source " . l:rcfile . "? ([y]es/[n]o/[a]ll/[q]uit) "
               endif
-              let l:answer = inputdialog(l:message)
+
+              " turn off possible previous :silent command to force this
+              " message to be printed
+              unsilent let l:answer = inputdialog(l:message)
               call s:LocalVimRCDebug(2, "answer is \"" . l:answer . "\"")
 
-              if l:answer == ''
-                call s:LocalVimRCDebug(2, "Aborting on empty answer.")
-                let l:answer = 'q'
+              if empty(l:answer)
+                call s:LocalVimRCDebug(2, "aborting on empty answer")
+                let l:answer = "q"
               endif
             endwhile
           endif