diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-03 10:05:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-03 10:05:45 +0800 |
commit | 36cb3262b93d8e60f9c5bffc8c820838860b302c (patch) | |
tree | 4acf57e7a0c466c11e34d2c9dd9603dffa82ffb6 /src/nvim/ops.c | |
parent | 272c4fba8386ccc17706647c6b28fa70f43e1e66 (diff) | |
parent | 15298e79269e95899b9812c78af19f954b3bcba6 (diff) | |
download | rneovim-36cb3262b93d8e60f9c5bffc8c820838860b302c.tar.gz rneovim-36cb3262b93d8e60f9c5bffc8c820838860b302c.tar.bz2 rneovim-36cb3262b93d8e60f9c5bffc8c820838860b302c.zip |
Merge pull request #24991 from zeertzjq/vim-9.0.1846
vim-patch:9.0.{1846,1847}
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 8270641256..96deae228f 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -4770,7 +4770,7 @@ int do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1) } } - while (bits > 0) { + while (bits > 0 && i < NUMBUFLEN - 1) { buf2[i++] = ((n >> --bits) & 0x1) ? '1' : '0'; } |