]> git.pld-linux.org Git - packages/screen.git/commitdiff
- add %e to statusline. feature request 23955
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 26 Nov 2008 12:53:22 +0000 (12:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    screen-statusline-encoding.patch -> 1.1

screen-statusline-encoding.patch [new file with mode: 0644]

diff --git a/screen-statusline-encoding.patch b/screen-statusline-encoding.patch
new file mode 100644 (file)
index 0000000..560ce38
--- /dev/null
@@ -0,0 +1,33 @@
+https://savannah.gnu.org/bugs/index.php?23955
+
+--- process.c.orig     2008-05-08 02:37:33.000000000 +0800
++++ process.c  2008-05-08 02:37:49.000000000 +0800
+@@ -3422,6 +3422,7 @@
+           {
+             WinSwitchEncoding(fore, n);
+             ResetCharsets(fore);
++            RedisplayDisplays(0);
+           }
+         else if (i && display)
+           D_encoding  = n;
+--- screen.c.orig      2008-05-08 02:37:22.000000000 +0800
++++ screen.c   2008-05-20 20:34:37.000000000 +0800
+@@ -2584,6 +2584,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 '{':
+           {
+           char rbuf[128];
This page took 0.02513 seconds and 4 git commands to generate.