End exhorting status-bar messages with a period, to avoid

the impression that something is missing.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4596 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Benno Schulenberg 2014-02-23 10:12:50 +00:00
parent 4abf9449b4
commit e9ee078c10
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2014-02-23 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_undo, do_redo, add_undo) - Make warning
sentences in the status bar consistently end in a period.
2014-02-22 Benno Schulenberg <bensberg@justemail.net> 2014-02-22 Benno Schulenberg <bensberg@justemail.net>
* src/files.c (write_file) - Add a missing malloc. * src/files.c (write_file) - Add a missing malloc.
Reported by an anonymous cross compiler, bug #30671. Reported by an anonymous cross compiler, bug #30671.

View File

@ -452,7 +452,7 @@ void do_undo(void)
for (; f->next != NULL && f->lineno != u->lineno; f = f->next) for (; f->next != NULL && f->lineno != u->lineno; f = f->next)
; ;
if (f->lineno != u->lineno) { if (f->lineno != u->lineno) {
statusbar(_("Internal error: can't match line %d. Please save your work"), u->lineno); statusbar(_("Internal error: can't match line %d. Please save your work."), u->lineno);
return; return;
} }
#ifdef DEBUG #ifdef DEBUG
@ -554,7 +554,7 @@ void do_undo(void)
break; break;
default: default:
undidmsg = _("Internal error: unknown type. Please save your work"); undidmsg = _("Internal error: unknown type. Please save your work.");
break; break;
} }
@ -579,7 +579,7 @@ void do_redo(void)
return; return;
} }
if (u->next != openfile->current_undo) { if (u->next != openfile->current_undo) {
statusbar(_("Internal error: Redo setup failed. Please save your work")); statusbar(_("Internal error: cannot set up redo. Please save your work."));
return; return;
} }
@ -590,7 +590,7 @@ void do_redo(void)
for (; f->next != NULL && f->lineno != u->lineno; f = f->next) for (; f->next != NULL && f->lineno != u->lineno; f = f->next)
; ;
if (f->lineno != u->lineno) { if (f->lineno != u->lineno) {
statusbar(_("Internal error: can't match line %d. Please save your work"), u->lineno); statusbar(_("Internal error: can't match line %d. Please save your work."), u->lineno);
return; return;
} }
#ifdef DEBUG #ifdef DEBUG
@ -668,7 +668,7 @@ void do_redo(void)
openfile->placewewant = xplustabs(); openfile->placewewant = xplustabs();
break; break;
default: default:
undidmsg = _("Internal error: unknown type. Please save your work"); undidmsg = _("Internal error: unknown type. Please save your work.");
break; break;
} }
@ -943,7 +943,7 @@ void add_undo(undo_type current_action)
break; break;
case UNCUT: case UNCUT:
if (!last_cutu) if (!last_cutu)
statusbar(_("Internal error: can't setup uncut. Please save your work.")); statusbar(_("Internal error: cannot set up uncut. Please save your work."));
else if (last_cutu->type == CUT) { else if (last_cutu->type == CUT) {
u->cutbuffer = last_cutu->cutbuffer; u->cutbuffer = last_cutu->cutbuffer;
u->cutbottom = last_cutu->cutbottom; u->cutbottom = last_cutu->cutbottom;