]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.0712: wrong column when calling setcursorcharpos() with zero lnum v9.0.0712
authorBram Moolenaar <Bram@vim.org>
Mon, 10 Oct 2022 11:42:57 +0000 (12:42 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 10 Oct 2022 11:42:57 +0000 (12:42 +0100)
commit79f234499b6692cc16970b7455bc9b002242632f
treefdf04b2e144fd6c2106f20f50eaacc2c06ed19bb
parent084f2620ec7d08d6043de30436197c002fffe3ec
patch 9.0.0712: wrong column when calling setcursorcharpos() with zero lnum

Problem:    Wrong column when calling setcursorcharpos() with zero lnum.
Solution:   Set the line number before calling buf_charidx_to_byteidx().
            (closes #11329)
src/eval.c
src/evalfunc.c
src/testdir/test_cursor_func.vim
src/version.c