- 02 Jan, 2013 3 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4555 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
location (pos 1007). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4551 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
on the statusbar that we couldn't do it if the user modifies the file. Changes to do_lockfile and write_lockfile to check for EACCESS and change the return value of the functions (0 instead of -1) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4550 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 31 Dec, 2012 1 commit
-
-
Chris Allegretta authored
* src/*: Introduce (basic) vim-style file locks. Does not allow vim to recover our files, and doesn't yet support setting the file as modified; just lets a vim user know we're editing a file. Commands line "-G" or "--locking", nanorc option "locking". New functions src/files.c:do_lockfile(), write_lockfile(), and delete_lockfile(). git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4549 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 30 Dec, 2012 1 commit
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4548 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 23 Feb, 2011 1 commit
-
-
Chris Allegretta authored
* Fix some more severe warnings from 'g++ -pedantic', from patch originally by Eitan Adler <lists@eitanadler.com> git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4534 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 17 Feb, 2011 2 commits
-
-
Chris Allegretta authored
so do_research will succeed without needing to manually load the last seach in. Fixes bug reported by Matt "ML" at gmail. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4531 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* New saved cursor position history option. Command line option -P or --poslog, rc file entry "poslog". Search history changes to ~/.nano/search_history, cursor position log is ~/.nano/filepos_history. Added checks to move the legacy .nano_history file to the new location. Several new functions to files.c: load_poshistory(), save_poshistory(), check_poshistory(), update_poshistory(), and reworking of histfilename(). New FAQ entry 4.15 discussing the change and offering an interoperability workaround. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4530 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 15 Feb, 2011 1 commit
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4529 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 07 Feb, 2011 1 commit
-
-
Chris Allegretta authored
This does add 20KB to nano's executable size but it gets rid of a lot of indirection that makes people stomach turn. There are several new stub functions and need of more tidying as a result of this. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4527 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 06 Feb, 2011 1 commit
-
-
Chris Allegretta authored
* files.c (write_file) - Fix problems with writing the backup file (albeit interactively) with new function prompt_failed_backupwrite(), allows more secure handling of problems with failing to write the backup file compared to 'allow_insecure_backup'. * winio.c (edit_redraw): Removed unused variable git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4526 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 11 Nov, 2010 1 commit
-
-
Chris Allegretta authored
* Add check for RESTRICTED mode back to speller, suspend and insert file routines, since adding key bindings broke the fact that they should be disabled in restricted mode. Fixes Savannah bug 31625 reported by Charlie Somerville. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4519 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 24 Jun, 2010 1 commit
-
-
Chris Allegretta authored
Add more inseure backup checks to that strange cases like with ACLs will work with allow_insecure_backup. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 20 Jun, 2010 1 commit
-
-
Chris Allegretta authored
* New option allow_insecure_backup, allows the previous security fixes for backup files to be overridden if you're really positive you want to. Fixes Savannah bug 29732 by Brian Szymanski <skibrianski>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4508 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 22 May, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (write_file): Don't even try to chown() the backup file unless we're root, since it's probably going to fail if we're editing a file we don't own. Fixes Savannah bug 29514: [nano 2.2.2] backup should ignore chown errors. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4507 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 13 Apr, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (wirte_file): Don't set current_stat when tmp == TRUE, check whether current_stat is set when trying to use it, and don't do the modification check if the filename changed, since we have no way of knowing about it in that case. Fixes Savannah bug 29392, reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4500 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 09 Apr, 2010 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4497 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* files.c (do_writeout): Better security fixes for backup file writing, mangled from submission by Dan Rosenberg <dan.j.rosenberg at gmail>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4496 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 07 Apr, 2010 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4495 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* files.c (do_writeout): Previous fixes should not cause a crash when saving a new file. Discovered by Mike Frysinger <vapier@gentoo.org>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4494 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 06 Apr, 2010 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4492 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
file when its owner doesn't match the edited file. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4491 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 02 Apr, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (do_writeout): Expand modification check to include both the original file's device ID and inode number as reasons to warn the user that the file has been modified. Based on security article on nano by Dan Rosenberg. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4490 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 13 Jan, 2010 1 commit
-
-
Chris Allegretta authored
* files.c (do_writeout): Fix for crash / incorrect external modification warning due to earlier fix in r4467. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4474 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 22 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* files.c (write_file): Fix compatibility with previous stat fix and tiny mode. 2009-12-22 David Lawrence Ramsey <pooka109@gmail.com> * global.c: Add new strings for forward/back in the file browser. New variables nano_forwardfile_msg and nano_backfile_msg. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4469 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 19 Dec, 2009 2 commits
-
-
Chris Allegretta authored
* files.c (is_file_writable): remove assert check for f, since it's not initialized at the time. Fixes Savannah bug 28309, reported by Zoltan Kovacs. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4468 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* src/files.c (write_file): Check stat struct exists, and if not use just obtained stat data. Fixes Ubuntu bug 471568, "reproducible crash in nano on trying to save to a file different than the one specified on the command line". git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4467 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 09 Dec, 2009 1 commit
-
-
Chris Allegretta authored
* files.c (read_file) - Add parameter for whether we should even try to check file writability, as the message is useless when we're inserting into an existing buffer. Fixes Savannah bug 28219. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4460 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 01 Dec, 2009 2 commits
-
-
Chris Allegretta authored
* Update documentation for 2.2 features including sample nanorc file, texinfo file, man pages, UPGRADE file, and update copyright noticed for the current year. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4453 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* chars.c, file.c - Better handle unused results for things like mbtowc(), new macro IGNORE_CALL_RESULT. 2009-12-01 Chris Allegretta <chrisa@asty.org> * global.c (shortcut_init) - Remove redundant entries for ^Y/^V reported by Christian Weisgerber. * doc/man/nanorc.5 - Fix typo in Meta documentation, reported by gibboris@gmail.com. 2009-11-29 David Lawrence Ramsey <pooka109@gmail.com> * global.c (shortcut_init) - Add support for ^P and ^N in the help menu. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4452 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 28 Nov, 2009 1 commit
-
-
Chris Allegretta authored
* prompt.c (get_prompt_string) - Universally handle help key when is disabled. Fixes Savannah bug 28117 by David Lawrence Ramsey <pooka109@gmail.com>. * chars.c, files.c: Add junk vars to silence the compiler. Sigh. 2009-11-29 David Lawrence Ramsey <pooka109@gmail.com> * Change several *chars to const char, additional cleanups and casts to make compilers happier. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4448 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 14 Nov, 2009 1 commit
-
-
Chris Allegretta authored
file we originally opened. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4424 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 09 Nov, 2009 2 commits
-
-
Chris Allegretta authored
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4419 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
Chris Allegretta authored
* files.c (read_file): - Remove debugging messages from file load git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4418 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 03 Nov, 2009 1 commit
-
-
Chris Allegretta authored
* nano.h - Fix comma at end of enumerator list which angers -pedantic. 2009-11-03 Mike Frysinger <vapier@gentoo.org> * files.c - Move up is_file_writable() to stop implicit definition complaints. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4415 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 02 Sep, 2009 1 commit
-
-
Chris Allegretta authored
* Attempt to check file writability and emit a warning on the status bar if nano doesn't think the file can be written to. Feature originally requested by Damien Jolders <madamien@skullsquad.com> et al. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4407 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 08 Feb, 2009 1 commit
-
-
Chris Allegretta authored
* Add more multidata initliazers for new buffers and 'magic lines'. Fixes segfaults with syntax highlighting in new buffers, initially reported by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4372 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 02 Feb, 2009 1 commit
-
-
Chris Allegretta authored
* New color precalculation code for mult-line regexes. New function precalc_multicolorinfo(), new structure multidata for keeping track of where regexes start/stop. More performance improvements forthcoming. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4362 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 26 Jan, 2009 1 commit
-
-
Chris Allegretta authored
* files.c (open_file), nanorc.c (parse_include): Don't get_full_path on included rc files, due to it potentially impacting the ability to read files in nano's cwd(). Fixes Savnanah bug #25297 reported by Mike Frysinger) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4353 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-
- 24 Jan, 2009 1 commit
-
-
Chris Allegretta authored
multi-line regexes but this may not be enough to increase performance. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4351 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
-