diff options
author | erw7 <erw7.github@gmail.com> | 2020-07-29 04:36:17 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 04:36:17 +0900 |
commit | 5f5bd576e5395ef0cd6198f16d10edc1ff4bbe76 (patch) | |
tree | cc4551d4868461f82bbb37130fb32ab0fda1fb6c /src/nvim/terminal.c | |
parent | 33eaa171fad0c8b729b0db14eef3173dbd8c950b (diff) | |
parent | b6b270b28fa92d5bedca397313b5370893fe0e3f (diff) | |
download | rneovim-5f5bd576e5395ef0cd6198f16d10edc1ff4bbe76.tar.gz rneovim-5f5bd576e5395ef0cd6198f16d10edc1ff4bbe76.tar.bz2 rneovim-5f5bd576e5395ef0cd6198f16d10edc1ff4bbe76.zip |
Merge pull request #12687 from erw7/fix-terminal-overflow
terminal: fix terminal attribute overflow
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r-- | src/nvim/terminal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 6a13341a89..52d3eef810 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -607,6 +607,7 @@ void terminal_get_line_attributes(Terminal *term, win_T *wp, int linenr, return; } + width = MIN(TERM_ATTRS_MAX, width); for (int col = 0; col < width; col++) { VTermScreenCell cell; bool color_valid = fetch_cell(term, row, col, &cell); |