stop wobbling the window around on reload
This commit is contained in:
parent
f89aa275a1
commit
ad08ee24f5
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,7 @@ function! IdrisShowResponseWin()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! IWrite(str)
|
function! IWrite(str)
|
||||||
|
let view = winsaveview()
|
||||||
if (bufexists("idris-response"))
|
if (bufexists("idris-response"))
|
||||||
let save_cursor = getcurpos()
|
let save_cursor = getcurpos()
|
||||||
b idris-response
|
b idris-response
|
||||||
|
@ -91,6 +92,7 @@ function! IWrite(str)
|
||||||
else
|
else
|
||||||
echo a:str
|
echo a:str
|
||||||
endif
|
endif
|
||||||
|
call winrestview(view)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! IdrisReload(q)
|
function! IdrisReload(q)
|
||||||
|
|
Loading…
Reference in a new issue