Skip to content

Commit 9d83ca5

Browse files
committed
runtime(preproc_indent): Ignore Swapfiles when loading buffers
Signed-off-by: Christian Brabandt <[email protected]>
1 parent b2fbb7c commit 9d83ca5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

runtime/tools/preproc_indent.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ vim9script
1616
# deleted.
1717
#
1818
# Author: Hirohito Higashi (@h-east)
19-
# Last Update: 2026 Jan 12
19+
# Last Update: 2026 Apr 02
2020

2121
def Get_C_source_files(): list<string>
2222
var list_of_c_files: list<string> = []
@@ -30,7 +30,7 @@ def Get_C_source_files(): list<string>
3030
enddef
3131

3232
def FixPreprocessorIndent(fname: string)
33-
execute 'edit! ' .. fname
33+
execute 'noswapfile edit! ' .. fname
3434

3535
var nest: number = 0
3636
var indent_offset: number = 0 # -1 if whole-file guard detected

0 commit comments

Comments
 (0)