To: vim-dev@vim.org Subject: Patch 6.1.357 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.357 Problem: CR in the quickfix window jumps to the error under the cursor, but this doesn't work in Insert mode. (Srikanth Sankaran) Solution: Handle CR in Insert mode in the quickfix window. Files: src/edit.c *** ../vim61.356/src/edit.c Sun Feb 23 17:31:08 2003 --- src/edit.c Mon Feb 17 20:53:42 2003 *************** *** 1093,1098 **** --- 1093,1107 ---- /* FALLTHROUGH */ case CR: case NL: + #if defined(FEAT_WINDOWS) && defined(FEAT_QUICKFIX) + /* In a quickfix window a jumps to the error under the + * cursor. */ + if (bt_quickfix(curbuf) && c == CR) + { + do_cmdline_cmd((char_u *)".cc"); + break; + } + #endif #ifdef FEAT_CMDWIN if (cmdwin_type != 0) { *** ../vim61.356/src/version.c Sun Feb 23 17:47:25 2003 --- src/version.c Sun Feb 23 17:51:34 2003 *************** *** 608,609 **** --- 612,615 ---- { /* Add new patch number below this line */ + /**/ + 357, /**/ -- MARTHA'S WAY: Don't throw out all that leftover wine. Freeze into ice cubes for future use in casseroles and sauces. MY WAY: What leftover wine? /// 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 ///