summaryrefslogtreecommitdiff
path: root/recipes/mc/mc-4.6.2/mc-utf8-nlink.patch
blob: 9e361630c415a9ce86a4a6b0719ddc29f4c80c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- mc-4.6.2/src/screen.c
+++ mc-4.6.2/src/screen.c
@@ -671,7 +671,7 @@
 			SLsmg_write_nwchars (((wchar_t *) buffer)
 					     + txtlen - n2, n2);
 		    } else
-			SLsmg_write_nwchars ((wchar_t *) buffer, len);
+			SLsmg_write_nwchars ((wchar_t *) buffer + still, len);
 		} else {
 		    printw ("%*s", still, "");
 		    SLsmg_write_nwchars ((wchar_t *) buffer, txtlen);