From: Bram Moolenaar Date: Thu, 12 Jun 2014 11:28:30 +0000 (+0200) Subject: updated for version 7.4.319 X-Git-Tag: v7.4.319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=980e58f7b324980d40ce690506897d138e5e2b70;p=thirdparty%2Fvim.git updated for version 7.4.319 Problem: Crash when putting zero bytes on the clipboard. Solution: Do not support the utf8_atom target when not using an Unicode encoding. (Naofumi Honda) --- diff --git a/src/ui.c b/src/ui.c index fc91de6555..570b848489 100644 --- a/src/ui.c +++ b/src/ui.c @@ -2324,7 +2324,7 @@ clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format) if ( *target != XA_STRING #ifdef FEAT_MBYTE && *target != vimenc_atom - && *target != utf8_atom + && (*target != utf8_atom || !enc_utf8) #endif && *target != vim_atom && *target != text_atom diff --git a/src/version.c b/src/version.c index 00948fd974..335f9dea41 100644 --- a/src/version.c +++ b/src/version.c @@ -734,6 +734,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 319, /**/ 318, /**/