Skip to content

Commit 0ef2cf8

Browse files
jezalerque
authored andcommitted
Don't set cpo&vim if we're going to early exit
This was a bad merge that resulted from #393 being opened before #397 but landing after. If we override the `&cpo` option and then `finish`, it will never get set back to the saved cpo. Instead, let's just only do the `set` if we're sure we're not going to early exit.
1 parent 23ec975 commit 0ef2cf8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

syntax/pandoc.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ scriptencoding utf-8
1212
" Version: 5.0
1313
" Last Change: 2024 Apr 08
1414

15-
let s:cpo_save = &cpo
16-
set cpo&vim
17-
1815
if exists('b:current_syntax')
1916
finish
2017
endif
2118

19+
let s:cpo_save = &cpo
20+
set cpo&vim
21+
2222
" Configuration: {{{1
2323
"
2424
" use conceal? {{{2

0 commit comments

Comments
 (0)