mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-10 21:42:00 +03:00
* tty.h (printwstr): If LEN is not positive, ignore the request.
This commit is contained in:
parent
ff6e206b42
commit
ff3ca5ecb2
@ -35,6 +35,7 @@ void mc_refresh (void);
|
|||||||
/* print a string left-aligned, adjusted to exactly LEN characters */
|
/* print a string left-aligned, adjusted to exactly LEN characters */
|
||||||
static inline void printwstr (const char *s, int len)
|
static inline void printwstr (const char *s, int len)
|
||||||
{
|
{
|
||||||
|
if (len > 0)
|
||||||
printw("%-*.*s", len, len, s);
|
printw("%-*.*s", len, len, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user