Skip to content

Commit

Permalink
not useful to display count of gists because it have more gists
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Oct 10, 2016
1 parent 7933389 commit a661e71
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions autoload/gist.vim
Expand Up @@ -236,21 +236,7 @@ function! s:GistList(gistls, page) abort
let lines = map(filter(content, '!empty(v:val.files)'), 's:format_gist(v:val)')
call setline(1, split(join(lines, "\n"), "\n"))

let numlines = line('$')
if numlines > 1
let plural='s'
else
let plural=''
endif
" $put='more...'.line('$').' gist'.plural.' shown.'
call append(0, ' '.a:gistls.': '.numlines.' gist'.plural)

if numlines+1 > 11
let listheight = 11
else
let listheight = numlines+1
endif
execute 'resize ' . listheight
$put='more...'

let b:gistls = a:gistls
let b:page = a:page
Expand Down

0 comments on commit a661e71

Please sign in to comment.