annotate runtime/ftplugin/sensors.vim @ 21646:a640bc762196
v8.2.1373
patch 8.2.1373: Vim9: no error for assigning to non-existing script var
Commit: https://github.com/vim/vim/commit/f9b2b49663226235f94f08230fe9023caf80a6e9
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 5 14:34:14 2020 +0200
patch 8.2.1373: Vim9: no error for assigning to non-existing script var
Problem: Vim9: no error for assigning to non-existing script var.
Solution: Check that in Vim9 script the variable was defined. (closes https://github.com/vim/vim/issues/6630)
author |
Bram Moolenaar <Bram@vim.org> |
date |
Wed, 05 Aug 2020 14:45:03 +0200 |
parents |
1218c5353e2b |
children |
|
rev |
line source |
389
|
1 " Vim filetype plugin file
|
11062
|
2 " Language: sensors.conf(5) - libsensors configuration file
|
|
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
|
4 " Latest Revision: 2008-07-09
|
389
|
5
|
|
6 if exists("b:did_ftplugin")
|
|
7 finish
|
|
8 endif
|
|
9 let b:did_ftplugin = 1
|
|
10
|
1698
|
11 let s:cpo_save = &cpo
|
|
12 set cpo&vim
|
|
13
|
389
|
14 let b:undo_ftplugin = "setl com< cms< fo<"
|
|
15
|
|
16 setlocal comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=croql
|
1698
|
17
|
|
18 let &cpo = s:cpo_save
|
|
19 unlet s:cpo_save
|