* src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
* doc/man/nanorc.5, doc/texinfo/nano.texi: Explain better what "all"
means when rebinding keys. This is a fix for Savannah bug #42552.
+ * src/nano.c (main): Make +1 and +,1 start on line one column one,
+ overriding a historical position. This fixes Savannah bug #42538.
2014-06-19 Benno Schulenberg <bensberg@justemail.net>
* src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
int main(int argc, char **argv)
{
int optchr;
- ssize_t startline = 1;
- /* Line to try and start at. */
- ssize_t startcol = 1;
- /* Column to try and start at. */
+ ssize_t startline = 0, startcol = 0;
+ /* Target line and column when specified on the command line. */
#ifndef DISABLE_WRAPJUSTIFY
bool fill_used = FALSE;
/* Was the fill option used? */
* new buffers. */
{
int i = optind + 1;
- ssize_t iline = 1, icol = 1;
+ ssize_t iline = 0, icol = 0;
for (; i < argc; i++) {
/* If there's a +LINE or +LINE,COLUMN flag here, it is
else {
open_buffer(argv[i], FALSE);
- if (iline > 1 || icol > 1) {
+ if (iline > 0 || icol > 0) {
do_gotolinecolumn(iline, icol, FALSE, FALSE, FALSE,
FALSE);
iline = 1;
precalc_multicolorinfo();
#endif
- if (startline > 1 || startcol > 1)
+ if (startline > 0 || startcol > 0)
do_gotolinecolumn(startline, startcol, FALSE, FALSE, FALSE,
FALSE);
#ifndef DISABLE_HISTORIES