diff options
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/misc1.c b/src/misc1.c index e2efcfbe1..78caa2081 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -3196,14 +3196,12 @@ prompt_for_number(mouse_used) else MSG_PUTS(_("Choice number (<Enter> cancels): ")); - /* Set the state such that text can be selected/copied/pasted. */ + /* Set the state such that text can be selected/copied/pasted and we still + * get mouse events. */ save_cmdline_row = cmdline_row; - cmdline_row = Rows - 1; + cmdline_row = 0; save_State = State; - if (mouse_used == NULL) - State = CMDLINE; - else - State = NORMAL; + State = CMDLINE; i = get_number(TRUE, mouse_used); if (KeyTyped) |