+2008-08-21 Chris Allegretta <chrisa@asty.org>
+ * text.c: Change error messages where we may possibly get into a bad state and urge
+ the user to save when this happens. Originally by Benno Schulenberg <bensberg@justemail.net>
+
2008-08-08 Magnus Granberg <zorry@ume.nu> / Adam Conrad <?>
* files.c: (write_file): Add needed flags to open() calls when writing out files. Fixes Savannah bug
#23827: Compilation fails with -D_FORTIFY_SOURCE=2
for (; f->next != NULL && f->lineno != u->lineno; f = f->next)
;
if (f->lineno != u->lineno) {
- statusbar(_("Couldnt match current undo line"));
+ statusbar(_("Internal error: can't match line %d. Please save your work"), u->lineno);
return;
}
#ifdef DEBUG
f->data = data;
break;
default:
- undidmsg = _("wtf?");
+ undidmsg = _("Internal error: unknown type. Please save your work");
break;
}
return;
}
if (u->next != openfile->current_undo) {
- statusbar(_("Can't find previous undo to re-do, argh"));
+ statusbar(_("Internal error: Redo setup failed. Please save your work"));
return;
}
for (; f->next != NULL && f->lineno != u->lineno; f = f->next)
;
if (f->lineno != u->lineno) {
- statusbar(_("Couldnt match current undo line"));
+ statusbar(_("Internal error: can't match line %d. Please save your work"), u->lineno);
return;
}
#ifdef DEBUG
cutbottom = oldcutbottom;
break;
default:
- undidmsg = _("wtf?");
+ undidmsg = _("Internal error: unknown type. Please save your work");
break;
}
case UNCUT:
break;
case OTHER:
- statusbar(_("OOPS. Tried to add unknown thing to undo struct, I'd save your work"));
+ statusbar(_("Internal error: unknown type. Please save your work."));
break;
}