]> git.wh0rd.org Git - nano.git/log
nano.git
8 years agoGuiding the translators a little bit.
Benno Schulenberg [Fri, 5 Feb 2016 12:27:54 +0000 (12:27 +0000)]
Guiding the translators a little bit.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5607 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPutting four strings in the standard order: first backward, then forward.
Benno Schulenberg [Fri, 5 Feb 2016 12:01:02 +0000 (12:01 +0000)]
Putting four strings in the standard order: first backward, then forward.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5606 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCondensing the descriptions of command-key sequences and of the screen layout;
Benno Schulenberg [Fri, 5 Feb 2016 11:55:55 +0000 (11:55 +0000)]
Condensing the descriptions of command-key sequences and of the screen layout;
mentioning how to enter Unicode and that regular expressions are line oriented.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5605 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking Home go always fully home.
Benno Schulenberg [Sun, 31 Jan 2016 13:26:15 +0000 (13:26 +0000)]
Making Home go always fully home.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5604 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoShowing ^^ and M-^ as valid key names.
Benno Schulenberg [Sun, 31 Jan 2016 13:20:40 +0000 (13:20 +0000)]
Showing ^^ and M-^ as valid key names.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5603 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoBeing more specific in how a given path is invalid.
Benno Schulenberg [Sun, 31 Jan 2016 13:06:06 +0000 (13:06 +0000)]
Being more specific in how a given path is invalid.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5602 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUpdating position history only when 'positionlog' is set.
Benno Schulenberg [Fri, 29 Jan 2016 20:43:54 +0000 (20:43 +0000)]
Updating position history only when 'positionlog' is set.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5601 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPlugging another memory leak.
Benno Schulenberg [Fri, 29 Jan 2016 20:39:12 +0000 (20:39 +0000)]
Plugging another memory leak.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5600 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChecking the position history only when 'positionlog' is set
Benno Schulenberg [Fri, 29 Jan 2016 17:18:27 +0000 (17:18 +0000)]
Checking the position history only when 'positionlog' is set
/also/ for the first file.  :|

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5599 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPlugging a couple of memory leaks.
Benno Schulenberg [Fri, 29 Jan 2016 16:58:02 +0000 (16:58 +0000)]
Plugging a couple of memory leaks.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5598 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChecking the position history only when option 'positionlog' is set.
Benno Schulenberg [Fri, 29 Jan 2016 16:20:28 +0000 (16:20 +0000)]
Checking the position history only when option 'positionlog' is set.
This fixes a bug reported by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5597 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAlso displaying the buffer when configured with only --disable-histories.
Benno Schulenberg [Fri, 29 Jan 2016 16:01:43 +0000 (16:01 +0000)]
Also displaying the buffer when configured with only --disable-histories.
This fixes a segfault reported in Savannah bug #47011.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5596 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoUsing a simpler algorithm for jumping to the next word.
Benno Schulenberg [Tue, 26 Jan 2016 10:31:16 +0000 (10:31 +0000)]
Using a simpler algorithm for jumping to the next word.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5595 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoJumping to the start of the current word, not to that of the preceding one.
Benno Schulenberg [Tue, 26 Jan 2016 10:10:20 +0000 (10:10 +0000)]
Jumping to the start of the current word, not to that of the preceding one.
This fixes Savannah bug #46970.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5594 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting some indentation and some line wrapping.
Benno Schulenberg [Tue, 26 Jan 2016 09:16:09 +0000 (09:16 +0000)]
Adjusting some indentation and some line wrapping.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5593 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot adding directories to the list of file positions.
Benno Schulenberg [Tue, 26 Jan 2016 09:06:31 +0000 (09:06 +0000)]
Not adding directories to the list of file positions.
This fixes Savannah bug #46971.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5592 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMentioning that the position history is limited to the 200 most recent files.
Benno Schulenberg [Mon, 25 Jan 2016 20:51:00 +0000 (20:51 +0000)]
Mentioning that the position history is limited to the 200 most recent files.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5591 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDocumenting the --enable-altrcname configure option.
Benno Schulenberg [Mon, 25 Jan 2016 20:38:10 +0000 (20:38 +0000)]
Documenting the --enable-altrcname configure option.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5590 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoHandling an update of the first element correctly.
Benno Schulenberg [Mon, 25 Jan 2016 20:26:01 +0000 (20:26 +0000)]
Handling an update of the first element correctly.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5589 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEliding another small function that is used only once.
Benno Schulenberg [Sun, 24 Jan 2016 21:02:09 +0000 (21:02 +0000)]
Eliding another small function that is used only once.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5588 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEliding an unneeded function.
Benno Schulenberg [Sun, 24 Jan 2016 20:44:39 +0000 (20:44 +0000)]
Eliding an unneeded function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5587 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoBundling four statements (that in total occur seven times)
Benno Schulenberg [Sun, 24 Jan 2016 20:36:02 +0000 (20:36 +0000)]
Bundling four statements (that in total occur seven times)
into a separate function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5586 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRemoving a superfluous free.
Benno Schulenberg [Sun, 24 Jan 2016 16:04:25 +0000 (16:04 +0000)]
Removing a superfluous free.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5585 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChopping an always-FALSE parameter and deleting an unused return value.
Benno Schulenberg [Sun, 24 Jan 2016 15:42:45 +0000 (15:42 +0000)]
Chopping an always-FALSE parameter and deleting an unused return value.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5584 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCondensing the code by removing a triplication.
Benno Schulenberg [Sun, 24 Jan 2016 15:32:13 +0000 (15:32 +0000)]
Condensing the code by removing a triplication.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5583 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMoving an updated position-history item to the end of the list,
Benno Schulenberg [Sun, 24 Jan 2016 14:49:42 +0000 (14:49 +0000)]
Moving an updated position-history item to the end of the list,
so that it won't be dropped any time soon.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5582 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRenaming a variable for clarity and contrast.
Benno Schulenberg [Fri, 22 Jan 2016 16:56:04 +0000 (16:56 +0000)]
Renaming a variable for clarity and contrast.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5581 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot using $HOME when we're root, because some sudos don't filter it out
Benno Schulenberg [Fri, 22 Jan 2016 16:10:36 +0000 (16:10 +0000)]
Not using $HOME when we're root, because some sudos don't filter it out
of the environment (which can lead to a root-owned .nano/ directory in
the invoking user's home directory).  This addresses Ubuntu bug #1471459.
(See https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1471459.)

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5580 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting the unneeded blanking of a variable.
Benno Schulenberg [Thu, 21 Jan 2016 20:44:22 +0000 (20:44 +0000)]
Deleting the unneeded blanking of a variable.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5579 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEliding an unneeded variable.
Benno Schulenberg [Thu, 21 Jan 2016 18:29:39 +0000 (18:29 +0000)]
Eliding an unneeded variable.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5578 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRemoving a now unneeded function, as nothing can break out of do_prompt()
Benno Schulenberg [Thu, 21 Jan 2016 18:23:17 +0000 (18:23 +0000)]
Removing a now unneeded function, as nothing can break out of do_prompt()
any more, not a SIGWINCH either.  And deleting an always-FALSE 'if'.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5577 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPreserving the cursor position on the statusbar when just toggling
Benno Schulenberg [Thu, 21 Jan 2016 17:29:37 +0000 (17:29 +0000)]
Preserving the cursor position on the statusbar when just toggling
a setting or making an excursion to the file browser.
This fixes Savannah bug #46945.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5576 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding to the Changelog the remark that Savannah bug #44950 is now fixed.
Benno Schulenberg [Wed, 20 Jan 2016 16:17:21 +0000 (16:17 +0000)]
Adding to the Changelog the remark that Savannah bug #44950 is now fixed.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5575 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGetting rid of a global variable.
Benno Schulenberg [Wed, 20 Jan 2016 15:56:40 +0000 (15:56 +0000)]
Getting rid of a global variable.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5574 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoReadjusting the indentation and a comment.
Benno Schulenberg [Wed, 20 Jan 2016 15:33:41 +0000 (15:33 +0000)]
Readjusting the indentation and a comment.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5573 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoVerifying that the containing directory of the given filename exists.
Benno Schulenberg [Wed, 20 Jan 2016 15:14:52 +0000 (15:14 +0000)]
Verifying that the containing directory of the given filename exists.
Original patch by Rishabh Dave, edited by Benno.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5572 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoLimiting the number of loaded items in the positions history.
Benno Schulenberg [Sun, 17 Jan 2016 17:04:28 +0000 (17:04 +0000)]
Limiting the number of loaded items in the positions history.
(So that most likely not more than two hundred plus a handful
will be written out.  This was the easiest to implement.)

See https://lists.gnu.org/archive/html/nano-devel/2016-01/msg00050.html.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5571 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRemoving a mistaken '+': only one menu name is allowed in key bindings.
Benno Schulenberg [Sun, 17 Jan 2016 16:47:20 +0000 (16:47 +0000)]
Removing a mistaken '+': only one menu name is allowed in key bindings.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5570 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFixing a typo in an #ifndef symbol. Reported by Frank.
Benno Schulenberg [Sun, 17 Jan 2016 16:25:31 +0000 (16:25 +0000)]
Fixing a typo in an #ifndef symbol.  Reported by Frank.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5569 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAllowing inline comments with key bindings.
Benno Schulenberg [Sun, 17 Jan 2016 16:15:08 +0000 (16:15 +0000)]
Allowing inline comments with key bindings.
Patch by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5568 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFreeing the items on the undo stack when a buffer is closed.
Benno Schulenberg [Fri, 15 Jan 2016 16:44:50 +0000 (16:44 +0000)]
Freeing the items on the undo stack when a buffer is closed.
This fixes Savannah bug #46904 reported by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5567 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMoving set_modified() to the file that has to do with files.
Benno Schulenberg [Fri, 15 Jan 2016 14:42:07 +0000 (14:42 +0000)]
Moving set_modified() to the file that has to do with files.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5566 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoReturning a fantastic file descriptor -- when opening
Benno Schulenberg [Fri, 15 Jan 2016 14:23:50 +0000 (14:23 +0000)]
Returning a fantastic file descriptor -- when opening
a non-existent file for reading succeeds.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5565 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPlugging another memory leak.
Benno Schulenberg [Fri, 15 Jan 2016 13:27:12 +0000 (13:27 +0000)]
Plugging another memory leak.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5564 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFreeing the full filename in all cases.
Benno Schulenberg [Fri, 15 Jan 2016 13:17:44 +0000 (13:17 +0000)]
Freeing the full filename in all cases.

There's a bunch of return cases where we don't free the new full filename
which leads to leaks when writing out new files.  One way to reproduce:
$ rm -f foo
$ nano foo
<hit enter>
<ctrl+o to save>
<ctrl+x to exit>
-> memory leak

Patch by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5563 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoShowing a key only when it was rebound.
Benno Schulenberg [Thu, 14 Jan 2016 14:44:11 +0000 (14:44 +0000)]
Showing a key only when it was rebound.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5562 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEliding an unneeded function.
Benno Schulenberg [Thu, 14 Jan 2016 14:34:05 +0000 (14:34 +0000)]
Eliding an unneeded function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5561 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting two duplicate declarations.
Benno Schulenberg [Thu, 14 Jan 2016 13:52:39 +0000 (13:52 +0000)]
Deleting two duplicate declarations.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5560 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoEliding an unneeded variable and adjusting some wrappings and whitespace.
Benno Schulenberg [Thu, 14 Jan 2016 13:41:45 +0000 (13:41 +0000)]
Eliding an unneeded variable and adjusting some wrappings and whitespace.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5559 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting an 'if' that is always FALSE.
Benno Schulenberg [Thu, 14 Jan 2016 13:27:22 +0000 (13:27 +0000)]
Deleting an 'if' that is always FALSE.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5558 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRemoving a reference to an obsolete file.
Benno Schulenberg [Thu, 14 Jan 2016 13:14:16 +0000 (13:14 +0000)]
Removing a reference to an obsolete file.
Bug was reported by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5557 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting a few comments and rewrapping some lines.
Benno Schulenberg [Wed, 13 Jan 2016 20:32:40 +0000 (20:32 +0000)]
Adjusting a few comments and rewrapping some lines.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5556 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoReducing the number of indentation steps elsewhere too.
Benno Schulenberg [Wed, 13 Jan 2016 20:08:36 +0000 (20:08 +0000)]
Reducing the number of indentation steps elsewhere too.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5555 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoReducing the number of indentation steps.
Benno Schulenberg [Tue, 12 Jan 2016 20:26:59 +0000 (20:26 +0000)]
Reducing the number of indentation steps.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5554 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCondensing the preparsing of a line.
Benno Schulenberg [Tue, 12 Jan 2016 20:17:05 +0000 (20:17 +0000)]
Condensing the preparsing of a line.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5553 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRemoving a senseless iteration: simply add the new record at the tail.
Benno Schulenberg [Tue, 12 Jan 2016 20:08:31 +0000 (20:08 +0000)]
Removing a senseless iteration: simply add the new record at the tail.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5552 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDifferentiating a variable name from function names.
Benno Schulenberg [Tue, 12 Jan 2016 19:20:40 +0000 (19:20 +0000)]
Differentiating a variable name from function names.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5551 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRemoving some code duplication.
Benno Schulenberg [Tue, 12 Jan 2016 19:07:01 +0000 (19:07 +0000)]
Removing some code duplication.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5550 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRename a variable, to match the save routine.
Benno Schulenberg [Tue, 12 Jan 2016 11:16:39 +0000 (11:16 +0000)]
Rename a variable, to match the save routine.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5549 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFixing some typos and whitespace, and normalizing the dates in the NEWS file.
Benno Schulenberg [Tue, 12 Jan 2016 11:03:00 +0000 (11:03 +0000)]
Fixing some typos and whitespace, and normalizing the dates in the NEWS file.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5548 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoFixing the 2.5.1 tag in the Changelog.
Benno Schulenberg [Tue, 12 Jan 2016 10:23:38 +0000 (10:23 +0000)]
Fixing the 2.5.1 tag in the Changelog.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5547 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoBack to SVN
Chris Allegretta [Mon, 11 Jan 2016 05:11:30 +0000 (05:11 +0000)]
Back to SVN

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5546 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGNU nano 2.5.1 release v2.5.1
Chris Allegretta [Mon, 11 Jan 2016 05:05:01 +0000 (05:05 +0000)]
GNU nano 2.5.1 release

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5544 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoForward date 2.5.1 up to the 11th since I didnt get to it before Midnight.
Chris Allegretta [Mon, 11 Jan 2016 05:03:20 +0000 (05:03 +0000)]
Forward date 2.5.1 up to the 11th since I didnt get to it before Midnight.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5543 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting dates and version number.
Benno Schulenberg [Sun, 10 Jan 2016 16:18:43 +0000 (16:18 +0000)]
Adjusting dates and version number.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5542 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding a news item for the upcoming 2.5.1.
Benno Schulenberg [Sun, 10 Jan 2016 16:10:57 +0000 (16:10 +0000)]
Adding a news item for the upcoming 2.5.1.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5541 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoSnipping inconsistent blank lines in the Changelog.
Benno Schulenberg [Sat, 9 Jan 2016 21:10:39 +0000 (21:10 +0000)]
Snipping inconsistent blank lines in the Changelog.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5540 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot going beyond the number of available rows in the edit window.
Benno Schulenberg [Sat, 9 Jan 2016 20:21:29 +0000 (20:21 +0000)]
Not going beyond the number of available rows in the edit window.
This fixes Savannah bug #42188.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5539 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking sure to keep advancing also when regex matches are zero-length.
Benno Schulenberg [Sat, 9 Jan 2016 18:41:56 +0000 (18:41 +0000)]
Making sure to keep advancing also when regex matches are zero-length.
This fixes Savannah bug #26977 -- a hang on start="^" end="$".

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5538 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding a comment and using a symbolic value.
Benno Schulenberg [Thu, 7 Jan 2016 15:42:44 +0000 (15:42 +0000)]
Adding a comment and using a symbolic value.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDelete two unneeded #ifdefs -- better fail to compile than create a cripple.
Benno Schulenberg [Thu, 7 Jan 2016 15:21:59 +0000 (15:21 +0000)]
Delete two unneeded #ifdefs -- better fail to compile than create a cripple.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5536 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoMaking "Tab" produce the appropriate keycode.
Benno Schulenberg [Mon, 4 Jan 2016 19:42:37 +0000 (19:42 +0000)]
Making "Tab" produce the appropriate keycode.
This fixes Savannah bug #46812.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5535 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGettextizing a forgotten string.
Benno Schulenberg [Mon, 4 Jan 2016 11:10:07 +0000 (11:10 +0000)]
Gettextizing a forgotten string.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5534 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdding "Tab" as a key description, just like "Del" and "Enter" already are.
Benno Schulenberg [Mon, 4 Jan 2016 10:50:21 +0000 (10:50 +0000)]
Adding "Tab" as a key description, just like "Del" and "Enter" already are.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5533 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoImproving the name of allow_pending_sigwinch() to allow_sigwinch(),
Benno Schulenberg [Mon, 4 Jan 2016 10:37:11 +0000 (10:37 +0000)]
Improving the name of allow_pending_sigwinch() to allow_sigwinch(),
and improving its comments too.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5532 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCondensing the exit code of do_linter().
Benno Schulenberg [Mon, 4 Jan 2016 10:05:52 +0000 (10:05 +0000)]
Condensing the exit code of do_linter().

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5531 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRewriting the loop, and constifying the input of sctofunc().
Benno Schulenberg [Mon, 4 Jan 2016 09:52:43 +0000 (09:52 +0000)]
Rewriting the loop, and constifying the input of sctofunc().

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5530 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNo longer freeing any existing functions -- they are defined only once.
Benno Schulenberg [Mon, 4 Jan 2016 09:44:35 +0000 (09:44 +0000)]
No longer freeing any existing functions -- they are defined only once.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5529 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoConstifying the input parameter of strtosc() and strtomenu().
Benno Schulenberg [Mon, 4 Jan 2016 09:12:21 +0000 (09:12 +0000)]
Constifying the input parameter of strtosc() and strtomenu().
Patch by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5528 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAdjusting the indentation after the previous change.
Benno Schulenberg [Sun, 3 Jan 2016 17:37:05 +0000 (17:37 +0000)]
Adjusting the indentation after the previous change.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5527 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAlerting the user when a functionless shortcut is encountered.
Benno Schulenberg [Sun, 3 Jan 2016 17:07:29 +0000 (17:07 +0000)]
Alerting the user when a functionless shortcut is encountered.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5526 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoAborting reset_multis() when there are zero multiline regexes.
Benno Schulenberg [Sun, 3 Jan 2016 16:57:17 +0000 (16:57 +0000)]
Aborting reset_multis() when there are zero multiline regexes.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5525 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoLetting reset_multis() figure out whether after an addition a full refresh is
Benno Schulenberg [Sun, 3 Jan 2016 16:21:04 +0000 (16:21 +0000)]
Letting reset_multis() figure out whether after an addition a full refresh is
needed (for the sake of multiline regexes), instead of doing it always.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5524 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoLetting reset_multis() figure out whether after a deletion a full refresh is
Benno Schulenberg [Sun, 3 Jan 2016 15:35:52 +0000 (15:35 +0000)]
Letting reset_multis() figure out whether after a deletion a full refresh is
needed, before doing a redraw of the current line.
This fixes Savannah bug #46794

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5523 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoCorrectly restoring the settings of NO_HELP and MORE_SPACE.
Benno Schulenberg [Sat, 2 Jan 2016 16:33:03 +0000 (16:33 +0000)]
Correctly restoring the settings of NO_HELP and MORE_SPACE.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5522 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoSkipping the unneeded reinitialization of the windows;
Benno Schulenberg [Sat, 2 Jan 2016 16:25:50 +0000 (16:25 +0000)]
Skipping the unneeded reinitialization of the windows;
it will be done when polling the keybuffer.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5521 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPlugging three tiny memory leaks.
Benno Schulenberg [Sat, 2 Jan 2016 16:01:04 +0000 (16:01 +0000)]
Plugging three tiny memory leaks.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5520 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChopping a duplicate parameter.
Benno Schulenberg [Thu, 31 Dec 2015 19:20:40 +0000 (19:20 +0000)]
Chopping a duplicate parameter.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5519 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoChopping an always FALSE parameter.
Benno Schulenberg [Thu, 31 Dec 2015 17:20:46 +0000 (17:20 +0000)]
Chopping an always FALSE parameter.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5518 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDeleting a now unused function.
Benno Schulenberg [Thu, 31 Dec 2015 16:49:07 +0000 (16:49 +0000)]
Deleting a now unused function.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5517 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoRestoring the cursor position differently, using a more basic routine.
Benno Schulenberg [Thu, 31 Dec 2015 16:44:32 +0000 (16:44 +0000)]
Restoring the cursor position differently, using a more basic routine.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5516 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNormalizing the comments in the OCaml file.
Benno Schulenberg [Wed, 30 Dec 2015 20:57:31 +0000 (20:57 +0000)]
Normalizing the comments in the OCaml file.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5515 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot trying to position the cursor when opening a buffer failed.
Benno Schulenberg [Wed, 30 Dec 2015 10:11:20 +0000 (10:11 +0000)]
Not trying to position the cursor when opening a buffer failed.
This fixes Savannah bug #46778.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5514 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoDisabling the regex for multiline strings in C and Assembler,
Benno Schulenberg [Tue, 29 Dec 2015 16:48:25 +0000 (16:48 +0000)]
Disabling the regex for multiline strings in C and Assembler,
as it colours some things wrong and is a glutton on time.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5513 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoGoing back to the filename prompt when the user decides to save a
Benno Schulenberg [Wed, 23 Dec 2015 19:18:33 +0000 (19:18 +0000)]
Going back to the filename prompt when the user decides to save a
changed buffer after all, as the buffer may not have a name yet.
This fixes Savannah bug #46752.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5512 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoNot opening an extra blank buffer when an empty file is read.
Benno Schulenberg [Wed, 23 Dec 2015 16:44:39 +0000 (16:44 +0000)]
Not opening an extra blank buffer when an empty file is read.
This bug was exposed by r5498 on December 18.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5511 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoImproving the ordering of two bindable functions.
Benno Schulenberg [Wed, 23 Dec 2015 16:37:04 +0000 (16:37 +0000)]
Improving the ordering of two bindable functions.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5510 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoOffering ^Q in the writeout menu to close and discard the current buffer
Benno Schulenberg [Wed, 23 Dec 2015 16:34:44 +0000 (16:34 +0000)]
Offering ^Q in the writeout menu to close and discard the current buffer
without saving it.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoPreventing valid pointers from getting truncated and rejected.
Benno Schulenberg [Wed, 23 Dec 2015 14:05:47 +0000 (14:05 +0000)]
Preventing valid pointers from getting truncated and rejected.
Patch by Mike Frysinger, tweaked by Benno.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5508 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

8 years agoHistory: no prompting on exit errors, because making the user hit Enter when
Benno Schulenberg [Wed, 23 Dec 2015 13:37:55 +0000 (13:37 +0000)]
History: no prompting on exit errors, because making the user hit Enter when
there's an error saving history state at exit is pointless and annoying.
Just notify the user and move on.
Patch by Mike Frysinger, tweaked and extended by Benno.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5507 35c25a1d-7b9e-4130-9fde-d3aeb78583b8