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.
Files changed (3) hide show
  1. data/lib/vnews.vim +3 -1
  2. data/lib/vnews/version.rb +1 -1
  3. 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
@@ -1,4 +1,4 @@
1
1
  class Vnews
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
4
4
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 8
9
- version: 0.0.8
8
+ - 9
9
+ version: 0.0.9
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Choi