Skip to content

Commit c627b36

Browse files
mattnallex
authored andcommitted
not useful to display count of gists because it have more gists
1 parent aee1d11 commit c627b36

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

autoload/gist.vim

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -236,21 +236,7 @@ function! s:GistList(gistls, page) abort
236236
let lines = map(filter(content, '!empty(v:val.files)'), 's:format_gist(v:val)')
237237
call setline(1, split(join(lines, "\n"), "\n"))
238238

239-
let numlines = line('$')
240-
if numlines > 1
241-
let plural='s'
242-
else
243-
let plural=''
244-
endif
245-
" $put='more...'.line('$').' gist'.plural.' shown.'
246-
call append(0, ' '.a:gistls.': '.numlines.' gist'.plural)
247-
248-
if numlines+1 > 11
249-
let listheight = 11
250-
else
251-
let listheight = numlines+1
252-
endif
253-
execute 'resize ' . listheight
239+
$put='more...'
254240

255241
let b:gistls = a:gistls
256242
let b:page = a:page

0 commit comments

Comments
 (0)