diff options
| author | rxi <rxi@users.noreply.github.com> | 2020-02-05 20:09:58 +0000 |
|---|---|---|
| committer | rxi <rxi@users.noreply.github.com> | 2020-02-05 20:09:58 +0000 |
| commit | 33ad329f241093ce98fc5a2e59608902111cccbc (patch) | |
| tree | df53768c3a713efbc515b3de28e6d2c8a5e7b8be | |
| parent | 36b77171c404fb0c7ba1d8aa6a88fb70c04c2d1d (diff) | |
| download | lite-xl-33ad329f241093ce98fc5a2e59608902111cccbc.tar.gz lite-xl-33ad329f241093ce98fc5a2e59608902111cccbc.zip | |
Changed DocView not to strip trailing `\n` character on line's final token
| -rw-r--r-- | data/core/docview.lua | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/data/core/docview.lua b/data/core/docview.lua index 8fe86918..2203e5f9 100644 --- a/data/core/docview.lua +++ b/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 |
