diff --git a/src/winio.c b/src/winio.c
index fcb526611ffab6b4793ee62fbb008290e7802711..354d62ef8a466375d814478f3b4e4bb259627c06 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -1561,8 +1561,10 @@ bool get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
 	    i = COLS / ((currslen / 2) + (currslen % 2));
 
 	/* Calculate the y-coordinate relative to the beginning of
-	 * the shortcut list in bottomwin. */
-	j = *mouse_y - ((2 - no_more_space()) + 1) - editwinrows;
+	 * the shortcut list in bottomwin, i.e, with the sizes of
+	 * topwin, edit, and the first line of bottomwin subtracted
+	 * out. */
+	j = *mouse_y - (2 - no_more_space()) - editwinrows - 1;
 
 	/* If we're on the statusbar, beyond the end of the shortcut
 	 * list, or beyond the end of a shortcut on the right side of