]> git.eshelyaron.com Git - emacs.git/commitdiff
default to user-supplied buffer.
authorDavid J. MacKenzie <djm@gnu.org>
Mon, 21 Aug 1995 04:33:21 +0000 (04:33 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Mon, 21 Aug 1995 04:33:21 +0000 (04:33 +0000)
src/termcap.c

index d26348e525c3282537a01c2571146980a2973a06..2a270c454eb66da96633feac6083a0c5f87bde1e 100644 (file)
@@ -443,6 +443,11 @@ tgetent (bp, name)
     }
 #endif /* INTERNAL_TERMINAL */
 
+  /* For compatibility with programs like `less' that want to
+     put data in the termcap buffer themselves as a fallback.  */
+  if (bp)
+    term_entry = bp;
+
   termcap_name = getenv ("TERMCAP");
   if (termcap_name && *termcap_name == '\0')
     termcap_name = NULL;