+2009-12-22 Chris Allegretta <chrisa@asty.org>
+ * files.c (write_file): Fix compatibility with previous stat fix and tiny mode.
+
+2009-12-22 David Lawrence Ramsey <pooka109@gmail.com>
+ * global.c: Add new strings for forward/back in the file browser. New variables
+ nano_forwardfile_msg and nano_backfile_msg.
+
2009-12-20 Chris Allegretta <chrisa@asty.org>
* files.c (is_file_writable): remove assert check for f, since it's not
initialized at the time. Fixes Savannah bug 28309, reported by Zoltan Kovacs.
* one). */
realexists = (stat(realname, &st) != -1);
+#ifndef NANO_TINY
/* if we have not stat()d this file before (say, the user just
* specified it interactively), use the info we just got from
* stat()ing or else we will chase null pointers when we do
if(openfile->current_stat == NULL)
openfile->current_stat = &st;
-#ifndef NANO_TINY
/* We backup only if the backup toggle is set, the file isn't
* temporary, and the file already exists. Furthermore, if we
* aren't appending, prepending, or writing a selection, we backup
N_("Go to the first file in the list");
const char *nano_lastfile_msg =
N_("Go to the last file in the list");
+ const char *nano_forwardfile_msg = N_("Go to the next file in the list");
+ const char *nano_backfile_msg = N_("Go to the previous file in the list");
const char *nano_gotodir_msg = N_("Go to directory");
-
#endif
#endif /* !DISABLE_HELP */
#endif
- add_to_funcs(DO_RIGHT, (MMAIN|MBROWSER), N_("Forward"), IFSCHELP(nano_forward_msg),
+ add_to_funcs(DO_RIGHT, MMAIN, N_("Forward"), IFSCHELP(nano_forward_msg),
+ FALSE, VIEW);
+
+#ifndef DISABLE_BROWSER
+ add_to_funcs(DO_RIGHT, MBROWSER, N_("Forward"), IFSCHELP(nano_forwardfile_msg),
FALSE, VIEW);
+#endif
+
add_to_funcs(DO_RIGHT, MALL, "", "", FALSE, VIEW);
- add_to_funcs(DO_LEFT, (MMAIN|MBROWSER), N_("Back"), IFSCHELP(nano_back_msg),
+ add_to_funcs(DO_LEFT, MMAIN, N_("Back"), IFSCHELP(nano_back_msg),
FALSE, VIEW);
+
+#ifndef DISABLE_BROWSER
+ add_to_funcs(DO_LEFT, MBROWSER, N_("Back"), IFSCHELP(nano_backfile_msg),
+ FALSE, VIEW);
+#endif
+
add_to_funcs(DO_LEFT, MALL, "", "", FALSE, VIEW);
#ifndef NANO_TINY