Mercurial > vim
view runtime/keymap/serbian.vim @ 19077:568cce19fd2b v8.2.0099
patch 8.2.0099: use of NULL pointer when out of memory
Commit: https://github.com/vim/vim/commit/8b7aa2f9b238df916c161cdacda032c25d72a0ae
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 7 21:05:49 2020 +0100
patch 8.2.0099: use of NULL pointer when out of memory
Problem: Use of NULL pointer when out of memory.
Solution: Check for NULL pointer. (Dominique Pelle, closes https://github.com/vim/vim/issues/5449)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 07 Jan 2020 21:15:06 +0100 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
let encoding = &enc if encoding == 'latin1' if has("unix") let encoding = 'iso-8859-2' else let encoding = 'cp1250' endif endif if encoding == 'utf-8' source <sfile>:p:h/serbian_utf-8.vim elseif encoding == 'cp1250' source <sfile>:p:h/serbian_cp1250.vim elseif encoding == 'cp1251' source <sfile>:p:h/serbian_cp1251.vim elseif encoding == 'iso-8859-2' source <sfile>:p:h/serbian_iso-8859-2.vim else source <sfile>:p:h/serbian_iso-8859-5.vim endif