summaryrefslogtreecommitdiff
path: root/src/ide/complete.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-02-24 14:18:05 +0100
committerLaurenz <laurmaedje@gmail.com>2023-02-24 14:18:05 +0100
commit7726e8aa4d1a30193ffb07abf80086bf98a92549 (patch)
tree6afaf02d933c08abf783eb3fde3b29ede9564706 /src/ide/complete.rs
parent448844d66cef5f4980d0575e783757264c962bb5 (diff)
Don't complete params directly after comma
Diffstat (limited to 'src/ide/complete.rs')
-rw-r--r--src/ide/complete.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ide/complete.rs b/src/ide/complete.rs
index 607f2558..30b98fc8 100644
--- a/src/ide/complete.rs
+++ b/src/ide/complete.rs
@@ -565,6 +565,7 @@ fn complete_params(ctx: &mut CompletionContext) -> bool {
| SyntaxKind::Comma
| SyntaxKind::Ident
);
+ if deciding.kind() != SyntaxKind::Comma || deciding.range().end < ctx.cursor;
then {
ctx.from = match deciding.kind() {
SyntaxKind::Ident => deciding.offset(),