comparison runtime/ftplugin/abap.vim @ 33051:02939ae3aaca

runtime: Set b:undo_ftplugin where missing (#12943) Commit: https://github.com/vim/vim/commit/f937ab32a1ac3a560f217ca4ce8305ab2d5b0b74 Author: dkearns <dougkearns@gmail.com> Date: Tue Aug 29 05:32:27 2023 +1000 runtime: Set b:undo_ftplugin where missing (https://github.com/vim/vim/issues/12943) Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 28 Aug 2023 21:45:06 +0200
parents 2d1383658bb4
children 8ae680be2a51
comparison
equal deleted inserted replaced
33050:6a839ee3ab4b 33051:02939ae3aaca
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Language: ABAP 2 " Language: ABAP
3 " Author: Steven Oliver <oliver.steven@gmail.com> 3 " Author: Steven Oliver <oliver.steven@gmail.com>
4 " Copyright: Copyright (c) 2013 Steven Oliver 4 " Copyright: Copyright (c) 2013 Steven Oliver
5 " License: You may redistribute this under the same terms as Vim itself 5 " License: You may redistribute this under the same terms as Vim itself
6 " Last Change: 2023 Aug 28 by Vim Project (undo_ftplugin)
6 " -------------------------------------------------------------------------- 7 " --------------------------------------------------------------------------
7 8
8 " Only do this when not done yet for this buffer 9 " Only do this when not done yet for this buffer
9 if (exists("b:did_ftplugin")) 10 if (exists("b:did_ftplugin"))
10 finish 11 finish
15 set cpo&vim 16 set cpo&vim
16 17
17 setlocal softtabstop=2 shiftwidth=2 18 setlocal softtabstop=2 shiftwidth=2
18 setlocal suffixesadd=.abap 19 setlocal suffixesadd=.abap
19 20
21 let b:undo_ftplugin = "setl sts< sua< sw<"
22
20 " Windows allows you to filter the open file dialog 23 " Windows allows you to filter the open file dialog
21 if has("gui_win32") && !exists("b:browsefilter") 24 if has("gui_win32") && !exists("b:browsefilter")
22 let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" . 25 let b:browsefilter = "ABAP Source Files (*.abap)\t*.abap\n" .
23 \ "All Files (*.*)\t*.*\n" 26 \ "All Files (*.*)\t*.*\n"
27 let b:undo_ftplugin .= " | unlet! b:browsefilter"
24 endif 28 endif
25 29
26 let &cpo = s:cpo_save 30 let &cpo = s:cpo_save
27 unlet s:cpo_save 31 unlet s:cpo_save
28 32