Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix togglestats array - surf - surf browser, a WebKit based browser
git clone git://git.suckless.org/surf
Log
Files
Refs
README
LICENSE
---
commit 761ea9e4c6c4d8aba4a4d39da9c9b4db8ac471b1
parent bcd7d74e613fb8af11b40c351f0a6c1a771b2d2b
Author: Quentin Rameau <[email protected]>
Date: Fri, 21 May 2021 00:16:17 +0200
Fix togglestats array
Diffstat:
M surf.c | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/surf.c b/surf.c
@@ -240,7 +240,7 @@ static void clicknewwindow(Client *c, const Arg *a, WebKitH…
static void clickexternplayer(Client *c, const Arg *a, WebKitHitTestResult *h);
static char winid[64];
-static char togglestats[12];
+static char togglestats[11];
static char pagestats[2];
static Atom atoms[AtomLast];
static Window embed;
@@ -668,11 +668,10 @@ gettogglestats(Client *c)
togglestats[3] = curconfig[DiskCache].val.i ? 'D' : 'd';
togglestats[4] = curconfig[LoadImages].val.i ? 'I' : 'i';
togglestats[5] = curconfig[JavaScript].val.i ? 'S' : 's';
- togglestats[7] = curconfig[Style].val.i ? 'M' : 'm';
- togglestats[8] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
- togglestats[9] = curconfig[Certificate].val.i ? 'X' : 'x';
- togglestats[10] = curconfig[StrictTLS].val.i ? 'T' : 't';
- togglestats[11] = '\0';
+ togglestats[6] = curconfig[Style].val.i ? 'M' : 'm';
+ togglestats[7] = curconfig[FrameFlattening].val.i ? 'F' : 'f';
+ togglestats[8] = curconfig[Certificate].val.i ? 'X' : 'x';
+ togglestats[9] = curconfig[StrictTLS].val.i ? 'T' : 't';
}
void
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.