1 | diff -urp mc-4.7.0.9/src/screen.c mc-4.7.0.9-mine/src/screen.c |
---|
2 | --- mc-4.7.0.9/src/screen.c 2010-09-07 08:53:08.000000000 +0200 |
---|
3 | +++ mc-4.7.0.9-mine/src/screen.c 2011-08-23 01:40:34.164204935 +0200 |
---|
4 | @@ -1047,6 +1047,9 @@ paint_panel (WPanel * panel) |
---|
5 | paint_dir (panel); |
---|
6 | mini_info_separator (panel); |
---|
7 | display_mini_info (panel); |
---|
8 | + widget_move(&panel->widget, (panel->selected - panel->top_file) % |
---|
9 | + llines (panel) + 2, 1); |
---|
10 | + |
---|
11 | panel->dirty = 0; |
---|
12 | } |
---|
13 | |
---|
14 | @@ -1325,8 +1328,8 @@ panel_new_with_dir (const char *panel_na |
---|
15 | /* No know sizes of the panel at startup */ |
---|
16 | init_widget (&panel->widget, 0, 0, 0, 0, panel_callback, panel_event); |
---|
17 | |
---|
18 | - /* We do not want the cursor */ |
---|
19 | - widget_want_cursor (panel->widget, 0); |
---|
20 | + /* We do want the cursor */ |
---|
21 | + widget_want_cursor (panel->widget, 1); |
---|
22 | |
---|
23 | if (wpath) |
---|
24 | { |
---|
25 | diff -urp mc-4.7.0.9/src/widget.c mc-4.7.0.9-mine/src/widget.c |
---|
26 | --- mc-4.7.0.9/src/widget.c 2010-09-07 08:53:08.000000000 +0200 |
---|
27 | +++ mc-4.7.0.9-mine/src/widget.c 2011-08-23 01:38:54.019646895 +0200 |
---|
28 | @@ -956,6 +956,8 @@ update_input (WInput *in, int clear_firs |
---|
29 | if (!in->is_password) { |
---|
30 | tty_print_string (str_term_substring (in->buffer, in->term_first_shown, |
---|
31 | in->field_width - has_history)); |
---|
32 | + widget_move (&in->widget, 0, str_term_width2 (in->buffer, in->point) |
---|
33 | + - in->term_first_shown); |
---|
34 | } else { |
---|
35 | cp = in->buffer; |
---|
36 | for (i = -in->term_first_shown; i < in->field_width - has_history; i++){ |
---|