Allow omitting ns from fireplace#message
This commit is contained in:
parent
79c2a718da
commit
9e826faff4
@ -535,6 +535,8 @@ function! fireplace#message(payload, ...) abort
|
||||
let payload = copy(a:payload)
|
||||
if !has_key(payload, 'ns')
|
||||
let payload.ns = fireplace#ns()
|
||||
elseif empty(payload.ns)
|
||||
unlet payload.ns
|
||||
endif
|
||||
return call(client.message, [payload] + a:000, client)
|
||||
endfunction
|
||||
|
Loading…
Reference in New Issue
Block a user