summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Mallet <anthony.mallet@laas.fr>2020-09-29 16:40:45 +0200
committerAnthony Mallet <anthony.mallet@laas.fr>2020-09-29 17:33:20 +0200
commita9a69c8fd5d27fd24da677da77fda28cb3a0bed4 (patch)
treea60a05bdc162e06bda9a40063703e3209aec9ad8
parent05f646310f4b76a4e4fe8d85dc05e567ade4fe01 (diff)
downloadeltclsh-a9a69c8fd5d27fd24da677da77fda28cb3a0bed4.tar.gz
Cosmetic
-rw-r--r--src/complete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/complete.c b/src/complete.c
index 04cc948..bd0b6d8 100644
--- a/src/complete.c
+++ b/src/complete.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001,2011-2012 LAAS/CNRS
+ * Copyright (c) 2001,2011-2012,2020 LAAS/CNRS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -103,7 +103,7 @@ elTclCompletion(EditLine *el, int ch)
Tcl_GetIntFromObj(iinfo->interp, matches[0], &start);
Tcl_GetIntFromObj(iinfo->interp, matches[1], &end);
- if (count == 2) {
+ if (count < 3) {
/* no match */
Tcl_DecrRefCount(cmdLine);
return CC_ERROR;