- 23 Apr, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 17 Apr, 2016 8 commits
-
-
Benno Schulenberg authored
This is a remnant from 2001, when things were different. Now, there is no need to refresh the edit window when tabbing produced no list. When it did produce a list, it is cleared off later.
-
Benno Schulenberg authored
If for some reason opening the spell-checked or formatted file fails, don't throw away the current contents of the buffer. (It should also give proper feedback about the failure, but we'll leave that for some other time.)
-
Benno Schulenberg authored
Because it is a little clearer, and it is what Pico does too. This partly fixes https://savannah.gnu.org/bugs/?47721.
-
Benno Schulenberg authored
Also, store the input character earlier, so we don't have to use len - 1. Furthermore, len increments in steps of 1, so it cannot pass the value of bufx unnoticed, so use a comparison for equality.
-
Benno Schulenberg authored
Just let read_line() zero-terminate the intermediate buffer when the line is complete.
-
Benno Schulenberg authored
Most of the time NO_CONVERT will not be set, the number of lines will not be zero, and the format of the file will be zero. Rearrange the conditions so that they will evaluate as FALSE as soon as possible.
-
Benno Schulenberg authored
Index i follows almost synchronously the value of len. Since we're adding characters to the intermediate buffer always only at the end, just use len as the index.
-
Benno Schulenberg authored
Until now (when not leaving files unconverted), nano would fumble and drop the final carriage return of a Mac file, and would thus treat the last line of such a file as an unterminated line and prepend it to the current line of the buffer. Correct that, and delete the dead piece of code that was meant to do this. This fixes https://savannah.gnu.org/bugs/?47716.
-
- 16 Apr, 2016 3 commits
-
-
Benno Schulenberg authored
When we don't set edittop in read_line(), we don't need to readjust it in read_file(), because in that particular case it will still be pointing at current. And since fileptr is a new, freshly created line, it can never be equal to filebot, so there is no point in comparing them. If more than one line was inserted at the beginning of the file, leave it up to the screen handling to set edittop to what it should be. Move the setting of fileage a bit down, to its sister setting: the line at current gets "connected" either to the top-of-file pointer or to the last line of the inserted file.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Also don't zero-terminate the matches in order to compare them, but just limit the length of the comparison.
-
- 15 Apr, 2016 2 commits
-
-
Benno Schulenberg authored
(This change will be made superfluous when we start using gnulib.) This prevents getcwd() from failing on Android and thus completes the fix for https://savannah.gnu.org/bugs/index.php?47659 . Reported-by:
Chris Renshaw <osm0sis@outlook.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
Benno Schulenberg authored
Doing a chdir("..") will not fail when the root directory is reached, and when getcwd() keeps failing too, we have no way of knowing when to stop. So, simply limit the number of attempted chdirs, to avoid getting into an endless loop. This avoids the hang in https://savannah.gnu.org/bugs/index.php?47659 . Reported-by:
Chris Renshaw <osm0sis@outlook.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 10 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
Instead of allocating a fixed amount of 128 bytes, which will overflow and segfault, adjust the allocation to the length of the file name, and if necessary trim the file name to make the prompt fit on the screen. This fixes https://savannah.gnu.org/bugs/?47511 . Reported-by:
Aapo Rantalainen <aapo.rantalainen@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 05 Apr, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
So it will fit on the screen when using a standard 80-column terminal.
-
Benno Schulenberg authored
-
- 04 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?47544, and thus also http://gnats.netbsd.org/51010 . Reported-by:
Adrian Siekierka <asiekierka@gmail.com> Reported-by:
Matthew Hall <mhall@mhcomputing.net> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 30 Mar, 2016 1 commit
-
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5779 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 20 Mar, 2016 2 commits
-
-
Benno Schulenberg authored
This fixes Savannah bug #46894. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5753 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
and a semicolon instead of a comma between phrases. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5750 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 25 Feb, 2016 1 commit
-
-
Benno Schulenberg authored
the first element, and the insertion of a new element) directly. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5678 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 23 Feb, 2016 1 commit
-
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5673 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 21 Feb, 2016 1 commit
-
-
Benno Schulenberg authored
when the first Tab added the part that all matches have in common. So now two Tabs in a row will always show the list of possible completions -- if there /are/ any completions. Which means that a second Tab will either: 1) do nothing, when the name is complete and exists; 2) beep, when nothing in the current directory starts with the current string; 3) show the list of matches. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5656 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 20 Feb, 2016 1 commit
-
-
Benno Schulenberg authored
instead of in the given string. This fixes Savannah bug #47199. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5654 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 16 Feb, 2016 1 commit
-
-
Benno Schulenberg authored
set to NULL in make_new_node(), a few lines earlier. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5648 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 15 Feb, 2016 2 commits
-
-
Benno Schulenberg authored
This fixes Savannah bug #47129 reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5647 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
and also when it is the first and only line. This fixes Savannah bug #47153 reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5646 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 13 Feb, 2016 2 commits
-
-
Benno Schulenberg authored
needed), so that it no longer shows in the help screen nor in the file list. This fixes Savannah bug #47126. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5640 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
This fixes Savannah bug #47135. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5639 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 10 Feb, 2016 2 commits
-
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5629 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
reported and solved by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5624 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 09 Feb, 2016 1 commit
-
-
Benno Schulenberg authored
The original patch was by Kamil Dudka. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5621 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 07 Feb, 2016 3 commits
-
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5617 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5616 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5615 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 06 Feb, 2016 2 commits
-
-
Benno Schulenberg authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5614 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Benno Schulenberg authored
With this option, nano would simply refuse to write to any symlinked file; if anyone really used this option, they would certainly have complained. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5608 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-