Permalink
Browse files

change search order in from_term

  • Loading branch information...
mauke committed May 29, 2010
1 parent c32cb93 commit e963b80b5088fcf114700ab2d26f95218dffa524
Showing with 6 additions and 5 deletions.
  1. +6 −5 uniutil.c
View
@@ -133,11 +133,8 @@ unibi_term *unibi_from_term(const char *term) {
return NULL;
}
- if ((env = getenv("TERMINFO_DIRS"))) {
- ut = from_dirs(env, term);
- if (ut) {
- return ut;
- }
+ if ((env = getenv("TERMINFO"))) {
+ return from_dir(env, ".", term);
}
if ((env = getenv("HOME"))) {
@@ -147,6 +144,10 @@ unibi_term *unibi_from_term(const char *term) {
}
}
+ if ((env = getenv("TERMINFO_DIRS"))) {
+ return from_dirs(env, term);
+ }
+
return from_dirs(unibi_terminfo_dirs, term);
}

0 comments on commit e963b80

Please sign in to comment.