- 13 Jun, 2016 2 commits
-
-
Benno Schulenberg authored
Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48007 . Tested-by:
Rishabh Dave <rishabhddave@gmail.com> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
- 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 6 commits
-
-
Benno Schulenberg authored
The mark has already been unset by do_cut_text(). And any assignment to 'mark_begin' is useless when 'mark_set' is FALSE.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48108, and fixes https://savannah.gnu.org/bugs/?48157.
-
Benno Schulenberg authored
Implement its single use case by making better use of another element.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
By moving the test for the only situation where do_comment() does nothing (when only the magic line is selected) further up front, the add_undo() can be called before the commenting/uncommenting starts and two variables and an extra function are made unnecessary.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48156.
-
- 06 Jun, 2016 2 commits
-
-
Benno Schulenberg authored
-
Benno Schulenberg authored
Reported-by:
Mike Scalora <mike@scalora.org>
-
- 04 Jun, 2016 5 commits
-
-
Benno Schulenberg authored
Some platforms don't like that.
-
Benno Schulenberg authored
This fixes https://savannah.gnu.org/bugs/?48099 reported by Mike Scalora.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
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.
-
- 02 Jun, 2016 1 commit
-
-
Benno Schulenberg authored
-
- 01 Jun, 2016 10 commits
-
-
Benno Schulenberg authored
When running in a non-UTF locale, and when strncasecmp() suffers from the same defect as strncmp(), make sure not to pass a length with the high bit set.
-
Benno Schulenberg authored
This reverts commit df8c3deb from six years ago, which prevented a crash on the Armel/Maemo platforms but causes nano to lose history items. The strncmp() function on those platforms treats size_t numbers with the high bit set as if they were zero. To avoid that, use a number that cannot be seen as negative, as suggested by <alpha@qzx.com>. This fixes https://savannah.gnu.org/bugs/?48048 . Tested-by:
Tito Ragusa <farmatito@tiscali.it> Signed-off-by:
Benno Schulenberg <bensberg@justemail.net>
-
Benno Schulenberg authored
-
Benno Schulenberg authored
The function is_cntrl_mbchar() has always been called successfully before calling control_mbrep(), so the passed character *is* a valid sequence.
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
Benno Schulenberg authored
-
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 6 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
-