Mercurial > vim
view runtime/keymap/slovak.vim @ 21072:42e2fb7ec6e1
patch 8.2.1087: possible memory leak when file expansion fails
Commit: https://github.com/vim/vim/commit/566cc8c72bb8036f015a435800f28ef9f6a9a3b6
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 29 21:14:51 2020 +0200
patch 8.2.1087: possible memory leak when file expansion fails
Problem: Possible memory leak when file expansion fails.
Solution: Clear the grow array when returning FAIL. Use an error message
instead of an empty string.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 29 Jun 2020 21:15:03 +0200 |
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/slovak_utf-8.vim elseif encoding == 'cp1250' source <sfile>:p:h/slovak_cp1250.vim else source <sfile>:p:h/slovak_iso-8859-2.vim endif