Browse files

Don't hang on hit-enter prompt (:SearchNotes)

  • Loading branch information...
1 parent 5d6dfdb commit 215fd1c81b942cf7f3309d80da115d2efafdb5e5 @xolox committed Jul 9, 2011
Showing with 7 additions and 3 deletions.
  1. +5 −1 autoload/xolox/notes.vim
  2. +2 −2 plugin/notes.vim
View
6 autoload/xolox/notes.vim
@@ -1,6 +1,6 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 24, 2011
+" Last Change: July 9, 2011
" URL: http://peterodding.com/code/vim/notes/
" Note: This file is encoded in UTF-8 including a byte order mark so
@@ -429,6 +429,10 @@ function! s:internal_search(bang, pattern, keywords, phase2) " {{{2
execute 'match IncSearch' pattern
endif
call xolox#misc#timer#stop('notes.vim %s: Searched notes in %s.', g:notes_version, starttime)
+ if &verbose == 0
+ " Don't hang on the hit-enter prompt.
+ redraw
+ endif
endfunction
function! s:vimgrep_wrapper(bang, pattern, files) " {{{2
View
4 plugin/notes.vim
@@ -1,6 +1,6 @@
" Vim plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 24, 2011
+" Last Change: July 9, 2011
" URL: http://peterodding.com/code/vim/notes/
" Support for automatic update using the GLVS plug-in.
@@ -11,7 +11,7 @@ if &cp || exists('g:loaded_notes')
finish
endif
-let g:notes_version = '0.9.4'
+let g:notes_version = '0.9.5'
" Make sure the default paths below are compatible with Pathogen.
let s:plugindir = expand('<sfile>:p:h') . '/../misc/notes'

0 comments on commit 215fd1c

Please sign in to comment.