annotate runtime/keymap/hebrew.vim @ 22256:c3c9830c7cdc
v8.2.1677
patch 8.2.1677: memory access errors when calling setloclist() in autocommand
Commit: https://github.com/vim/vim/commit/4d170af0a9379da64d67dc3fa7cc7297956c6f52
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 13 22:21:22 2020 +0200
patch 8.2.1677: memory access errors when calling setloclist() in autocommand
Problem: Memory access errors when calling setloclist() in an autocommand.
Solution: Give an error if the list was changed unexpectedly. (closes https://github.com/vim/vim/issues/6946)
author |
Bram Moolenaar <Bram@vim.org> |
date |
Sun, 13 Sep 2020 22:30:03 +0200 |
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
|