Mercurial > vim
annotate runtime/ftplugin/sieve.vim @ 24220:a7a9176bb542 v8.2.2651
patch 8.2.2651: Vim9: restoring command modifiers happens after jump
Commit: https://github.com/vim/vim/commit/a91a71322dc2e6a1640e73b6da1f1a2f94f39a54
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 25 21:12:15 2021 +0100
patch 8.2.2651: Vim9: restoring command modifiers happens after jump
Problem: Vim9: restoring command modifiers happens after jump.
Solution: Move the restore instruction to before the jump. (closes https://github.com/vim/vim/issues/8006)
Also handle for and while.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Mar 2021 21:15:04 +0100 |
parents | 1218c5353e2b |
children |
rev | line source |
---|---|
375 | 1 " Vim filetype plugin file |
11062 | 2 " Language: Sieve filtering language input file |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2008-07-09 | |
375 | 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<" |
375 | 15 |
16 setlocal comments=s1:/*,mb:*,ex:*/,:# commentstring=#\ %s | |
389 | 17 setlocal formatoptions-=t formatoptions+=croql |
1698 | 18 |
19 let &cpo = s:cpo_save | |
20 unlet s:cpo_save |