We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f1e0b commit 33f7ca9Copy full SHA for 33f7ca9
autoload/intero/repl.vim
@@ -173,10 +173,19 @@ function! intero#repl#reload() abort
173
" Truncate file, so that we don't show stale results while recompiling
174
call intero#maker#write_update([])
175
176
+ call intero#repl#clear()
177
call intero#repl#send(':reload')
178
endif
179
endfunction
180
181
+function! intero#repl#clear() abort
182
+ if !exists('g:intero_buffer_id')
183
+ echomsg 'Intero not running.'
184
+ return
185
+ endif
186
+ call jobsend(g:intero_job_id, "\<C-u>")
187
+endfunction
188
+
189
function! intero#repl#uses() abort
190
if !g:intero_started
191
echoerr 'Intero is still starting up'
0 commit comments