about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_nedit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/User/_nedit b/Completion/User/_nedit
index a3fcd9785..5261a54a9 100644
--- a/Completion/User/_nedit
+++ b/Completion/User/_nedit
@@ -44,7 +44,7 @@ else
     "$nedit_common[@]"
 fi
 
-[[ $state = lang ]] &&
+[[ $state = lang && -f ~/.nedit ]] &&
     _wanted neditlanguages expl 'language mode' \
         compadd -  ${(f)"$(sed -n \
             '/^nedit.languageMode/,/^nedit/ s/.*	\([^:]*\).*/\1/p' < ~/.nedit)"}