mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* editcmd.c (edit_replace_prompt): Fix menu location calculation.
This commit is contained in:
parent
2280df42a4
commit
bc9de7931f
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user