Skip to content

Commit 7f22f20

Browse files
authored
Use Vim::cursor instead of manually calling cursor (#1129)
1 parent 05231ac commit 7f22f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/language_server_protocol.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ impl LanguageClient {
650650
}) {
651651
let line = diagnostic.range.start.line + 1;
652652
let col = diagnostic.range.start.character + 1;
653-
let _: String = self.vim()?.rpcclient.call("cursor", json!([line, col]))?;
653+
self.vim()?.cursor(line, col)?;
654654
} else {
655655
self.vim()?.echomsg("No diagnostics found")?;
656656
}

0 commit comments

Comments
 (0)