Ticket #82: add_write.diff

File add_write.diff, 360 bytes (added by IMDagger, 15 years ago)
  • edit/editcmd.c

    diff --git a/edit/editcmd.c b/edit/editcmd.c
    index 08578dc..8c9821b 100644
    a b edit_save_as_cmd (WEdit *edit) 
    497497                    save_lock = edit_lock_file (exp); 
    498498            } 
    499499 
     500            if (different_filename) 
     501                edit->stat1.st_mode |= S_IWRITE; 
     502 
    500503            rv = edit_save_file (edit, exp); 
    501504            switch (rv) { 
    502505            case 1: