Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/nvi/dist/vi fix bug in coversion



details:   https://anonhg.NetBSD.org/src/rev/81a97df09ba5
branches:  trunk
changeset: 791683:81a97df09ba5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 28 03:15:20 2013 +0000

description:
fix bug in coversion

diffstat:

 external/bsd/nvi/dist/vi/v_screen.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 04f007ac788d -r 81a97df09ba5 external/bsd/nvi/dist/vi/v_screen.c
--- a/external/bsd/nvi/dist/vi/v_screen.c       Thu Nov 28 03:15:02 2013 +0000
+++ b/external/bsd/nvi/dist/vi/v_screen.c       Thu Nov 28 03:15:20 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: v_screen.c,v 1.3 2013/11/25 22:43:46 christos Exp $    */
+/*     $NetBSD: v_screen.c,v 1.4 2013/11/28 03:15:20 christos Exp $    */
 /*-
  * Copyright (c) 1993, 1994
  *     The Regents of the University of California.  All rights reserved.
@@ -52,7 +52,7 @@
         */
        if (TAILQ_NEXT(sp, q) != NULL)
                sp->nextdisp = TAILQ_NEXT(sp, q);
-       else if (TAILQ_EMPTY(&sp->wp->scrq)) {
+       else if (TAILQ_FIRST(&sp->wp->scrq) == sp) {
                msgq(sp, M_ERR, "187|No other screen to switch to");
                return (1);
        } else



Home | Main Index | Thread Index | Old Index