To: vim-dev@vim.org Subject: Patch 6.1b.007 Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1b.007 Problem: When the cursor is in the white space between two sentences, "dis" deletes the first character of the following sentence, "das" deletes a space after the sentence. Solution: Backup the cursor one character in these situations. Files: src/search.c *** ../vim61b.006/src/search.c Tue Mar 12 22:31:40 2002 --- src/search.c Thu Mar 14 22:55:14 2002 *************** *** 2989,2999 **** if (include) ncount = count * 2; else ncount = count; ! if (!include && start_blank) ! --ncount; if (ncount) findsent_forward(ncount, TRUE); if (include) { --- 2989,3003 ---- if (include) ncount = count * 2; else + { ncount = count; ! if (start_blank) ! --ncount; ! } if (ncount) findsent_forward(ncount, TRUE); + else + decl(&curwin->w_cursor); if (include) { *************** *** 3003,3009 **** --- 3007,3016 ---- * If there are no trailing blanks, try to include leading blanks. */ if (start_blank) + { find_first_blank(&curwin->w_cursor); + decl(&curwin->w_cursor); + } else if (c = gchar_cursor(), !vim_iswhite(c)) find_first_blank(&start_pos); } *** ../vim61b.006/src/version.c Fri Mar 15 19:58:00 2002 --- src/version.c Fri Mar 15 20:52:57 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 7, /**/ -- ARTHUR: Be quiet! DENNIS: --but by a two-thirds majority in the case of more-- ARTHUR: Be quiet! I order you to be quiet! WOMAN: Order, eh -- who does he think he is? ARTHUR: I am your king! The Quest for the Holy Grail (Monty Python) /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\ \\\ Project leader for A-A-P -- http://www.a-a-p.org /// \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///