Skip to content

Commit

Permalink
Fix buffer#Valid test logic
Browse files Browse the repository at this point in the history
  • Loading branch information
nickspoons committed Oct 15, 2023
1 parent 09335d8 commit f9c5d3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion autoload/OmniSharp/actions/buffer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ function! OmniSharp#actions#buffer#Update(...) abort
let opts.Initializing = get(opts, 'Initializing', 0)
let opts.SendBuffer = opts.Initializing || get(opts, 'SendBuffer', 0)
let bufnr = get(opts, 'bufnr', bufnr('%'))
let bufferValid = OmniSharp#buffer#Valid(bufnr)
let lasttick = get(b:, 'OmniSharp_UpdateChangeTick', -1)
if OmniSharp#buffer#Valid(bufnr) && opts.SendBuffer || b:changedtick != lasttick
if bufferValid && (opts.SendBuffer || b:changedtick != lasttick)
let b:OmniSharp_UpdateChangeTick = b:changedtick
if g:OmniSharp_server_stdio
let requestOpts = {
Expand Down

0 comments on commit f9c5d3e

Please sign in to comment.