diff options
author | oni-link <knil.ino@gmail.com> | 2017-03-04 20:12:57 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-03-04 20:12:57 +0100 |
commit | 3030ef825d9fbf6a64f209d85409f90d06f5f1cd (patch) | |
tree | eb311f7a30ceca981201b3eb2bf0a6c3dfdb16cb /test/functional/api/buffer_spec.lua | |
parent | af63f321295a37e411aac82b56a5548bdbe82877 (diff) | |
download | rneovim-3030ef825d9fbf6a64f209d85409f90d06f5f1cd.tar.gz rneovim-3030ef825d9fbf6a64f209d85409f90d06f5f1cd.tar.bz2 rneovim-3030ef825d9fbf6a64f209d85409f90d06f5f1cd.zip |
terminal.c: Reset cursor postion when using termopen() (#6212)
After using 'termopen("echo") the current buffer content is changed,
but the cursor position of the current window is not updated.
Because of this, a call to 'mb_adjust_cursor()' can lead to a
heap-buffer-overflow.
Fix this by resetting the cursor for the current window.
Fixes #3161
Diffstat (limited to 'test/functional/api/buffer_spec.lua')
0 files changed, 0 insertions, 0 deletions