ref: 88f86918bfca1935c07eee7f84d98e32ccc2f593
parent: f749a33c5eeb67b19305085feebfe35b0ccaffd0
author: Ben Harris <bjh21@bjh21.me.uk>
date: Sat Jun 24 14:37:58 EDT 2023
Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Flip
--- a/flip.c
+++ b/flip.c
@@ -950,7 +950,7 @@
int x, int y, int button)
{
int w = state->w, h = state->h, wh = w * h;
- char buf[80], *nullret = NULL;
+ char buf[80], *nullret = MOVE_UNUSED;
if (button == LEFT_BUTTON || IS_CURSOR_SELECT(button)) {
int tx, ty;
@@ -979,7 +979,7 @@
sprintf(buf, "M%d,%d", tx, ty);
return dupstr(buf);
} else {
- return NULL;
+ return MOVE_NO_EFFECT;
}
}
}