aboutsummaryrefslogtreecommitdiff
path: root/src/uicmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/uicmd.cc')
-rw-r--r--src/uicmd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index b02a5746..6ca98280 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -1177,7 +1177,7 @@ void a_UIcmd_scroll(BrowserWindow *bw, int icmd)
};
KeysCommand_t keycmd = (KeysCommand_t)icmd;
- for (uint_t i = 0; i < (sizeof(map)/sizeof(mapping_t)); i++) {
+ for (uint_t i = 0; i < sizeof(map) / sizeof(map[0]); i++) {
if (keycmd == map[i].keys_cmd) {
layout->scroll(map[i].dw_cmd);
break;