Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 5 additions & 5 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /