mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
* src/screen.c (show_dir): Surrond the current directory with spaces.
This commit is contained in:
parent
339a66dc2f
commit
dd208753b6
@ -1,3 +1,7 @@
|
||||
2007-08-24 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* screen.c (show_dir): Surrond the current directory with spaces.
|
||||
|
||||
2007-08-24 Pavel Tsekov <ptsekov@gmx.net>
|
||||
|
||||
* screen.c (show_dir): Remove unneeded code.
|
||||
|
@ -787,14 +787,17 @@ show_dir (WPanel *panel)
|
||||
attrset (REVERSE_COLOR);
|
||||
|
||||
widget_move (&panel->widget, 0, 3);
|
||||
addch (' ');
|
||||
|
||||
tmp = g_malloc (panel->widget.cols + 1);
|
||||
tmp[panel->widget.cols] = '\0';
|
||||
|
||||
trim (strip_home_and_password (panel->cwd), tmp,
|
||||
max (panel->widget.cols - 7, 0));
|
||||
max (panel->widget.cols - 9, 0));
|
||||
addstr (tmp);
|
||||
g_free (tmp);
|
||||
|
||||
addch (' ');
|
||||
widget_move (&panel->widget, 0, 1);
|
||||
addstr ("<");
|
||||
widget_move (&panel->widget, 0, panel->widget.cols - 2);
|
||||
|
Loading…
Reference in New Issue
Block a user