To: vim-dev@vim.org Subject: Patch 5.8.003 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.8.003 Problem: When exiting and 'cmdheight' is 2 or bigger and 'showcmd' is set, the cursor is left in the wrong place. (Sascha Blank) Solution: Reposition the cursor after clearing the text from 'showcmd'. Files: src/os_unix.c *** ../vim-5.8.002/src/os_unix.c Mon Jun 4 22:16:15 2001 --- src/os_unix.c Fri Jun 8 10:23:02 2001 *************** *** 1707,1713 **** --- 1707,1716 ---- if (newline_on_exit || (msg_didout && !swapping_screen())) out_char('\n'); else + { msg_clr_eos(); /* clear the rest of the display */ + windgoto((int)Rows - 1, 0); /* may have moved the cursor */ + } /* Cursor may have been switched off without calling starttermcap() * when doing "vim -u vimrc" and vimrc contains ":q". */ *** ../vim-5.8.002/src/version.c Wed Jun 6 19:14:04 2001 --- src/version.c Fri Jun 8 14:18:45 2001 *************** *** 439,440 **** --- 439,442 ---- { /* Add new patch number below this line */ + /**/ + 3, /**/ -- hundred-and-one symptoms of being an internet addict: 197. Your desk collapses under the weight of your computer peripherals. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///