screen-devel
[Top][All Lists]
Advanced

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

[screen-devel] (no subject)


From: Dmitri Vereshchagin
Subject: [screen-devel] (no subject)
Date: Tue, 5 Jul 2016 22:25:49 +0300
User-agent: Mutt/1.6.1 (2016-04-27)

>From 6f4a213efb55d89d95a78a9b803def1e4ed28dec Mon Sep 17 00:00:00 2001
From: Dmitri Vereshchagin <address@hidden>
Date: Tue, 5 Jul 2016 21:53:27 +0300
Subject: [PATCH] Fix crash when bumping blank window

Blank window shouldn't be swapped with normal one.  bumpleft and
bumpright need a fore window to operate properly.
---
 src/comm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/comm.c b/src/comm.c
index 9a4f199..98defab 100644
--- a/src/comm.c
+++ b/src/comm.c
@@ -58,8 +58,8 @@ struct comm comms[RC_LAST + 1] =
   { "break",           NEED_FORE|ARGS_01,              {NULL} },
   { "breaktype",       NEED_FORE|ARGS_01,              {NULL} },
   { "bufferfile",      ARGS_01,                        {NULL} },
-  { "bumpleft",                ARGS_0,                         {NULL} },
-  { "bumpright",       ARGS_0,                         {NULL} },
+  { "bumpleft",                NEED_FORE|ARGS_0,               {NULL} },
+  { "bumpright",       NEED_FORE|ARGS_0,               {NULL} },
   { "c1",              NEED_FORE|ARGS_01,              {NULL} },
   { "caption",         ARGS_123,                       {NULL} },
   { "chacl",           ARGS_23,                        {NULL} },
-- 
Dmitri Vereshchagin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]