agree st-externalpipe with st-scrollback-ringbuffer
This commit is contained in:
4
st.c
4
st.c
@@ -2148,7 +2148,7 @@ externalpipe(const Arg *arg)
|
|||||||
oldsigpipe = signal(SIGPIPE, SIG_IGN);
|
oldsigpipe = signal(SIGPIPE, SIG_IGN);
|
||||||
newline = 0;
|
newline = 0;
|
||||||
for (n = 0; n < term.row; n++) {
|
for (n = 0; n < term.row; n++) {
|
||||||
bp = term.line[n];
|
bp = TLINE(n);
|
||||||
lastpos = MIN(tlinelen(n) + 1, term.col) - 1;
|
lastpos = MIN(tlinelen(n) + 1, term.col) - 1;
|
||||||
if (lastpos < 0)
|
if (lastpos < 0)
|
||||||
break;
|
break;
|
||||||
@@ -2156,7 +2156,7 @@ externalpipe(const Arg *arg)
|
|||||||
for (; bp < end; ++bp)
|
for (; bp < end; ++bp)
|
||||||
if (xwrite(to[1], buf, utf8encode(bp->u, buf)) < 0)
|
if (xwrite(to[1], buf, utf8encode(bp->u, buf)) < 0)
|
||||||
break;
|
break;
|
||||||
if ((newline = term.line[n][lastpos].mode & ATTR_WRAP))
|
if ((newline = TLINE(n)[lastpos].mode & ATTR_WRAP))
|
||||||
continue;
|
continue;
|
||||||
if (xwrite(to[1], "\n", 1) < 0)
|
if (xwrite(to[1], "\n", 1) < 0)
|
||||||
break;
|
break;
|
||||||
|
|||||||
1
st.h
1
st.h
@@ -82,6 +82,7 @@ void die(const char *, ...);
|
|||||||
void redraw(void);
|
void redraw(void);
|
||||||
void draw(void);
|
void draw(void);
|
||||||
|
|
||||||
|
void externalpipe(const Arg *);
|
||||||
void printscreen(const Arg *);
|
void printscreen(const Arg *);
|
||||||
void printsel(const Arg *);
|
void printsel(const Arg *);
|
||||||
void sendbreak(const Arg *);
|
void sendbreak(const Arg *);
|
||||||
|
|||||||
Reference in New Issue
Block a user