Mercurial > vim
annotate runtime/ftplugin/scdoc.vim @ 28361:68c36f734b10 v8.2.4706
patch 8.2.4706: buffer remains active with WinClosed and tabpages
Commit: https://github.com/vim/vim/commit/6a06940f8ae7283999c83ccdf268540220573105
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Apr 7 14:08:29 2022 +0100
patch 8.2.4706: buffer remains active with WinClosed and tabpages
Problem: Buffer remains active if a WinClosed event throws an exception
when there are multiple tabpages.
Solution: Ignore aborting() when closing the buffer. (closes #10101)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 07 Apr 2022 15:15:02 +0200 |
parents | 29ec2c198c8d |
children | cd68a630f0d0 |
rev | line source |
---|---|
25619 | 1 " scdoc filetype plugin |
2 " Maintainer: Gregory Anders <greg@gpanders.com> | |
3 " Last Updated: 2021-08-04 | |
4 | |
5 " Only do this when not done yet for this buffer | |
6 if exists('b:did_ftplugin') | |
7 finish | |
8 endif | |
9 | |
10 " Don't load another plugin for this buffer | |
11 let b:did_ftplugin = 1 | |
12 | |
13 setlocal comments=b:; | |
14 setlocal commentstring=;%s | |
15 setlocal formatoptions+=t | |
16 setlocal noexpandtab | |
17 setlocal shiftwidth=0 | |
18 setlocal softtabstop=0 | |
19 setlocal textwidth=80 | |
20 | |
21 let b:undo_ftplugin = 'setl com< cms< fo< et< sw< sts< tw<' | |
22 | |
23 if has('conceal') | |
24 setlocal conceallevel=2 | |
25 let b:undo_ftplugin .= ' cole<' | |
26 endif |