Method: Neovim::WriteBuf#write

Defined in:
lib/neovim/output.rb

#write(*args) ⇒ Object



118
119
120
121
122
123
124
125
126
127
# File 'lib/neovim/output.rb', line 118

def write *args
  args.each { |a| @last << a.to_s }
  loop do
    n, r = @last.split $/, 2
    r or break
    @lines.push n
    @last = r
  end
  nil
end