File tree 1 file changed +5
-5
lines changed
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
503
503
endif
504
504
endfunction
505
505
506
- function ! s: GistListAction (shift ) abort
506
+ function ! s: GistListAction (mode ) abort
507
507
let line = getline (' .' )
508
508
let mx = ' ^gist:\s*\zs\(\w\+\)\ze.*'
509
509
if line = ~# mx
510
510
let gistid = matchstr (line , mx)
511
- if a: shift == 1
511
+ if a: mode == 1
512
512
call s: open_browser (' https://gist.github.com/' . gistid)
513
- elseif a: shift == 0
513
+ elseif a: mode == 0
514
514
call s: GistGet (gistid, 0 )
515
515
wincmd w
516
516
" bdelete
517
517
bw
518
- elseif a: shift == 2
518
+ elseif a: mode == 2
519
519
call s: GistGet (gistid, 1 )
520
520
bdelete
521
521
bdelete
522
- elseif a: shift == 3
522
+ elseif a: mode == 3
523
523
call s: GistGet (gistid, 1 )
524
524
bdelete
525
525
bdelete
You can’t perform that action at this time.
0 commit comments