To: vim-dev@vim.org Subject: Patch 5.6.014 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.6.014 Problem: When cursor is at the end of line and the character under cursor is a multibyte character, "yl" doesn't yank 1 multibyte-char. (Takuhiro Nishioka) Solution: Recognize a multibyte-char at end-of-line correctly in oneright(). (Taro Muraoka) Also: make "+quickfix" in ":version" output appear alphabetically. Files: src/edit.c *** ../vim-5.6.13/src/edit.c Tue Jan 18 20:01:25 2000 --- src/edit.c Wed Mar 22 10:42:09 2000 *************** *** 3803,3815 **** #ifdef MULTI_BYTE if (is_dbcs) { ! /* if the character on the current cursor is a multi-byte character, ! move two characters right */ ! char_u *base; ! ! base = ml_get(curwin->w_cursor.lnum); ! if (*(ptr+1) != NUL && IsTrailByte(base, ptr)) ++curwin->w_cursor.col; } #endif curwin->w_set_curswant = TRUE; --- 3803,3816 ---- #ifdef MULTI_BYTE if (is_dbcs) { ! /* If the character under the cursor is a multi-byte character, move ! * two bytes right. */ ! if (IsTrailByte(ml_get(curwin->w_cursor.lnum), ptr)) ! { ! if (*(ptr + 1) == NUL) ! return FAIL; ++curwin->w_cursor.col; + } } #endif curwin->w_set_curswant = TRUE; *** ../vim-5.6.13/src/version.c Mon Mar 20 18:21:42 2000 --- src/version.c Wed Mar 22 10:42:20 2000 *************** *** 263,278 **** #else "-perl", #endif - #ifdef QUICKFIX - "+quickfix", - #else - "-quickfix", - #endif #ifdef HAVE_PYTHON "+python", #else "-python", #endif #ifdef RIGHTLEFT "+rightleft", #else --- 263,278 ---- #else "-perl", #endif #ifdef HAVE_PYTHON "+python", #else "-python", #endif + #ifdef QUICKFIX + "+quickfix", + #else + "-quickfix", + #endif #ifdef RIGHTLEFT "+rightleft", #else *************** *** 420,421 **** --- 420,423 ---- { /* Add new patch number below this line */ + /**/ + 14, /**/ -- hundred-and-one symptoms of being an internet addict: 219. Your spouse has his or her lawyer deliver the divorce papers... via e-mail. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\ \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/