Skip to content

Commit

Permalink
fix(on_enter): document not synced when using VIM (#1373)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibs authored and chemzqm committed Nov 30, 2019
1 parent 36727a5 commit d83536a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export default class Handler {
let line = (await nvim.call('line', '.') as number) - 1
let doc = workspace.getDocument(bufnr)
if (!doc) return
await doc.checkDocument()
let pre = doc.getline(line - 1)
let curr = doc.getline(line)
let prevChar = pre[pre.length - 1]
Expand Down

0 comments on commit d83536a

Please sign in to comment.