Skip to content

Commit 34c3d14

Browse files
committed
Fix preview window
* Jump to first line in preview window. * Set preview window height to 'previewheight' value.
1 parent 95fdf8f commit 34c3d14

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Contributors:
2828
* Diego Rabatone Oliveira (https://github.com/diraol)
2929
* Dimitrios Semitsoglou-Tsiapos (https://github.com/dset0x);
3030
* Dirk Wallenstein (http://github.com/dirkwallenstein);
31+
* Filip Poboril (https://github.com/fpob)
3132
* Florent Xicluna (http://github.com/florentx);
3233
* Fredrik Henrysson (http://github.com/fhenrysson);
3334
* fwuzju (https://github.com/fwuzju);

autoload/pymode/doc.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ fun! pymode#doc#show(word) "{{{
3232
if g:pymode_doc_vertical
3333
wincmd L
3434
endif
35+
36+
normal gg
37+
execute 'resize ' . &previewheight
38+
3539
wincmd p
3640

3741
endfunction "}}}

autoload/pymode/rope.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ fun! pymode#rope#show_doc()
7676
setlocal nomodifiable
7777
setlocal nomodified
7878
setlocal filetype=rst
79+
80+
normal gg
81+
execute 'resize ' . &previewheight
82+
7983
wincmd p
8084
endif
8185
endfunction

0 commit comments

Comments
 (0)