- 13 Jul, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 27 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Just like when reading a file fails. It needs the user's attention.
-
- 21 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Don't make it the responsibility of the executed functions to restore the list of shortcuts of the edit window. Just detect whether another menu was displayed, and if so, redisplay the main menu.
-
- 20 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 17 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 12 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Specifying an operating directory should either lead to a successfull confinement, or nano should fail to start. (Also: save the terminal settings as soon as possible, so that an early die() will not restore uninitialized values.) This fixes the first part of https://savannah.gnu.org/bugs/?47798 properly.
-
- 08 Jun, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48103. (The fix is wasteful -- it should only discard the multidata if actually the name *did* change, *and* if the applicable syntax changed.)
-
- 07 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48156.
-
- 04 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
Don't catch the NULL earlier, because we do want an error message when opening the lockfile fails.
-
- 03 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
That is: don't mix the number of lines read with a warning about the file being unwritable -- the former is just convenience information, the latter is a must-see. This fixes https://savannah.gnu.org/bugs/?48047.
-
- 30 May, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 24 May, 2016 3 commits
-
-
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 6 commits
-
-
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 4 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.
-
Benno Schulenberg authored
Make the failures to read or write a lock file into important messages, so they will not be overwritten by the number of lines read.
-
Benno Schulenberg authored
The general mechanism for not allowing important messages to be overwritten will take care of not overwriting warnings about failed file lockings.
-
- 16 May, 2016 1 commit
-
-
Benno Schulenberg authored
If during startup there are multiple error messages, currently only the last one remains and can be read. To improve on that, introduce a short pause between error messages -- even if it's not enough to read them all, at least the user will be aware that there are multiple ones. This also causes a few error messages to beep that currently don't beep, such as when a file is unwritable.
-
- 04 May, 2016 1 commit
-
-
Benno Schulenberg authored
Since nano-2.4.1, reading in or pasting a large piece of text would put the cursor on the bottom line, leaving only one line of the non-read or non-pasted text visible. This is different from the centering behavior of Pico, and somewhat disorienting, as you can't see "where you are" any more in relation to the file as it was. So now center the cursor whenever the read or pasted text is larger than the screen, but don't center it when the text fits entirely on the screen. (The latter avoids the effect of the screen jumping unnecessarily when inserting just a few lines while the cursor is near the bottom.) To achieve this behavior: default to focusing, and temporarily set it to FALSE when the focusing effect is unwanted. This fixes https://savannah.gnu.org/bugs/?47841.
-
- 02 May, 2016 1 commit
-
-
Benno Schulenberg authored
Add a global variable, 'present_path', so that 'cwd_tab_completion()' knows where the user is in the browser, so that it can try completions against names in that directory instead of always against names in the current working directory (where nano was invoked). This fixes https://savannah.gnu.org/bugs/?47234 . Signed-off-by:
Rishabh Dave <rishabhddave@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 26 Apr, 2016 2 commits
-
-
Benno Schulenberg authored
This restores things to the way they were before commit 36ec76a5. Apparently all those refreshes are needed in some cases after all.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?47786.
-
- 25 Apr, 2016 1 commit
-
-
Benno Schulenberg authored
For a little contrast with the function edit_refresh() -- it's annoying that when you search for the latter you get to see all the settings of the flag too.
-