annotate runtime/keymap/hebrew.vim @ 26302:7351926fbe9e
v8.2.3682
patch 8.2.3682: Vim9: assigning to a script variable drops the type
Commit: https://github.com/vim/vim/commit/7824fc80f675b8098e6483ce082e287aad14b6da
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 26 17:36:51 2021 +0000
patch 8.2.3682: Vim9: assigning to a script variable drops the type
Problem: Vim9: assigning to a script variable drops the required type.
Solution: Lookup the type of the variable and use it. (closes https://github.com/vim/vim/issues/9219)
author |
Bram Moolenaar <Bram@vim.org> |
date |
Fri, 26 Nov 2021 18:45:03 +0100 |
parents |
3fc0f57ecb91 |
children |
|
rev |
line source |
7
|
1 let encoding = &enc
|
|
2 if encoding == 'latin1'
|
|
3 if has("unix")
|
|
4 let encoding = 'iso-8859-8'
|
|
5 else
|
|
6 let encoding = 'cp1255'
|
|
7 endif
|
|
8 endif
|
|
9
|
|
10 if encoding == 'utf-8'
|
|
11 source <sfile>:p:h/hebrew_utf-8.vim
|
|
12 elseif encoding == 'cp1255'
|
|
13 source <sfile>:p:h/hebrew_cp1255.vim
|
|
14 else
|
|
15 source <sfile>:p:h/hebrew_iso-8859-8.vim
|
|
16 endif
|