]> git.cworth.org Git - notmuch/blobdiff - vim/plugin/notmuch.vim
vim: fix regexp for cleaning search list
[notmuch] / vim / plugin / notmuch.vim
index e94d44bd49cb2c2e9296f894618ad28a03b112af..b63417b8bf0464ae693f3c5913a773540431a7dd 100644 (file)
@@ -1232,7 +1232,7 @@ endfunction
 function! s:NM_kill_this_buffer()
         if exists('b:nm_prev_bufnr')
                 let prev_bufnr = b:nm_prev_bufnr
-                bdelete
+                bdelete!
                 exec printf("buffer %d", prev_bufnr)
         else
                 echo "This is the last buffer; use :q<CR> to quit."
@@ -1270,7 +1270,7 @@ function! s:NM_add_remove_tags_on_screen(online, prefix, tags)
                 endfor
         else
                 for tagname in a:tags
-                        exec printf('silent! %ss/(\([^)]*\)\([^)]*\))$/(\1 %s)/', string(a:online), tagname)
+                        exec printf('silent! %ss/(\([^)]*\))$/(\1 %s)/', string(a:online), tagname)
                 endfor
         endif
         setlocal nomodifiable