summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-12-13 22:20:09 +0100
committerBram Moolenaar <Bram@vim.org>2018-12-13 22:20:09 +0100
commit98aefe7c3250bb5d4153b994f878594d1745424e (patch)
tree262ae31c2dbf4ac0353f5564a2419a79267fa3ae /src/ex_getln.c
parent5c5697f29829fc3b21fc5452fe8f239f6a4cb8e1 (diff)
patch 8.1.0579: cannot attach properties to textv8.1.0579
Problem: Cannot attach properties to text. Solution: First part of adding text properties.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index bfda942783..4ea8bfa9d3 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -769,6 +769,21 @@ may_add_char_to_search(int firstc, int *c, incsearch_state_T *is_state)
stuffcharReadbuff(*c);
*c = '\\';
}
+#ifdef FEAT_MBYTE
+ // add any composing characters
+ if (mb_char2len(*c) != mb_ptr2len(ml_get_cursor()))
+ {
+ int save_c = *c;
+
+ while (mb_char2len(*c) != mb_ptr2len(ml_get_cursor()))
+ {
+ curwin->w_cursor.col += mb_char2len(*c);
+ *c = gchar_cursor();
+ stuffcharReadbuff(*c);
+ }
+ *c = save_c;
+ }
+#endif
return FAIL;
}
}