commit 0d5443dbc1f399648073438180e12d928f52330b
Author: Jochen Sprickerhof <[email protected]>
Date:   Sun Apr 19 21:38:07 2020 +0200

    [st][scrollback] Update for latest git

diff --git a/st.suckless.org/patches/scrollback/index.md 
b/st.suckless.org/patches/scrollback/index.md
index 080a51d7..8f154408 100644
--- a/st.suckless.org/patches/scrollback/index.md
+++ b/st.suckless.org/patches/scrollback/index.md
@@ -11,7 +11,7 @@ Download
 * [st-scrollback-0.8.diff](st-scrollback-0.8.diff)
 * [st-scrollback-0.8.1.diff](st-scrollback-0.8.1.diff)
 * [st-scrollback-0.8.2.diff](st-scrollback-0.8.2.diff)
-* [st-scrollback-20200504-28ad288.diff](st-scrollback-20200504-28ad288.diff)
+* [st-scrollback-20200419-72e3f6c.diff](st-scrollback-20200419-72e3f6c.diff)
 
 Apply the following patch on top of the previous to allow scrolling
 using `Shift+MouseWheel`.
diff --git 
a/st.suckless.org/patches/scrollback/st-scrollback-20200504-28ad288.diff 
b/st.suckless.org/patches/scrollback/st-scrollback-20200419-72e3f6c.diff
similarity index 88%
rename from 
st.suckless.org/patches/scrollback/st-scrollback-20200504-28ad288.diff
rename to st.suckless.org/patches/scrollback/st-scrollback-20200419-72e3f6c.diff
index 55a02d3f..e72999c1 100644
--- a/st.suckless.org/patches/scrollback/st-scrollback-20200504-28ad288.diff
+++ b/st.suckless.org/patches/scrollback/st-scrollback-20200419-72e3f6c.diff
@@ -1,8 +1,8 @@
 diff --git a/config.def.h b/config.def.h
-index 546edda..ec1b576 100644
+index 0895a1f..eef24df 100644
 --- a/config.def.h
 +++ b/config.def.h
-@@ -186,6 +186,8 @@ static Shortcut shortcuts[] = {
+@@ -188,6 +188,8 @@ static Shortcut shortcuts[] = {
        { TERMMOD,              XK_Y,           selpaste,       {.i =  0} },
        { ShiftMask,            XK_Insert,      selpaste,       {.i =  0} },
        { TERMMOD,              XK_Num_Lock,    numlock,        {.i =  0} },
@@ -12,7 +12,7 @@ index 546edda..ec1b576 100644
  
  /*
 diff --git a/st.c b/st.c
-index 3e48410..f8b6f67 100644
+index 0ce6ac2..641edc0 100644
 --- a/st.c
 +++ b/st.c
 @@ -35,6 +35,7 @@
@@ -54,7 +54,7 @@ index 3e48410..f8b6f67 100644
  static void tsetattr(int *, int);
  static void tsetchar(Rune, Glyph *, int, int);
  static void tsetdirt(int, int);
-@@ -414,10 +421,10 @@ tlinelen(int y)
+@@ -415,10 +422,10 @@ tlinelen(int y)
  {
        int i = term.col;
  
@@ -67,7 +67,7 @@ index 3e48410..f8b6f67 100644
                --i;
  
        return i;
-@@ -526,7 +533,7 @@ selsnap(int *x, int *y, int direction)
+@@ -527,7 +534,7 @@ selsnap(int *x, int *y, int direction)
                 * Snap around if the word wraps around at the end or
                 * beginning of a line.
                 */
@@ -76,7 +76,7 @@ index 3e48410..f8b6f67 100644
                prevdelim = ISDELIM(prevgp->u);
                for (;;) {
                        newx = *x + direction;
-@@ -541,14 +548,14 @@ selsnap(int *x, int *y, int direction)
+@@ -542,14 +549,14 @@ selsnap(int *x, int *y, int direction)
                                        yt = *y, xt = *x;
                                else
                                        yt = newy, xt = newx;
@@ -93,7 +93,7 @@ index 3e48410..f8b6f67 100644
                        delim = ISDELIM(gp->u);
                        if (!(gp->mode & ATTR_WDUMMY) && (delim != prevdelim
                                        || (delim && gp->u != prevgp->u)))
-@@ -569,14 +576,14 @@ selsnap(int *x, int *y, int direction)
+@@ -570,14 +577,14 @@ selsnap(int *x, int *y, int direction)
                *x = (direction < 0) ? 0 : term.col - 1;
                if (direction < 0) {
                        for (; *y > 0; *y += direction) {
@@ -110,7 +110,7 @@ index 3e48410..f8b6f67 100644
                                                & ATTR_WRAP)) {
                                        break;
                                }
-@@ -607,13 +614,13 @@ getsel(void)
+@@ -608,13 +615,13 @@ getsel(void)
                }
  
                if (sel.type == SEL_RECTANGULAR) {
@@ -127,7 +127,7 @@ index 3e48410..f8b6f67 100644
                while (last >= gp && last->u == ' ')
                        --last;
  
-@@ -836,6 +843,9 @@ void
+@@ -849,6 +856,9 @@ void
  ttywrite(const char *s, size_t n, int may_echo)
  {
        const char *next;
@@ -137,7 +137,7 @@ index 3e48410..f8b6f67 100644
  
        if (may_echo && IS_SET(MODE_ECHO))
                twrite(s, n, 1);
-@@ -1047,13 +1057,53 @@ tswapscreen(void)
+@@ -1060,13 +1070,53 @@ tswapscreen(void)
  }
  
  void
@@ -192,7 +192,7 @@ index 3e48410..f8b6f67 100644
        tsetdirt(orig, term.bot-n);
        tclearregion(0, term.bot-n+1, term.col-1, term.bot);
  
-@@ -1063,17 +1113,28 @@ tscrolldown(int orig, int n)
+@@ -1076,17 +1126,28 @@ tscrolldown(int orig, int n)
                term.line[i-n] = temp;
        }
  
@@ -223,7 +223,7 @@ index 3e48410..f8b6f67 100644
        tclearregion(0, orig, term.col-1, orig+n-1);
        tsetdirt(orig+n, term.bot);
  
-@@ -1083,7 +1144,8 @@ tscrollup(int orig, int n)
+@@ -1096,7 +1157,8 @@ tscrollup(int orig, int n)
                term.line[i+n] = temp;
        }
  
@@ -233,7 +233,7 @@ index 3e48410..f8b6f67 100644
  }
  
  void
