Commit Graph

3947 Commits

Author SHA1 Message Date
Chris Allegretta e3f04bd8d5 2010-07-07 Adrian Bunk <bunk via Savannah>
* nano.c (main) - Allow --fill and --nowrap to override nanorc entries and each other
          on the command line.  Backported from 2.2 at request of Benno Schulenberg.



git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4510 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2010-07-07 16:07:33 +00:00
Chris Allegretta 7f86c15ffb 2010-04-25 Chris Allegretta <chrisa@asty.org>
* files.c (do_writeout): Merge in 2.1/2.2 branch modification check and security fixes
         (in particular revs 4424 4467 4474 4490 4491 4494 4495 4496 4497 and 4500).  Addresses
         CVEs CVE-2010-1160 and CVE-2010-1161.



git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4505 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2010-04-25 07:25:41 +00:00
Chris Allegretta 59fc1570d3 Back to svn
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4325 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-09-06 06:41:24 +00:00
Chris Allegretta df7397eebc GNU nano 2.0.9 release
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4323 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-09-06 06:10:25 +00:00
Chris Allegretta 516dd69bf6 * po/* - Revert po files to 2.0.7 versions due to issues with 2.1 string differences.
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4322 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-09-06 05:47:42 +00:00
Chris Allegretta dd4a4dc2e8 Fix that entry for bug 23827 fix was really in 2.0.8.
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4313 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-08-25 02:40:37 +00:00
Chris Allegretta 7efc28b9bc Back to SVN version
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4312 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-08-24 19:20:47 +00:00
Chris Allegretta 6390ba4cba GNU nano 2.0.8 release
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4310 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-08-24 18:50:19 +00:00
Chris Allegretta 7031f2011f 2008-08-08 Magnus Granberg <zorry@ume.nu> / Adam Conrad <?>
* files.c: (write_file): Add needed flags to open() calls when writing out files.  Fixes Savannah bug
          #23827: Compilation fails with -D_FORTIFY_SOURCE=2



git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4307 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-08-17 16:31:11 +00:00
Chris Allegretta e92c28cf07 backport of Fix for Savnnah bug 24000: no free space on partition - nano claims successful write - file empty
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4305 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-08-17 00:10:34 +00:00
Chris Allegretta c723fcf766 Change Changelog format to 2.1 version since it's easier to backport from trunk.
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-07-12 02:20:54 +00:00
Chris Allegretta b5b8e15fbd * Fix for crashing in help menu when using certain locales
from Mitsuya Shibata <mty.shibata@gmail.com> (Savannah bug 
         23751)



git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4273 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-07-12 02:03:35 +00:00
Chris Allegretta e0d802915f Fix for conflicts with AIX curses variables, from William Jojo <jojowil@hvcc.edu>
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4261 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-05-31 23:12:34 +00:00
Chris Allegretta 10040ef9d0 Segfault fix for too small window size by Andreas Amann <andreas.amann@tyndall.ie>
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4258 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2008-05-31 22:41:09 +00:00
David Lawrence Ramsey 5029400586 Back to CVS
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4213 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-20 18:54:30 +00:00
David Lawrence Ramsey ffac080149 GNU nano 2.0.7
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4211 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-20 18:53:22 +00:00
David Lawrence Ramsey 165b0d72c7 update maintenance information
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4210 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-20 18:41:04 +00:00
David Lawrence Ramsey 1bd3b59f97 cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4209 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-20 17:06:01 +00:00
David Lawrence Ramsey 3d27580706 in print_opt_full(), use strlenpt() instead of strlen(), so that tabs
are placed properly when displaying translated strings in UTF-8, as
found by Jean-Philippe Guérard


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4208 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 22:00:17 +00:00
David Lawrence Ramsey 6b0dfb5294 comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4207 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 16:51:48 +00:00
David Lawrence Ramsey cf650a6691 fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4206 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 16:47:06 +00:00
David Lawrence Ramsey d64d62216b fix breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4205 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 16:13:37 +00:00
David Lawrence Ramsey aad9685049 revert last changes, but disable all the same features that
--enable-tiny does when --with-slang is used


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4204 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 15:55:48 +00:00
David Lawrence Ramsey 1fdf53ddcd remove slang curses emulation support, as it's hopelessly broken, and it
doesn't make the binary very much smaller, especially when --enable-tiny
is used


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4203 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 02:39:25 +00:00
David Lawrence Ramsey 9c2d8632ef simplify terminal handling by using raw mode instead of cbreak mode
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4202 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 02:03:00 +00:00
David Lawrence Ramsey 8942f83d29 in execute_command(), call terminal_init() instead of just
disable_signals() after executing the command, as the command may have
changed the terminal settings


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4201 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-18 01:28:53 +00:00
David Lawrence Ramsey 13772629f1 fix changelog entry
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4199 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-17 23:05:11 +00:00
David Lawrence Ramsey 1254198cf5 in main(), exit if initscr() fails
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4198 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-10 17:59:26 +00:00
David Lawrence Ramsey 275965e5b1 in faq.html, add minor punctuation and wording fixes, and update various
sections to account for Alpine


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4196 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-09 18:28:36 +00:00
Jordi Mallach 66b1efa83e 2007-12-09 Jordi Mallach <jordi@gnu.org>
* LINGUAS: Add zh_CN.
        * es.po, fr.po, it.po, nb.po, nl.po, pt_BR.po: New pull from the TP,
        to fetch the now corrected latest pt_BR file.


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4195 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-09 17:12:03 +00:00
Jordi Mallach 9c3897114a 2007-12-08 Jordi Mallach <jordi@gnu.org>
* zh_CN.po: New Simplified Chinese translation by
	LI Daobing <lidaobing@gmail.com>.
	* fr.po, ga.po, ms.po, nl.po, nn.po, vi.po: Translation updates taken
	from the Translation Project.
	* Refreshed the rest of the files from the latest TP archive.


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4194 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 19:10:56 +00:00
Jordi Mallach 2c559794e2 file zh_CN.po was added on branch nano_2_0_branch on 2007-12-08 19:10:56 +0000
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4193 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 19:00:05 +00:00
Chris Allegretta 1338e6b7d0 This commit was manufactured by cvs2svn to create branch
'nano_2_0_branch'.

git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4192 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 19:00:04 +00:00
David Lawrence Ramsey 8001d924af fix minor breakage
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4190 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 16:59:13 +00:00
David Lawrence Ramsey ad966c8356 fix minor display and cursor placement problems when scrolling between
pages at the statusbar prompt


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4189 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 07:00:27 +00:00
David Lawrence Ramsey d02b03483c in doc/man/rnano.1 and doc/man/fr/rnano.1, update copyright notices, as
Thijs Kinkhorst's copyrights have now been assigned to the Free Software
Foundation


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4188 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 04:27:44 +00:00
David Lawrence Ramsey 4436a98d0b in get_mouseinput(), gix longstanding problem where mouse clicks on the
statusbar prompt text wouldn't be recognized unless the NO_HELP flag was
turned off


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4187 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-08 04:21:15 +00:00
David Lawrence Ramsey aa48b24227 in disable_mouse_support() and enable_mouse_support(), when toggling
mouse support on or off, save and restore the mouse click interval


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4186 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-04 20:49:09 +00:00
David Lawrence Ramsey 4670f55efc per OBATA Akio's patch with a few tweaks by me, add wnoutrefresh() calls
after reset_(statusbar_)?cursor() calls, to ensure that the cursor is
placed properly when using NetBSD curses


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4185 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-04 16:38:47 +00:00
David Lawrence Ramsey 6084c733f1 still more cosmetic fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4184 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-03 20:14:18 +00:00
David Lawrence Ramsey c81d8005af remove unneeded whitespace
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4183 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-12-03 18:40:33 +00:00
David Lawrence Ramsey b48e196a03 per Jean-Philippe Guérard's updates, in doc/man/fr/*.1,
doc/man/fr/nanorc.5, fix copyright notices; the copyrights are
disclaimed on these translations, but the copyrights of the untranslated
works also apply


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4182 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-11-29 19:16:40 +00:00
David Lawrence Ramsey 42620f7a6e in doc/man/fr/nanorc.5, remove trailing whitespace
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4180 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-11-28 17:09:42 +00:00
David Lawrence Ramsey c7a23145b7 in read_file(), improve autodetection of DOS and Mac format files to not
trigger on carriage returns in the middle of files, as found by Kjell
Braden


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4179 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-11-17 20:34:38 +00:00
David Lawrence Ramsey e8c0dafe4a update copyright notices, as Jordi Mallach's copyrights have now been
assigned to the Free Software Foundation


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4178 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-11-06 22:58:33 +00:00
David Lawrence Ramsey 7e9b345010 in input_tab(), disable completion of usernames, directories, and
filenames if the cursor isn't at the end of the line, as it can lead to
odd behavior (e.g. adding a copy of the entire match to the middle of
the line instead of just the uncompleted part of the match)


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4176 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-10-11 15:49:08 +00:00
David Lawrence Ramsey f486af7061 in username_tab_completion() and cwd_tab_completion(), rename variable
buflen to buf_len, for consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4175 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-10-11 15:38:32 +00:00
David Lawrence Ramsey 60a701e09b in cwd_tab_completion(), remove unneeded assert
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4174 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-10-11 15:19:45 +00:00
David Lawrence Ramsey 8bfcb703bb update copyright notices, as Chris Allegretta's copyrights have now been
assigned to the Free Software Foundation; also, make copyright notices
consistent in style


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4173 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-10-11 05:01:32 +00:00
David Lawrence Ramsey 2d01e6f779 update copyright notices, as my copyrights have now been assigned to the
Free Software Foundation


git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4172 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2007-10-05 16:44:45 +00:00