To: vim-dev@vim.org Subject: Patch 6.1.281 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.281 Problem: In Insert mode CTRL-X CTRL-G leaves the cursor after the ruler. Solution: Set the cursor position before waiting for the argument of CTRL-G. (Yasuhiro Matsumoto) Files: src/edit.c *** ../vim61.280/src/edit.c Thu Jan 2 21:07:23 2003 --- src/edit.c Tue Jan 7 20:45:17 2003 *************** *** 5745,5750 **** --- 5745,5755 ---- ins_ctrl_g() { int c; + + #ifdef FEAT_INS_EXPAND + /* Right after CTRL-X the cursor will be after the ruler. */ + setcursor(); + #endif /* * Don't map the register name. This also prevents the mode message to be *** ../vim61.280/src/version.c Mon Jan 6 22:50:57 2003 --- src/version.c Tue Jan 7 20:49:09 2003 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 281, /**/ -- ARTHUR: Well, I AM king... DENNIS: Oh king, eh, very nice. An' how'd you get that, eh? By exploitin' the workers -- by 'angin' on to outdated imperialist dogma which perpetuates the economic an' social differences in our society! If there's ever going to be any progress-- The Quest for the Holy Grail (Monty Python) /// 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 ///