commit - 2dba87e581ae296a1f40ffae724d064843f08f52
commit + 5e44838137805dbfc330a3bc21507bc8faa2045b
blob - 48064be7c333b8febba5b5672d12f837b66fc0a1
blob + f777f013279e140033390d231381337ac844b643
--- mymenu.c
+++ mymenu.c
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
-#define EXPANDBITS(x) ((0xffff * x) / 0xff)
+#define EXPANDBITS(x) (((x & 0xf0) * 0x100) | (x & 0x0f) * 0x10)
/*
* If we don't have or we don't want an "ignore case" completion
ps1extents(&r);
xim_init(&r, &xdb);
-
- /* Draw the window for the first time */
- draw(&r, text, cs);
#ifdef __OpenBSD__
/* Now we need only the ability to write */
pledge("stdio", "");
#endif
+ /* Draw the window for the first time */
+ draw(&r, text, cs);
+
/* Main loop */
while (status == LOOPING || status == OK_LOOP) {
status = loop(&r, &text, &textlen, cs, lines, vlines);