File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -503,23 +503,23 @@ function! s:GistGet(gistid, clipboard) abort
503503 endif
504504endfunction
505505
506- function ! s: GistListAction (shift ) abort
506+ function ! s: GistListAction (mode ) abort
507507 let line = getline (' .' )
508508 let mx = ' ^gist:\s*\zs\(\w\+\)\ze.*'
509509 if line = ~# mx
510510 let gistid = matchstr (line , mx)
511- if a: shift == 1
511+ if a: mode == 1
512512 call s: open_browser (' https://gist.github.com/' . gistid)
513- elseif a: shift == 0
513+ elseif a: mode == 0
514514 call s: GistGet (gistid, 0 )
515515 wincmd w
516516 " bdelete
517517 bw
518- elseif a: shift == 2
518+ elseif a: mode == 2
519519 call s: GistGet (gistid, 1 )
520520 bdelete
521521 bdelete
522- elseif a: shift == 3
522+ elseif a: mode == 3
523523 call s: GistGet (gistid, 1 )
524524 bdelete
525525 bdelete
You can’t perform that action at this time.
0 commit comments