Mercurial > vim
view runtime/keymap/croatian.vim @ 25046:2f702d19013a v8.2.3060
patch 8.2.3060: Vim9: cannot use ternary operator in parenthesis
Commit: https://github.com/vim/vim/commit/98f9a5f4cbe6061e09bccf6074afe0a88a504219
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jun 26 22:22:38 2021 +0200
patch 8.2.3060: Vim9: cannot use ternary operator in parenthesis
Problem: Vim9: cannot use ternary operator in parenthesis.
Solution: Do not use "=~" for a default argument value. (closes https://github.com/vim/vim/issues/8462)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Jun 2021 22:30:05 +0200 |
parents | 18ee39301b82 |
children |
line wrap: on
line source
let s:encoding = &enc if s:encoding == 'latin1' if has("unix") let s:encoding = 'iso-8859-2' else let s:encoding = 'cp1250' endif endif if s:encoding == 'utf-8' source <sfile>:p:h/croatian_utf-8.vim elseif s:encoding == 'cp1250' source <sfile>:p:h/croatian_cp1250.vim else source <sfile>:p:h/croatian_iso-8859-2.vim endif