Module Name: src Committed By: christos Date: Sat May 11 22:06:57 UTC 2024
Modified Files: src/usr.bin/tic: tic.c Log Message: Only mark the terminfo entry promoted if actually was. To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/usr.bin/tic/tic.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/tic/tic.c diff -u src/usr.bin/tic/tic.c:1.40 src/usr.bin/tic/tic.c:1.41 --- src/usr.bin/tic/tic.c:1.40 Sun Mar 29 20:09:06 2020 +++ src/usr.bin/tic/tic.c Sat May 11 18:06:57 2024 @@ -1,4 +1,4 @@ -/* $NetBSD: tic.c,v 1.40 2020/03/30 00:09:06 roy Exp $ */ +/* $NetBSD: tic.c,v 1.41 2024/05/11 22:06:57 christos Exp $ */ /* * Copyright (c) 2009, 2010, 2020 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #endif #include <sys/cdefs.h> -__RCSID("$NetBSD: tic.c,v 1.40 2020/03/30 00:09:06 roy Exp $"); +__RCSID("$NetBSD: tic.c,v 1.41 2024/05/11 22:06:57 christos Exp $"); #include <sys/types.h> #include <sys/queue.h> @@ -468,7 +468,7 @@ merge_use(int flags) if (!promoted && rtic->rtype != TERMINFO_RTYPE) { if (promote(rtic, utic) == -1) err(EXIT_FAILURE, "promote"); - promoted = true; + promoted = rtic->rtype == TERMINFO_RTYPE; } merge(rtic, utic, flags);