Skip to content

Commit

Permalink
Reorder arguments for helper function
Browse files Browse the repository at this point in the history
So the action comes first in the argument list. Also use double quotes
for strings.
  • Loading branch information
juanibiapina committed Feb 15, 2018
1 parent 41f70e2 commit 64a2b57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/bbye.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
if exists("g:loaded_bbye") || &cp | finish | endif
let g:loaded_bbye = 1

function! s:bdelete(bang, buffer_name, action)
function! s:bdelete(action, bang, buffer_name)
let buffer = s:str2bufnr(a:buffer_name)
let w:bbye_back = 1

Expand Down Expand Up @@ -81,7 +81,7 @@ function! s:warn(msg)
endfunction

command! -bang -complete=buffer -nargs=? Bdelete
\ :call s:bdelete(<q-bang>, <q-args>, 'bdelete')
\ :call s:bdelete("bdelete", <q-bang>, <q-args>)

command! -bang -complete=buffer -nargs=? Bwipeout
\ :call s:bdelete(<q-bang>, <q-args>, 'bwipeout')
\ :call s:bdelete("bwipeout", <q-bang>, <q-args>)

0 comments on commit 64a2b57

Please sign in to comment.