To: vim-dev@vim.org Subject: Patch 6.0ax.006 Fcc: outbox From: Bram Moolenaar ------------ Patch 6.0ax.006 Problem: Multi-byte: When writing a single-wide character over a double-wide character in a vertically split window not at the left side, the space was put in the left window. Happens when 'cpoptions' contains "$". Solution: Use screen_char() instead of screen_puts() to clear the right half. Files: src/screen.c *** ../vim60ax.5/src/screen.c Mon Sep 17 15:11:45 2001 --- src/screen.c Fri Sep 21 10:09:35 2001 *************** *** 4127,4133 **** #ifdef FEAT_MBYTE if (clear_next) ! screen_puts((char_u *)" ", row, col, ScreenAttrs[off_to]); #endif if (clear_width > 0 --- 4127,4140 ---- #ifdef FEAT_MBYTE if (clear_next) ! { ! /* Clear the second half of a double-wide character of which the left ! * half was overwritten with a single-wide character. */ ! ScreenLines[off_to] = ' '; ! if (enc_utf8) ! ScreenLinesUC[off_to] = 0; ! screen_char(off_to, row, col + coloff); ! } #endif if (clear_width > 0 *** ../vim60ax.5/src/version.c Fri Sep 21 10:17:05 2001 --- src/version.c Fri Sep 21 10:16:46 2001 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 6, /**/ -- Why isn't there mouse-flavored cat food? /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///