--- nano-2.5.2/ChangeLog 2016-02-12 06:22:50.000000000 +0100 +++ nano-2.5.3/ChangeLog 2016-02-25 22:40:42.000000000 +0100 @@ -1,3 +1,99 @@ +GNU nano 2.5.3 - 2016.02.25 + +2016-02-25 Benno Schulenberg + * src/browser.c (do_browser): Plug a memory leak by not copying + a string twice. This fixes Savannah bug #47206. + * src/browser.c (do_browser): Now put things in the proper order. + * src/files.c (make_new_buffer), src/nano.c (splice_opennode): Elide + the latter function, by handling the two cases (the creation of the + first element, and the insertion of a new element) directly. + +2016-02-23 Benno Schulenberg + * src/prompt.c (do_statusbar_output, do_statusbar_delete): + Rename a variable, for contrast and correctness. + * src/cut.c (do_copy_text): Don't move the cursor when copying a + backwardly marked region. This fixes Savannah bug #46980. + * src/text.c (do_undo, do_redo): Center the cursor when the + thing being undone or redone is currently off the screen. + * src/{files,nano,winio}.c: Rewrap and reshuffle some lines. + +2016-02-22 Chris Allegretta + * Add the ability to kill the trailing spaces when justifying text, + by adding a new nanorc option 'justifytrim' -- we'll see + whether this warrants a command-line flag or not. Now with slightly + better logic for multi-spaced lines. + +2016-02-22 Benno Schulenberg + * src/nano.c (free_openfilestruct): Elide this function. + * scr/global.c (thanks_for_all_the_fish, free_list_item): Condense. + * src/winio.c (edit_scroll): The amount to scroll is never zero. + * src/prompt.c (do_statusbar_prev_word, do_statusbar_next_word), + src/move.c (do_prev_word, do_next_word): Sort these in standard way. + * src/prompt.c (do_statusbar_output): Don't move too many bytes. + This fixes Savannah bug #47219 (uncovered by r5655). + * src/prompt.c (do_statusbar_output): Elide a variable. + * src/prompt.c (do_statusbar_delete): There is no need for nulling: + the charmove() already copies the terminating null byte. + * src/text.c (do_justify), src/winio.c (parse_escape_sequence): + Show the cursor after a justification and after an unrecognized + escape sequence, and in the edit window when linting. + * src/text.c (do_linter): Use the correct column number, also when + messages are skipped. And don't mind zero or negative numbers. + This is a partial fix for Savannah bug #47131. + +2016-02-21 Benno Schulenberg + * src/files.c (input_tab): If the first Tab added the part that all + matches have in common, don't require a third Tab to show the list. + * scr/global.c (thanks_for_all_the_fish): Remove unneeded checks. + +2016-02-20 Benno Schulenberg + * src/search.c (get_history_completion): Avoid leaking memory + when tabbing on a string that does not occur in the history. + This fixes Savannah bug #47124 reported by Mike Frysinger. + * src/files.c (input_tab): Parse a character in the correct + buffer. This fixes Savannah bug #47199. + * src/prompt.c (do_statusbar_output): Reduce an allocation to what + is actually needed. This undoes the papering-over of above bug. + +2016-02-18 Benno Schulenberg + * src/search.c (do_replace_loop), src/text.c (do_int_spell_fix), + src/winio.c (edit_refresh): Fix Savannah bug #47127 the proper way. + * src/nano.c (free_filestruct): Allow the parameter to be NULL. + * src/search.c (search_init): Delete a debugging leftover. + +2016-02-16 Benno Schulenberg + * src/files.c (initialize_buffer_text): Delete redundant assignment. + +2016-02-15 Benno Schulenberg + * src/files.c (read_file): Free not just the struct but also the + data it contains, and also when it is the first and only line. + This fixes Savannah bug #47153 reported by Mike Frysinger. + * src/files.c (get_full_path): Avoid losing a buffer when getcwd() + fails. This fixes Savannah bug #47129 reported by Mike Frysinger. + +2016-02-14 Benno Schulenberg + * src/search.c (do_replace_loop): Make iterating through replacement + matches behave again like iterating through search matches: showing + them centered when found offscreen. This fixes Savannah bug #47127. + * src/text.c (do_int_spell_fix): Restore the above behavior also for + the internal spell fixer. + * src/prompt.c (do_statusbar_input, do_statusbar_verbatim_input, + do_statusbar_output): Do the copying from input to output just once. + * src/prompt.c (do_statusbar_output): Rename and condense some stuff, + and correct the main comment: filtering means allow_cntrls==FALSE. + * README, TODO, doc/man/{nano.1,rnano.1,nanorc.5}: Say that 2.5.x + is a "rolling" release, lock files are done, and prepare for 2.5.3. + +2016-02-13 Benno Schulenberg + * src/browser.c (do_browser, browser_refresh): Rebuild the file list + only when necessary, not for each and every cursor movement. This + fixes Savannah bug #47133. + * src/files.c (save_poshistory): Allocate enough space for printing + out the line and column numbers. This fixes Savannah bug #47135. + * src/*.c: Switch the cursor on and off at the appropriate moments, + so that it no longer shows in the help screen nor in the file list. + This fixes Savannah bug #47126. + GNU nano 2.5.2 - 2016.02.12 2016-02-11 Benno Schulenberg