-@@ -1122,7 +1184,7 @@ tnewline(int first_col)
+@@ -1135,7 +1197,7 @@ tnewline(int first_col)
        int y = term.c.y;
  
        if (y == term.bot) {
@@ -242,7 +242,7 @@ index 3e48410..f8b6f67 100644
        } else {
                y++;
        }
-@@ -1287,14 +1349,14 @@ void
+@@ -1300,14 +1362,14 @@ void
  tinsertblankline(int n)
  {
        if (BETWEEN(term.c.y, term.top, term.bot))
@@ -259,7 +259,7 @@ index 3e48410..f8b6f67 100644
  }
  
  int32_t
-@@ -1725,11 +1787,11 @@ csihandle(void)
+@@ -1738,11 +1800,11 @@ csihandle(void)
                break;
        case 'S': /* SU -- Scroll <n> line up */
                DEFAULT(csiescseq.arg[0], 1);
@@ -273,7 +273,7 @@ index 3e48410..f8b6f67 100644
                break;
        case 'L': /* IL -- Insert <n> blank lines */
                DEFAULT(csiescseq.arg[0], 1);
-@@ -2235,7 +2297,7 @@ eschandle(uchar ascii)
+@@ -2248,7 +2310,7 @@ eschandle(uchar ascii)
                return 0;
        case 'D': /* IND -- Linefeed */
                if (term.c.y == term.bot) {
@@ -282,7 +282,7 @@ index 3e48410..f8b6f67 100644
                } else {
                        tmoveto(term.c.x, term.c.y+1);
                }
-@@ -2248,7 +2310,7 @@ eschandle(uchar ascii)
+@@ -2261,7 +2323,7 @@ eschandle(uchar ascii)
                break;
        case 'M': /* RI -- Reverse index */
                if (term.c.y == term.top) {
@@ -291,7 +291,7 @@ index 3e48410..f8b6f67 100644
                } else {
                        tmoveto(term.c.x, term.c.y-1);
                }
-@@ -2469,7 +2531,7 @@ twrite(const char *buf, int buflen, int show_ctrl)
+@@ -2482,7 +2544,7 @@ twrite(const char *buf, int buflen, int show_ctrl)
  void
  tresize(int col, int row)
  {
@@ -300,7 +300,7 @@ index 3e48410..f8b6f67 100644
        int minrow = MIN(row, term.row);
        int mincol = MIN(col, term.col);
        int *bp;
-@@ -2506,6 +2568,14 @@ tresize(int col, int row)
+@@ -2519,6 +2581,14 @@ tresize(int col, int row)
        term.dirty = xrealloc(term.dirty, row * sizeof(*term.dirty));
        term.tabs = xrealloc(term.tabs, col * sizeof(*term.tabs));
  
@@ -315,7 +315,7 @@ index 3e48410..f8b6f67 100644
        /* resize each row to new width, zero-pad if needed */
        for (i = 0; i < minrow; i++) {
                term.line[i] = xrealloc(term.line[i], col * sizeof(Glyph));
-@@ -2563,7 +2633,7 @@ drawregion(int x1, int y1, int x2, int y2)
+@@ -2577,7 +2647,7 @@ drawregion(int x1, int y1, int x2, int y2)
                        continue;
  
                term.dirty[y] = 0;
@@ -324,7 +324,7 @@ index 3e48410..f8b6f67 100644
        }
  }
  
-@@ -2584,8 +2654,9 @@ draw(void)
+@@ -2598,8 +2668,9 @@ draw(void)
                cx--;
  
        drawregion(0, 0, term.col, term.row);
@@ -333,11 +333,11 @@ index 3e48410..f8b6f67 100644
 +      if (term.scr == 0)
 +              xdrawcursor(cx, term.c.y, term.line[term.c.y][cx],
 +                              term.ocx, term.ocy, 
term.line[term.ocy][term.ocx]);
-       term.ocx = cx, term.ocy = term.c.y;
+       term.ocx = cx;
+       term.ocy = term.c.y;
        xfinishdraw();
-       xximspot(term.ocx, term.ocy);
 diff --git a/st.h b/st.h
-index a1928ca..1332cf1 100644
+index d978458..b9a4eeb 100644
 --- a/st.h
 +++ b/st.h
 @@ -81,6 +81,8 @@ void die(const char *, ...);


Reply via email to