stop wobbling the window around on reload

This commit is contained in:
rhiannon morris 2023-05-27 16:22:13 +02:00
parent f89aa275a1
commit ad08ee24f5

View file

@ -80,6 +80,7 @@ function! IdrisShowResponseWin()
endfunction
function! IWrite(str)
let view = winsaveview()
if (bufexists("idris-response"))
let save_cursor = getcurpos()
b idris-response
@ -91,6 +92,7 @@ function! IWrite(str)
else
echo a:str
endif
call winrestview(view)
endfunction
function! IdrisReload(q)