* editcmd.c (edit_replace_prompt): Fix menu location calculation.

This commit is contained in:
Andrew V. Samoilov 2001-08-06 15:27:47 +00:00
parent 2280df42a4
commit bc9de7931f
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2001-08-06 Andrew V. Samoilov <kai@cmail.ru>
* editcmd.c (edit_replace_prompt): Fix menu location calculation.
2001-08-01 Pavel Roskin <proski@gnu.org>
* editcmd.c (edit_save_file): Temporarily disable safe save

View File

@ -1264,7 +1264,7 @@ int edit_replace_prompt (WEdit * edit, char *replace_text, int xpos, int ypos)
/* Sometimes menu can hide replaced text. I don't like it */
if ((edit->curs_row >= ypos) && (edit->curs_row <= ypos + CONFIRM_DLG_HEIGTH))
if ((edit->curs_row >= ypos - 1) && (edit->curs_row <= ypos + CONFIRM_DLG_HEIGTH - 1))
ypos -= CONFIRM_DLG_HEIGTH;
Quick_input.ypos = ypos;