comparison src/ui.c @ 5956:a076237d1c38 v7.4.319

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)
author Bram Moolenaar <bram@vim.org>
date Thu, 12 Jun 2014 13:28:30 +0200
parents 50dbef5e774a
children ef83b423ebf7
comparison
equal deleted inserted replaced
5955:72c6378384f2 5956:a076237d1c38
2322 } 2322 }
2323 2323
2324 if ( *target != XA_STRING 2324 if ( *target != XA_STRING
2325 #ifdef FEAT_MBYTE 2325 #ifdef FEAT_MBYTE
2326 && *target != vimenc_atom 2326 && *target != vimenc_atom
2327 && *target != utf8_atom 2327 && (*target != utf8_atom || !enc_utf8)
2328 #endif 2328 #endif
2329 && *target != vim_atom 2329 && *target != vim_atom
2330 && *target != text_atom 2330 && *target != text_atom
2331 && *target != compound_text_atom) 2331 && *target != compound_text_atom)
2332 return False; 2332 return False;