Convert to method chaining syntax
This commit is contained in:
parent
6138168af0
commit
fe368edd74
1 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ def Send(msg: dict<any>): void
|
|||
enddef
|
||||
|
||||
def OnOutput(ch: channel, msg: string): void
|
||||
if empty(msg)
|
||||
if msg->empty()
|
||||
return
|
||||
endif
|
||||
var data: dict<any>
|
||||
|
|
@ -61,7 +61,7 @@ def ApplyRemoteContent(content: string): void
|
|||
return
|
||||
endif
|
||||
suppressing = true
|
||||
var lines = split(content, "\n", true)
|
||||
var lines = content->split("\n", true)
|
||||
var view = winsaveview()
|
||||
silent! :%delete _
|
||||
setline(1, lines)
|
||||
|
|
@ -74,7 +74,7 @@ def SendBuffer(): void
|
|||
return
|
||||
endif
|
||||
var lines = getline(1, '$')
|
||||
var content = join(lines, "\n")
|
||||
var content = lines->join("\n")
|
||||
Send({type: 'content', text: content})
|
||||
enddef
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue