Skip to content

Commit dec5f9e

Browse files
roxmaautozimu
authored andcommitted
is_incomplete=true when Err
1 parent e8abdc5 commit dec5f9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/languageclient.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2448,7 +2448,7 @@ impl State {
24482448
let completion = serde_json::from_value(value.clone())?;
24492449
is_incomplete = match completion {
24502450
CompletionResponse::List(ref list) => list.is_incomplete,
2451-
_ => true,
2451+
_ => false,
24522452
};
24532453
let matches_result: Result<Vec<VimCompleteItem>> = match completion {
24542454
CompletionResponse::Array(arr) => arr,
@@ -2458,7 +2458,7 @@ impl State {
24582458
.collect();
24592459
matches = matches_result?;
24602460
} else {
2461-
is_incomplete = false;
2461+
is_incomplete = true;
24622462
matches = vec![];
24632463
}
24642464
self.call::<_, u8>(

0 commit comments

Comments
 (0)