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

This commit is contained in:
rxi 2020-02-05 20:09:58 +00:00
parent 36b77171c4
commit 33ad329f24
1 changed files with 0 additions and 2 deletions

View File

@ -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