ref: 22f34a315b71fdeb2ac90b79f134e11b3052f07a
parent: 73e84e6709adc1774db6ca075dcdc625e7fa31fc
author: Julien Blanchard <[email protected]>
date: Wed Jan 13 09:27:45 EST 2021
Formatting
--- a/castor.c
+++ b/castor.c
@@ -739,19 +739,19 @@
m = plmenu(0, 0, menu3, PACKN|FILLX, menuhit);
root = plpopup(0, EXPAND, 0, 0, m);
- p = plgroup(root, PACKN|FILLX);
- statusp = pllabel(p, PACKN|FILLX, "castor9");
- plplacelabel(statusp, PLACEW);
- pllabel(p, PACKW, "Go: ");
- entryp = plentry(p, PACKN|FILLX, 0, "", entryhit);
- p = plgroup(root, PACKN|FILLX);
- sp= pllabel(p, PACKN|FILLX, "");
- plplacelabel(sp, PLACEW);
- p = plgroup(root, PACKN|EXPAND);
- ybar = plscrollbar(p, PACKW|USERFL);
- xbar = plscrollbar(p, IGNORE);
- textp = pltextview(p, PACKE|EXPAND, ZP, nil, nil);
- plscroll(textp, xbar, ybar);
+ p = plgroup(root, PACKN|FILLX);
+ statusp = pllabel(p, PACKN|FILLX, "castor9");
+ plplacelabel(statusp, PLACEW);
+ pllabel(p, PACKW, "Go: ");
+ entryp = plentry(p, PACKN|FILLX, 0, "", entryhit);
+ p = plgroup(root, PACKN|FILLX);
+ sp= pllabel(p, PACKN|FILLX, "");
+ plplacelabel(sp, PLACEW);
+ p = plgroup(root, PACKN|EXPAND);
+ ybar = plscrollbar(p, PACKW|USERFL);
+ xbar = plscrollbar(p, IGNORE);
+ textp = pltextview(p, PACKE|EXPAND, ZP, nil, nil);
+ plscroll(textp, xbar, ybar);
plgrabkb(entryp);
}
@@ -764,7 +764,8 @@
pldraw(root, screen);
}
-void scrolltext(int dy, int whence)
+void
+scrolltext(int dy, int whence)
{
Scroll s;