To: vim-dev@vim.org Subject: Patch 6.1.128 Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.128 Problem: The expression "input('very long prompt')" puts the cursor in the wrong line (column is OK). Solution: Add the wrapped lines to the indent. (Yasuhiro Matsumoto) Files: src/ex_getln.c *** ../vim61.127/src/ex_getln.c Sat Mar 16 13:45:04 2002 --- src/ex_getln.c Sun Jul 14 16:35:18 2002 *************** *** 2169,2175 **** if (ccline.cmdprompt != NULL) { msg_puts_attr(ccline.cmdprompt, ccline.cmdattr); ! ccline.cmdindent = msg_col; } else for (i = ccline.cmdindent; i > 0; --i) --- 2170,2179 ---- if (ccline.cmdprompt != NULL) { msg_puts_attr(ccline.cmdprompt, ccline.cmdattr); ! ccline.cmdindent = msg_col + (msg_row - cmdline_row) * Columns; ! /* do the reverse of set_cmdspos() */ ! if (ccline.cmdfirstc) ! --ccline.cmdindent; } else for (i = ccline.cmdindent; i > 0; --i) *** ../vim61.127/src/version.c Sat Jul 13 15:34:13 2002 --- src/version.c Sun Jul 14 16:28:34 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 128, /**/ -- ARTHUR: Now stand aside worthy adversary. BLACK KNIGHT: (Glancing at his shoulder) 'Tis but a scratch. ARTHUR: A scratch? Your arm's off. "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///