Skip to content

Commit d322a70

Browse files
authored
Merge pull request #780 from nickspoons/use-existing-bomb
Use the file's 'bomb' for new code-action files
2 parents 682325f + c4bdc56 commit d322a70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/OmniSharp/buffer.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ function! OmniSharp#buffer#PerformChanges(opts, response) abort
4141
let unload_bufnrs = []
4242
let hidden_bak = &hidden | set hidden
4343
let fileencoding = &fileencoding
44+
let bomb = &bomb
4445
for change in changes
4546
let modificationType = get(change, 'ModificationType', 0)
4647
if modificationType == 0 " Modified
@@ -50,6 +51,9 @@ function! OmniSharp#buffer#PerformChanges(opts, response) abort
5051
call OmniSharp#buffer#Update(change)
5152
if bufnr('%') != bufnr
5253
let c = get(change, 'Changes', [])
54+
if &bomb != bomb
55+
let &bomb = bomb
56+
endif
5357
if len(c) == 1 && &fileencoding != fileencoding
5458
\ && c[0].StartLine == 1 && c[0].StartColumn == 1
5559
\ && c[0].EndLine == 1 && c[0].EndColumn == 1

0 commit comments

Comments
 (0)