vnews 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/vnews.vim +3 -1
- data/lib/vnews/version.rb +1 -1
- metadata +2 -2
data/lib/vnews.vim
CHANGED
@@ -426,7 +426,6 @@ endfunc
|
|
426
426
|
"------------------------------------------------------------------------
|
427
427
|
" SEARCH
|
428
428
|
func! s:search_items(term)
|
429
|
-
call clearmatches()
|
430
429
|
call s:focus_window(s:listbufnr)
|
431
430
|
let command = s:search_items_command . winwidth(0) . ' ' . shellescape(a:term)
|
432
431
|
let res = system(command)
|
@@ -434,10 +433,13 @@ func! s:search_items(term)
|
|
434
433
|
" show item for top match
|
435
434
|
normal gg
|
436
435
|
call s:show_item_under_cursor(0)
|
436
|
+
" item window will be focused
|
437
|
+
call clearmatches()
|
437
438
|
for word in split(a:term, '\s\+')
|
438
439
|
call matchadd("VnewsSearchTerm", '\c' . word)
|
439
440
|
endfor
|
440
441
|
call s:focus_window(s:listbufnr)
|
442
|
+
call clearmatches()
|
441
443
|
for word in split(a:term, '\s\+')
|
442
444
|
call matchadd("VnewsSearchTerm", '\c' . word)
|
443
445
|
endfor
|
data/lib/vnews/version.rb
CHANGED