Ticket #2363: patch-mc-4.8.0

File patch-mc-4.8.0, 1.5 KB (added by sthibaul, 13 years ago)

patch updated to 4.8.0 (git)

Line 
1diff --git a/lib/widget/input.c b/lib/widget/input.c
2index 790254b..fc1b345 100644
3--- a/lib/widget/input.c
4+++ b/lib/widget/input.c
5@@ -1236,8 +1236,12 @@ input_update (WInput * in, gboolean clear_first)
6     if (!in->is_password)
7     {
8         if (!in->highlight)
9+        {
10             tty_print_string (str_term_substring (in->buffer, in->term_first_shown,
11                                                   in->field_width - has_history));
12+            widget_move (&in->widget, 0, str_term_width2 (in->buffer, in->point)
13+                         - in->term_first_shown);
14+        }
15         else
16         {
17             long m1, m2;
18diff --git a/src/filemanager/panel.c b/src/filemanager/panel.c
19index 3ee0a88..4b51050 100644
20--- a/src/filemanager/panel.c
21+++ b/src/filemanager/panel.c
22@@ -3004,6 +3004,8 @@ panel_callback (Widget * w, widget_msg_t msg, int parm)
23         paint_dir (panel);
24         mini_info_separator (panel);
25         display_mini_info (panel);
26+        widget_move(&panel->widget, (panel->selected - panel->top_file) %
27+                   llines (panel) + 2, 1);
28         panel->dirty = 0;
29         return MSG_HANDLED;
30 
31@@ -3636,8 +3638,8 @@ panel_new_with_dir (const char *panel_name, const char *wpath)
32     /* No know sizes of the panel at startup */
33     init_widget (&panel->widget, 0, 0, 0, 0, panel_callback, panel_event);
34 
35-    /* We do not want the cursor */
36-    widget_want_cursor (panel->widget, 0);
37+    /* We do want the cursor */
38+    widget_want_cursor (panel->widget, 1);
39 
40     if (wpath != NULL)
41     {