nano Changelog

What's new in nano 2.2.4

Apr 22, 2010
  • Skip invoking the alt speller if the file size is 0 bytes. Fixes Savannah bug 29393 reported by Mike Frysinger.
  • 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. [CVE-2010-1160]

New in nano 2.2.3 (Mar 24, 2010)

  • move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cursor
  • position. Part one of fix for Savannah bug 21178 by Mike Frysinger.

New in nano 2.0.9 (Feb 11, 2009)

  • rcfile.c (parse_include): Abort on being unable to open an included rcfile. Fixes Savannah bug 25490, nanorc: "include"ing a file which doesn't exist causes nano to segfault.
  • More color syntax speedups: Determine in reset_multis() whether we really need to call edit_refresh(). Additional global var edit_refresh_needed() to hopefully reduce repeated calls to the function. New helper funcs reset_multis_before() and reset_multis_after().
  • 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.
  • nano.c (move_to_filestruct) - properky initialize new fileage for multiswatching, sigh. Fix cut sefaults discovered by Mike Frysinger.
  • nano.c (main): Add support for nano acting like a pager when invoked with - as first file argument.
  • doc/syntax/gentoo.nanorc: Updates from David and Mike Frysinger.
  • 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)
  • First pass at some caching of caching color info. Right now it's only for multi-line regexes but this may not be enough to increase performance.
  • Add interruptability to search functions. New functions enable_nodelay and disable_nodelay and changes to the routines to handle checking for pending searches. Fixes Savnnah bug 24946: Need interrrupt for search.
  • Change function definitions to shorts instead of (void *)s. New mapping function iso_me_harder_funcmap().