Browse Source

Changed DocView not to strip trailing `\n` character on line's final token

repl
rxi 6 years ago
parent
commit
33ad329f24
  1. 2
      data/core/docview.lua

2
data/core/docview.lua

@ -136,8 +136,6 @@ function DocView:tokenize_line(idx, state)
cl.init_state = state
cl.text = self.doc.lines[idx]
cl.tokens, cl.state = highlighter.tokenize(self.syntax, cl.text, state)
local t = cl.tokens
t[#t] = t[#t]:sub(1, -2) -- strip '\n'
return cl
end

Loading…
Cancel
Save