- 01 Jun, 2016 3 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 31 May, 2016 1 commit
-
-
Mike Scalora authored
Store the file sizes from before and after the commenting/uncommenting in the undo struct, so they can be restored when undoing or redoing. This fixes https://savannah.gnu.org/bugs/?48062 . Signed-off-by:
Mike Scalora <mike@scalora.org>
-
- 30 May, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 28 May, 2016 2 commits
-
-
Benno Schulenberg authored
When opening a file that was edited before, and the remembered position is near the end of the file, then don't center the target line but show the last line of the file on the bottom line of the screen, thus showing as much of the file content as possible. This addresses https://savannah.gnu.org/bugs/?46243.
-
Benno Schulenberg authored
-
- 27 May, 2016 7 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Instead of parsing every multibyte character twice, first with parse_mbchar() and then with mbtowc(), just let mbtowc() do all the work. This makes searching for a fixed string twice as fast. This also gets rid of four variables and lots of memory allocations. (And, more importantly: it stops nano messing up the internal state of the multibyte-to-wide character conversion, and thus would make the calls to mbtowc_reset() superfluous.)
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 25 May, 2016 3 commits
-
-
Mike Scalora authored
This allows for commenting or uncommenting a line or a bunch of lines with a single keystroke (default binding: M-3). The characters used for commenting/uncommenting are specified by the active syntax file. Reviewed-by:
Benno Schulenberg <bensberg@justemail.net> Signed-off-by:
Mike Scalora <mike@scalora.org>
-
Benno Schulenberg authored
-
Rishabh Dave authored
Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 24 May, 2016 4 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 23 May, 2016 7 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
And to contrast it more with 'answer'.
-
Benno Schulenberg authored
When calling do_prompt(), 'ans' is used to offer a default answer or the answer given so far.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
- 22 May, 2016 2 commits
-
-
Benno Schulenberg authored
The relative path could be . or .. or even empty, which is uninformative. This fixes the last part of https://savannah.gnu.org/bugs/?47798.
-
Benno Schulenberg authored
Move the initialization of the operating directory to after the initialization of the screen, so that the above error can be shown. This fixes the first part of https://savannah.gnu.org/bugs/?47798.
-
- 21 May, 2016 8 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Between the first stat (that sets 'realexists') and the second stat (directly after), the file might have disappeared, which would mean that current_stat would be NULL. Prevent dereferencing this further down.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Only when the user decides not to override an existing lockfile should loading the corresponding file be skipped. Any failure to write the lockfile should be ignored -- the file itself should be loaded anyway. This fixes https://savannah.gnu.org/bugs/?47945.
-
Benno Schulenberg authored
Error messages about lock files should not get overwritten by purely informational messages, only by alerting ones. This fixes https://savannah.gnu.org/bugs/?47963.
-
- 18 May, 2016 2 commits
-
-
Benno Schulenberg authored
The variable 'namecopy' has been passed to dirname(), so it is likely to have been changed when it contains a slash. So, use a new variable instead. Also, free the result of display_string(). This fixes https://savannah.gnu.org/bugs/?47956.
-
Benno Schulenberg authored
Having just opened a fresh buffer, 'openfile->next' will never be NULL, because the list is circular. Second, when compiled with --disable-nultibuffer, and deciding not to override an existing lock, the 'return FALSE' should *not* be skipped, because otherwise the named file will be opened after all. This fixes an unreported bug.
-