comparison src/ex_getln.c @ 15138:9df130fd5e0d v8.1.0579

patch 8.1.0579: cannot attach properties to text commit https://github.com/vim/vim/commit/98aefe7c3250bb5d4153b994f878594d1745424e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 13 22:20:09 2018 +0100 patch 8.1.0579: cannot attach properties to text Problem: Cannot attach properties to text. Solution: First part of adding text properties.
author Bram Moolenaar <Bram@vim.org>
date Thu, 13 Dec 2018 22:30:08 +0100
parents 70aa5caa9f0d
children db5d2429bda3
comparison
equal deleted inserted replaced
15137:44f47a35a3f4 15138:9df130fd5e0d
767 { 767 {
768 // put a backslash before special characters 768 // put a backslash before special characters
769 stuffcharReadbuff(*c); 769 stuffcharReadbuff(*c);
770 *c = '\\'; 770 *c = '\\';
771 } 771 }
772 #ifdef FEAT_MBYTE
773 // add any composing characters
774 if (mb_char2len(*c) != mb_ptr2len(ml_get_cursor()))
775 {
776 int save_c = *c;
777
778 while (mb_char2len(*c) != mb_ptr2len(ml_get_cursor()))
779 {
780 curwin->w_cursor.col += mb_char2len(*c);
781 *c = gchar_cursor();
782 stuffcharReadbuff(*c);
783 }
784 *c = save_c;
785 }
786 #endif
772 return FAIL; 787 return FAIL;
773 } 788 }
774 } 789 }
775 } 790 }
776 return OK; 791 return OK;