Permalink
Browse files

Move to top of slide before padding the bottom of it.

To calculate the number of blank lines required for the bottom margin,
the slide needs to be scrolled all the way to the top.
  • Loading branch information...
Phil Runninger
Phil Runninger committed Nov 14, 2016
1 parent a49c2a5 commit 65813e0fc651bd678b7503909d4fe80044c8afde
Showing with 1 addition and 0 deletions.
  1. +1 −0 plugin/presenting.vim
View
@@ -85,6 +85,7 @@ function! s:ShowPage(page_no)
silent %delete _
call append(0, s:pages[s:page_number])
call append(0, map(range(1,g:presenting_top_margin), '""'))
execute ":normal! gg"
call append(line('$'), map(range(1,winheight('%')-(line('w$')-line('w0')+1)), '""'))
" some options for the buffer

0 comments on commit 65813e0

Please sign in to comment.