bl791/IFDB / infocom /interpreters /nitfol /undo_redo.patch
bl791's picture
download
raw
1.4 kB
*** z_io.c.old Mon Nov 1 08:56:06 1999
--- z_io.c Mon Nov 1 08:58:15 1999
***************
*** 900,912 ****
length = n_read(text + 1, maxlen, operand[1], 0,
operand[2], operand[3], &term);
! if(!read_abort)
LOBYTEwrite(text + 1 + length, 0); /* zero terminator */
! if(allow_saveundo) {
! if(!has_done_save_undo && auto_save_undo)
! saveundo(FALSE);
! has_done_save_undo = FALSE;
}
}
--- 900,913 ----
length = n_read(text + 1, maxlen, operand[1], 0,
operand[2], operand[3], &term);
! if(!read_abort) {
LOBYTEwrite(text + 1 + length, 0); /* zero terminator */
! if(allow_saveundo) {
! if(!has_done_save_undo && auto_save_undo)
! saveundo(FALSE);
! has_done_save_undo = FALSE;
! }
}
}
***************
*** 928,940 ****
if(!read_abort) {
LOBYTEwrite(text + 1, length);
mop_store_result(term);
}
-
- if(allow_saveundo) {
- if(!has_done_save_undo && auto_save_undo)
- saveundo(FALSE);
- has_done_save_undo = FALSE;
- }
}
void op_read_char(void)
--- 929,941 ----
if(!read_abort) {
LOBYTEwrite(text + 1, length);
mop_store_result(term);
+
+ if(allow_saveundo) {
+ if(!has_done_save_undo && auto_save_undo)
+ saveundo(FALSE);
+ has_done_save_undo = FALSE;
+ }
}
}
void op_read_char(void)

Xet Storage Details

Size:
1.4 kB
·
Xet hash:
d4bebace35df21a832a02aedbedf4e94c3551cc1a0ef19827f0a50fe93cb81a4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.