6 Commits

Author SHA1 Message Date
Jessica McKellar
066b098a31 Spelling fix: usefull --> useful.
Thank you Curtis Brown for the patch.

This resolves bug #27052.
2010-11-10 21:47:46 -05:00
Sadrul Habib Chowdhury
a805439f64 Fix layout ordering.
Layouts were being stored in a reversed list. This makes it
confusing for both users and developers with regards to what the
next layout is ('next', lay_next). So store the layouts in a
properly ordered list in order to avoid the confusion.

This closes savannah #29800.
2010-06-22 11:22:31 -04:00
Sadrul Habib Chowdhury
dfab460087 Bring back --with-sys-screenrc configure flag. 2010-06-21 22:26:54 -04:00
Sadrul Habib Chowdhury
2f565ead2d Fix compiling with SIMPLESCREEN. 2010-05-10 23:18:36 -04:00
Sadrul Habib Chowdhury
4f9101fc9d Fix updating paused regions (in split mode).
Adding a multi-cell character in a split region doesn't always
refresh properly. Fix that problem.
2010-05-10 23:15:21 -04:00
Sadrul Habib Chowdhury
98bf4132c5 Fix a bug with displaying blank spaces with bce on.
With bce on, in some terminals, copying when applications use a
theme with a custom background color other than the default ends up
copying blank-spaces at the end of the lines as white-spces. This
fixes that.
2010-05-10 22:52:51 -04:00
10 changed files with 33 additions and 13 deletions

View File

@@ -25,7 +25,10 @@ SCREEN = screen-$(VERSION)
GIT_REV = "`git describe --always 2>/dev/null`"
DEFS = @DEFS@ -DGIT_REV=\"$(GIT_REV)\"
ETCSCREENRC = $(prefix)/etc/screenrc
ETCSCREENRC = @ETCSCREENRC@
ifeq (${ETCSCREENRC}, )
ETCSCREENRC=$(prefix)/etc/screenrc
endif
SCREENENCODINGS = $(datadir)/screen/utf8encodings
CC = @CC@

View File

@@ -77,7 +77,7 @@
document.
* Screen can now be started detached (screen -d -m -S sockname).
This is usefull if you want to start screen in your /etc/rc file
This is useful if you want to start screen in your /etc/rc file
(e.g. as a console multiplexer)
* Console grabbing added ('console on' command).

View File

@@ -1294,6 +1294,11 @@ test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
AC_TRY_RUN(main(){exit(0);},,AC_MSG_ERROR(Can't run the compiler - internal error. Sorry.))
ETCSCREENRC=
AC_MSG_CHECKING(for the global screenrc file)
AC_ARG_WITH(sys-screenrc, [ --with-sys-screenrc=path to the global screenrc file], [ ETCSCREENRC="${withval}" ])
AC_SUBST(ETCSCREENRC)
AC_OUTPUT(Makefile doc/Makefile, [[
# a hook for preserving undef directive in config.h
mv config.h conftest

View File

@@ -2524,7 +2524,7 @@ int from, to, y, bce;
DisplayLine(oml, &mline_blank, y, from, to);
return;
}
bcechar = mchar_blank;
bcechar = mchar_null;
rend_setbg(&bcechar, bce);
for (x = from; x <= to; x++)
copy_mchar2mline(&bcechar, &mline_old, x);

View File

@@ -335,7 +335,13 @@ int x, y;
#endif
if (l->l_pause.d)
LayPauseUpdateRegion(l, x, x, y, y);
LayPauseUpdateRegion(l, x,
#ifdef DW_CHARS
x + (c->mbcs ? 1 : 0)
#else
x
#endif
, y, y);
FOR_EACH_UNPAUSED_CANVAS(l,
{

View File

@@ -64,7 +64,7 @@ CreateLayout(title, startat)
char *title;
int startat;
{
struct layout *lay;
struct layout *lay, **pl;
int i;
if (startat >= MAXLAY || startat < 0)
@@ -86,8 +86,12 @@ int startat;
lay->lay_autosave = 1;
lay->lay_number = i;
laytab[i] = lay;
lay->lay_next = layouts;
layouts = lay;
lay->lay_next = 0;
pl = &layouts;
while (*pl)
pl = &(*pl)->lay_next;
*pl = lay;
return lay;
}

View File

@@ -771,7 +771,7 @@ processchar:
LGotoPos(flayer, cx, W2D(cy));
break;
case '@':
/* it may be usefull to have a key that does nothing */
/* it may be useful to have a key that does nothing */
break;
case '%':
rep_cnt--;

View File

@@ -1048,8 +1048,8 @@ struct win *p;
}
p->w_alt.hlines = 0;
p->w_alt.histidx = 0;
#endif
p->w_alt.histheight = 0;
#endif
}
static void
@@ -1064,9 +1064,9 @@ struct win *p;
SWAP(mlines, ml);
SWAP(width, t);
SWAP(height, t);
SWAP(histheight, t);
#ifdef COPY_PASTE
SWAP(histheight, t);
SWAP(hlines, ml);
SWAP(histidx, t);
#endif

View File

@@ -642,7 +642,7 @@ struct NewWindow *newwin;
#ifdef MULTIUSER
/*
* This is dangerous: without a display we use creators umask
* This is intended to be usefull for detached startup.
* This is intended to be useful for detached startup.
* But is still better than default bits with a NULL user.
*/
if (NewWindowAcl(p, display ? D_user : users))

View File

@@ -283,12 +283,14 @@ struct win
struct mline *mlines;
int width;
int height;
int histheight;
#ifdef COPY_PASTE
int histheight;
struct mline *hlines;
int histidx;
struct cursor cursor;
#else
int histheight; /* 0 */
#endif
struct cursor cursor;
} w_alt;
struct event w_destroyev; /* window destroy event */