diff options
author | erw7 <erw7.github@gmail.com> | 2020-07-28 00:51:41 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2020-07-29 02:16:50 +0900 |
commit | b6b270b28fa92d5bedca397313b5370893fe0e3f (patch) | |
tree | cc4551d4868461f82bbb37130fb32ab0fda1fb6c /src/nvim/terminal.c | |
parent | 33eaa171fad0c8b729b0db14eef3173dbd8c950b (diff) | |
download | rneovim-b6b270b28fa92d5bedca397313b5370893fe0e3f.tar.gz rneovim-b6b270b28fa92d5bedca397313b5370893fe0e3f.tar.bz2 rneovim-b6b270b28fa92d5bedca397313b5370893fe0e3f.zip |
terminal: fix terminal attribute overflow
fixes #11548
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); |