Skip to content

Commit b97f3d3

Browse files
committed
vim: Filter stderr
1 parent cb67bf3 commit b97f3d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinxnotes/snippet/integration/binding.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
" :Version: 20210814
77
"
88
function! g:SphinxNotesSnippetEdit(id)
9-
let file = system(join([s:snippet, 'get', '--file', a:id], ' '))
10-
let line = system(join([s:snippet, 'get', '--line-start', a:id], ' '))
9+
let file = system(join([s:snippet, 'get', '--file', a:id, '2>/dev/null'], ' '))
10+
let line = system(join([s:snippet, 'get', '--line-start', a:id, '2>/dev/null'], ' '))
1111
execute 'tabedit ' . file
1212
execute line
1313
endfunction
@@ -20,7 +20,7 @@ function! g:SphinxNotesSnippetListAndEdit()
2020
endfunction
2121

2222
function! g:SphinxNotesSnippetUrl(id)
23-
let url_list = systemlist(join([s:snippet, 'get', '--url', a:id], ' '))
23+
let url_list = systemlist(join([s:snippet, 'get', '--url', a:id, '2>/dev/null'], ' '))
2424
for url in url_list
2525
echo system('xdg-open ' . shellescape(url))
2626
endfor

0 commit comments

Comments
 (0)