We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09335d8 commit f9c5d3eCopy full SHA for f9c5d3e
autoload/OmniSharp/actions/buffer.vim
@@ -14,8 +14,9 @@ function! OmniSharp#actions#buffer#Update(...) abort
14
let opts.Initializing = get(opts, 'Initializing', 0)
15
let opts.SendBuffer = opts.Initializing || get(opts, 'SendBuffer', 0)
16
let bufnr = get(opts, 'bufnr', bufnr('%'))
17
+ let bufferValid = OmniSharp#buffer#Valid(bufnr)
18
let lasttick = get(b:, 'OmniSharp_UpdateChangeTick', -1)
- if OmniSharp#buffer#Valid(bufnr) && opts.SendBuffer || b:changedtick != lasttick
19
+ if bufferValid && (opts.SendBuffer || b:changedtick != lasttick)
20
let b:OmniSharp_UpdateChangeTick = b:changedtick
21
if g:OmniSharp_server_stdio
22
let requestOpts = {
0 commit comments