summaryrefslogtreecommitdiff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2005-08-16 17:25:48 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2005-08-16 17:25:48 +0000
commit11b0963bdcbd5fe8371322612099c9d079460782 (patch)
treeea50c780a9f4821332747a99ed269bb218ff9fa4 /Src/Zle/compcore.c
parentfb047b6ffa8c0c595bd94d2b023be7dda83ae0a6 (diff)
downloadzsh-11b0963bdcbd5fe8371322612099c9d079460782.tar.gz
zsh-11b0963bdcbd5fe8371322612099c9d079460782.zip
21642: remove redundant checks
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index f2e055493..0ae5fd3c5 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -355,15 +355,9 @@ do_completion(UNUSED(Hookdef dummy), Compldat dat)
minfo.cur = NULL;
if (useline < 0) {
/* unmetafy line before calling ZLE */
- int remetafy = 0;
-
- if (zlemetaline != NULL) {
- unmetafy_line();
- remetafy = 1;
- }
+ unmetafy_line();
ret = selfinsert(zlenoargs);
- if (remetafy)
- metafy_line();
+ metafy_line();
}
goto compend;
}
@@ -379,15 +373,9 @@ do_completion(UNUSED(Hookdef dummy), Compldat dat)
ret = !nmatches;
} else if (useline < 0) {
/* unmetafy line before calling ZLE */
- int remetafy = 0;
-
- if (zlemetaline != NULL) {
- unmetafy_line();
- remetafy = 1;
- }
+ unmetafy_line();
ret = selfinsert(zlenoargs);
- if (remetafy)
- metafy_line();
+ metafy_line();
} else if (!useline && uselist) {
/* All this and the guy only wants to see the list, sigh. */
zlemetacs = 0;