mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-29 06:04:11 +01:00
vim: make it possible to replace NM_cobine_tags()
This commit is contained in:
parent
efa9df2d49
commit
d1eb2c6ce5
1 changed files with 1 additions and 1 deletions
|
@ -1213,7 +1213,7 @@ endfunction
|
||||||
" example:
|
" example:
|
||||||
" NM_combine_tags('tag:', ['one', 'two', 'three'], 'OR', '()')
|
" NM_combine_tags('tag:', ['one', 'two', 'three'], 'OR', '()')
|
||||||
" -> ['(', 'tag:one', 'OR', 'tag:two', 'OR', 'tag:three', ')']
|
" -> ['(', 'tag:one', 'OR', 'tag:two', 'OR', 'tag:three', ')']
|
||||||
function s:NM_combine_tags(word_prefix, words, separator, brackets)
|
function! s:NM_combine_tags(word_prefix, words, separator, brackets)
|
||||||
let res = []
|
let res = []
|
||||||
for word in a:words
|
for word in a:words
|
||||||
if len(res) && strlen(a:separator)
|
if len(res) && strlen(a:separator)
|
||||||
|
|
Loading…
Reference in a new issue