comparison src/ops.c @ 18481:26256dcadd77 v8.1.2235

patch 8.1.2235: "C" with 'virtualedit' set does not include multi-byte char Commit: https://github.com/vim/vim/commit/77ccc00340ed2598f7aa09716217e878665964fa Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 31 03:21:25 2019 +0100 patch 8.1.2235: "C" with 'virtualedit' set does not include multi-byte char Problem: "C" with 'virtualedit' set does not include multi-byte char. Solution: Include the whole multi-byte char. (Nobuhiro Takasaki, closes #5152)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Oct 2019 03:30:03 +0100
parents 9f51d0cef8da
children 8b0114ffde2b
comparison
equal deleted inserted replaced
18480:974699057771 18481:26256dcadd77
910 curwin->w_cursor = oap->end; 910 curwin->w_cursor = oap->end;
911 coladvance_force(getviscol2(oap->end.col, oap->end.coladd)); 911 coladvance_force(getviscol2(oap->end.col, oap->end.coladd));
912 oap->end = curwin->w_cursor; 912 oap->end = curwin->w_cursor;
913 curwin->w_cursor = oap->start; 913 curwin->w_cursor = oap->start;
914 } 914 }
915 if (has_mbyte)
916 mb_adjust_opend(oap);
915 } 917 }
916 918
917 if (oap->line_count == 1) /* delete characters within one line */ 919 if (oap->line_count == 1) /* delete characters within one line */
918 { 920 {
919 if (u_save_cursor() == FAIL) /* save line for undo */ 921 if (u_save_cursor() == FAIL) /* save line for undo */