a few last minor fixes to do_credits()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2374 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
4dc5838ccc
commit
631242dd96
|
@ -301,7 +301,7 @@ char *make_mbchar(int chr, int *chr_mb_len)
|
||||||
return chr_mb;
|
return chr_mb;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_NANORC
|
#if defined(ENABLE_NANORC) || defined(ENABLE_EXTRA)
|
||||||
/* Convert the string str to a valid multibyte string with the same wide
|
/* Convert the string str to a valid multibyte string with the same wide
|
||||||
* character values as str. Return the (dynamically allocated)
|
* character values as str. Return the (dynamically allocated)
|
||||||
* multibyte string. */
|
* multibyte string. */
|
||||||
|
|
|
@ -175,7 +175,7 @@ wchar_t control_wrep(wchar_t c);
|
||||||
int mbwidth(const char *c);
|
int mbwidth(const char *c);
|
||||||
int mb_cur_max(void);
|
int mb_cur_max(void);
|
||||||
char *make_mbchar(int chr, int *chr_mb_len);
|
char *make_mbchar(int chr, int *chr_mb_len);
|
||||||
#ifdef ENABLE_NANORC
|
#if defined(ENABLE_NANORC) || defined(ENABLE_EXTRA)
|
||||||
char *make_mbstring(const char *str);
|
char *make_mbstring(const char *str);
|
||||||
#endif
|
#endif
|
||||||
int parse_mbchar(const char *buf, char *chr, bool *bad_chr, size_t
|
int parse_mbchar(const char *buf, char *chr, bool *bad_chr, size_t
|
||||||
|
|
|
@ -4123,6 +4123,9 @@ void do_credits(void)
|
||||||
char *what;
|
char *what;
|
||||||
size_t start_x;
|
size_t start_x;
|
||||||
|
|
||||||
|
/* Make sure every credit is a valid multibyte string, since
|
||||||
|
* we can't dynamically set the credits to their multibyte
|
||||||
|
* equivalents when we need to. Sigh... */
|
||||||
if (credits[crpos] == NULL) {
|
if (credits[crpos] == NULL) {
|
||||||
assert(0 <= xlpos && xlpos < XLCREDIT_LEN);
|
assert(0 <= xlpos && xlpos < XLCREDIT_LEN);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue