Ticket #2810 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] alt+h command input line not updated

Reported by: gvy Owned by:
Priority: minor Milestone: 4.8.4
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

This bugreport/patch is by arisu from opennet; my translation:

After selecting a command from command history (alt+h) the input line is not updated (the cursor moves but the command doesn't get redrawn).

--- original bits ---

  1. после выбора команды из истории (alt+h) не обновляется строка воода

команды (курсор смещается, команда не отрисовывается). патч:

diff --git a/lib/widget/input.c b/lib/widget/input.c
index 238718d..a6ea184 100644
--- a/lib/widget/input.c
+++ b/lib/widget/input.c
@@ -1188,6 +1188,7 @@ input_assign_text (WInput * in, const char *text)
     in->mark = 0;
     in->need_push = TRUE;
     in->charpoint = 0;
+    input_update (in, TRUE); /* "Есть еще такая болезнь -- склероз, -- сообщил он" */
 }
 
 /* --------------------------------------------------------------------------------------------- */

Change History

comment:1 Changed 4 years ago by andrew_b

  • Blocked By 2313 added

Already fixed in #2313.

comment:2 Changed 4 years ago by andrew_b

  • Blocked By 2313 removed

(In #2313) Merged to master: [d7a1af740ed28cf68a8f2148cc093cf39035a298].

git log --pretty=oneline 5583df3..d7a1af7

comment:3 Changed 4 years ago by andrew_b

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone Future Releases deleted

comment:4 Changed 4 years ago by andrew_b

  • Milestone set to 4.8.4
Note: See TracTickets for help on using tickets.