Commit c0181c95 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

cosmetic fix

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3104 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 6 additions and 3 deletions
+6 -3
...@@ -78,7 +78,8 @@ CVS code - ...@@ -78,7 +78,8 @@ CVS code -
- If wcwidth() returns -1 for the character passed in, treat the - If wcwidth() returns -1 for the character passed in, treat the
character as having the width of Unicode U+FFFD (Replacement character as having the width of Unicode U+FFFD (Replacement
Character) instead of having zero width, since there are Character) instead of having zero width, since there are
display problems that crop up with the latter approach. (DLR) display problems that sometimes crop up with the latter
approach. (DLR)
- files.c: - files.c:
read_file() read_file()
- Remove apparently unneeded logic to handle a case where - Remove apparently unneeded logic to handle a case where
......
...@@ -299,8 +299,10 @@ int mbwidth(const char *c) ...@@ -299,8 +299,10 @@ int mbwidth(const char *c)
width = wcwidth(wc); width = wcwidth(wc);
if (width == -1) if (width == -1) {
width = wcwidth(bad_wchar); wc = bad_wchar;
width = wcwidth(wc);
}
return width; return width;
} else } else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment