From 3b1c48569d98597ac0539609c9a922bedba0e081 Mon Sep 17 00:00:00 2001
From: Bram Moolenaar <Bram@vim.org>
Date: Sat, 31 Jul 2010 17:59:29 +0200
Subject: [PATCH] Fixed: CTRL-R in Insert mode doesn't insert composing
 characters.

---
 runtime/doc/todo.txt | 5 -----
 src/ops.c            | 2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/runtime/doc/todo.txt b/runtime/doc/todo.txt
index e887fd35fc..7f327c4cb0 100644
--- a/runtime/doc/todo.txt
+++ b/runtime/doc/todo.txt
@@ -37,14 +37,9 @@ Windows 7: installing Vim again doesn't find the previously installed Vim.
 
 Move more common code from if_python.c and if_python3.c to if_py_both.h
 
-Uninspected issues on http://scan.coverity.com/rung2.html
-
 Before release 7.3:
 - Rename vim73 branch to default (hints: Xavier de Gaye, 2010 May 23)
 
-Insert mode CTRL-R x doesn't paste combining characters. (Tony Mechelynck,
-2010 Jul 28)
-
 Cursor positioning wrong with 0x200e character. (John Becket, 2010 May 6)
 
 Test 69 breaks on MS-Windows, both 32 and 64 builds. (George Reilly, 2010 Feb
diff --git a/src/ops.c b/src/ops.c
index d259cca955..beab33c159 100644
--- a/src/ops.c
+++ b/src/ops.c
@@ -1439,7 +1439,7 @@ stuffescaped(arg, literally)
 	{
 #ifdef FEAT_MBYTE
 	    if (has_mbyte)
-		c = mb_ptr2char_adv(&arg);
+		c = mb_cptr2char_adv(&arg);
 	    else
 #endif
 		c = *arg++;
-- 
GitLab