Don't require successful ns load to send nREPL message

This commit is contained in:
Tim Pope 2014-01-18 23:25:44 -05:00
parent 385d8288db
commit 766c8d6bc9

View File

@ -165,10 +165,7 @@ endfunction
function! s:repl.message(payload, ...) dict abort function! s:repl.message(payload, ...) dict abort
if has_key(a:payload, 'ns') && a:payload.ns !=# self.user_ns() if has_key(a:payload, 'ns') && a:payload.ns !=# self.user_ns()
let error = self.preload(a:payload.ns) let ignored_error = self.preload(a:payload.ns)
if !empty(error)
return error
endif
endif endif
return call('s:conn_try', [self.connection, 'message', a:payload] + a:000, self) return call('s:conn_try', [self.connection, 'message', a:payload] + a:000, self)
endfunction endfunction