Compare commits
2 Commits
f89aa275a1
...
518e5f0c41
Author | SHA1 | Date |
---|---|---|
rhiannon morris | 518e5f0c41 | |
rhiannon morris | ad08ee24f5 |
|
@ -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)
|
||||||
|
@ -188,10 +190,10 @@ function! IdrisRefine()
|
||||||
let view = winsaveview()
|
let view = winsaveview()
|
||||||
w
|
w
|
||||||
let cline = line(".")
|
let cline = line(".")
|
||||||
let word = expand("<cword>")
|
let word = s:currentQueryObject()
|
||||||
let name = input ("Name: ")
|
let name = input ("Name: ")
|
||||||
|
|
||||||
let result = s:IdrisCommand(":ref!", cline, word, name)
|
let result = s:IdrisCommand(":refine!", cline, word, name)
|
||||||
if (! (result is ""))
|
if (! (result is ""))
|
||||||
call IWrite(result)
|
call IWrite(result)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue