aboutsummaryrefslogtreecommitdiffstats
path: root/menu.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 16:46:32 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-20 16:46:32 +0000
commit8ba4eebc4a8e6b95e6cec4bc0e0884303e5c3fa3 (patch)
treeec658a012b39abe4c11a970b68c0bbcd5416ad1d /menu.c
parent* XMakefile (clean): rm tagtable.c (diff)
downloadw3m-8ba4eebc4a8e6b95e6cec4bc0e0884303e5c3fa3.tar.gz
w3m-8ba4eebc4a8e6b95e6cec4bc0e0884303e5c3fa3.zip
[w3m-dev 02454] line number
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index a05c574..f5ccaed 100644
--- a/menu.c
+++ b/menu.c
@@ -1219,7 +1219,7 @@ popupMenu(int x, int y, Menu *menu)
{
initSelectMenu();
- menu->cursorX = Currentbuf->cursorX;
+ menu->cursorX = Currentbuf->cursorX + Currentbuf->rootX;
menu->cursorY = Currentbuf->cursorY;
menu->x = x + FRAME_WIDTH + 1;
menu->y = y + 2;
@@ -1247,7 +1247,7 @@ mainMn(void)
return;
menu = w3mMenuList[n].menu;
}
- popupMenu(Currentbuf->cursorX, Currentbuf->cursorY, menu);
+ popupMenu(Currentbuf->cursorX + Currentbuf->rootX, Currentbuf->cursorY, menu);
}
/* --- MainMenu (END) --- */
@@ -1318,7 +1318,7 @@ initSelectMenu(void)
new_option_menu(&SelectMenu, label, &SelectV, smChBuf);
SelectMenu.initial = SelectV;
- SelectMenu.cursorX = Currentbuf->cursorX;
+ SelectMenu.cursorX = Currentbuf->cursorX + Currentbuf->rootX;
SelectMenu.cursorY = Currentbuf->cursorY;
SelectMenu.keymap['D'] = smDelBuf;
SelectMenu.item[nitem].type = MENU_NOP;