Skip to content

Commit 1170dea

Browse files
committed
Dev: ui_context: Don't append space when completion ends with equal sign
1 parent 05b700f commit 1170dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crmsh/ui_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def matching(word):
228228
ret = None
229229
# logging.debug("line:%s, text:%s, ret:%s, state:%s", repr(line), repr(text), ret, state)
230230
if not text or (ret and line.split()[-1].endswith(ret)):
231-
if ret == "id=":
231+
if ret.endswith('='):
232232
return ret
233233
return ret + ' '
234234
return ret

0 commit comments

Comments
 (0)