Skip to content

Commit fedb752

Browse files
committed
s/shift/mode/
1 parent df12783 commit fedb752

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

autoload/gist.vim

+5-5
Original file line numberDiff line numberDiff line change
@@ -503,23 +503,23 @@ function! s:GistGet(gistid, clipboard) abort
503503
endif
504504
endfunction
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

0 commit comments

Comments
 (0)