From 5e1a0a9a65b221d376a3ab85d06d918e651dd123 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 20 Jun 2012 14:26:35 +0200 Subject: [PATCH] updated for version 7.3.561 Problem: Using refresh: always in a complete function breaks the "." command. (Val Markovic) Solution: Add match leader to the redo buffer. (Yasuhiro Matsumoto) --- src/edit.c | 4 ++++ src/version.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/edit.c b/src/edit.c index 013fc5abcb..2bcfc42a4a 100644 --- a/src/edit.c +++ b/src/edit.c @@ -3467,10 +3467,14 @@ ins_compl_addleader(c) (*mb_char2bytes)(c, buf); buf[cc] = NUL; ins_char_bytes(buf, cc); + AppendToRedobuff(buf); } else #endif + { ins_char(c); + AppendCharToRedobuff(c); + } /* If we didn't complete finding matches we must search again. */ if (ins_compl_need_restart()) diff --git a/src/version.c b/src/version.c index 23049a807e..93a8e8fffa 100644 --- a/src/version.c +++ b/src/version.c @@ -714,6 +714,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 561, /**/ 560, /**/