Mercurial > vim
view runtime/keymap/slovak.vim @ 27332:251cae25bb49 v8.2.4194
patch 8.2.4194: MS-Windows: code for calculating font size is duplicated
Commit: https://github.com/vim/vim/commit/abe628e1bd92ecb85a526348f376891d56bf3ea8
Author: K.Takata <kentkt@csc.jp>
Date: Sun Jan 23 16:25:17 2022 +0000
patch 8.2.4194: MS-Windows: code for calculating font size is duplicated
Problem: MS-Windows: code for calculating font size is duplicated.
Solution: Move the code to a function. (Ken Takata, closes https://github.com/vim/vim/issues/9603)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Jan 2022 17:30:04 +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/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