summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amade@asmblr.net>2019-04-13 16:08:36 +0200
committerAmadeusz Sławiński <amade@asmblr.net>2019-04-13 16:08:36 +0200
commit4e545ba086fb3fc8f522ed8dc0f7bb0b3c089fb7 (patch)
tree1abccaa34e6ae0d465ba567a81a5c2ad76290a37
parent5bbf4eddfdedc828625a038dafb109c104fbae78 (diff)
downloadscreen-4e545ba086fb3fc8f522ed8dc0f7bb0b3c089fb7.tar.gz
Fix -L option when passed to backend via Msg
Breaks backward compatibility This fixes a problem when user runs screen with "-L" option in already existing screen. We need to pass information about theflag to backend. Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
-rw-r--r--src/screen.h1
-rw-r--r--src/socket.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/screen.h b/src/screen.h
index 2ca0698..01a9d97 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -117,6 +117,7 @@ struct Message {
union {
struct {
int lflag;
+ int Lflag;
bool aflag;
int flowflag;
int hheight; /* size of scrollback buffer */
diff --git a/src/socket.c b/src/socket.c
index 7d9fff5..0dc9450 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -462,6 +462,7 @@ void SendCreateMsg(char *sty, struct NewWindow *nwin)
m.m.create.aflag = nwin->aflag;
m.m.create.flowflag = nwin->flowflag;
m.m.create.lflag = nwin->lflag;
+ m.m.create.Lflag = nwin->Lflag;
m.m.create.hheight = nwin->histheight;
if (getcwd(m.m.create.dir, ARRAY_SIZE(m.m.create.dir)) == NULL) {
Msg(errno, "getcwd");
@@ -540,6 +541,7 @@ static void ExecCreate(Message *mp)
if (*mp->m.create.dir)
nwin.dir = mp->m.create.dir;
nwin.lflag = mp->m.create.lflag;
+ nwin.Lflag = mp->m.create.Lflag;
nwin.histheight = mp->m.create.hheight;
if (*mp->m.create.screenterm)
nwin.term = mp->m.create.screenterm;