To: vim-dev@vim.org Subject: patch 5.5.029 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.5.029 Problem: "das" at the end of the file didn't delete the last character of the sentence. Solution: When there is no character after the sentence, make the operation inclusive in current_sent(). Files: src/search.c *** ../vim-5.5.28/src/search.c Wed Sep 22 10:06:18 1999 --- src/search.c Sun Oct 17 21:19:08 1999 *************** *** 2698,2708 **** } else { ! /* include a newline after the sentence */ ! incl(&curwin->w_cursor); oap->start = start_pos; oap->motion_type = MCHAR; - oap->inclusive = FALSE; } return OK; } --- 2698,2710 ---- } else { ! /* include a newline after the sentence, if there is one */ ! if (incl(&curwin->w_cursor) == -1) ! oap->inclusive = TRUE; ! else ! oap->inclusive = FALSE; oap->start = start_pos; oap->motion_type = MCHAR; } return OK; } *** ../vim-5.5.28/src/version.c Sun Oct 17 20:13:49 1999 --- src/version.c Sun Oct 17 21:24:21 1999 *************** *** 420,420 **** --- 420,421 ---- { /* Add new patch number below this line */ + 29, -- BEDEVERE: Oooooh! LAUNCELOT: No "Aaaaarrrrrrggghhh ... " at the back of the throat. BEDEVERE: No! "Oooooh!" in surprise and alarm! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD --/-/---- Bram Moolenaar ---- Bram@moolenaar.net ---- Bram@vim.org ---\-\-- \ \ www.vim.org/iccf www.moolenaar.net www.vim.org / /