antiright-devel
[Top][All Lists]
Advanced

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

[Antiright-devel] antiright/src/arshell file.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/src/arshell file.c
Date: Tue, 22 Feb 2005 23:24:31 -0500

CVSROOT:        /cvsroot/antiright
Module name:    antiright
Branch:         
Changes by:     Jeffrey Bedard <address@hidden> 05/02/23 04:24:31

Modified files:
        src/arshell    : file.c 

Log message:
        Fixed an overwrite bug, though making MDI slightly lossy.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/file.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text

Patches:
Index: antiright/src/arshell/file.c
diff -u antiright/src/arshell/file.c:1.6 antiright/src/arshell/file.c:1.7
--- antiright/src/arshell/file.c:1.6    Sat Feb 12 17:57:42 2005
+++ antiright/src/arshell/file.c        Wed Feb 23 04:24:31 2005
@@ -56,6 +56,7 @@
 { 
   char *command_string;
   char *buffer;
+  antiright_get_file_type(arshell.edit.filename);
   asprintf(&command_string, "cat %s", arshell.edit.filename);
   buffer=antiright_pipe_read(command_string);
   free(command_string);
@@ -83,17 +84,17 @@
   XmFileSelectionBoxCallbackStruct *call_pointer=call_data;
   char *c_string;
 
-  if(arshell.flags.file_open)
+  /*  if(arshell.flags.file_open)
     { 
       arshell_save_work_area();
-    }
+      }*/
 
   c_string=antiright_c_string(call_pointer->value);
   strncpy(arshell.edit.filename, c_string, ARSHELL_MAX_STRLEN);
   XtFree(c_string);
   XtDestroyWidget(widget);
 
-  if(arshell.flags.saving)
+  if(arshell.flags.saving && !arshell.flags.opening)
     {
       arshell.flags.file_open=True;
       arshell_save_work_area();
@@ -101,9 +102,9 @@
     }
 
   if(arshell.flags.opening)
-    { 
-      arshell.flags.file_open=True;
+    {
       arshell_open_file();
+      arshell.flags.file_open=True;
       arshell.flags.opening=False;
     }
 




reply via email to

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