To: vim-dev@vim.org Subject: Patch 6.1.391 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.391 Problem: ml_get() error when using virtualedit. (Charles Campbell) Solution: Get a line from a specific window, not the current one. Files: src/charset.c *** ../vim61.390/src/charset.c Thu Jan 9 22:01:16 2003 --- src/charset.c Fri Mar 14 22:40:26 2003 *************** *** 1332,1338 **** if (pos->coladd > 0) { /* Adjust for multiwide char */ ! ptr = ml_get(pos->lnum); if (pos->col <= STRLEN(ptr)) { ptr += pos->col; --- 1332,1338 ---- if (pos->coladd > 0) { /* Adjust for multiwide char */ ! ptr = ml_get_buf(wp->w_buffer, pos->lnum, FALSE); if (pos->col <= STRLEN(ptr)) { ptr += pos->col; *** ../vim61.390/src/version.c Wed Mar 12 19:19:15 2003 --- src/version.c Fri Mar 14 22:44:30 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 391, /**/ -- hundred-and-one symptoms of being an internet addict: 78. You find yourself dialing IP numbers on the phone. /// 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 ///