Skip to content

Commit

Permalink
Don't hang on hit-enter prompt (:SearchNotes)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Jul 9, 2011
1 parent 5d6dfdb commit 215fd1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion 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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions 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.
Expand All @@ -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'
Expand Down

0 comments on commit 215fd1c

Please sign in to comment.