qemacs-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-commit] qemacs shell.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs shell.c
Date: Thu, 17 Apr 2014 17:14:11 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/04/17 17:14:11

Modified files:
        .              : shell.c 

Log message:
        fix problems with shell buffers
        
        * create styles for existing buffers passed to new_shell_buffer
        * preserve unmodified status for read-only shell output buffers

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/shell.c?cvsroot=qemacs&r1=1.89&r2=1.90

Patches:
Index: shell.c
===================================================================
RCS file: /sources/qemacs/qemacs/shell.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -b -r1.89 -r1.90
--- shell.c     19 Mar 2014 19:42:31 -0000      1.89
+++ shell.c     17 Apr 2014 17:14:09 -0000      1.90
@@ -1264,8 +1264,11 @@
         for (i = 0; i < len; i++)
             tty_emulate(s, buf[i]);
 
+        if (save_readonly) {
+            s->b->modified = 0;
         s->b->flags |= save_readonly;
     }
+    }
     /* now we do some refresh */
     edit_display(qs);
     dpy_flush(qs->screen);
@@ -1394,6 +1397,8 @@
         s = b->priv_data;
         if (s && s->signature != &shell_signature)
             return NULL;
+        if (shell_flags & SF_COLOR)
+            eb_create_style_buffer(b, BF_STYLE2);
     } else {
         int bf_flags = BF_SAVELOG;
         if (shell_flags & SF_COLOR)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]