Mercurial > vim
view runtime/keymap/hebrewp.vim @ 16924:2f39b35f7290 v8.1.1463
patch 8.1.1463: gcc warns for uninitialized variable
commit https://github.com/vim/vim/commit/277e79adc4d2b62556ce8a3720684e4b3e1e6d42
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 4 19:16:29 2019 +0200
patch 8.1.1463: gcc warns for uninitialized variable
Problem: Gcc warns for uninitialized variable.
Solution: Put usage inside "if". (Ken Takata)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jun 2019 19:30:05 +0200 |
parents | 3fc0f57ecb91 |
children |
line wrap: on
line source
let encoding = &enc if encoding == 'latin1' if has("unix") let encoding = 'iso-8859-8' else let encoding = 'cp1255' endif endif if encoding == 'utf-8' source <sfile>:p:h/hebrewp_utf-8.vim elseif encoding == 'cp1255' source <sfile>:p:h/hebrewp_cp1255.vim else source <sfile>:p:h/hebrewp_iso-8859-8.vim endif