1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/sysutils/screen/files/opt-showencoding
Cy Schubert 7f25cb0930 Fix optional patch.
Reported by:	ler
2017-01-18 20:28:04 +00:00

22 lines
475 B
Plaintext

--- screen.c.orig 2017-01-17 11:28:29.397404660 -0800
+++ screen.c 2017-01-18 12:24:40.855402000 -0800
@@ -2760,6 +2760,18 @@
}
p += strlen(p) - 1;
break;
+#ifdef ENCODINGS
+ case 'e':
+ *p = 0;
+ D_encoding = nwin_options.encoding > 0 ? nwin_options.encoding : 0;
+ if (win && win->w_encoding)
+ {
+ *p++ = ' ';
+ strcpy(p, EncodingName(win->w_encoding));
+ }
+ p += strlen(p) - 1;
+ break;
+#endif
case '{':
{