mirror of https://github.com/MidnightCommander/mc
Moved printwstr() from src/slint.c to edit/editdraw.c.
This commit is contained in:
parent
03759c8f34
commit
ad9acbde44
|
@ -1,6 +1,7 @@
|
|||
2005-09-05 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
* editcmd.c: Fixed some of the gcc warnings.
|
||||
* editdraw.c: Moved printwstr() from ../src/slint.c to here.
|
||||
|
||||
2005-08-19 David Martin <dmartina@excite.com>
|
||||
|
||||
|
|
|
@ -97,6 +97,13 @@ static void status_string (WEdit * edit, char *s, int w)
|
|||
byte_str);
|
||||
}
|
||||
|
||||
static inline void
|
||||
printwstr (const char *s, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
tty_printf ("%-*.*s", len, len, s);
|
||||
}
|
||||
|
||||
/* Draw the status line at the top of the widget. The size of the filename
|
||||
* field varies depending on the width of the screen and the length of
|
||||
* the filename. */
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* screen.c: Likewise.
|
||||
* main.h: Added const qualifier to the global prompt variable.
|
||||
* main.c: Likewise.
|
||||
* slint.c: Moved printwstr() to ../edit/editdraw.c.
|
||||
* tty.h: Likewise.
|
||||
|
||||
2005-09-04 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
|
|
@ -486,9 +486,3 @@ mc_refresh (void)
|
|||
#endif /* WITH_BACKGROUND */
|
||||
refresh ();
|
||||
}
|
||||
|
||||
extern void printwstr (const char *s, int len)
|
||||
{
|
||||
if (len > 0)
|
||||
printw("%-*.*s", len, len, s);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue