To: vim-dev@vim.org Subject: Patch 6.3a.025 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.3a.025 Problem: Setting 'virtualedit' moves the cursor. (Benji Fisher) Solution: Update the virtual column before using it. Files: src/option.c *** ../vim-6.3a.024/src/option.c Fri May 7 10:59:38 2004 --- src/option.c Sat May 15 12:20:06 2004 *************** *** 5627,5635 **** if (opt_strings_flags(p_ve, p_ve_values, &ve_flags, TRUE) != OK) errmsg = e_invarg; else if (STRCMP(p_ve, oldval) != 0) ! /* Recompute cursor position in case the new ve setting * changes something. */ coladvance(curwin->w_virtcol); } #endif --- 5627,5638 ---- if (opt_strings_flags(p_ve, p_ve_values, &ve_flags, TRUE) != OK) errmsg = e_invarg; else if (STRCMP(p_ve, oldval) != 0) ! { ! /* Recompute cursor position in case the new 've' setting * changes something. */ + validate_virtcol(); coladvance(curwin->w_virtcol); + } } #endif *** ../vim-6.3a.024/src/version.c Fri May 14 16:23:48 2004 --- src/version.c Sat May 15 12:22:16 2004 *************** *** 643,644 **** --- 643,646 ---- { /* Add new patch number below this line */ + /**/ + 25, /**/ -- PRINCE: He's come to rescue me, father. LAUNCELOT: (embarrassed) Well, let's not jump to conclusions ... "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///