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)
|
let payload = copy(a:payload)
|
||||||
if !has_key(payload, 'ns')
|
if !has_key(payload, 'ns')
|
||||||
let payload.ns = fireplace#ns()
|
let payload.ns = fireplace#ns()
|
||||||
|
elseif empty(payload.ns)
|
||||||
|
unlet payload.ns
|
||||||
endif
|
endif
|
||||||
return call(client.message, [payload] + a:000, client)
|
return call(client.message, [payload] + a:000, client)
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
Reference in New Issue
Block a user