* src/screen.c (show_dir): Surrond the current directory with spaces.

This commit is contained in:
Pavel Tsekov 2007-08-24 12:22:29 +00:00
parent 339a66dc2f
commit dd208753b6
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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);