To: vim-dev@vim.org Subject: Patch 6.1.431 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.431 Problem: Debug commands end up in redirected text. Solution: Disable redirection while handling debug commands. Files: src/ex_cmds2.c *** ../vim61.430/src/ex_cmds2.c Wed Mar 26 21:48:04 2003 --- src/ex_cmds2.c Fri Mar 28 22:12:53 2003 *************** *** 34,39 **** --- 34,40 ---- int save_cmd_silent = cmd_silent; int save_msg_silent = msg_silent; int save_emsg_silent = emsg_silent; + int save_redir_off = redir_off; tasave_T typeaheadbuf; # ifdef FEAT_EX_EXTRA int save_ex_normal_busy; *************** *** 70,75 **** --- 71,77 ---- cmd_silent = FALSE; /* display commands */ msg_silent = FALSE; /* display messages */ emsg_silent = FALSE; /* display error messages */ + redir_off = TRUE; /* don't redirect debug commands */ State = NORMAL; #ifdef FEAT_SNIFF *************** *** 206,211 **** --- 208,214 ---- cmd_silent = save_cmd_silent; msg_silent = save_msg_silent; emsg_silent = save_emsg_silent; + redir_off = save_redir_off; /* Only print the message again when typing a command before coming back * here. */ *** ../vim61.430/src/version.c Mon Mar 31 20:53:29 2003 --- src/version.c Mon Mar 31 20:57:49 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 431, /**/ -- press CTRL-ALT-DEL for more information /// 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 /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///