To: vim-dev@vim.org Subject: Patch 6.1.269 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.269 Problem: After using input() text written with ":redir" gets extra indent. (David Fishburn) Solution: Restore msg_col after using input(). Files: src/ex_getln.c *** ../vim61.268/src/ex_getln.c Thu Jan 2 21:07:23 2003 --- src/ex_getln.c Sun Dec 29 13:06:07 2002 *************** *** 1561,1566 **** --- 1561,1567 ---- { char_u *s; struct cmdline_info save_ccline; + int msg_col_save = msg_col; save_ccline = ccline; ccline.cmdbuff = NULL; *************** *** 1568,1573 **** --- 1569,1576 ---- ccline.cmdattr = attr; s = getcmdline(firstc, 1L, 0); ccline = save_ccline; + /* Restore msg_col, the prompt from input() may have changed it. */ + msg_col = msg_col_save; return s; } *** ../vim61.268/src/version.c Thu Jan 2 21:07:23 2003 --- src/version.c Thu Jan 2 21:10:18 2003 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 269, /**/ -- The software said it requires Windows 95 or better, so I installed Linux. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.vim.org \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///