To: vim-dev@vim.org Subject: Patch 6.1.411 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.411 Problem: When 'virtualedit' is set, highlighting a Visual block beyond the end of a line may be wrong. Solution: Correct the virtual column when the end of the line is before the displayed part of the line. (Muraoka Taro) Files: src/screen.c *** ../vim61.410/src/screen.c Sun Mar 16 23:02:10 2003 --- src/screen.c Thu Mar 20 21:29:13 2003 *************** *** 2686,2691 **** --- 2694,2707 ---- #endif ++ptr; } + + #ifdef FEAT_VIRTUALEDIT + /* When 'virtualedit' is set the end of the line may be before the + * start of the displayed part. */ + if (vcol < v && *ptr == NUL && virtual_active()) + vcol = v; + #endif + /* Handle a character that's not completely on the screen: Put ptr at * that character but skip the first few screen characters. */ if (vcol > v) *** ../vim61.410/src/version.c Tue Mar 18 14:14:51 2003 --- src/version.c Thu Mar 20 21:32:37 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 411, /**/ -- hundred-and-one symptoms of being an internet addict: 150. You find yourself counting emoticons to get to sleep. /// 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 ///