diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/local/container.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/local/container.nim b/src/local/container.nim index dfa70ee9..da13ce02 100644 --- a/src/local/container.nim +++ b/src/local/container.nim @@ -1144,6 +1144,8 @@ proc drawLines*(container: Container, display: var FixedGrid, for hl in hls: let area = hl.colorArea(container.fromy + by, startw .. startw + aw) for i in area: + if i - startw >= container.width: + break var hlformat = display[dls + i - startw].format hlformat.bgcolor = hlcolor display[dls + i - startw].format = hlformat |