Skip to content

Commit

Permalink
red: hl space breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeping committed Nov 4, 2023
1 parent 8f41a54 commit 141c1f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions data/lib/red/conf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ return {
brd = { 0xde, 0xde, 0xde },
menu = 17,
hl = { 0xee, 0xee, 0x9e },
break_hl = { 0xff, 0xee, 0xcc };
idle_hz = 1/10,
proc_hz = 1/50,
unknown_sym = "?",
Expand Down
4 changes: 3 additions & 1 deletion data/lib/red/win.lua
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ function win:show()

x0, y0 = x, y
x, y = self:next(i, x0, y0)

if y == y0+1 and (text[i] == ' ' or text[i] == '\t') then
self:glyph(x0, y0, ' ', conf.fg, conf.break_hl)
end
if x > x0 and y == y0 and x - x0 > 1 then
self:flushline(x0 + 1, y0)
end
Expand Down

0 comments on commit 141c1f1

Please sign in to comment.