blob: ff3bbe9374e038891b1b09a51f985b17e0d77ac1 [file] [log] [blame]
Benno Schulenberg5b9683c2017-01-04 16:01:50 +01001[Development moved to git on April 1. The Changelog was discontinued.]
2
3
Benno Schulenberg5022e472016-03-31 11:14:25 +000042016-03-31 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg06ea93b2016-03-31 11:27:16 +00005 * src/text.c (do_int_spell_fix): Replace a fake 'while', delete a
6 redundant 'if', rename a variable, and adjust whitespace.
Benno Schulenberg5022e472016-03-31 11:14:25 +00007
Benno Schulenberg400e7ce2016-03-30 12:00:48 +000082016-03-30 Benno Schulenberg <bensberg@justemail.net>
9 * src/search.c (do_replace_loop, go_looking, findnextstr): Report
10 "Cancelled" instead of "Not found" when the user aborts a replace
11 that is taking too long. This fixes Savannah bug #47439.
Benno Schulenbergc98afde2016-03-30 12:09:39 +000012 * src/winio.c (do_replace_highlight): Rename this to 'spotlight',
13 for clarity, and for contrast with 'do_replace/do_replace_loop'.
Benno Schulenberg29cac042016-03-30 12:18:22 +000014 * src/winio.c (spotlight): Rename a variable for clarity.
Benno Schulenberg532d73c2016-03-30 12:27:06 +000015 * src/files.c (input_tab), src/prompt.c (get_prompt_string):
16 Rename a variable to better indicate booleanness.
Benno Schulenbergc709c102016-03-30 12:30:14 +000017 * src/text.c (do_int_speller): Unwrap a few lines.
Benno Schulenberg400e7ce2016-03-30 12:00:48 +000018
Benno Schulenberg7561b1b2016-03-29 12:14:00 +0000192016-03-29 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergf45a2932016-03-29 14:09:17 +000020 * src/nano.c (main), src/text.c (do_justify, do_verbatim_input),
21 src/winio.c (parse_escape_sequence): Place the cursor in the edit
22 window also when --constantshow is in effect, after a ^J Justify or
23 an invalid escape sequence, and when entering a verbatim keystroke.
24 Leave the cursor off during Unicode input, for extra feedback.
Benno Schulenberge258cc32016-03-29 14:16:55 +000025 * src/browser.c (do_browser): Improve the wording of a message.
Benno Schulenbergf9d6aa92016-03-29 14:46:53 +000026 * src/chars.c (is_valid_unicode): Speed up Unicode validation.
Benno Schulenberg23b8dfd2016-03-29 14:56:32 +000027 * src/text.c (do_int_spell_fix): Allow to stop replacing a word
28 without aborting the entire spell-fixing session.
Benno Schulenbergb834ed32016-03-29 15:05:47 +000029 * src/search.c (do_replace_loop): Chop a now-unused parameter.
Benno Schulenberg7561b1b2016-03-29 12:14:00 +000030
Benno Schulenberg38b74e62016-03-28 18:53:49 +0000312016-03-28 Benno Schulenberg <bensberg@justemail.net>
32 * src/winio.c (statusbar): Don't bother putting back the cursor in
33 the edit window, as it is off anyway, and will be placed back in the
34 main loop. This prevents a segfault when trying to open a directory.
Benno Schulenberg108fe332016-03-28 19:00:19 +000035 * src/search.c (findnextstr): Provide feedback when searching takes
36 longer than roughly half a second (on average).
Benno Schulenberg51743232016-03-28 19:14:33 +000037 * src/*.c: Remove the 'last_replace' variable that is never used.
Benno Schulenberg5fe838b2016-03-28 19:30:27 +000038 * src/winio.c (parse_kbinput): Delete a no-op.
Benno Schulenberg38b74e62016-03-28 18:53:49 +000039
Benno Schulenberg8704dde2016-03-23 09:52:34 +0000402016-03-23 Benno Schulenberg <bensberg@justemail.net>
41 * src/search.c (findnextstr): Prevent the internal spell checker from
42 finding the first occurrence twice. And delete the piece of dead code
43 that was meant to do this. This fixes Savannah bug #47188.
Benno Schulenberg4b2751c2016-03-23 10:19:01 +000044 * src/search.c (findnextstr): Clean up and rename a variable.
Benno Schulenberg3660c622016-03-23 10:27:54 +000045 * src/search.c (findnextstr): Poll the keyboard once per second.
Benno Schulenberg6fc70cc2016-03-23 19:48:44 +000046 * src/winio.c (reset_cursor): Remove a pointless condition, and make
47 use of an existing intermediary variable.
Benno Schulenberg344fe552016-03-23 20:04:33 +000048 * src/winio.c (reset_cursor): Tidy up and rename a variable.
Benno Schulenberg7f3dc2d2016-03-23 20:21:36 +000049 * src/winio.c (onekey): Elide an unneeded 'if' and unneeded variable.
Benno Schulenberg8704dde2016-03-23 09:52:34 +000050
Benno Schulenberg2f817a62016-03-22 10:42:28 +0000512016-03-22 Thomas Rosenau <thomasr@fantasymail.de>
52 * configure.ac, src/*.c: Check for the existence of the REG_ENHANCED
53 regex flag, and use it when it's available (on OS X systems). This
54 completes the fix for Savannah bug #47325.
55
Benno Schulenberg730b46c2016-03-21 20:38:08 +0000562016-03-21 Benno Schulenberg <bensberg@justemail.net>
57 * src/browser.c (findnextfile): Trim a duplicate variable.
Benno Schulenbergb55e8d72016-03-21 20:49:29 +000058 * src/browser.c (browser_refresh, findnextfile): Rename four vars.
Benno Schulenberg730b46c2016-03-21 20:38:08 +000059
Benno Schulenberg1ef62492016-03-20 10:57:14 +0000602016-03-20 Benno Schulenberg <bensberg@justemail.net>
61 * src/files.c (do_writeout), src/nano.c (do_exit): Normalize the
62 punctuation in some prompts: no space before a question mark, and
63 a semicolon instead of a comma between phrases.
Benno Schulenberge2b65722016-03-20 11:10:31 +000064 * src/text.c (do_cutword): Don't put cut words into the cutbuffer --
65 that is: treat the deletion of words like pressing Backspace/Delete.
Benno Schulenberg036c5f92016-03-20 13:38:09 +000066 * src/search.c (get_history_completion, find_history): Cycle through
67 the items from newest to oldest. This fixes Savannah bug #47205.
Benno Schulenberg4ddf1942016-03-20 14:34:46 +000068 * src/files.c (do_writeout): When the name of the file was changed,
69 always ask whether this is okay. This fixes Savannah bug #46894.
Benno Schulenbergb3b2fa82016-03-20 16:03:20 +000070 * src/search.c (do_research): Use 'return' instead of 'else'.
Benno Schulenbergb8a47f42016-03-20 16:19:30 +000071 * src/search.c (do_search): Don't bother setting 'answer'; just use
72 'last_search', which has been set to 'answer' in search_init().
Benno Schulenbergf1508942016-03-20 16:57:15 +000073 * src/search.c (go_looking): Factor out the common part of
74 do_search() and do_research() into this new function.
Benno Schulenberg1ef62492016-03-20 10:57:14 +000075
Benno Schulenberga6740ba2016-03-19 16:19:44 +0000762016-03-19 Benno Schulenberg <bensberg@justemail.net>
77 * src/search.c (search_init): Always remember the last typed string,
78 also when it's an invalid regex. This fixes Savannah bug #47440.
Benno Schulenberg90cffe32016-03-19 16:41:45 +000079 * src/search.c (search_init, do_replace): Don't bother setting the
80 current answer to the empty string, as do_prompt() can handle a NULL.
Benno Schulenberg01888ab2016-03-19 17:01:40 +000081 * src/browser.c (do_browser): Delete a snippet of dead code.
Benno Schulenberg3dee81b2016-03-19 17:13:33 +000082 * src/browser.c (do_browser): Delete an unneeded variable.
Benno Schulenbergfc1edf22016-03-19 17:19:30 +000083 * src/search.c (do_gotolinecolumn): Delete another unneeded variable.
Benno Schulenberge2911312016-03-19 18:23:37 +000084 * src/search.c (search_init): Snip an always-FALSE condition.
Benno Schulenberg9f93b332016-03-19 18:51:46 +000085 * src/search.c (search_init): Reshuffle stuff to reduce indentation.
Benno Schulenberg311f0e82016-03-19 20:19:49 +000086 * src/search.c (do_replace): Snip a useless setting of answer.
Benno Schulenberga6740ba2016-03-19 16:19:44 +000087
Benno Schulenberg19bc63d2016-03-17 09:12:30 +0000882016-03-17 Benno Schulenberg <bensberg@justemail.net>
89 * src/search.c (do_research): Use the Search key bindings also during
90 a Re-search, to enable cancelling. This fixes Savannah bug #47159.
Benno Schulenberg988274b2016-03-17 10:06:15 +000091 * src/search.c (do_replace): Remove two redundant returns.
Benno Schulenberg7098dd02016-03-17 18:51:46 +000092 * src/search.c (findnextstr): Prune two #ifdefs.
Benno Schulenberge753cd12016-03-17 19:30:29 +000093 * src/search.c: Adjust some indentation.
Benno Schulenberg19bc63d2016-03-17 09:12:30 +000094
Benno Schulenberg43040222016-03-14 16:01:44 +0000952016-03-14 Benno Schulenberg <bensberg@justemail.net>
96 * src/color.c (color_update): Don't dereference a possible NULL.
Benno Schulenberg70708122016-03-14 16:09:52 +000097 * src/rcfile.c (parse_colors): Make error message equal to others.
Benno Schulenberg8866f722016-03-14 17:14:35 +000098 * src/rcfile.c (parse_rcfile): Rearrange some things to reduce the
99 indentation level by four steps, so we can unwrap a dozen lines.
Benno Schulenberg43040222016-03-14 16:01:44 +0000100
Benno Schulenberg57c50ba2016-03-13 19:19:12 +00001012016-03-13 Benno Schulenberg <bensberg@justemail.net>
102 * src/search.c (regexp_init): Allow using the word boundary markers
103 \< and \> in search strings on non-GNU systems. This is a partial
104 fix for Savannah bug #47325 reported by Thomas Rosenau.
Benno Schulenberg6ed64622016-03-13 19:37:21 +0000105 * src/rcfile.c (parse_rcfile, parse_colors, nregcomp): Combine the
106 regular-expression flags at compile time instead of at run time.
Benno Schulenberg8fbb9222016-03-13 20:05:36 +0000107 * src/rcfile.c (parse_syntax, parse_colors): Rename a variable.
Benno Schulenberg8fea3472016-03-13 20:13:16 +0000108 * src/winio.c (edit_draw): Give a central variable a ringing name.
Benno Schulenberg57c50ba2016-03-13 19:19:12 +0000109
Benno Schulenberg4712fc02016-03-13 19:09:28 +00001102016-03-13 Thomas Rosenau <thomasr@fantasymail.de> (tiny change)
111 * autogen.sh, README.SVN: Mention SVN instead of CVS.
112
Benno Schulenbergc5fedaa2016-03-12 08:46:18 +00001132016-03-12 Benno Schulenberg <bensberg@justemail.net>
114 * src/color.c (color_update): Set the syntax and regex pointers
Benno Schulenberg4e8d2d62016-03-12 09:18:50 +0000115 just once, in a single place. And unnest two 'if's.
Benno Schulenberg3cb80ff2016-03-12 09:43:10 +0000116 * src/rcfile.c (parse_one_include, parse_includes): New names for
117 these functions, to be more distinguishable.
Benno Schulenbergfa828242016-03-12 09:52:16 +0000118 * src/rcfile.c (parse_colors): Reduce the indentation.
Benno Schulenbergf72e1652016-03-12 10:21:02 +0000119 * src/rcfile.c (parse_colors): Rename a variable.
Benno Schulenberg63d59652016-03-12 11:15:12 +0000120 * src/rcfile.c (parse_colors, parse_rcfile): Refind the tail of
121 the colors list only when extending, not for every added color.
Benno Schulenbergc5fedaa2016-03-12 08:46:18 +0000122
Benno Schulenbergfb7f7012016-03-11 16:30:29 +00001232016-03-11 Benno Schulenberg <bensberg@justemail.net>
124 * src/browser.c (do_browser): Fix compilation when configured with
125 --enable-tiny plus --enable-browser.
Benno Schulenbergb8aae4d2016-03-11 16:39:27 +0000126 * src/rcfile.c: Tweak some comments and reshuffle some lines.
Benno Schulenberg6e377232016-03-11 16:45:00 +0000127 * src/rcfile.c (color_to_short): Elide a variable.
Benno Schulenbergd08d72a2016-03-11 16:51:15 +0000128 * src/rcfile.c (grab_and_store): First check that there is an
129 open syntax before checking that it is named "default".
Benno Schulenberg17864842016-03-11 17:14:30 +0000130 * src/rcfile.c (parse_rcfile): Fix compilation when configured with
131 --enable-tiny plus --enable-nanorc.
Benno Schulenbergfb7f7012016-03-11 16:30:29 +0000132
Benno Schulenberg2994ea92016-03-10 09:46:21 +00001332016-03-10 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergaf40fb62016-03-12 09:37:48 +0000134 * src/rcfile.c (grab_and_store): Do not accept 'header' and 'magic'
Benno Schulenberg2994ea92016-03-10 09:46:21 +0000135 commands for the default syntax. This fixes Savannah bug #47323.
Benno Schulenberg837b4e62016-03-10 10:36:49 +0000136 * src/rcfile.c (pick_up_name): Fold the parsing of a linter and
137 formatter command into a single routine.
Benno Schulenberged296522016-03-10 11:00:59 +0000138 * src/rcfile.c (parse_header_exp, parse_magic_exp, grab_and_store):
139 Elide the first two functions, and reshuffle parameters in the last.
Benno Schulenberg04262f02016-03-10 20:06:01 +0000140 * src/rcfile.c (parse_syntax, parse_rcfile), src/color.c
141 (color_update): Turn the linked list of syntaxes upside-down, so that
142 the last-defined one comes first, so that searching can stop at the
143 first match instead of always having to run through the entire list.
Benno Schulenberg8a5ae212016-03-10 20:36:12 +0000144 * src/rcfile.c: Rename a variable to better fit its new role.
Benno Schulenberg2994ea92016-03-10 09:46:21 +0000145
Benno Schulenbergb0bdfbb2016-03-09 20:28:50 +00001462016-03-09 Benno Schulenberg <bensberg@justemail.net>
147 * src/rcfile.c (parse_syntax): Produce an adequate error message
148 when the syntax name is unquoted. This fixes Savannah bug #47324.
Benno Schulenberg2f63e8d2016-03-09 21:00:42 +0000149 * src/rcfile.c (parse_syntax): Use the grab_and_store() function
150 also for gathering up extension regexes.
Benno Schulenbergb0bdfbb2016-03-09 20:28:50 +0000151
Benno Schulenberg2070d3a2016-03-04 14:53:45 +00001522016-03-04 Benno Schulenberg <bensberg@justemail.net>
153 * src/color.c (found_in_list): Don't bother keeping the compiled
154 regular expression when it matched -- drop this tiny optimization
155 for when opening multiple files. Instead stop calling malloc().
Benno Schulenbergc02c1822016-03-04 17:04:56 +0000156 * src/nano.h: Delete a now-unused struct member.
Benno Schulenberg90f1ccf2016-03-04 18:28:03 +0000157 * src/global.c (free_list_item): Elide this now too tiny function.
Benno Schulenberg8a244c62016-03-04 20:22:27 +0000158 * scr/global.c (thanks_for_all_the_fish): Rename three variables.
Benno Schulenberg6a4d3aa2016-03-04 20:50:38 +0000159 * src/rcfile.c (parse_colors): Tweak a few things.
160 * src/color.c (color_update): Rename a variable.
Benno Schulenberg2070d3a2016-03-04 14:53:45 +0000161
Benno Schulenberg3df1a3f2016-03-01 11:06:00 +00001622016-03-01 Benno Schulenberg <bensberg@justemail.net>
163 * src/rcfile.c (parse_syntax), src/color.c (color_update): Don't
164 bother discarding a duplicate syntax (it's too rare, saves little
165 memory, and freeing it properly would cost even more code), just
166 select the last-defined one. This addresses Savannah bug #47303.
Benno Schulenbergce32cb02016-03-01 11:21:05 +0000167 * src/color.c (color_update): Allow to select an empty syntax.
Benno Schulenberg3df1a3f2016-03-01 11:06:00 +0000168
Benno Schulenberg85e166b2016-02-29 12:04:22 +00001692016-02-29 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberga24aee42016-02-29 09:17:03 +0000170 * src/nano.h, src/rcfile.c, src/color.c: Rename a struct member.
Benno Schulenbergaf40fb62016-03-12 09:37:48 +0000171 * src/rcfile.c (parse_rcfile): Don't allocate a struct for the
172 "none" syntax (and thus prevent it from being extended).
Benno Schulenberg773fc442016-02-29 10:54:48 +0000173 * src/nano.h, src/rcfile.c: Arrange some things more orderly.
Benno Schulenberg85e166b2016-02-29 12:04:22 +0000174 * src/rcfile.c (parse_rcfile): Close an extended syntax again.
Benno Schulenberg04669b52016-02-29 12:17:53 +0000175 * src/rcfile.c (parse_rcfile): Rename a variable.
Benno Schulenberge39423b2016-02-29 15:40:13 +0000176 * src/rcfile.c (grab_and_store): Fix breakage of r5695.
Benno Schulenberg83975022016-02-29 16:56:54 +0000177 * src/color.c (color_update): Do not dereference symlinks, so that
178 the syntax will be derived from the name given on the command line,
179 not from that of the target file. This fixes Savannah bug #47307.
Benno Schulenberga24aee42016-02-29 09:17:03 +0000180
1812016-02-28 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg3e7591f2016-02-28 11:04:36 +0000182 * src/rcfile.c (parse_header_exp): Don't continue when something is
183 wrong -- skip the rest of the line. This fixes Savannah bug #47289.
Benno Schulenberg1fba31e2016-02-28 15:16:27 +0000184 * src/rcfile.c (parse_header_exp, parse_magic_exp, grab_and_store):
185 Use the now correct parsing of header regexes also for parsing magic
186 regexes. This fixes Savannah bug #47292 and saves 50 lines of code.
Benno Schulenbergc2148cc2016-02-28 15:47:37 +0000187 * src/rcfile.c (grab_and_store): Rename a variable and densify.
Benno Schulenberg07f71e62016-02-28 16:36:23 +0000188 * src/rcfile.c (grab_and_store): Do not drop regexes that were
189 gathered earlier. This fixes Savannah bug #47285.
Benno Schulenberg68d94a02016-02-28 17:16:39 +0000190 * src/rcfile.c (grab_and_store): Rearrange things in my style.
Benno Schulenberg275e9f02016-02-28 20:38:14 +0000191 * src/rcfile.c (parse_syntax, parse_rcfile): Disallow adding any
192 further things to a syntax when an rcfile ends or when an invalid
193 syntax command is found. This fixes Savannah bug #47207.
Benno Schulenberg3e7591f2016-02-28 11:04:36 +0000194
Benno Schulenberg21469422016-02-26 09:04:54 +00001952016-02-26 Benno Schulenberg <bensberg@justemail.net>
196 * doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc,
197 doc/nanorc.sample.in: Correct the description of 'justifytrim', add
198 it to the Info document, sort it, and tweak a wording.
Benno Schulenberg812f9862016-02-26 16:08:21 +0000199 * src/color.c (color_update): Look for a default syntax only when
200 all else failed -- forego the small, complicating optimization.
Benno Schulenbergc3b9d292016-02-26 16:18:18 +0000201 * src/color.c (color_update): Strip things bare to see the sameness.
Benno Schulenberg4d536942016-02-26 16:37:23 +0000202 * src/color.c (found_in_list): Factor out this triple repetition.
Benno Schulenberge74a4c22016-02-26 17:11:35 +0000203 * src/color.c (color_update): Rename a variable for conciseness.
Benno Schulenberg21342122016-02-26 17:25:48 +0000204 * src/color.c (nfreeregex): Elide this function, now used just once.
Benno Schulenberg35227512016-02-26 20:09:29 +0000205 * src/nano.h: Rename a struct element for aptness and contrast.
Benno Schulenberg07441ad2016-02-26 20:19:13 +0000206 * src/nano.h: Rename another element, because it refers not just
207 to file extensions, but also to header lines and magic strings.
Benno Schulenberg21469422016-02-26 09:04:54 +0000208
Chris Allegretta162d5342016-02-25 21:46:09 +0000209GNU nano 2.5.3 - 2016.02.25
210
Benno Schulenberg761fa7c2016-02-25 13:52:54 +00002112016-02-25 Benno Schulenberg <bensberg@justemail.net>
212 * src/browser.c (do_browser): Plug a memory leak by not copying
213 a string twice. This fixes Savannah bug #47206.
Benno Schulenberg3b8989b2016-02-25 14:08:47 +0000214 * src/browser.c (do_browser): Now put things in the proper order.
Benno Schulenberg486e8282016-02-25 18:58:17 +0000215 * src/files.c (make_new_buffer), src/nano.c (splice_opennode): Elide
216 the latter function, by handling the two cases (the creation of the
217 first element, and the insertion of a new element) directly.
Benno Schulenberg761fa7c2016-02-25 13:52:54 +0000218
Benno Schulenberg8a2dd972016-02-23 08:31:57 +00002192016-02-23 Benno Schulenberg <bensberg@justemail.net>
220 * src/prompt.c (do_statusbar_output, do_statusbar_delete):
221 Rename a variable, for contrast and correctness.
Benno Schulenberg287f78a2016-02-23 12:07:58 +0000222 * src/cut.c (do_copy_text): Don't move the cursor when copying a
223 backwardly marked region. This fixes Savannah bug #46980.
Benno Schulenberga9a32d62016-02-23 12:18:10 +0000224 * src/text.c (do_undo, do_redo): Center the cursor when the
225 thing being undone or redone is currently off the screen.
Benno Schulenbergf5eb3162016-02-23 12:37:10 +0000226 * src/{files,nano,winio}.c: Rewrap and reshuffle some lines.
Benno Schulenberg8a2dd972016-02-23 08:31:57 +0000227
Benno Schulenberg6fef9202016-02-23 12:49:08 +00002282016-02-22 Chris Allegretta <chrisa@asty.org>
229 * Add the ability to kill the trailing spaces when justifying text,
Benno Schulenberga6946002016-02-26 09:20:59 +0000230 by adding a new nanorc option 'justifytrim' -- we'll see whether
231 this warrants a command-line flag or not. Now with slightly
Chris Allegretta16c037f2016-02-24 04:46:44 +0000232 better logic for multi-spaced lines.
Chris Allegretta6a0ae5a2016-02-22 15:10:32 +0000233
Benno Schulenbergf4f99542016-02-22 09:02:58 +00002342016-02-22 Benno Schulenberg <bensberg@justemail.net>
235 * src/nano.c (free_openfilestruct): Elide this function.
Benno Schulenberg818a39c2016-02-22 09:34:33 +0000236 * scr/global.c (thanks_for_all_the_fish, free_list_item): Condense.
Benno Schulenberg9d8c7292016-02-22 09:55:59 +0000237 * src/winio.c (edit_scroll): The amount to scroll is never zero.
Benno Schulenbergc1151662016-02-22 12:49:08 +0000238 * src/prompt.c (do_statusbar_prev_word, do_statusbar_next_word),
239 src/move.c (do_prev_word, do_next_word): Sort these in standard way.
Benno Schulenberg7c0e4332016-02-22 13:17:53 +0000240 * src/prompt.c (do_statusbar_output): Don't move too many bytes.
241 This fixes Savannah bug #47219 (uncovered by r5655).
Benno Schulenberg3ed08c52016-02-22 14:26:05 +0000242 * src/prompt.c (do_statusbar_output): Elide a variable.
Benno Schulenberg27e1e832016-02-22 16:51:39 +0000243 * src/prompt.c (do_statusbar_delete): There is no need for nulling:
244 the charmove() already copies the terminating null byte.
Benno Schulenberge085ebb2016-02-22 17:15:28 +0000245 * src/text.c (do_justify), src/winio.c (parse_escape_sequence):
246 Show the cursor after a justification and after an unrecognized
Benno Schulenberg7dd10302016-02-22 18:34:04 +0000247 escape sequence, and in the edit window when linting.
Benno Schulenberg6a002f52016-02-22 19:49:45 +0000248 * src/text.c (do_linter): Use the correct column number, also when
249 messages are skipped. And don't mind zero or negative numbers.
250 This is a partial fix for Savannah bug #47131.
Benno Schulenbergf4f99542016-02-22 09:02:58 +0000251
Benno Schulenberg801b3ce2016-02-21 13:33:52 +00002522016-02-21 Benno Schulenberg <bensberg@justemail.net>
253 * src/files.c (input_tab): If the first Tab added the part that all
254 matches have in common, don't require a third Tab to show the list.
Benno Schulenberg814a4222016-02-21 20:54:04 +0000255 * scr/global.c (thanks_for_all_the_fish): Remove unneeded checks.
Benno Schulenberg801b3ce2016-02-21 13:33:52 +0000256
Benno Schulenberge86dc032016-02-20 12:16:43 +00002572016-02-20 Benno Schulenberg <bensberg@justemail.net>
258 * src/search.c (get_history_completion): Avoid leaking memory
259 when tabbing on a string that does not occur in the history.
260 This fixes Savannah bug #47124 reported by Mike Frysinger.
Benno Schulenberg0f64fe02016-02-20 12:30:07 +0000261 * src/files.c (input_tab): Parse a character in the correct
262 buffer. This fixes Savannah bug #47199.
Benno Schulenbergacf19bd2016-02-20 16:35:09 +0000263 * src/prompt.c (do_statusbar_output): Reduce an allocation to what
264 is actually needed. This undoes the papering-over of above bug.
Benno Schulenberge86dc032016-02-20 12:16:43 +0000265
Benno Schulenberg56cfab32016-02-18 16:31:02 +00002662016-02-18 Benno Schulenberg <bensberg@justemail.net>
267 * src/search.c (do_replace_loop), src/text.c (do_int_spell_fix),
268 src/winio.c (edit_refresh): Fix Savannah bug #47127 the proper way.
Benno Schulenberg97039342016-02-18 19:58:18 +0000269 * src/nano.c (free_filestruct): Allow the parameter to be NULL.
Benno Schulenberg5fa5ccf2016-02-18 20:10:02 +0000270 * src/search.c (search_init): Delete a debugging leftover.
Benno Schulenberg56cfab32016-02-18 16:31:02 +0000271
Benno Schulenberg16ba6df2016-02-16 09:06:21 +00002722016-02-16 Benno Schulenberg <bensberg@justemail.net>
273 * src/files.c (initialize_buffer_text): Delete redundant assignment.
274
Benno Schulenberg6c0e5e32016-02-15 12:56:18 +00002752016-02-15 Benno Schulenberg <bensberg@justemail.net>
276 * src/files.c (read_file): Free not just the struct but also the
277 data it contains, and also when it is the first and only line.
278 This fixes Savannah bug #47153 reported by Mike Frysinger.
Benno Schulenberg706f0142016-02-15 16:24:39 +0000279 * src/files.c (get_full_path): Avoid losing a buffer when getcwd()
280 fails. This fixes Savannah bug #47129 reported by Mike Frysinger.
Benno Schulenberg6c0e5e32016-02-15 12:56:18 +0000281
Benno Schulenbergf3a1d7b2016-02-14 10:19:27 +00002822016-02-14 Benno Schulenberg <bensberg@justemail.net>
283 * src/search.c (do_replace_loop): Make iterating through replacement
284 matches behave again like iterating through search matches: showing
285 them centered when found offscreen. This fixes Savannah bug #47127.
Benno Schulenberg15947ac2016-02-14 10:29:48 +0000286 * src/text.c (do_int_spell_fix): Restore the above behavior also for
287 the internal spell fixer.
Benno Schulenbergef16a2a2016-02-14 11:16:54 +0000288 * src/prompt.c (do_statusbar_input, do_statusbar_verbatim_input,
289 do_statusbar_output): Do the copying from input to output just once.
Benno Schulenberge5400532016-02-14 12:03:47 +0000290 * src/prompt.c (do_statusbar_output): Rename and condense some stuff,
291 and correct the main comment: filtering means allow_cntrls==FALSE.
Benno Schulenberg8d005c82016-02-14 12:17:17 +0000292 * README, TODO, doc/man/{nano.1,rnano.1,nanorc.5}: Say that 2.5.x
293 is a "rolling" release, lock files are done, and prepare for 2.5.3.
Benno Schulenbergf3a1d7b2016-02-14 10:19:27 +0000294
Benno Schulenberg813f9f72016-02-13 16:42:30 +00002952016-02-13 Benno Schulenberg <bensberg@justemail.net>
296 * src/browser.c (do_browser, browser_refresh): Rebuild the file list
297 only when necessary, not for each and every cursor movement. This
298 fixes Savannah bug #47133.
Benno Schulenbergec3cd1e2016-02-13 17:00:06 +0000299 * src/files.c (save_poshistory): Allocate enough space for printing
300 out the line and column numbers. This fixes Savannah bug #47135.
Benno Schulenberg568d2a32016-02-13 19:41:12 +0000301 * src/*.c: Switch the cursor on and off at the appropriate moments,
302 so that it no longer shows in the help screen nor in the file list.
303 This fixes Savannah bug #47126.
Benno Schulenberg813f9f72016-02-13 16:42:30 +0000304
Chris Allegretta0f45b262016-02-12 05:25:29 +0000305GNU nano 2.5.2 - 2016.02.12
306
Benno Schulenbergd4118ef2016-02-11 08:50:11 +00003072016-02-11 Benno Schulenberg <bensberg@justemail.net>
308 * src/text.c (do_linter): Go to the next item in the list before
309 freeing the current one. This fixes Savannah bug #46796.
Benno Schulenberge39938c2016-02-11 16:57:52 +0000310 * src/text.c (do_formatter): Don't leave curses mode, as that would
311 hide any error messages upon reentry. And if there are any messages,
312 allow the user a little time to read them.
Benno Schulenbergde5b2632016-02-11 17:25:37 +0000313 * src/text.c (do_linter, do_formatter): Condense some declarations,
314 rewrap some lines, and improve a few comments.
Benno Schulenberg6f352032016-02-11 17:30:16 +0000315 * doc/syntax/go.nanorc: Make the formatter command more visible.
Benno Schulenbergd4118ef2016-02-11 08:50:11 +0000316
Benno Schulenbergef2cfa32016-02-10 08:49:23 +00003172016-02-10 Benno Schulenberg <bensberg@justemail.net>
318 * src/text.c (discard_until): Prevent a chain of editing actions from
319 continuing after a discard. This fixes Savannah bug #47104.
Benno Schulenbergd83bd7e2016-02-10 12:32:43 +0000320 * src/files.c (get_full_path): Plug a sneaky memory leak. This fixes
321 Savannah bug #47003 reported and solved by Mike Frysinger.
Benno Schulenberg14d1b3b2016-02-10 15:06:45 +0000322 * src/rcfile.c (parse_binding): Allow only control sequences in the
323 proper range to be rebound. This fixes Savannah bug #47025.
Benno Schulenberg9646d7c2016-02-10 16:26:51 +0000324 * THANKS: Add a Spanish, a Catalan, and a Croat translator.
Benno Schulenbergfddad262016-02-10 16:40:08 +0000325 * AUTHORS, THANKS: Remove SVN Id tags and a duplication.
Benno Schulenbergb8e0e222016-02-10 20:16:50 +0000326 * src/winio.c (get_kbinput), src/nano.c (main): Switch the cursor on
327 in the right place: in the central input routine.
Benno Schulenberg65efed52016-02-10 20:29:23 +0000328 * src/files.c (load_poshistory): Free any records that are dropped.
Benno Schulenberg6c82fd62016-02-11 08:26:08 +0000329 This fixes Savannah bug #47111 reported by Mike Frysinger.
Benno Schulenbergef2cfa32016-02-10 08:49:23 +0000330
Benno Schulenbergcdeb9052016-02-09 20:53:11 +00003312016-02-09 Benno Schulenberg <bensberg@justemail.net>
332 * src/files.c (stat_with_alloc, open_buffer, write_file): Check the
333 result of a stat() to avoid referencing unitialized data. Original
334 patch was by Kamil Dudka.
Benno Schulenberg0dbc8672016-02-09 20:57:37 +0000335 * doc/man/{nano.1,rnano.1,nanorc.5}: Adjust version for release.
Benno Schulenbergcdeb9052016-02-09 20:53:11 +0000336
Benno Schulenberg05334a22016-02-07 12:49:42 +00003372016-02-07 Benno Schulenberg <bensberg@justemail.net>
338 * src/files.c (update_poshistory): Don't put files in the history list
339 when they have the default cursor position (line 1, column 1).
Benno Schulenberg12f27292016-02-07 13:03:48 +0000340 * src/files.c (write_file): Avoid a pointless lstat() when not writing
341 to a temp file, and in the bargain elide two variables.
Benno Schulenberg98a8c062016-02-07 13:08:27 +0000342 * src/files.c (write_file): Elide an unneeded 'if'.
Benno Schulenberg836fa702016-02-07 13:14:23 +0000343 * doc/syntax/c.nanorc: Use a character class instead of a literal tab
344 and space. The change was inspired by David Niklas.
Benno Schulenberge5fee7e2016-02-07 13:37:16 +0000345 * src/prompt.c (do_yesno_prompt): Normalize the indentation.
Benno Schulenberge853c1e2016-02-07 13:41:46 +0000346 * src/prompt.c (do_yesno_prompt): Rename a variable.
Benno Schulenberg05334a22016-02-07 12:49:42 +0000347
Benno Schulenberg68292412016-02-06 10:59:31 +00003482016-02-06 Benno Schulenberg <bensberg@justemail.net>
349 * src/files.c (write_file): Remove the --nofollow option that hasn't
350 been working for a dozen years.
Benno Schulenbergcc2d3702016-02-06 11:05:58 +0000351 * src/winio.c (statusbar): Update the screen immediately whenever a
352 message has been posted on the status bar.
Benno Schulenberg97dcd372016-02-06 11:18:27 +0000353 * src/winio.c (statusbar), src/nano.c (do_input): Turn the cursor off
354 when writing in the status bar, and on when waiting for input.
Benno Schulenbergd844f052016-02-06 11:40:15 +0000355 * src/prompt.c (update_the_statusbar): Chop two parameters that are
356 always the same, and that are global variables anyway.
Benno Schulenberg2cfa96b2016-02-06 11:44:33 +0000357 * src/prompt.c (update_bar_if_needed): Rename this for more contrast.
Benno Schulenberg8585bf22016-02-06 11:50:57 +0000358 * src/prompt.c (do_statusbar_backspace): Avoid updating the bar twice.
Benno Schulenberg22a01ca2016-02-06 12:12:08 +0000359 * src/cut.c, src/files.c, src/prompt.c: Rewrap some lines and remove
360 some useless comments.
Benno Schulenberg68292412016-02-06 10:59:31 +0000361
Benno Schulenberg2a2e0122016-02-05 11:55:55 +00003622016-02-05 Benno Schulenberg <bensberg@justemail.net>
363 * doc/texinfo/nano.texi: Condense the descriptions of command-key
364 sequences and of the screen layout, mention how to enter Unicode,
365 and mention that regular expressions are line oriented.
Benno Schulenberg5a5144b2016-02-05 12:01:02 +0000366 * src/global.c (shortcut_init): Put four strings in standard order.
Benno Schulenbergcca22bb2016-02-05 12:27:54 +0000367 * src/text.c (do_undo), src/global.c (shortcut_init): Guide the
368 translators a little bit.
Benno Schulenberg2a2e0122016-02-05 11:55:55 +0000369
Benno Schulenbergba987352016-01-31 13:06:06 +00003702016-01-31 Benno Schulenberg <bensberg@justemail.net>
371 * src/files.c (has_valid_path): Be more specific in how a given path
372 is invalid. The change was improved by Rishabh Dave.
Benno Schulenberg7b74fed2016-01-31 13:20:40 +0000373 * doc/syntax/nanorc.nanorc: Show ^^ and M-^ as valid key names.
Benno Schulenberg7ade5de2016-01-31 13:26:15 +0000374 * src/prompt.c (do_statusbar_home): Make Home go always fully home.
Benno Schulenbergba987352016-01-31 13:06:06 +0000375
Benno Schulenbergd8801ec2016-01-29 16:01:43 +00003762016-01-29 Benno Schulenberg <bensberg@justemail.net>
377 * src/files.c (do_insertfile): Do display the buffer when configured
378 with only --disable-histories. This fixes Savannah bug #47011.
Benno Schulenberg98e72f52016-01-29 17:18:27 +0000379 * src/nano.c (main): Check position history only when 'positionlog'
380 is set. This fixes a bug unconsciously reported by Mike Frysinger.
Benno Schulenberg41f08532016-01-29 16:58:02 +0000381 * src/files.c (do_lockfile): Plug a couple of memory leaks.
Benno Schulenberg68ab4b82016-01-29 20:39:12 +0000382 * src/files.c (update_poshistory): Plug another memory leak.
Benno Schulenbergf96f4fe2016-01-29 20:43:54 +0000383 * src/files.c (close_buffer): Update position history only when
384 the option 'positionlog' is set.
Benno Schulenbergd8801ec2016-01-29 16:01:43 +0000385
Benno Schulenberg7256b052016-01-26 09:06:31 +00003862016-01-26 Benno Schulenberg <bensberg@justemail.net>
387 * src/files.c (update_poshistory): Do not add directories to the
388 list of file positions. This fixes Savannah bug #46971.
Benno Schulenberg65c7c812016-01-26 09:16:09 +0000389 * src/*.c: Adjust some indentation and some line wrapping.
Benno Schulenberg5688c162016-01-26 10:10:20 +0000390 * src/prompt.c (do_statusbar_prev_word): When in the middle of a
391 word, jump to the start of the current word, not to the start of
392 the preceding one. This fixes Savannah bug #46970.
Benno Schulenberga93a11e2016-01-26 10:31:16 +0000393 * src/prompt.c (do_statusbar_next_word): Use simpler algorithm.
Benno Schulenberg7256b052016-01-26 09:06:31 +0000394
Benno Schulenbergae422402016-01-25 20:26:01 +00003952016-01-25 Benno Schulenberg <bensberg@justemail.net>
396 * src/files.c (update_poshistory): Handle an update of the first
397 element correctly.
Benno Schulenberg2b72f1d2016-01-25 20:38:10 +0000398 * doc/texinfo/nano.texi: Document the --enable-altrcname option.
399 The lack of this was pointed out by Frank.
Benno Schulenberg33318282016-01-25 20:51:00 +0000400 * doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Mention
401 that the position history is limited to the 200 most recent files.
Benno Schulenbergae422402016-01-25 20:26:01 +0000402
Benno Schulenberg8c705b52016-01-24 14:49:42 +00004032016-01-24 Benno Schulenberg <bensberg@justemail.net>
404 * src/files.c (update_poshistory): Move an updated item to the end
405 of the list, so that it won't be dropped any time soon. The problem
406 was pointed out by David Niklas.
Benno Schulenbergb8d32d82016-01-24 15:32:13 +0000407 * src/winio.c (edit_redraw): Condense by removing a triplication.
Benno Schulenbergeed1aab2016-01-24 15:42:45 +0000408 * src/prompt.c (do_statusbar_prev_word, do_statusbar_next_word):
409 Chop an always-FALSE parameter and delete an unused return value.
Benno Schulenberg53c8ada2016-01-24 16:04:25 +0000410 * src/prompt.c (do_prompt): Remove a superfluous free.
Benno Schulenbergf01dd292016-01-24 20:36:02 +0000411 * src/prompt.c (update_the_bar): Bundle some statements.
Benno Schulenbergdecee322016-01-24 20:44:39 +0000412 * src/prompt.c (need_statusbar_update): Elide this function.
Benno Schulenberg87460b52016-01-24 21:02:09 +0000413 * src/prompt.c (total_statusbar_refresh): Elide this function too.
Benno Schulenberg8c705b52016-01-24 14:49:42 +0000414
Benno Schulenberg3a3b1762016-01-22 16:10:36 +00004152016-01-22 Benno Schulenberg <bensberg@justemail.net>
416 * src/utils.c (get_homedir): Don't use $HOME when we're root, because
417 some sudos don't filter it out of the environment (which can lead to
418 a root-owned .nano/ directory in the invoking user's home directory).
419 It fixes https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1471459.
Benno Schulenbergcd1d4352016-01-22 16:56:04 +0000420 * src/files.c (read_line): Rename a variable for clarity and contrast.
Benno Schulenberg3a3b1762016-01-22 16:10:36 +0000421
Benno Schulenbergaa7edb72016-01-21 17:29:37 +00004222016-01-21 Benno Schulenberg <bensberg@justemail.net>
423 * src/prompt.c (get_prompt_string): Preserve the cursor position on
424 the statusbar when just toggling a setting or making an excursion to
425 the file browser. This fixes Savannah bug #46945.
Benno Schulenberg7a1709f2016-01-21 18:23:17 +0000426 * src/prompt.c (do_prompt_abort): Remove this unneeded function, as
427 nothing can break out of do_prompt(), not a SIGWINCH either.
428 * src/prompt.c (get_prompt_string): Delete code that is dead now.
Benno Schulenberga4437602016-01-21 18:29:39 +0000429 * src/prompt.c (get_prompt_string): Elide an unneeded variable.
Benno Schulenberg0af2f9e2016-01-21 20:44:22 +0000430 * src/browser.c (do_browser): Delete unneeded blanking of a variable.
Benno Schulenbergaa7edb72016-01-21 17:29:37 +0000431
Benno Schulenberga91a1c72016-01-20 15:33:41 +00004322016-01-20 Benno Schulenberg <bensberg@justemail.net>
433 * src/files.c (open_buffer): Readjust the indentation and a comment.
Benno Schulenbergfe3d8492016-01-20 15:56:40 +0000434 * src/files.c (has_valid_path): Get rid of a global variable.
Benno Schulenberga91a1c72016-01-20 15:33:41 +0000435
Benno Schulenberg8bd76d82016-01-20 15:14:52 +00004362016-01-20 Rishabh Dave <rishabhddave@gmail.com>
437 * src/files.c (verify_path, open_buffer): When opening a new buffer,
438 verify that the containing directory of the given filename exists.
Benno Schulenberga68e1622016-01-20 16:17:21 +0000439 This fixes Savannah bug #44950.
Benno Schulenberg8bd76d82016-01-20 15:14:52 +0000440 * src/files.c (do_lockfile): Remove the existence check on the
441 directory, as this is now covered by verify_path().
442
Benno Schulenberga3a69ee2016-01-17 16:25:31 +00004432016-01-17 Benno Schulenberg <bensberg@justemail.net>
444 * src/global.c: Fix typo in #ifndef symbol. Reported by Frank.
Benno Schulenberg13ba5432016-01-17 16:47:20 +0000445 * doc/syntax/nanorc.nanorc: Remove '+' as only one menu is allowed.
Benno Schulenbergf8f2d632016-01-17 17:04:28 +0000446 * src/files.c (load_poshistory): Limit the number of loaded items.
Benno Schulenberga3a69ee2016-01-17 16:25:31 +0000447
Benno Schulenbergffae5822016-01-17 16:15:08 +00004482016-01-17 Mike Frysinger <vapier@gentoo.org>
449 * doc/syntax/nanorc.nanorc: Allow inline comments with key bindings.
450
Benno Schulenbergdfeb0f92016-01-15 13:27:12 +00004512016-01-15 Benno Schulenberg <bensberg@justemail.net>
452 * src/winio.c (set_modified): Plug another memory leak.
Benno Schulenberg38acacb2016-01-15 14:42:07 +0000453 * src/files.c (set_modified): Move this function to its habitat.
Benno Schulenbergcaa759b2016-01-15 14:23:50 +0000454 * src/files.c (open_file): Return the fantastic file descriptor
Benno Schulenberg6fef9202016-02-23 12:49:08 +0000455 when the opening of a non-existent file for reading succeeds.
Benno Schulenbergf8459382016-01-15 16:44:50 +0000456 * src/nano.c (delete_opennode), src/text.c (discard_until):
457 Free the items on the undo stack when a buffer is closed.
458 This fixes Savannah bug #46904 reported by Mike Frysinger.
Benno Schulenbergdfeb0f92016-01-15 13:27:12 +0000459
Benno Schulenberg0ee77292016-01-15 13:17:44 +00004602016-01-15 Mike Frysinger <vapier@gentoo.org>
461 * src/files.c (open_file): Free the full filename in all cases.
462
Benno Schulenbergba7ac782016-01-14 13:14:16 +00004632016-01-14 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg8f463772016-01-14 13:27:22 +0000464 * doc/nanorc.sample.in: Remove a reference to an obsolete file.
Benno Schulenbergba7ac782016-01-14 13:14:16 +0000465 Reported by Mike Frysinger.
Benno Schulenberg8f463772016-01-14 13:27:22 +0000466 * src/winio.c (edit_redraw): Delete an 'if' that is always FALSE.
Benno Schulenberg8a9f7162016-01-14 13:41:45 +0000467 * src/winio.c (edit_redraw): Elide an unneeded variable and adjust
468 some wrappings and whitespace.
Benno Schulenberg431cec42016-01-14 13:52:39 +0000469 * src/proto.h: Delete two duplicate declarations.
Benno Schulenberg33fb1742016-01-14 14:34:05 +0000470 * src/rcfile.c (check_bad_binding): Elide this unneeded function.
Benno Schulenberg63370952016-01-14 14:44:11 +0000471 * src/rcfile.c (parse_binding): Show key only when it was rebound.
Benno Schulenbergba7ac782016-01-14 13:14:16 +0000472
Benno Schulenbergecf3cd72016-01-13 20:08:36 +00004732016-01-13 Benno Schulenberg <bensberg@justemail.net>
474 * src/files.c (save_poshistory): Reduce the indentation.
Benno Schulenberg34fbb1f2016-01-13 20:32:40 +0000475 * src/*.c: Adjust a few comments and rewrap some lines.
Benno Schulenbergecf3cd72016-01-13 20:08:36 +0000476
Benno Schulenberg5b350b82016-01-12 11:03:00 +00004772016-01-12 Benno Schulenberg <bensberg@justemail.net>
478 * NEWS: Fix some typos and whitespace, and normalize the dates.
Benno Schulenberg583b67b2016-01-12 11:16:39 +0000479 * src/files.c (load_poshistory): Rename a variable.
Benno Schulenbergcb832be2016-01-12 19:07:01 +0000480 * src/files.c (load_poshistory): Remove some code duplication.
Benno Schulenbergdeb271d2016-01-12 19:20:40 +0000481 * src/files.c (save_poshistory, update_poshistory, check_poshistory,
482 load_poshistory): Differentiate variable name from function names.
Benno Schulenberg73ee7d72016-01-12 20:08:31 +0000483 * src/files.c (load_poshistory): Remove a senseless iteration.
Benno Schulenberg774c8ba2016-01-12 20:17:05 +0000484 * src/files.c (load_poshistory): Condense the reading of a line.
Benno Schulenberg96b92492016-01-12 20:26:59 +0000485 * src/files.c (load_poshistory): Reduce the indentation.
Benno Schulenberg5b350b82016-01-12 11:03:00 +0000486
Benno Schulenberg53991cf2016-01-12 10:23:38 +0000487GNU nano 2.5.1 - 2016.01.11
Chris Allegretta26347ed2016-01-11 05:03:20 +0000488
Benno Schulenberg83475b02016-01-10 16:10:57 +00004892016-01-10 Benno Schulenberg <bensberg@justemail.net>
490 * NEWS: Add item for upcoming 2.5.1.
Benno Schulenberg1b293ff2016-01-10 16:18:43 +0000491 * src/nano.c (version), src/winio.c (do_credits), doc/man/rnano.1,
492 doc/man/nano.1, doc/man/nanorc.5: Adjust dates and version number.
Benno Schulenberg83475b02016-01-10 16:10:57 +0000493
Benno Schulenbergebbb5b52016-01-09 18:41:56 +00004942016-01-09 Benno Schulenberg <bensberg@justemail.net>
495 * src/color.c (precalc_multicolorinfo), src/winio.c (edit_draw):
496 Make sure to keep advancing also when matches are zero-length.
497 This fixes Savannah bug #26977 reported by Tigrmesh.
Benno Schulenbergec4ee1c2016-01-09 20:21:29 +0000498 * src/winio.c (update_line): For softwrap, don't go beyond the number
499 of available rows in the edit window. This fixes Savannah bug #42188.
Benno Schulenberg113cd502016-01-09 21:10:39 +0000500 * ChangeLog: Snip inconsistent blank lines.
Benno Schulenbergebbb5b52016-01-09 18:41:56 +0000501
Benno Schulenberg6d6cda22016-01-07 15:21:59 +00005022016-01-07 Benno Schulenberg <bensberg@justemail.net>
503 * src/global.c (assign_keyinfo): Delete two unneeded #ifdefs: if
504 they /could/ be false, the H and E keys would stop working.
Benno Schulenberg1ac2c4c2016-01-07 15:42:44 +0000505 * src/global.c (assign_keyinfo): Add a comment and use a symbol.
Benno Schulenberg6d6cda22016-01-07 15:21:59 +0000506
Benno Schulenberg7a08fa62016-01-04 09:44:35 +00005072016-01-04 Benno Schulenberg <bensberg@justemail.net>
508 * src/global.c (shortcut_init): Nowadays the functions are defined
509 only once, so there is no longer any need to free existing ones.
Benno Schulenbergdd29c562016-01-04 09:52:43 +0000510 * src/global.c (sctofunc): Rewrite the loop, and constify the input.
Benno Schulenberg0dd351a2016-01-04 10:05:52 +0000511 * src/text.c (do_linter): Condense the exit code.
Benno Schulenberg9e6b9a22016-01-04 10:37:11 +0000512 * src/nano.c (allow_sigwinch): Improve its name and its comments.
Benno Schulenberg22557df2016-01-04 10:50:21 +0000513 * src/global.c (shortcut_init): Add "Tab" as key description.
Benno Schulenberg9d72efa2016-01-04 11:10:07 +0000514 * src/text.c (do_linter): Gettextize a forgotten string.
Benno Schulenberg9962e3b2016-01-04 19:42:37 +0000515 * src/global.c (assign_keyinfo): Make "Tab" produce the appropriate
516 keycode. This fixes Savannah bug #46812 reported by Cody A. Taylor.
Benno Schulenberg7a08fa62016-01-04 09:44:35 +0000517
Benno Schulenberg539a4b42016-01-04 09:12:21 +00005182016-01-04 Mike Frysinger <vapier@gentoo.org>
519 * src/global.c (strtosc, strtomenu): Constify the input parameter.
520
Benno Schulenberg5765e962016-01-03 15:35:52 +00005212016-01-03 Benno Schulenberg <bensberg@justemail.net>
522 * src/text.c (do_deletion), src/nano.c (do_input): Let reset_multis()
523 figure out whether after a deletion a full refresh is needed, before
524 doing a redraw of the current line. This fixes Savannah bug #46794.
Benno Schulenberg37712fb2016-01-03 16:21:04 +0000525 * src/nano.c (do_output): Let reset_multis() figure out whether after
526 an addition a full refresh is needed (for multiline-regexes' sake),
527 instead of doing it always.
Benno Schulenberga5bc70a2016-01-03 16:57:17 +0000528 * src/color.c (reset_multis): Abort when having no multiline regexes.
Benno Schulenberg0d85c8c2016-01-03 17:07:29 +0000529 * src/nano.c (do_input): A functionless shortcut should be impossible.
Benno Schulenberg42a761e2016-01-03 17:37:05 +0000530 * src/nano.c (do_input): Adjust indentation.
Benno Schulenberg5765e962016-01-03 15:35:52 +0000531
Benno Schulenberg9eca1952016-01-02 16:01:04 +00005322016-01-02 Benno Schulenberg <bensberg@justemail.net>
533 * src/text.c (do_spell, do_formatter): Plug three tiny memory leaks.
Benno Schulenberg97e94762016-01-02 16:25:50 +0000534 * src/text.c (do_alt_speller, do_formatter): There is no need here to
535 reinitialize the windows; it will be done when polling the keybuffer.
Benno Schulenbergc916ca82016-01-02 16:33:03 +0000536 * src/winio.c (do_credits): Correctly restore the settings of NO_HELP
537 and MORE_SPACE.
Benno Schulenberg9eca1952016-01-02 16:01:04 +0000538
Benno Schulenberg33bc96a2015-12-31 16:44:32 +00005392015-12-31 Benno Schulenberg <bensberg@justemail.net>
540 * src/text.c (do_formatter): Restore the cursor position differently.
Benno Schulenberg8f0262f2015-12-31 16:49:07 +0000541 * src/search.c (do_gotopos): Delete this now unused function.
Benno Schulenberg8f463772016-01-14 13:27:22 +0000542 * src/search.c (do_gotolinecolumn): Chop an always-FALSE parameter.
Benno Schulenberg46db6382015-12-31 19:20:40 +0000543 * src/search.c (do_gotolinecolumn): Chop a duplicate parameter --
544 'allow_update' always has the same value as 'interactive'.
Benno Schulenberg33bc96a2015-12-31 16:44:32 +0000545
Benno Schulenberg37d8ad82015-12-30 10:11:20 +00005462015-12-30 Benno Schulenberg <bensberg@justemail.net>
547 * src/nano.c (main), src/files.c (open_buffer): Don't try to position
548 the cursor when opening a buffer failed (because the user specified a
549 directory, for example). This fixes Savannah bug #46778.
Benno Schulenberg26bc0372015-12-30 20:57:31 +0000550 * doc/syntax/ocaml.nanorc: Normalize the comments.
Benno Schulenberg37d8ad82015-12-30 10:11:20 +0000551
Benno Schulenbergae598e72015-12-29 16:48:25 +00005522015-12-29 Benno Schulenberg <bensberg@justemail.net>
553 * doc/syntax/{c,objc,asm}.nanorc: Disable the regex for multiline
554 strings as it colours some things wrong and is a glutton on time.
555
Benno Schulenberg8cc63082015-12-23 16:34:44 +00005562015-12-23 Benno Schulenberg <bensberg@justemail.net>
557 * src/files.c (do_writeout, do_writeout_void), src/global.c
558 (shortcut_init, strtosc), src/nano.c (do_exit, close_and_go),
559 doc/man/nanorc.5, doc/texinfo/nano.texi: In the writeout menu,
560 offer ^Q to close and discard the buffer without saving it. By
561 default, the key is bound only when --tempfile is in effect.
Benno Schulenberga0eea602015-12-23 16:37:04 +0000562 * doc/man/nanorc.5: Improve ordering of bindable functions.
Benno Schulenberg31e1af62015-12-23 16:44:39 +0000563 * src/files.c (read_file): Don't open an extra blank buffer when
564 an empty file is read. Bug was exposed by r5498, December 18.
Benno Schulenberg480b6a32015-12-23 19:18:33 +0000565 * src/files.c (do_writeout): When the user decides to save the
566 buffer after all, go back to the filename prompt because the
567 buffer may not have a name yet. This fixes Savannah bug #46752.
Benno Schulenberg8cc63082015-12-23 16:34:44 +0000568
Benno Schulenberg451b2992015-12-23 10:54:40 +00005692015-12-23 Mike Frysinger <vapier@gentoo.org>
570 * doc/syntax/autoconf.nanorc: Handle .m4 files too, add the "elif"
571 keyword, handle dnl comments better, and mark trailing whitespace.
Benno Schulenberg277f58f2015-12-23 13:37:55 +0000572 * src/files.c (save_history, save_poshistory): Don't make the user
573 hit Enter when there's an error saving history state at exit; it is
574 pointless and annoying. Just notify the user and move on.
Benno Schulenberg1bebe342015-12-23 14:05:47 +0000575 * src/nano.c (main): On most 64-bit systems, casting a pointer to
576 an integer can cause valid pointers to be truncated and rejected.
577 Rework the code to test for the two invalid values directly.
Benno Schulenberg451b2992015-12-23 10:54:40 +0000578
Benno Schulenberg454f6eb2015-12-23 09:39:50 +00005792015-12-23 Christian Weisgerber <naddy@mips.inka.de>
580 * configure.ac: AC_CHECK_HEADERS_ONCE() is very special and cannot be
581 conditionalized. Use plain AC_CHECK_HEADERS() instead, to not check
582 for magic.h and zlib.h when configuring with --disable-libmagic.
583
5842015-12-22 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg31f04562015-12-22 16:51:00 +0000585 * src/color.c (precalc_multicolorinfo, alloc_multidata_if_needed):
586 Move these two functions to the file where they belong. And make
587 the checking for an impatient user into a separate routine.
Benno Schulenberg46082bd2015-12-22 19:00:25 +0000588 * src/proto.h, src/winio.c (parse_escape_sequence, convert_sequence,
589 arrow_from_abcd): Better names for these three functions.
Benno Schulenbergbd917852015-12-22 20:24:50 +0000590 * src/winio.c (convert_sequence): Use return instead of a variable.
Benno Schulenberg31f04562015-12-22 16:51:00 +0000591
Benno Schulenberg5737fe32015-12-20 21:10:41 +00005922015-12-20 Benno Schulenberg <bensberg@justemail.net>
593 * src/files.c (display_buffer), src/nano.c (main): Precalculate the
594 multiline-regex cache data for each buffer, not just for the first.
595 This fixes Savannah bug #46511.
596
Benno Schulenberg8295a882015-12-18 10:41:09 +00005972015-12-18 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg4fc16842015-12-18 10:45:35 +0000598 * src/color.c (color_init): Use less #ifdefs, and adjust indentation.
Benno Schulenbergd6391292015-12-18 18:44:40 +0000599 * src/color.c (set_colorpairs): Improve comments and rename vars.
Benno Schulenberg22e92832015-12-18 19:18:23 +0000600 * src/files.c (read_line): Chop a superfluous bool -- 'prevnode' being
601 NULL is enough indication that the first line is being read.
Benno Schulenberg72760152015-12-18 20:44:01 +0000602 * src/files.c (switch_to_prevnext_buffer): Tweak comment and var name.
Benno Schulenberg8295a882015-12-18 10:41:09 +0000603
Benno Schulenberga77efae2015-12-11 16:55:07 +00006042015-12-11 Benno Schulenberg <bensberg@justemail.net>
605 * doc/syntax/Makefile.am: Add missing autoconf and nftables syntaxes.
606 * ChangeLog: Correct a bug number, plus a few other tweaks.
607
Benno Schulenberg77c03572015-12-08 15:29:56 +00006082015-12-08 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberga64bfbe2015-12-08 16:02:05 +0000609 * src/nano.c (splice_node, unlink_node): Let these functions update
610 'filebot', instead of doing it in four different places each.
Benno Schulenbergdd1b2dc2015-12-22 16:52:09 +0000611 * src/search.c (goto_line_posx), src/move.c (do_down): It should not
Benno Schulenberg58346382015-12-08 18:54:13 +0000612 be necessary to doubly check for being at the end of file.
Benno Schulenberg9a6f62f2015-12-08 19:09:14 +0000613 * src/text.c (do_justify): Rewrap and reorder a few lines.
Benno Schulenberg77c03572015-12-08 15:29:56 +0000614
Benno Schulenberg5d279102015-12-07 15:40:07 +00006152015-12-07 Benno Schulenberg <bensberg@justemail.net>
616 * src/winio.c (edit_draw): Quit the loop when there is no end match.
Benno Schulenbergcac3c332015-12-07 17:05:04 +0000617 * src/files.c (do_writeout): When --tempfile is given, make ^O not
618 write out the file rightaway, as otherwise there is no way to discard
619 the edits. This undoes the core part of r5378 of September 29. See
620 https://lists.gnu.org/archive/html/help-nano/2015-11/msg00005.html.
Benno Schulenberg5d279102015-12-07 15:40:07 +0000621
Chris Allegrettafa695742015-12-06 05:24:07 +0000622GNU nano 2.5.0 - 2015.12.05
623
Benno Schulenberg6fef9202016-02-23 12:49:08 +00006242015-12-05 Chris Allegretta <chrisa@asty.org>
Benno Schulenbergdd1b2dc2015-12-22 16:52:09 +0000625 * src/nano.c (main): key_defined() is an ncurses-ism. Add better
626 checks for this.
Chris Allegrettac4a67252015-12-06 05:21:43 +0000627
Benno Schulenberg40e1fd32015-12-05 10:16:26 +00006282015-12-05 Benno Schulenberg <bensberg@justemail.net>
629 * src/text.c: Fix compilation with --enable-tiny --enable-justify.
Benno Schulenberg26151182015-12-05 11:04:24 +0000630 * doc/man/{nano.1,rnano.1,nanorc.5}, doc/texinfo/nano.texi:
631 Update date and version number to match the upcoming release.
Benno Schulenbergbb311182015-12-05 11:38:26 +0000632 * src/files.c, src/winio.c: Avoid two compilation warnings.
Benno Schulenberg40e1fd32015-12-05 10:16:26 +0000633
Benno Schulenbergf2da4662015-12-04 21:11:10 +00006342015-12-04 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergc12d1b82015-12-04 11:01:48 +0000635 * src/proto.h: Avoid a compilation warning.
Benno Schulenbergba8f8062015-12-04 20:54:34 +0000636 * src/color.c (reset_multis_for_id, reset_multis_before/after):
637 Fuse these three functions into a single one.
Benno Schulenbergf2da4662015-12-04 21:11:10 +0000638 * src/*.c: Rewrap some lines and tweak some comments.
Benno Schulenbergc12d1b82015-12-04 11:01:48 +0000639
6402015-12-03 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergee5cdcb2015-12-03 08:50:34 +0000641 * src/text.c (discard_until): Move the trimming of the undo stack
642 into a separate function, so it can be used elsewhere.
Benno Schulenberg8651fef2015-12-03 09:03:45 +0000643 * src/text.c (do_justify): Discard the entire undo stack, to prevent
644 nano from dying (or making mistakes) when trying to undo edits after
645 a justification. This works around Savannah bug #45531.
Benno Schulenberg4bc8ff12015-12-03 09:17:06 +0000646 * src/text.c (do_indent): Also here discard the entire undo stack, to
647 prevent nano from making mistakes when trying to undo edits after an
648 indentation change. This works around Savannah bug #46591.
Benno Schulenbergccc9b242015-12-03 09:34:10 +0000649 * doc/man/nano.1, doc/texinfo/nano.texi: Add a note about undo not
650 working after a justification or reindentation.
Benno Schulenbergee5cdcb2015-12-03 08:50:34 +0000651
Benno Schulenberg5634d7d2015-12-02 09:19:04 +00006522015-12-02 Benno Schulenberg <bensberg@justemail.net>
653 * doc/syntax/python.nanorc: Don't colour triple quotes by themselves.
Benno Schulenberg1ea76eb2015-12-02 10:29:18 +0000654 * doc/syntax/python.nanorc: Treat backslashed quotes properly, and
655 don't colour triple-quoted strings in two manners.
Benno Schulenberg1fbcf0b2015-12-02 19:03:34 +0000656 * src/text.c (do_justify): Accept not just the Uncut keystroke but
657 also the Undo keystroke for undoing a justification.
Benno Schulenberg5634d7d2015-12-02 09:19:04 +0000658
Benno Schulenberga41968e2015-12-03 08:35:40 +00006592015-12-02 Arturo Borrero González <arturo.borrero.glez@gmail.com>
Benno Schulenbergad1f1bc2015-12-02 09:14:45 +0000660 * doc/syntax/nftables.nanorc: New file; syntax colouring for nftables.
661 This addresses Debian bug #805288.
662
Benno Schulenberg6a88d8a2015-12-01 11:39:04 +00006632015-12-01 Benno Schulenberg <bensberg@justemail.net>
664 * src/files.c (do_insertfile): Mark the buffer as mofified only when
665 actually something was inserted. This fixes Savannah bug #45409.
Benno Schulenberg4ea55c32015-12-01 11:43:13 +0000666 * src/files.c (do_insertfile): Rename two variables for clarity.
Benno Schulenbergae22fe02015-12-01 11:51:10 +0000667 * src/text.c (redo_cut): Delete two redundant assignments.
Benno Schulenberg3d6378b2015-12-01 12:35:48 +0000668 * src/winio.c (edit_draw): Move a check to a better place.
Benno Schulenbergeee07d52015-12-01 12:49:17 +0000669 * src/winio.c (edit_draw): Rename a label and elide an 'else'.
Benno Schulenberg07e806e2015-12-01 13:33:45 +0000670 * src/winio.c (edit_draw): Unindent after previous change.
Benno Schulenbergc9e91df2015-12-01 13:44:52 +0000671 * src/color.c (reset_multis_before, reset_multis_after): Delete four
672 superfluous checks.
Benno Schulenberg6a88d8a2015-12-01 11:39:04 +0000673
Benno Schulenberg6b156602015-11-30 15:49:37 +00006742015-11-30 Benno Schulenberg <bensberg@justemail.net>
675 * src/text.c (redo_cut, update_undo): When cutting reaches the EOF,
676 and NONEWLINES is set, there is no next line at which to put the
677 cutting point for a redo. So put it at the very end of the cut.
678 This fixes Savannah bug #46541.
Benno Schulenberg66e21412015-11-30 16:21:51 +0000679 * src/text.c (add_undo, update_undo, do_undo, do_redo), src/nano.h:
680 Store and retrieve the correct file size before and after an action.
681 This fixes Savannah bug #45523.
Benno Schulenberg42ac5362015-11-30 16:44:44 +0000682 * src/files.c (free_chararray): Allow the parameter to be NULL.
683 This fixes Savannah bug #46420.
Benno Schulenberg6b156602015-11-30 15:49:37 +0000684
Benno Schulenbergf9a6eb82015-11-29 10:07:49 +00006852015-11-29 Benno Schulenberg <bensberg@justemail.net>
686 * src/color.c (reset_multis): Evaluate correctly whether to reset
687 the multidata cache. This fixes Savannah bug #46543.
Benno Schulenberg6135e282015-11-29 10:14:25 +0000688 * src/color.c (reset_multis): Reset the multidata a bit less often.
Benno Schulenberg9e22e8b2015-11-29 10:43:10 +0000689 * src/color.c (reset_multis): Adjust whitespace and comments.
Benno Schulenberge19a16f2015-11-29 12:31:49 +0000690 * src/winio.c (edit_draw): When an end is found but nothing is painted
691 (because the coloured part is horizontally scrolled off), nevertheless
692 set the multidata to CBEGINBEFORE. This fixes Savannah bug #46545.
Benno Schulenbergee335032015-11-29 13:20:08 +0000693 * src/winio.c (edit_draw): Use the main cache-allocation routine.
Benno Schulenberg98f2f852015-11-29 13:52:48 +0000694 * src/winio.c (edit_draw): Delete two redundant conditions, and move
695 the least frequent case to the end.
Benno Schulenberg01292992015-11-29 14:15:16 +0000696 * src/winio.c (edit_draw): Elide a variable, tweak some comments.
Benno Schulenbergf9a6eb82015-11-29 10:07:49 +0000697
Benno Schulenbergbe016472015-11-28 17:29:39 +00006982015-11-28 Benno Schulenberg <bensberg@justemail.net>
699 * src/nano.c (main): Allow the user full control over the values of
700 MALLOC_CHECK_ and MALLOC_PERTURB_; nano shouldn't override these.
701 This reverts r5344 from August 6.
Benno Schulenbergb1d6d7f2015-11-28 19:03:33 +0000702 * src/nano.c (alloc_multidata_if_needed): When allocating a new
703 multidata array, initialize the array. Problem was betrayed by
704 using MALLOC_PERTURB_, and was located with valgrind.
Benno Schulenbergbe016472015-11-28 17:29:39 +0000705
Benno Schulenberg793d8492015-11-26 08:45:22 +00007062015-11-26 Benno Schulenberg <bensberg@justemail.net>
707 * src/text.c (do_redo): Not just the undoing, also the redoing of a
708 Backspace at EOF is a special case. This fixes Savannah bug #46532.
Benno Schulenberg4a59b122015-11-26 09:31:33 +0000709 * src/text.c (do_redo): Warn about an impossible condition, instead
710 of blithely continuing. And elide an unneeded variable.
Benno Schulenberg793d8492015-11-26 08:45:22 +0000711
Benno Schulenberg438cb112015-11-25 09:10:02 +00007122015-11-25 Benno Schulenberg <bensberg@justemail.net>
713 * src/nano.c (do_output): Refreshing the whole edit window (instead
714 of just the current line) is not needed for any kind of syntax, but
715 only when there are multiline regexes. And check for this not on
716 every keystroke in a burst, but just once.
Benno Schulenberg1b69dd62015-11-25 09:27:25 +0000717 * src/text.c (do_undo): Warn about a condition that should never
718 occur, instead of silently continuing.
Benno Schulenbergb255b012015-11-25 09:49:27 +0000719 * src/text.c (do_undo): Elide an unneeded variable, and don't skip
720 the end of this function when things went wrong.
Benno Schulenberg530c7862015-11-25 10:11:54 +0000721 * src/text.c (do_undo, do_redo, add_undo, update_undo): Handle more
722 possible internal errors, and do it correctly.
Benno Schulenbergcf0c9402015-11-25 10:23:05 +0000723 * AUTHORS: Add Mark and myself.
Benno Schulenberg438cb112015-11-25 09:10:02 +0000724
Benno Schulenberg9dc47fd2015-11-24 11:09:06 +00007252015-11-24 Benno Schulenberg <bensberg@justemail.net>
726 * doc/syntax/makefile.nanorc: Also recognize the extensions .make and
727 .mk as Makefiles. Suggested by Emmanuel Bourg in Debian bug #804845.
Benno Schulenberg9c821df2015-11-24 11:42:19 +0000728 * src/color.c (color_update): Tell the user when a syntax name given
729 on the command line does not exist. This fixes Savannah bug #46503.
Benno Schulenbergfbe43762015-11-24 13:24:01 +0000730 * src/nano.c (splice_node): Inserting a new node into a linked list
731 requires just two parameters: the insertion point and the new node.
Benno Schulenberge0d0ca42015-11-24 13:28:32 +0000732 * src/nano.c (splice_node): Rename a variable for clarity.
Benno Schulenberg9dc47fd2015-11-24 11:09:06 +0000733
Benno Schulenbergf08d79d2015-11-23 08:52:23 +00007342015-11-23 Benno Schulenberg <bensberg@justemail.net>
735 * src/nano.c (main), src/winio.c (parse_kbinput): Make Ctrl+Left and
736 Ctrl+Right work on more terminals by asking ncurses for the keycodes.
737 This addresses Debian bug #800681 reported by Arturo Borrero González.
738
Benno Schulenbergd6bd2762015-11-22 16:07:23 +00007392015-11-22 Benno Schulenberg <bensberg@justemail.net>
740 * src/text.c (add_undo): Delete a condition that will never occur --
741 this function is only ever called with PASTE when cutbuffer != NULL.
Benno Schulenberg6007d622015-11-22 16:08:28 +0000742 * src/text.c: Rewrap, rewrite, rename, and reorder some things.
Benno Schulenberg81f31772015-11-22 16:09:15 +0000743 * src/text.c (do_undo, do_redo): Elide an unneeded variable.
Benno Schulenberg72caa542015-11-22 16:14:42 +0000744 * src/nano.c (unlink_node): After unlinking, also delete the node.
Benno Schulenbergd6bd2762015-11-22 16:07:23 +0000745
Benno Schulenberg1f027a82015-11-21 19:44:27 +00007462015-11-21 Benno Schulenberg <bensberg@justemail.net>
747 * src/nano.c (main): Let the value of a --fill option on the
748 command line override the value of a "set fill" in an rcfile.
749 This fixes Savannah bug #46492.
Benno Schulenbergc706b792015-11-21 19:55:09 +0000750 * ChangeLog, NEWS: Add the release marker and copy the news item.
Benno Schulenberg1f027a82015-11-21 19:44:27 +0000751
Benno Schulenbergc9e83702015-11-21 19:05:10 +00007522015-11-21 David Lawrence Ramsey <pooka109@gmail.com>
753 * ChangeLog, NEWS: Fix a typo and adjust some spacing.
754
Benno Schulenbergc706b792015-11-21 19:55:09 +0000755GNU nano 2.4.3 - 2015.11.18
756
Benno Schulenbergec26fd52015-11-12 19:01:57 +00007572015-11-12 Benno Schulenberg <bensberg@justemail.net>
758 * src/text.c (do_undo, update_undo): Store the correct end position of
759 an inserted file, and use it when undoing. Fixes Savannah bug #46414.
Benno Schulenbergf9274a52015-11-12 19:50:33 +0000760 * src/text.c (add_undo, update_undo): Delete an unneeded alias -- it
761 wasn't being used consistently anyway.
Benno Schulenbergec26fd52015-11-12 19:01:57 +0000762
Benno Schulenbergf1d9fcc2015-11-11 18:51:39 +00007632015-11-11 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergec26fd52015-11-12 19:01:57 +0000764 * src/text.c (do_redo, update_undo): Redo an Enter from the stored
Benno Schulenbergf1d9fcc2015-11-11 18:51:39 +0000765 undo data, instead of running do_enter() again, because the latter
766 will behave differently depending on the setting of autoindent.
767 This addresses Debian bug #793053 reported by Clancy.
Benno Schulenberg54c2f6b2015-11-11 19:04:31 +0000768 * src/text.c (do_enter): Chop the now unused parameter 'undoing'.
Benno Schulenbergbde996d2015-11-11 19:56:35 +0000769 * src/text.c (do_enter_void): Discard this now useless function.
Benno Schulenbergf1d9fcc2015-11-11 18:51:39 +0000770
Benno Schulenberg02a3a252015-11-10 10:39:12 +00007712015-11-10 Benno Schulenberg <bensberg@justemail.net>
772 * src/winio.c (edit_draw): Skip a zero-length match only when there
773 /is/ a match. Found with valgrind. This fixes Savannah bug #41908.
Benno Schulenberg619f2802015-11-10 15:09:36 +0000774 * src/files.c (do_lockfile, update_poshistory): Plug memory leaks.
Benno Schulenberg02a3a252015-11-10 10:39:12 +0000775
Benno Schulenberg4a23a172015-11-08 19:40:13 +00007762015-11-08 Benno Schulenberg <bensberg@justemail.net>
777 * src/global.c (shortcut_init): Allow exiting from the file browser
778 with the same key (^T) as it was entered (as ^G for the help viewer).
Benno Schulenbergc43c0482015-11-08 19:44:57 +0000779 * doc/syntax/changelog.nanorc: Accept longer bug and patch numbers.
Benno Schulenberg4a23a172015-11-08 19:40:13 +0000780
Benno Schulenberga1c03ed2015-11-07 09:49:34 +00007812015-11-07 Benno Schulenberg <bensberg@justemail.net>
782 * src/search.c (do_replace_loop): Correct the logic for adjusting the
783 x position of the mark -- it happened to work because 'mark_begin' is
784 NULL when 'old_mark_set' is FALSE. Also improve the comments.
785
Benno Schulenberg4ede3b42015-11-06 20:14:37 +00007862015-11-06 Benno Schulenberg <bensberg@justemail.net>
787 * src/files.c (write_lockfile): Don't bail out when the hostname is
788 overlong, but instead truncate it properly and continue. This fixes
789 Ubuntu bug #1509081 reported by Sam Reed.
Benno Schulenberg53fbcf72015-11-06 20:25:05 +0000790 * src/global.c (length_of_list), src/winio.c(get_mouseinput): Don't
791 check whether a function has a help line, since all of them have.
792 (And even if some didn't, they would still be valid functions.)
Benno Schulenberga3c9dfa2015-11-06 20:55:46 +0000793 * src/cut.c (cut_line): There is no need to set 'openfile->mark_begin'
794 just like that; it will be set when 'openfile->mark_set' becomes TRUE.
Benno Schulenbergb66e4bf2015-11-06 21:02:50 +0000795 * src/text.c (do_redo): Delete a redundant assignment.
Benno Schulenberg4ede3b42015-11-06 20:14:37 +0000796
Benno Schulenberg5cbb5112015-11-02 10:27:02 +00007972015-11-02 Benno Schulenberg <bensberg@justemail.net>
798 * src/nano.h: Delete an unused type definition.
Benno Schulenbergbf84e592015-11-02 10:40:06 +0000799 * src/nano.h: Improve several comments.
Benno Schulenberg452066b2015-11-02 13:46:40 +0000800 * src/text.c (do_wrap): Elide two variables.
801 * src/cut.c (do_cut_text): Chop the 'undoing' parameter, so that the
802 calls of this function become more symmetrical.
Benno Schulenberg5cbb5112015-11-02 10:27:02 +0000803
Benno Schulenberg4a1835f2015-10-31 19:03:53 +00008042015-10-31 Benno Schulenberg <bensberg@justemail.net>
805 * src/nano.c (copy_from_filestruct): When pasting while the mark is
806 on, the mark's pointer needs to be refreshed only when it is on the
807 same line as the cursor, and the mark's x coordinate only when the
808 mark is located after the cursor. This fixes Savannah bug #46347.
Benno Schulenbergdf80bfd2015-10-31 20:17:09 +0000809 * src/nano.c (copy_from_filestruct): Improve comments and combine
810 two conditions.
Benno Schulenberg2418b942015-10-31 20:32:11 +0000811 * ChangeLog: Correct the description of an old change.
Benno Schulenberg4a1835f2015-10-31 19:03:53 +0000812
Benno Schulenbergb0a2f982015-10-29 16:52:42 +00008132015-10-29 Benno Schulenberg <bensberg@justemail.net>
814 * src/text.c (add_undo): Only skip adding an undo when the current
815 action equals the last action. This condition is needed for when
816 typing text is broken by an undo+redo. Fixes Savannah bug #46323.
Benno Schulenbergbf645142015-10-29 17:02:13 +0000817 * src/text.c (do_redo): Check for "nothing to redo" earlier, so we
818 can restore the possible warning about an internal error.
Benno Schulenberg499c2af2015-10-29 17:27:33 +0000819 * src/text.c (add_undo): Remove an 'if' that will never be true,
820 and remove some assignments that have already been done.
Benno Schulenbergb0a2f982015-10-29 16:52:42 +0000821
Benno Schulenberg0d9397e2015-10-29 10:36:07 +00008222015-10-29 David Lawrence Ramsey <pooka109@gmail.com>
823 * src/files.c (do_writeout), src/nano.c (no_current_file_name_warning,
824 do_exit): When option -t is given, make ^O work the same way as under
825 Pico, writing out the file without prompting. And make it work even
Benno Schulenbergc67ab652015-10-29 21:10:26 +0000826 better than Pico when the current file doesn't have a name yet. This
Benno Schulenbergcac3c332015-12-07 17:05:04 +0000827 fixes Savannah bug #45415. [Reverted in r5489 on December 7.]
Benno Schulenberg0d9397e2015-10-29 10:36:07 +0000828
Benno Schulenberg3059e162015-10-28 20:24:15 +00008292015-10-28 Benno Schulenberg <bensberg@justemail.net>
830 * src/text.c (do_redo): For an INSERT, 'u->mark_begin_lineno' is not
831 an actual line number, so spoof it. It can be spoofed, because 'f'
832 is not used for the INSERT case. This fixes Savannah bug #45524.
Benno Schulenberg26eed9d2015-10-28 20:49:16 +0000833 * src/text.c (do_redo): Remove a condition that can never occur.
834 Also rewrite a loop to become somewhat clearer.
Benno Schulenberg3059e162015-10-28 20:24:15 +0000835
Benno Schulenberg17b46f02015-10-27 16:48:24 +00008362015-10-27 Benno Schulenberg <bensberg@justemail.net>
837 * src/move.c (do_next_word): Rewrite this function to use the same
838 logic as do_prev_word(), reducing its number of lines to half.
Benno Schulenberg08e5eea2015-10-27 16:57:32 +0000839 * src/move.c (do_down): Don't calculate the line length twice. And
840 in the bargain avoid a warning about comparison of signed/unsigned.
Benno Schulenberg17b46f02015-10-27 16:48:24 +0000841
Benno Schulenberg954d04b2015-09-05 09:14:24 +00008422015-09-05 Benno Schulenberg <bensberg@justemail.net>
843 * src/winio.c (display_string, edit_draw): Force a redraw of a line
844 only when it contains a multicolumn character, to spare all regular
845 text this significant slowdown. This fixes Savannah bug #45684
846 reported by Wyatt Ward.
Benno Schulenberg6620de02015-09-05 09:22:50 +0000847 * src/move.c (do_prev_word): Drop a return value that is never used.
Benno Schulenbergb4103322015-09-05 09:40:09 +0000848 * src/move.c (do_prev_word): When in the middle of a word, jump to
849 its beginning instead of to the beginning of the preceding word.
850 Nano now matches the behaviour of Pico and of most other editors.
851 This fixes Savannah bug #45413.
Benno Schulenberg954d04b2015-09-05 09:14:24 +0000852
Benno Schulenberg9205c282015-09-04 19:34:55 +00008532015-09-04 Benno Schulenberg <bensberg@justemail.net>
854 * src/chars.c: Reverting r5354 from August 12. This fixes Savannah
855 bug #45874. Apparently there is /some/ state somewhere after all.
856
Benno Schulenberg213294e2015-08-29 19:52:03 +00008572015-08-29 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergc9e83702015-11-21 19:05:10 +0000858 * doc/syntax/autoconf.nanorc: New file; syntax colouring for Autoconf.
Benno Schulenberg459d9f82015-08-29 20:14:57 +0000859 * src/files.c: Rewrap some lines and tweak two comments.
Benno Schulenberg213294e2015-08-29 19:52:03 +0000860
Benno Schulenberga9aa0ef2015-08-16 08:43:56 +00008612015-08-16 Benno Schulenberg <bensberg@justemail.net>
862 * src/help.c (help_init, help_line_len): Avoid wide paragraphs of text
863 in the help screens: wrap them at 74 columns if the screen is wider.
Benno Schulenberg54407962015-08-16 08:49:29 +0000864 * src/help.c (help_init): Reduce the scope of a variable.
Benno Schulenberg427eff62015-08-16 09:14:42 +0000865 * src/help.c: Adjust some comments and whitespace.
Benno Schulenberg7a1959f2015-08-16 09:28:33 +0000866 * src/help.c (do_help, do_help_void): Don't bother passing a function
867 when it's used only once.
Benno Schulenberg9e438cd2015-08-16 12:15:11 +0000868 * src/help.c (help_line_len): The wrap location can be beyond the EOL,
869 so for determining the length of the current line, don't start at that
870 location but at the beginning. This fixes Savannah bug #45770.
Benno Schulenberga5b29532015-08-16 12:20:24 +0000871 * src/help.c (help_line_len): Rename and reorder most of it.
Benno Schulenberg149b1fe2015-08-16 13:05:35 +0000872 * src/nano.c (make_new_opennode), src/files.c (initialize_buffer):
873 Remove some duplication in the initialization of a new openfile node.
Benno Schulenberg8925eab2015-08-16 15:21:32 +0000874 * src/nano.c (make_new_opennode): Don't bother setting things to NULL
Benno Schulenberg213294e2015-08-29 19:52:03 +0000875 when they will be initialized right away.
Benno Schulenberg8925eab2015-08-16 15:21:32 +0000876 * src/files.c (make_new_buffer): Don't bother with a separate function
877 when it's used only once, right there.
Benno Schulenberg86bbe502015-08-16 17:53:28 +0000878 * src/help.c (help_init): Since the new SIGWINCH handling, a resizing
879 of the window will no longer break out of the help viewer, so there is
880 no need any more for an extra freeing of the help text.
Benno Schulenberga9aa0ef2015-08-16 08:43:56 +0000881
Benno Schulenberg677e9472015-08-13 17:46:19 +00008822015-08-13 Benno Schulenberg <bensberg@justemail.net>
883 * src/search.c (do_find_bracket): Remove mistaken comparison between
884 pointer and literal character. Found with cppcheck.
Benno Schulenberg8a058d12015-08-13 18:22:29 +0000885 * src/browser.c (browser_init): Speed up the finding of the longest
886 filename: don't limit the value to that of COLS all the time, as this
887 is done later anyway, and don't bother skipping the dot entry.
Benno Schulenbergf8118462015-08-13 19:29:55 +0000888 * src/global.c (shortcut_init): In restricted mode, allow changing
889 the file format, but actually disable Appending, Prepending, making
890 Backups, and opening the File Browser.
Benno Schulenberg677e9472015-08-13 17:46:19 +0000891
Benno Schulenberg58a0dde2015-08-12 19:27:13 +00008922015-08-12 Benno Schulenberg <bensberg@justemail.net>
893 * src/chars.c: UTF-8 is a stateless encoding, so there is no need to
Benno Schulenberg3c40b352015-10-29 17:31:34 +0000894 reset any state. [Reverted in r5369 on September 4.]
Benno Schulenberg58a0dde2015-08-12 19:27:13 +0000895
Benno Schulenbergc9337dd2015-08-11 17:27:30 +00008962015-08-11 Benno Schulenberg <bensberg@justemail.net>
897 * src/files.c (write_file): Avoid calling copy_file() with a null
898 pointer. Found with cppcheck.
Benno Schulenberg07fdf462015-08-11 17:43:08 +0000899 * src/files.c (write_file): A failure to delete the temporary file
900 does not mean that it wasn't copied properly.
Benno Schulenbergc9337dd2015-08-11 17:27:30 +0000901
Benno Schulenberg90798fb2015-08-09 16:05:50 +00009022015-08-09 Benno Schulenberg <bensberg@justemail.net>
903 * src/global.c, src/help.c (help_init), src/nano.c (do_toggle, main),
904 src/winio.c (display_string, statusbar): Allow toggling the display
905 of whitespace also when support for nanorc files was not built in,
906 because the default values are quite usable.
Benno Schulenbergeac04462015-08-09 16:31:01 +0000907 * src/files.c (read_file), src/rcfile.c, src/nano.c (main, usage):
908 Fix compilation with --enable-tiny; file formats are not available
909 then, so option --unix has no place; also add its description.
Benno Schulenbergea2b51a2015-08-09 18:10:13 +0000910 * src/nano.c (finish): Remove an unneeded and mistaken condition.
Benno Schulenbergf5234e52015-08-09 18:12:32 +0000911 * src/nano.c (say_there_is_no_help): Make it sound more definitive.
Benno Schulenberg90798fb2015-08-09 16:05:50 +0000912
Benno Schulenberg2a5bd552015-08-08 08:10:57 +00009132015-08-08 Benno Schulenberg <bensberg@justemail.net>
914 * src/winio.c (display_string): For some reason the reallocation done
915 by null_at() messes things up. So put in the null byte "manually".
916 This is a fix -- or workaround -- for Savannah bug #45718.
917
Benno Schulenberg30daf4d2015-08-06 09:01:33 +00009182015-08-06 Benno Schulenberg <bensberg@justemail.net>
919 * src/nano.c (main): For --enable-debug builds, let malloc() help
920 to find initialization failures and uses-after-free. Suggested by
Benno Schulenbergbe016472015-11-28 17:29:39 +0000921 Mike Frysinger. [Reverted in r5446 on November 28.]
Benno Schulenberg7e1bc822015-08-06 19:42:08 +0000922 * doc/texinfo/nano.texi: Improve the formatting, using @t to mark
923 double-quoted literal strings, @: to mark periods that do not end
924 sentences, and @. to mark a finishing period after a capital.
Benno Schulenberg30daf4d2015-08-06 09:01:33 +0000925
Benno Schulenberg70cbbda2015-08-04 18:49:57 +00009262015-08-04 Benno Schulenberg <bensberg@justemail.net>
927 * src/nano.c (main), src/files.c (read_file), src/rcfile.c,
928 doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Add
929 the option --unix, to save a file by default in Unix format.
Benno Schulenberg24d6b7f2015-08-04 19:51:02 +0000930 * doc/nanorc.sample.in: Advertise the five new bindable functions.
931 * doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Tweaks.
Benno Schulenberg70cbbda2015-08-04 18:49:57 +0000932
Benno Schulenberg3d2784e2015-08-03 08:03:22 +00009332015-08-03 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg455fb4f2015-08-03 08:32:52 +0000934 * src/rcfile.c (parse_binding): Check the value of shortcut->toggle
Benno Schulenberg3d2784e2015-08-03 08:03:22 +0000935 only if it actually is a toggle. Found with valgrind.
Benno Schulenberg455fb4f2015-08-03 08:32:52 +0000936 * src/files.c (write_lockfile): Plug a leak. Found with valgrind.
Benno Schulenberg95e1f552015-08-03 19:52:48 +0000937 * src/rcfile.c (parse_binding): Plug a tiny leak.
Benno Schulenberg3d2784e2015-08-03 08:03:22 +0000938
Benno Schulenberg8a06dfa2015-08-02 20:27:45 +00009392015-08-02 Benno Schulenberg <bensberg@justemail.net>
940 * src/files.c (initialize_buffer): Initialize also openfile->syntax.
941 This addresses Debian bug #787914 reported by Paul Wise.
942
Benno Schulenberge919c222015-08-01 08:35:14 +00009432015-08-01 Benno Schulenberg <bensberg@justemail.net>
944 * src/nano.c (precalc_multicolorinfo): Set each multiline-color
945 value instead of OR-ing it. This fixes Savannah bug #45640.
Benno Schulenberg45f873a2015-08-01 08:41:36 +0000946 * src/help.c (help_init): Show also the dedicated keys in the
947 ^G help text. This helps to clarify some keys, and helps to
948 see which ones could easily be rebound.
Benno Schulenbergace15172015-08-01 08:47:38 +0000949 * src/nano.c (usage): Add "and exit" to the description of --help,
950 to match --version, and to distinguish it more from ^G.
Benno Schulenberge919c222015-08-01 08:35:14 +0000951
Benno Schulenbergb3e40512015-07-31 11:52:26 +00009522015-07-31 Benno Schulenberg <bensberg@justemail.net>
953 * src/text.c (do_cutword, do_cut_prev_word, do_cut_next_word),
954 src/global.c (shortcut_init, strtosc), doc/texinfo/nano.texi,
955 doc/man/nanorc.5: Add two new bindable functions, 'cutwordleft'
956 and 'cutwordright', which delete all characters from the cursor
957 to the preceding or succeeding word start. Fixes bug #32803.
958
Benno Schulenberg2ee18d62015-07-30 10:37:28 +00009592015-07-30 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg68476162015-07-30 18:10:16 +0000960 * src/global.c (shortcut_init): Don't show ^R and ^T in the help
961 lines in restricted mode (if possible), to give visual feedback.
Benno Schulenberg104ea6b2015-07-30 11:29:45 +0000962 * src/*.c: Normalize the whitespace after the preceding changes.
Benno Schulenberg68476162015-07-30 18:10:16 +0000963 * src/nano.c (show_restricted_warning, say_there_is_no_help):
964 Differentiate between something being disabled/restricted (because
965 of the way of invocation) and help texts being unavailable (which
966 is a compile-time decision).
Benno Schulenbergb7f7df92015-07-30 19:51:08 +0000967 * src/global.c (shortcut_init): Change "Justify" to a tag and regroup.
Benno Schulenberg20ba5592015-07-30 20:15:01 +0000968 * src/nano.c (do_suspend_void, do_suspend): Provide feedback when
969 suspension is not enabled; and it cannot be enabled in restricted
970 mode any longer, so there is no need to check for that any more.
Benno Schulenberg2ee18d62015-07-30 10:37:28 +0000971
Benno Schulenberge4294a22015-07-29 17:36:39 +00009722015-07-29 Benno Schulenberg <bensberg@justemail.net>
973 * src/text.c (do_linter): When the linter is called in restricted mode
974 (possible when nano was built with --disable-speller), it is better to
975 say that this function is disabled than that no linter was defined.
Benno Schulenberg5885e342015-07-29 19:31:50 +0000976 * src/nano.c (usage): When asking for --help in restricted mode, don't
977 show options that don't have any effect.
Benno Schulenbergefbf7b62015-07-29 20:21:45 +0000978 * src/nano.c (do_toggle): Make the four toggles that don't have any
979 effect in restricted mode say that they're disabled.
Benno Schulenberge4294a22015-07-29 17:36:39 +0000980
Benno Schulenbergbff6a902015-07-28 19:39:34 +00009812015-07-28 Benno Schulenberg <bensberg@justemail.net>
982 * src/text.c (do_formatter), src/nano.c (allow_pending_sigwinch):
983 Reenable SIGWINCH-es also when invoking the formatter fails, and
984 correct some comments.
Benno Schulenberg0b15c422015-07-28 20:04:18 +0000985 * src/text.c (do_linter, do_formatter): In restricted mode, no nanorc
986 files are read, so no linter or formatter will be defined, so these
987 routines will never be called. Also, the formatter will only ever
988 be called when a syntax applies to the current file and this syntax
989 defines a formatter, so there is no need to check this again.
Benno Schulenbergbff6a902015-07-28 19:39:34 +0000990
Benno Schulenberg8ffc33c2015-07-26 08:20:28 +00009912015-07-26 Benno Schulenberg <bensberg@justemail.net>
992 * src/search.c (do_replace_loop): When doing regex replacements, find
Benno Schulenberg4990f742015-07-26 09:23:24 +0000993 each zero-length match only once. This fixes Savannah bug #45626.
994 * src/global.c (shortcut_init, strtosc), src/search.c (do_findnext,
995 do_findprevious), doc/man/nanorc.5, doc/texinfo/nano.texi: Add two
996 new bindable functions, 'findnext' and 'findprevious', which repeat
997 the last search command in a fixed direction without prompting.
Benno Schulenbergf7e88612015-07-26 09:29:42 +0000998 * src/global.c (shortcut_init): Tweak a string.
Benno Schulenberg17ab9a22015-07-26 17:04:29 +0000999 * src/search.c, src/move.c: Improve a few of the comments.
Benno Schulenbergc7f56912015-07-26 17:29:34 +00001000 * src/search.c (replace_regexp, replace_line): Rename two variables,
1001 and make the calculation of the new line size more symmetrical.
Benno Schulenberg8ffc33c2015-07-26 08:20:28 +00001002
Benno Schulenbergee7b0952015-07-25 19:25:50 +000010032015-07-25 Benno Schulenberg <bensberg@justemail.net>
1004 * src/global.c (shortcut_init, strtosc), src/files.c (savefile),
1005 doc/man/nanorc.5, doc/texinfo/nano.texi: Add a new bindable function,
1006 'savefile', which writes a file to disk without first asking for its
1007 name. This implements Savannah patch #8208 submitted by Seiya Nuta.
1008
Benno Schulenbergf47813e2015-07-23 17:56:54 +000010092015-07-23 Benno Schulenberg <bensberg@justemail.net>
1010 * doc/man/{nano.1,nanorc.5}, doc/texinfo/nano.texi: Add deprecation
1011 notices for the options 'set const', 'set poslog' and '--poslog'.
1012 Suggested by Eitan Adler.
Benno Schulenberg25c775a2015-07-23 19:31:36 +00001013 * doc/faq.html: Mention --disable-histories and --disable-libmagic.
Benno Schulenbergb9673682015-07-23 19:18:25 +00001014 * src/chars.c (mbstrcasestr, mbrevstrcasestr): When searching, find
Benno Schulenbergf7e88612015-07-26 09:29:42 +00001015 only valid UTF-8 byte sequences. This fixes Savannah bug #45579,
1016 first reported in 2009 by Mike Frysinger.
Benno Schulenbergf47813e2015-07-23 17:56:54 +00001017
Benno Schulenberg474b3902015-07-22 18:02:36 +000010182015-07-22 Mike Frysinger <vapier@gentoo.org>
1019 * src/files.c (check_dotnano), src/global.c (thanks_for_all_the_fish),
1020 src/rcfile.c (parse_binding): Plug a few memory leaks.
1021
Benno Schulenberg9dc544a2015-07-19 09:01:59 +000010222015-07-19 Benno Schulenberg <bensberg@justemail.net>
1023 * src/nano.c (main): Accept again a +LINE argument for each file
1024 given on the command line. This fixes Savannah bug #45576.
Benno Schulenbergd52f1082015-07-19 09:25:25 +00001025 * src/nano.c (main): Adjust some comments and rewrap some lines.
Benno Schulenberg9dc544a2015-07-19 09:01:59 +00001026
Benno Schulenberg3f1878d2015-07-18 07:34:27 +000010272015-07-18 Benno Schulenberg <bensberg@justemail.net>
1028 * src/winio.c (edit_draw): When looking for multiline-regex matches,
1029 look for a new start only after an end, instead of right after the
1030 last start. This fixes bug #45525 and bug #41313 on Savannah.
Benno Schulenberg74e75212015-07-18 10:32:01 +00001031 * src/nano.c, src/text.c, src/winio.c: Adjust some comments.
Benno Schulenbergf1bd9582015-07-18 12:00:34 +00001032 * doc/faq.html: Fix a few typos and make some updates for 2.4.*.
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001033 * ChangeLog: Make the release markers stand out more.
Benno Schulenberg3f1878d2015-07-18 07:34:27 +00001034
Benno Schulenberg98ffb642015-07-17 20:40:44 +000010352015-07-17 Benno Schulenberg <bensberg@justemail.net>
1036 * src/files.c (open_buffer): Verify that a named and existing file
1037 is a normal file, to avoid opening an empty buffer when the name of
1038 a directory is specified. This fixes Savannah bug #45383 reported
1039 by Mike Frysinger, and also Savannah bug #27839 (which is an echo
1040 from Debian bug #551717 reported by Paul Wise).
Benno Schulenberg1dc298d2015-07-17 21:06:46 +00001041 * src/files.c (load_history): Remove an earlier attempt to make M-W
1042 work at startup. It no longer worked because the assigned value gets
1043 overwritten by a later initialization of 'last_search' to the empty
1044 string. Found through the use of valgrind.
Benno Schulenberg6039cd72015-07-17 21:11:32 +00001045 * src/text.c (do_alt_speller): Avoid an unfounded warning about a
1046 possibly uninitialized variable.
Benno Schulenberg98ffb642015-07-17 20:40:44 +00001047
Benno Schulenberg8cde95e2015-07-17 19:38:22 +000010482015-07-17 Mike Frysinger <vapier@gentoo.org>
1049 * src/browser.c (browser_refresh): Use the proper type (off_t) for
1050 the size of a file, and avoid warnings about too large bit shifts.
1051
Benno Schulenberg79526152015-07-15 19:40:37 +000010522015-07-15 Benno Schulenberg <bensberg@justemail.net>
1053 * src/nano.c, src/rcfile.c, doc/nanorc.sample.in, doc/man/nano.1,
1054 doc/man/nanorc.5, doc/texinfo/nano.texi, doc/syntax/nanorc.nanorc:
Benno Schulenbergcadb4f32015-07-15 19:50:55 +00001055 Unabbreviate the long option --const to --constantshow, and --poslog
1056 to --positionlog, to be more understandable.
Benno Schulenberg1f866c22015-07-15 20:13:05 +00001057 * src/nano.h, src/global.c (add_to_sclist), src/help.c (help_init),
1058 src/rcfile.c (parse_binding), src/winio.c (get_shortcut): Rename
1059 the 'menu' item in the sc (shortcut) struct to 'menus', as it can
1060 refer to more than one menu.
Benno Schulenberg79526152015-07-15 19:40:37 +00001061
Benno Schulenberg42f307e2015-07-13 17:57:58 +000010622015-07-13 Benno Schulenberg <bensberg@justemail.net>
1063 * src/text.c (do_int_spell_fix, do_alt_speller): Remove an unneeded
1064 condition; 'added_magicline' can only be true when NO_NEWLINES isn't.
Benno Schulenberg5e53c6e2015-07-13 18:04:05 +00001065 * src/files.c (replace_buffer): Prevent a segfault when spellchecking
1066 a marked region and nonewlines isn't set.
Benno Schulenberg42f307e2015-07-13 17:57:58 +00001067
Benno Schulenberg3d014862015-07-12 19:20:46 +000010682015-07-12 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg674ab832015-07-13 05:32:17 +00001069 * src/text.c (do_alt_speller): Rename the variable 'totsize_save'
1070 to 'size_of_surrounding', to better describe what it contains.
Benno Schulenbergbadbc672015-07-12 19:31:08 +00001071 * src/files.c (read_file): Remove a stray space from a message.
Benno Schulenberg3d014862015-07-12 19:20:46 +00001072
Benno Schulenberg9fcde232015-07-10 15:54:06 +000010732015-07-10 Benno Schulenberg <bensberg@justemail.net>
1074 * src/nano.c (delete_opennode): Plug a small memory leak.
Benno Schulenberg93e391e2015-07-10 15:57:49 +00001075 * src/files.c (do_lockfile): Rename a variable; it does not contain
1076 the size of the file but the size of the name.
Benno Schulenbergea4b7752015-07-10 16:00:12 +00001077 * src/nano.c (do_toggle): Elide an unneeded variable.
Benno Schulenberg08d9f572015-07-10 17:25:51 +00001078 * src/files.c: Unwrap some lines and rewrap some others in a more
1079 congenial manner; tweak some comments and whitespace and braces.
Benno Schulenbergaff252a2015-07-10 17:42:32 +00001080 * src/files.c (read_line): Remove two lines of dead code.
Benno Schulenberg5bb096d2015-07-10 17:49:30 +00001081 * src/files.c (read_line): Rearrange a few lines and some whitespace.
Benno Schulenberg9fcde232015-07-10 15:54:06 +00001082
Benno Schulenberg8f5fa242015-07-06 18:48:15 +000010832015-07-06 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg5ac6a872015-07-06 17:51:17 +00001084 * src/global.c (add_to_sclist), src/help.c (help_init), src/nano.h,
1085 src/rcfile.c (parse_binding): When defining the toggles, give each
1086 of them a sequence number, so that, when they are rebound, they can
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001087 still be listed in the original order in the help text. This fixes
1088 Savannah bug #45417.
Benno Schulenberg61966642015-07-06 18:03:14 +00001089 * src/text.c (do_undo): Make it clearer what WAS_FINAL_BACKSPACE does.
Benno Schulenberg8f5fa242015-07-06 18:48:15 +00001090 * src/text.c (add_undo, do_deletion): Move the check for a Delete at
1091 the end-of-file to a less frequently travelled path.
Benno Schulenbergfc7825d2015-07-06 19:08:13 +00001092 * src/text.c (do_deletion): If a Backspace happens at the end-of-file,
1093 don't remove and then re-add the magic line; just add an undo item.
Benno Schulenberg6095ff32015-07-06 19:17:27 +00001094 * src/help.c (help_init), src/text.c (do_undo): Adjust whitespace and
1095 bracing after the previous changes.
Benno Schulenberg5ac6a872015-07-06 17:51:17 +00001096
Chris Allegretta5190ab92015-07-05 07:51:55 +00001097GNU nano 2.4.2 - 2015.07.05
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001098
Benno Schulenberg6062a042015-06-28 06:32:56 +000010992015-06-28 Benno Schulenberg <bensberg@justemail.net>
1100 * src/browser.c (browser_refresh): Limit the selected file to the
1101 available ones in the list -- after a refresh the number may have
1102 decreased. This fixes Savannah bug #45424.
Benno Schulenberg296ff1e2015-06-28 14:04:03 +00001103 * src/text.c (do_deletion): There is no need to check again for the
1104 line ending -- it was done already in the encompassing 'if'.
Benno Schulenberg953ccc92015-06-28 14:12:25 +00001105 * src/text.c: Unwrap some lines, rewrap some others more logically,
1106 plus several other esthetic tweaks.
Benno Schulenbergb60f5552015-06-28 18:15:41 +00001107 * doc/syntax/xml.nanorc: Recognize many more kinds of XML files.
1108 This addresses Debian bug #790017 reported by Emmanuel Bourg.
1109 Also colour the strings in tags differently, and add some comments.
Benno Schulenberg6062a042015-06-28 06:32:56 +00001110
Benno Schulenberg412b9fc2015-06-27 09:17:36 +000011112015-06-27 Benno Schulenberg <bensberg@justemail.net>
1112 * src/text.c (do_undo, add_undo): Skip undoing a backspace *only* when
1113 it really tried to delete the final, magic newline.
Benno Schulenbergf0bb5032015-06-27 09:27:19 +00001114 * src/nano.h, src/text.c: Rename three flags for clarity.
Benno Schulenbergecffb852015-06-27 15:03:45 +00001115 * src/files.c (replace_buffer): This function is only ever called with
1116 a temporary file as parameter, so forget the case of an empty filename.
1117 Also, don't bother putting the pointer at the top of the buffer, as the
1118 first action after this function is to restore the cursor position.
Benno Schulenberg076fcbf2015-06-27 15:47:39 +00001119 * src/files.c: Normalize whitespace and comments.
1120 * src/nano.h: Remove obsolete execute flag from the shortcut struct.
Benno Schulenberg954f98c2015-06-27 15:58:20 +00001121 * src/global.c (shortcut_init): Remove a duplicate binding of ^T, to
1122 prevent it being shown twice in the ^G help text. It will be rebound
1123 dynamically when for the current syntax another function is available.
Benno Schulenberg412b9fc2015-06-27 09:17:36 +00001124
Benno Schulenberg75ac24b2015-06-23 18:06:30 +000011252015-06-23 Benno Schulenberg <bensberg@justemail.net>
1126 * src/winio.c (edit_draw): Verify that there exists multidata for the
1127 found starting line before trying to use it. When a file is inserted
1128 (^R), it will not have any precalculated multidata associated with it.
1129 This fixes Savannah bug #45377 reported by Cody A. Taylor.
1130
Benno Schulenberga2676992015-06-20 08:10:25 +000011312015-06-20 Benno Schulenberg <bensberg@justemail.net>
1132 * src/search.c (do_research): If nothing was searched for yet during
1133 this run of nano, take the most recent item from the search history.
1134 This makes M-W work also right after startup, like <n> in vim/less.
Benno Schulenberge06472a2015-06-20 08:21:35 +00001135 * src/utils.c (get_homedir): Keep homedir NULL when no home directory
Benno Schulenberg7f0003a2015-06-20 12:53:27 +00001136 could be determined, so that nano will show a message about it. This
1137 is a fix for Savannah bug #45343.
Benno Schulenberg11fa4582015-06-20 08:31:27 +00001138 * doc/syntax/nanorc.nanorc: Colour key-binding lines affirmatively
1139 only when the specified menu name is an existing one.
Benno Schulenberg43101392015-06-20 08:44:31 +00001140 * doc/syntax/changelog.nanorc: Stop the changed-files colour from
1141 spilling beyond a blank line. Also highlight releases.
Benno Schulenberg44995202015-06-20 18:48:43 +00001142 * src/nano.c (main), src/rcfile.c: Remove the obsolete long option
1143 --undo. And sort --help and the softwrap option more consistently.
Benno Schulenberga2676992015-06-20 08:10:25 +00001144
11452015-06-18 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg7c2f53b2015-06-18 18:51:27 +00001146 * src/rcfile.c: Allow a tiny nano's ~/.nanorc to enable search and
1147 position histories. Also sort the options more strictly.
Benno Schulenberg02555372015-06-18 19:07:56 +00001148 * src/nano.h: Delete two unused things, and add two comments.
Benno Schulenberg7c2f53b2015-06-18 18:51:27 +00001149
11502015-06-17 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg82373d82015-06-17 10:41:57 +00001151 * src/text.c (do_undo, add_undo): When undoing a Backspace at the tail
1152 of the file and nonewlines is not set, then don't add another newline
1153 but just reposition the cursor. Also, when doing a Delete at the tail
1154 of the file, don't add a superfluous undo structure. This prevents
1155 the appearance of an extra newline when undoing the Backspace/Delete.
1156 Patch partially by Mark Majeres. The problem was first reported in
1157 https://lists.gnu.org/archive/html/nano-devel/2015-06/msg00003.html.
Benno Schulenberg67667af2015-06-17 10:47:00 +00001158 * src/text.c (do_undo): Adjust whitespace after the previous change.
Benno Schulenberg64041012015-06-17 10:59:16 +00001159 * src/text.c (add_undo): Elide an unneeded variable and correct two
1160 comments. And try to put the more frequent condition first.
Benno Schulenberg86cbd952015-06-17 11:18:20 +00001161 * src/text.c (add_undo): Rename the parameter 'current_action' to
1162 'action', to match the other functions.
Benno Schulenberg3021a042015-06-17 15:17:09 +00001163 * src/text.c (do_undo, add_undo, update_undo): Improve the visibility
1164 of the undo-related debugging messages.
Benno Schulenberg82373d82015-06-17 10:41:57 +00001165
Benno Schulenberg2e121fa2015-06-14 15:58:57 +000011662015-06-14 Benno Schulenberg <bensberg@justemail.net>
1167 * src/winio.c (edit_draw): Add some debugging code to track which
1168 multidata codes (for multiline regexes) get assigned to which lines.
Benno Schulenbergd49c2672015-06-14 17:56:44 +00001169 * src/winio.c (edit_draw): Start and end regexes can be very similar;
1170 so if a found start has been qualified as an end earlier, believe it
1171 and skip to the next step. This helps with Python's docstrings.
Benno Schulenberg26ae9db2015-06-14 18:06:36 +00001172 * src/winio.c (edit_draw): When the whole line has been coloured,
1173 don't bother looking for any more starts. This prevents some lines
1174 from being erroneously marked as CENDAFTER instead of CWHOLELINE.
Benno Schulenbergc32a58a2015-06-14 19:14:41 +00001175 * src/*.c: Don't check for non-NULL before freeing; it's unneeded.
Benno Schulenberg2e121fa2015-06-14 15:58:57 +00001176
Benno Schulenberge00b3e82015-06-11 19:01:28 +000011772015-06-11 Benno Schulenberg <bensberg@justemail.net>
1178 * src/winio.c (get_key_buffer): Add some debugging code to make it
Benno Schulenberge0e788e2016-05-23 21:34:02 +02001179 easy to see what codes a keystroke produces.
Benno Schulenberge00b3e82015-06-11 19:01:28 +00001180
Benno Schulenberg1a3fa542015-06-07 10:02:31 +000011812015-06-07 Benno Schulenberg <bensberg@justemail.net>
1182 * doc/texinfo/nano.texi: Show the node with the command-line options
1183 in the main menu, to make it easy to find.
Benno Schulenbergf87de122015-06-07 16:45:09 +00001184 * doc/texinfo/nano.texi: Improve some formatting, hyphenation, wording
1185 and dashes. And remove some confusing, historical things.
Benno Schulenberg74ac8ce2015-06-07 18:45:34 +00001186 * doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Clarify the
1187 meaning of --backupdir: it doesn't just specify a directory for saving
1188 backup files, it mainly causes uniquely numbered backups to be made.
Benno Schulenberg87e963a2015-06-07 20:14:41 +00001189 * doc/man/nano.1: Add a section on the non-obvious functioning of the
1190 cutbuffer and the mark.
Benno Schulenberg1a3fa542015-06-07 10:02:31 +00001191
Benno Schulenberga1c4da82015-06-04 17:59:50 +000011922015-06-04 Benno Schulenberg <bensberg@justemail.net>
1193 * src/nano.h: Fix compilation with --enable-tiny.
Benno Schulenberg04242432015-06-04 18:05:27 +00001194 * nano.spec.in: Add the post-install and pre-uninstall rules for the
1195 Info document, plus some tweaks. (Patch was tested by Kamil Dudka.)
Benno Schulenberga1c4da82015-06-04 17:59:50 +00001196
Benno Schulenberg24f39d32015-06-02 14:24:19 +000011972015-06-02 Benno Schulenberg <bensberg@justemail.net>
1198 * doc/man/nanorc.5, doc/texinfo/nano.texi: Tweak some wordings, and
1199 add some missing formatting to the Info document, and fix an mdash.
Benno Schulenberg1f3148d2015-06-02 14:35:21 +00001200 * doc/syntax/debian.nanorc: Colour also an optional option.
1201 This addresses Debian bug #664456 reported by Shawn Landden.
1202 Also shorten the name of the syntax to "sources.list".
Benno Schulenberg7b2ea402015-06-02 14:53:48 +00001203 * doc/syntax/python.nanorc: Require again that the triple quote that
1204 starts a docstring is followed by some character -- it is better to
1205 *not* colour some strings than far too often colour far too much.
1206 This addresses Debian bug #785508 reported by Alexandre Detiste.
Benno Schulenberg24f39d32015-06-02 14:24:19 +00001207
Benno Schulenberg40bfc722015-05-31 08:45:17 +000012082015-05-31 Mahyar Abbaspour <mahyar.abaspour@gmail.com>
1209 * src/prompt.c (get_statusbar_page_start): Prevent a floating-point
1210 exception when the available length for an answer becomes zero.
1211
Benno Schulenberg59187b82015-05-28 13:28:37 +000012122015-05-28 Benno Schulenberg <bensberg@justemail.net>
1213 * src/help.c (do_help), src/prompt.c (do_yesno_prompt): Normalize
1214 the whitespace after the recent changes in logic.
Benno Schulenberg2661d6d2015-05-28 13:51:03 +00001215 * src/prompt.c (do_yesno_prompt): Use 'width' instead of hardcoded
1216 16. Also always first set the string and then position the cursor.
Benno Schulenberg72b437b2015-05-28 14:56:38 +00001217 * TODO: Mark window resizes and better file-type detection as done.
Benno Schulenbergd2977842015-05-28 18:56:31 +00001218 * doc/syntax/debian.nanorc: Allow a CD name to contain any character.
Benno Schulenberg01e39f42015-05-28 18:59:41 +00001219 This addresses Debian bug #688892 reported by Dani Möller Montull.
Benno Schulenberg59187b82015-05-28 13:28:37 +00001220
Benno Schulenberg75d64e62015-05-28 13:02:29 +000012212015-05-28 Mahyar Abbaspour <mahyar.abaspour@gmail.com>
1222 * src/nano.c (handle_sigwinch, regenerate_screen), src/global.c,
1223 src/prompt.c (do_statusbar_input, get_prompt_string, do_yesno_prompt),
1224 src/browser.c (do_browser, browser_refresh), src/help.c (do_help),
1225 src/winio.c (get_key_buffer, unget_input, get_input, parse_kbinput),
1226 src/text.c (do_justify, do_linter), src/nano.h, src/proto.h:
1227 Handle a SIGWINCH (signalling a change in window size) not when it
1228 happens but only when checking for input. Report the SIGWINCH via
1229 a special key value to the calling routine, to allow not only the
1230 main editor but also the help viewer and the file browser to adapt
1231 their display to the new size. (Patch edited by Benno.)
1232
Benno Schulenbergde6da122015-05-20 18:57:18 +000012332015-05-20 Devrim Gündüz <devrim@gunduz.org>
1234 * doc/syntax/postgresql.nanorc: New file -- syntax highlighting for
1235 PostgreSQL, first posted as Savannah patch #8601. Trimmed by Benno.
1236
Benno Schulenberg55d1e1a2015-05-08 19:35:47 +000012372015-05-08 Benno Schulenberg <bensberg@justemail.net>
1238 * src/browser.c (browser_refresh): Take the distant possibility of
1239 terabyte files into account, and in the bargain get rid of the need
1240 to calculate the number of digits in UINT_MAX.
Benno Schulenbergf111c0d2015-05-08 21:11:30 +00001241 * src/files.c (get_next_filename): Limit the number of backup files
1242 to one hundred thousand -- which should be far more than enough --
Benno Schulenberg72b437b2015-05-28 14:56:38 +00001243 before finding an unused filename takes an annoying amount of time.
Benno Schulenbergf111c0d2015-05-08 21:11:30 +00001244 * src/utils.c (digits): Delete this now unneeded function.
Benno Schulenberg55d1e1a2015-05-08 19:35:47 +00001245
Benno Schulenberg46464102015-05-03 13:25:24 +000012462015-05-03 Benno Schulenberg <bensberg@justemail.net>
1247 * src/browser.c (browser_refresh): Display an ellipsis only when the
1248 filename is longer than the available space, not when it still fits.
Benno Schulenberga3387982015-05-03 13:56:51 +00001249 * src/browser.c, src/nano.c: Adjust a few comments and line wrappings.
Benno Schulenberg2da9cbf2015-05-03 15:47:05 +00001250 * doc/syntax/groff.nanorc: Use character classes correctly.
Benno Schulenberg46464102015-05-03 13:25:24 +00001251
Benno Schulenbergec8d51b2015-04-28 19:18:38 +000012522015-04-28 Benno Schulenberg <bensberg@justemail.net>
1253 * src/color.c (color_update): Match the file regex of a syntax against
1254 the absolute, canonical path instead of against the path the user gave.
1255 This fixes Savannah bug #44288, reported by Mike Frysinger.
Benno Schulenberg9233c982015-04-28 19:22:11 +00001256 * doc/syntax/po.nanorc: Improve the colouring of message tags.
Benno Schulenberg7f3bd262015-04-28 20:09:40 +00001257 * src/winio.c (get_escape_seq_kbinput): Unwrap a bunch of comments.
Benno Schulenbergec8d51b2015-04-28 19:18:38 +00001258
Benno Schulenbergaf708842015-04-25 14:52:58 +000012592015-04-25 Benno Schulenberg <bensberg@justemail.net>
1260 * src/search.c (do_replace_loop): Remove the unintended special
Benno Schulenberg37390162015-04-25 15:47:08 +00001261 case for replacing multiple occurrences of a literal ^ or $; see
1262 https://lists.gnu.org/archive/html/nano-devel/2015-04/msg00065.html.
Benno Schulenbergb454d9c2015-04-25 15:17:22 +00001263 * src/search.c (findnextstr): Delete an always-FALSE parameter.
Benno Schulenbergdf7524d2015-04-25 15:26:09 +00001264 * src/search.c (findnextstr): Rename the parameter 'whole_word'
1265 to 'whole_word_only', for clarity.
Benno Schulenbergaf708842015-04-25 14:52:58 +00001266
Benno Schulenberg6bdcc8f2015-04-21 17:27:33 +000012672015-04-21 Benno Schulenberg <bensberg@justemail.net>
1268 * src/browser.c (findnextfile): Save the settings of the global
1269 case-sens, direction, and regexp flags, and restore them on exit.
1270 And do this not in do_filesearch() but in findnextfile(), so that
1271 it will also work for do_fileresearch().
Benno Schulenberg583a30e2015-04-21 17:37:59 +00001272 * src/text.c (do_int_spell_fix): Save and restore the global flags
1273 in the same short and quick way as above.
Benno Schulenberg1cf22d42015-04-21 18:42:11 +00001274 * src/nano.c (main): Initialize the search and replace strings in
1275 a central place, to get rid of a bunch of ifs.
Benno Schulenbergca1983a2015-04-21 18:47:58 +00001276 * src/search.c (search_init_globals): Elide this tiny function.
Benno Schulenberg6bdcc8f2015-04-21 17:27:33 +00001277
Benno Schulenberg7edd3502015-04-20 08:16:41 +000012782015-04-20 Benno Schulenberg <bensberg@justemail.net>
1279 * src/winio.c (need_horizontal_update, need_vertical_update): Fuse
1280 two identical functions into one: need_screen_update().
Benno Schulenbergec0e0232015-04-20 08:35:41 +00001281 * src/prompt.c (need_statusbar_horizontal_update): Rename function
1282 to need_statusbar_update() as there is no vertical counterpart.
Benno Schulenberge68759b2015-04-20 18:01:06 +00001283 * src/search.c (do_search, do_research): Delete redundant reprises
1284 of a regex search: finding an occurrence only at the very starting
1285 point of the search necessarily means it is the only occurrence.
Benno Schulenberg7edd3502015-04-20 08:16:41 +00001286
Benno Schulenberg296152e2015-04-18 16:07:53 +000012872015-04-18 Benno Schulenberg <bensberg@justemail.net>
1288 * src/global.c, src/nano.c, doc/man/nanorc.5, doc/texinfo/nano.texi:
1289 Make the descriptions of the multibuffer feature more accurate.
Benno Schulenberg455a9182015-04-18 20:07:31 +00001290 * src/winio.c (display_string): Make sure an invalid starting byte
1291 of a multibyte sequence is properly terminated, so that it doesn't
1292 pick up lingering bytes of any previous content. This prevents the
1293 displaying of ghosts -- characters that aren't really there -- when a
1294 file contains valid ánd invalid UTF-8 sequences. For an example see:
1295 https://lists.gnu.org/archive/html/nano-devel/2015-04/msg00052.html.
1296 Also make two comments more accurate: an invalid multibyte sequence
1297 will never be categorized as a control character or anything else.
Benno Schulenberg296152e2015-04-18 16:07:53 +00001298
Benno Schulenberg3de2c702015-04-18 11:35:23 +000012992015-04-18 Mark Oteiza <mvoteiza@udel.edu>
1300 * doc/syntax/{python,ruby,sh,tex}.nanorc: Add a linter definition.
Benno Schulenberg6ff772b2015-04-18 13:04:57 +00001301 * doc/syntax/elisp.nanorc: New file; syntax highlighting for Elisp.
1302 * doc/syntax/guile.nanorc: New file; syntax highlighting for Guile.
Benno Schulenberg3de2c702015-04-18 11:35:23 +00001303
Benno Schulenbergf2259912015-04-17 09:24:17 +000013042015-04-17 Benno Schulenberg <bensberg@justemail.net>
1305 * src/text.c (do_alt_speller, do_linter, do_formatter): Distinguish
1306 a failure to launch the linter from receiving zero parsable lines;
1307 add a new function to glue together the invocation-error string.
Benno Schulenberg5b83d7d2015-04-17 09:42:04 +00001308 * src/global.c (shortcut_init): In the Help Viewer and File Browswer,
1309 bind the unbound Home and End keys to goto_top and goto_bottom, to
1310 mimic the behaviour of these keys in file viewers and web browsers.
1311 Also show ^Y and ^V in the WhereisFile menu instead of M-\ and M-/,
1312 for similarity with the WhereIs menu.
Benno Schulenbergcc65a422015-04-17 10:06:03 +00001313 * src/global.c (shortcut_init): Arrange the movement keys in the File
1314 Browser in the order of ascending stride, as in the Help Viewer.
Benno Schulenbergf2259912015-04-17 09:24:17 +00001315
Benno Schulenberg45772652015-04-17 09:28:18 +00001316GNU nano 2.4.1 - 2015.04.14
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001317
Benno Schulenbergfd759d52015-04-13 10:59:12 +000013182015-04-13 Benno Schulenberg <bensberg@justemail.net>
1319 * src/search.c (do_replace_loop): Fix compilation with --enable-tiny.
1320 * README: Mention also the Savannah page for reporting bugs.
1321
Benno Schulenberg99d23582015-04-12 08:31:53 +000013222015-04-12 Benno Schulenberg <bensberg@justemail.net>
1323 * src/browser.c (filesearch_init): Stop M-\ and M-/ in WhereisFile
1324 menu (reached via ^R ^T ^W) from doing also an unrequested search
1325 after having performed their function. Fixes Savannah bug #44790.
Benno Schulenberg4e9b3682015-04-12 08:44:37 +00001326 * src/global.c (shortcut_init): Rebind ^Y and ^V in the WhereisFile
1327 menu from the pointless page_up() and page_down() to the effective
1328 first_file() and last_file(). Also unbind some other useless keys.
Benno Schulenberg4e5ea182015-04-12 09:04:30 +00001329 * src/browser.c (filesearch_init): Remove an unused variable, and
1330 adjust the introductory comment for the recently tweaked logic.
Benno Schulenberg1cf9deb2015-04-12 11:15:57 +00001331 * src/rcfile.c (parse_linter, parse_formatter): Use mallocstrcpy()
1332 in a correct manner; don't let it free an unrelated string.
Benno Schulenberg99d23582015-04-12 08:31:53 +00001333
Benno Schulenberg08a52c12015-04-11 15:21:08 +000013342015-04-11 Benno Schulenberg <bensberg@justemail.net>
1335 * src/search.c (do_replace_loop): Do not split off the marked region
1336 into a separate partition, but do the replacings in the current one,
1337 taking good care to stay within the boundaries of the region. This
1338 fixes an undo bug where the first part of a line would disappear if
1339 the region started in the middle of a line. Bug was reported here:
1340 https://lists.gnu.org/archive/html/nano-devel/2015-03/msg00077.html.
Benno Schulenbergf34c8fd2015-04-12 11:29:35 +00001341 Original idea and patch were by Mark Majeres.
Benno Schulenberg08a52c12015-04-11 15:21:08 +00001342
Benno Schulenberg2dc9cbe2015-04-08 18:40:40 +000013432015-04-08 Benno Schulenberg <bensberg@justemail.net>
1344 * src/browser.c (browser_select_dirname, findnextfile): Rename
1345 'currselected' to 'looking_at', for more contrast with 'selected',
1346 and rename browser_select_filename() to browser_select_dirname().
Benno Schulenbergce48ca22015-04-08 19:57:31 +00001347 * src/text.c: Correct and adjust some comments.
Benno Schulenberg2dc9cbe2015-04-08 18:40:40 +00001348
Benno Schulenberg5d0b2672015-04-07 08:19:04 +000013492015-04-07 Benno Schulenberg <bensberg@justemail.net>
1350 * src/browser.c (do_fileresearch): Don't search for the empty string
1351 when nothing was sought yet (when historylog is set).
Benno Schulenberg25ce5f62015-04-07 08:23:52 +00001352 * src/browser.c (filesearch_init): Remove an unfitting comment
1353 (there are no toggles here) and tweak some others.
Benno Schulenberg2aac4702015-04-07 08:44:24 +00001354 * src/search.c (do_search, do_research): Use the same variable as
1355 in the surrounding code, for consistency.
Benno Schulenberg37fd3482015-04-07 10:41:00 +00001356 * src/browser.c (findnextfile_wrap_reset): Elide this function,
1357 and rename 'search_last_file' to 'came_full_circle'.
Benno Schulenberga9647b02015-04-07 11:04:32 +00001358 * src/browser.c (filesearch_init, do_fileresearch): Avoid setting
1359 'focusing' when searching only for filenames.
Benno Schulenbergd5177052015-04-07 13:34:12 +00001360 * src/browser.c (findnextfile, do_filesearch, do_fileresearch):
1361 Greatly simplify the searching for the next matching filename.
Benno Schulenbergd8b6dbf2015-04-07 14:16:07 +00001362 * src/{browser,files,help,prompt,text,winio}.c: Let the function
1363 bottombars() set the global variable 'currmenu' -- the displayed
1364 menu must necessarily be the active one.
Benno Schulenberg0f7b99b2015-04-07 15:37:07 +00001365 * src/browser.c (filesearch_abort): Elide this tiny function.
Benno Schulenberg057348e2015-04-07 15:23:12 +00001366 * THANKS: Add the names of recent translators, and sort the list.
Benno Schulenberg0f7b99b2015-04-07 15:37:07 +00001367 * THANKS: A neater layout, plus two table headers.
Benno Schulenberg5d0b2672015-04-07 08:19:04 +00001368
Benno Schulenbergc2ed8272015-04-05 09:14:13 +000013692015-04-05 Benno Schulenberg <bensberg@justemail.net>
1370 * doc/texinfo/nano.texi: Expand on nano's features, condense the
1371 synopsis, and "online" means something else to most people.
1372
Benno Schulenberg5ac10812015-04-03 15:48:57 +000013732015-04-03 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergd7ade1f2015-04-03 17:28:30 +00001374 * README: Update text to the fifth milestone, 2.4.x, plus tweaks.
Benno Schulenbergde53c532015-04-03 15:57:22 +00001375 * src/rcfile.c: Remove two superfluous (because nested) #ifndefs.
Benno Schulenbergd7ade1f2015-04-03 17:28:30 +00001376 * src/rcfile.c (parse_rcfile): Ignore any magic when libmagic was
1377 disabled, and ignore a formatter when spell checking was disabled.
Benno Schulenberg5ac10812015-04-03 15:48:57 +00001378
Benno Schulenberg07e199f2015-03-28 17:01:46 +000013792015-03-28 Benno Schulenberg <bensberg@justemail.net>
1380 * src/search.c (search_init_globals, search_replace_abort),
1381 src/winio.c (edit_redraw), src/proto.h, src/global.c: When finding
1382 an off-screen string, put it on the center line of the screen and
1383 not on the bottom or top line. This restores the old behaviour
1384 that was unintentionally changed in r5149 six days ago.
Benno Schulenberg7fe830f2015-03-28 17:11:28 +00001385 * src/winio.c (edit_refresh): When pasting lines on the bottom line,
1386 only scroll the required number of lines and not half a screen --
1387 that is, when smooth scrolling is enabled.
Benno Schulenberge683e322015-03-28 19:56:41 +00001388 * doc/syntax/changelog.nanorc: Also colour a series of changed files
1389 that spans more than one line.
Benno Schulenberg07e199f2015-03-28 17:01:46 +00001390
Benno Schulenberg6f2da6b2015-03-27 20:16:36 +000013912015-03-27 Mark Majeres <mark@engine12.com>
1392 * src/text.c (do_alt_speller): Adjust the end point of the marked
1393 region for any change in length of the region's last line.
1394
Benno Schulenberg41580842015-03-27 09:14:21 +000013952015-03-27 Benno Schulenberg <bensberg@justemail.net>
1396 * doc/syntax/patch.nanorc: Recognize also Debian package diffs.
1397 Fixes https://bugs.launchpad.net/ubuntu/+source/nano/+bug/1300565
1398 requested by Rolf Leggewie.
Benno Schulenbergad827a62015-03-27 10:49:19 +00001399 * src/search.c (do_replace_loop): Adjust some whitespace and wrapping.
Benno Schulenberg0a79c782015-03-27 11:29:23 +00001400 * src/search.c (do_replace_loop): Place a call to edit_refresh better,
1401 and remove two unneeded ones. This greatly speeds up nano when doing
1402 a Replace All with *lots* of occurrences.
Benno Schulenberg5ac10812015-04-03 15:48:57 +00001403 * src/{color,global,nano,text,utils}.c: Normalize some whitespace.
Benno Schulenberg52d7d5f2015-03-27 15:34:41 +00001404 * src/global.c (strtosc): The linter is only available when colour is.
Benno Schulenberg14a9c8a2015-03-27 16:55:49 +00001405 * src/global.c, src/text.c: Treat the formatter like a speller, to fix
1406 compilation with --disable-speller. Fixes Savannah bug #44607.
Benno Schulenberg41580842015-03-27 09:14:21 +00001407
Benno Schulenberg6440aa92015-03-25 13:42:40 +000014082015-03-25 Benno Schulenberg <bensberg@justemail.net>
1409 * doc/syntax/debian.nanorc: Slightly widen and relax the header regex.
Benno Schulenberge39cf372015-03-25 13:50:12 +00001410 * doc/syntax/python.nanorc: Hashes inside triple-quoted strings should
1411 not cause comment colouring. (Inside single-qouted strings neither,
1412 but then quotes in comments will be coloured like strings.) This
1413 solves https://bugs.launchpad.net/ubuntu/+source/nano/+bug/481363.
Benno Schulenbergeae9f282015-03-25 16:20:45 +00001414 * src/global.c (strtomenu): Remove mistaken menu name -- as the
1415 formatter allows no interaction it needs no associated menu.
Benno Schulenbergff4a4572015-03-25 16:23:45 +00001416 * src/text.c (do_formatter): Remove unneeded statement -- nothing
1417 has changed the value of 'currmenu'.
Benno Schulenberg52d7d5f2015-03-27 15:34:41 +00001418 * src/global.c (strtosc), doc/man/nanorc.5: Allow rebinding the
Benno Schulenbergb455fa32015-03-25 19:33:00 +00001419 linter when nano was configured with --disable-speller.
Benno Schulenberg6440aa92015-03-25 13:42:40 +00001420
Benno Schulenberg92142be2015-03-23 17:01:25 +000014212015-03-23 Benno Schulenberg <bensberg@justemail.net>
1422 * src/text.c (do_alt_speller): Avoid the spell checker reporting
1423 an error when the marked region is zero bytes long. The message
1424 is not needed -- it gets printed by the caller. This generalizes
1425 the fix for Savannah bug #29393.
Benno Schulenberga37ebcf2015-03-23 17:12:49 +00001426 * src/text.c (do_alt_speller): Do not unset the mark before the
1427 possible bailout because of a zero-sized region.
Benno Schulenberg745fab82015-03-23 18:16:37 +00001428 * NEWS: Option --noread allows writing, not reading, to named pipes.
Benno Schulenberg92142be2015-03-23 17:01:25 +00001429
Benno Schulenberg6fef9202016-02-23 12:49:08 +000014302015-03-22 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg745fab82015-03-23 18:16:37 +00001431 * src/text.c (do_alt_speller): timestamp can just be a time_t.
Benno Schulenberg5ac10812015-04-03 15:48:57 +00001432 Fixes compilation on win32 and macOS.
Chris Allegrettaa0a05562015-03-23 04:32:45 +00001433
Benno Schulenberg45772652015-04-17 09:28:18 +00001434GNU nano 2.4.0 - 2015.03.22
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001435
Benno Schulenberg76e7aaf2015-03-22 11:20:02 +000014362015-03-22 Benno Schulenberg <bensberg@justemail.net>
1437 * src/chars.c (move_mbleft): Start looking for a multibyte char
1438 not at the start of the string, but only as far back as such a
1439 char can possibly be. Change suggested by Mark Majeres.
Benno Schulenberg83ec9e72015-03-23 13:06:07 +00001440 * src/search.c (findnextstr): Step backward or forward not simply
Benno Schulenberga44cf412015-03-22 11:42:29 +00001441 one byte but one character (possibly multibyte). Fixes Savannah
1442 bug #42175, reported by myself, and the finding of ghosts seen in
1443 https://lists.gnu.org/archive/html/nano-devel/2015-03/msg00055.html.
Benno Schulenberg2456dd22015-03-22 13:23:42 +00001444 * src/winio.c (edit_redraw): Do not center the current line when
1445 smooth scrolling is used. This fixes Savannah bug #42654.
Benno Schulenberg76e7aaf2015-03-22 11:20:02 +00001446
Benno Schulenberga4f28692015-03-21 21:13:03 +000014472015-03-21 Benno Schulenberg <bensberg@justemail.net>
1448 * src/text.c (do_alt_speller): Remove some leftovers.
Benno Schulenbergcb776fa2015-03-21 21:40:56 +00001449 * src/search.c: Place some comments better and unwrap some lines.
Benno Schulenberga4f28692015-03-21 21:13:03 +00001450
Benno Schulenberg82d737e2015-03-21 21:02:13 +000014512015-03-21 Mark Majeres <mark@engine12.com>
1452 * src/text.c (do_alt_speller): Restore the positions of the mark
1453 and the cursor in a better way: to the columns where they were.
1454 This fixes Savannah bug #44542, reported by Benno Schulenberg.
1455
Benno Schulenberg3345e342015-03-20 11:18:22 +000014562015-03-20 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg532d55c2015-03-20 11:37:53 +00001457 * src/nano.c (finish_stdin_pager, cancel_stdin_pager, stdin_pager):
Benno Schulenberg3345e342015-03-20 11:18:22 +00001458 Normalize the whitespace, remove an old comment, and place another
1459 one better.
Benno Schulenberg532d55c2015-03-20 11:37:53 +00001460 * src/text.c (do_undo): Make a message equal to another one. It
1461 was mistakenly changed in r4950. (This is translation-neutral.)
Benno Schulenberg138add22015-03-20 12:22:49 +00001462 * src/global.c (shortcut_init): Keep related items together in the
1463 ^G help screen.
Benno Schulenberg3345e342015-03-20 11:18:22 +00001464
Benno Schulenberg52d1c202015-03-17 20:10:59 +000014652015-03-17 Benno Schulenberg <bensberg@justemail.net>
1466 * src/text.c (do_alt_speller): Do not set the modified flag when
1467 an external spell checker didn't make any changes. This fixes
1468 Savannah bug #44320, reported by Cody A. Taylor.
1469
Benno Schulenberg69d26c32015-03-14 20:17:21 +000014702015-03-14 Benno Schulenberg <bensberg@justemail.net>
1471 * src/text.c (do_formatter): Fix a message plus a few comments.
1472
Benno Schulenberg4d9b5e92015-03-14 15:59:01 +000014732015-03-14 Mark Majeres <mark@engine12.com>
Benno Schulenberg6898c602015-03-15 19:48:50 +00001474 * src/nano.c (renumber): Get out if there is nothing to renumber,
1475 to prevent do_undo() from falling over trying to renumber emptiness.
1476 This fixes Savannah bug #44488, reported by Dennis Decker Jensen.
Benno Schulenberg4d9b5e92015-03-14 15:59:01 +00001477
Benno Schulenberg03bcaf62015-03-08 12:10:52 +000014782015-03-08 Benno Schulenberg <bensberg@justemail.net>
1479 * src/proto.h, src/nano.c: Fix compilation with --enable-tiny plus
1480 --enable-nanorc.
Benno Schulenberg79ff3932015-03-08 15:42:52 +00001481 * src/rcfile.c (parse_binding): Fix the rebinding of toggles.
Benno Schulenberg4e95ee92015-03-08 15:59:15 +00001482 * doc/man/{nano.1,rnano.1,nanorc.5}, doc/texinfo/nano.texi: Update
1483 years and version numbers in the docs in anticipation of a release.
Benno Schulenberg18a2edf2015-03-08 20:14:10 +00001484 * src/nano.c (version): Drop compile time from version information
1485 to enable a reproducible build. Proposed by Jérémy Bobbio and Jordi
1486 Mallach (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=774388).
Benno Schulenberg03bcaf62015-03-08 12:10:52 +00001487
Benno Schulenberg32e76c42015-03-07 21:30:36 +000014882015-03-07 Benno Schulenberg <bensberg@justemail.net>
1489 * doc/man/nanorc.5, doc/texinfo/nano.texi: Add a note about the
1490 inherent imperfection of using regular expressions for syntax
1491 highlighting, as suggested by Mike Frysinger in bug #30962.
Benno Schulenberg336b0ec2015-03-07 21:48:15 +00001492 * doc/man/nanorc.5: Improve the indentation of some lists.
Benno Schulenberg5891c4a2015-03-07 22:11:56 +00001493 * doc/man/nanorc.5, doc/texinfo/nano.texi: Remove the mistaken
1494 square brackets around the arguments of "header" and "magic" --
1495 those arguments are not optional. Also add "formatter" to the
1496 texinfo document, and slightly improve its punctuation.
Benno Schulenberg32e76c42015-03-07 21:30:36 +00001497
Benno Schulenberg83ec9e72015-03-23 13:06:07 +00001498GNU nano 2.3.99pre3 - 2015.02.27
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001499
Benno Schulenberg6fef9202016-02-23 12:49:08 +000015002015-02-25 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg32e76c42015-03-07 21:30:36 +00001501 * src/rcfile.c (parse_binding): Add an exception for do_toggle() as
Benno Schulenberg79ff3932015-03-08 15:42:52 +00001502 rebinding toggles broke with r5022. (Fixed in r5134.)
Chris Allegretta184cf602015-02-25 19:04:53 +00001503
Benno Schulenbergd4e1d312015-02-21 09:45:53 +000015042015-02-21 Benno Schulenberg <bensberg@justemail.net>
1505 * README: Fix the explanation of how to subscribe to a mailing list.
Benno Schulenberge73e02f2015-02-21 11:31:56 +00001506 * doc/syntax/{java,lua,python,ruby}.nanorc: Wrap some overlong lines.
Benno Schulenbergd4e1d312015-02-21 09:45:53 +00001507
Benno Schulenbergbb4edd02015-02-18 20:01:30 +000015082015-02-18 Mike Frysinger <vapier@gentoo.org>
1509 * doc/syntax/sh.nanorc: Recognize also dash, openrc and runscript.
1510
Benno Schulenbergc9b3a712015-02-16 20:13:29 +000015112015-02-16 Mike Frysinger <vapier@gentoo.org>
1512 * .gitignore: Ignore the autotools 'compile' file.
1513
Benno Schulenberg35cd49e2015-02-15 16:20:09 +000015142015-02-15 Benno Schulenberg <bensberg@justemail.net>
1515 * src/file.c (do_lockfile): Also show the name of the affected file
1516 when finding a lock file, for when many files are opened at once.
Benno Schulenberg1b65b192015-02-15 16:28:08 +00001517 * src/file.c (do_lockfile): The user does the editing, not the editor.
Benno Schulenberg35cd49e2015-02-15 16:20:09 +00001518
Benno Schulenberg6fef9202016-02-23 12:49:08 +000015192015-02-09 Chris Allegretta <chrisa@asty.org>
Chris Allegretta6c776482015-02-09 19:53:29 +00001520 * nano.spec.in: Add dependency on texinfo, docdir files for
1521 RPM file creation.
1522
Chris Allegretta651bb502015-02-07 00:26:43 +00001523GNU nano 2.3.99pre2 - 2015.02.06
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001524
Benno Schulenberg35cd49e2015-02-15 16:20:09 +000015252015-02-03 Alex Henrie <alexhenrie24@gmail.com>
Chris Allegretta86c6cd12015-02-03 22:49:57 +00001526 * src/cut.c (do_cut_text): Make sure to set modified even when
1527 using --enable-tiny.
1528
Benno Schulenberg92896a72015-02-01 09:39:27 +000015292015-02-01 Kamil Dudka <kdudka@redhat.com>
1530 * src/files.c (write_lockfile): Avoid writing uninitialized bytes to
1531 the lock file -- a simple null_at() would not initialize the buffer.
Benno Schulenberg67cdd5e2015-02-01 09:48:50 +00001532 * src/files.c (do_lockfile): Make sure that 'lockprog' and 'lockuser'
1533 are terminated -- strncpy() does not guarantee that on its own.
Benno Schulenberg057ef182015-02-01 09:58:02 +00001534 * src/files.c (do_lockfile): Avoid printing a wrong PID on the status
1535 bar due to treating serialized PID bytes as signed integers. This
1536 addresses https://bugzilla.redhat.com/1186384 reported by Don Swaner.
Benno Schulenbergbd98ff02015-02-01 10:07:08 +00001537 * src/files.c (write_lockfile): Do not trim the nano version number
1538 -- snprintf() counts the trailing zero into the size limit.
Benno Schulenberg92896a72015-02-01 09:39:27 +00001539
Benno Schulenberg8d53aa32015-02-01 09:19:58 +000015402015-02-01 Benno Schulenberg <bensberg@justemail.net>
1541 * src/winio.c (do_credits): Add a general entry for all translators.
Benno Schulenberg57fa7752015-02-01 09:32:02 +00001542 * src/nano.c (version), src/winio.c (do_credits): Update the copyright
1543 years to include 2015.
Benno Schulenberg8d53aa32015-02-01 09:19:58 +00001544
Benno Schulenberg6fef9202016-02-23 12:49:08 +000015452015-01-13 Chris Allegretta <chrisa@asty.org>
Chris Allegretta6948d2e2015-01-14 02:36:30 +00001546 * src/files.c (open_buffer): Check here for locking and properly
1547 handle choosing to not open a file when locked instead of in
Benno Schulenberg5ac10812015-04-03 15:48:57 +00001548 open_file(). Fixes Savannah bug #42373 reported by Benno Schulenberg.
Chris Allegretta6948d2e2015-01-14 02:36:30 +00001549
Chris Allegretta17067922015-01-06 15:20:04 +00001550GNU nano 2.3.99pre1 - 2015.01.06
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001551
Benno Schulenberg6fef9202016-02-23 12:49:08 +000015522015-01-03 Chris Allegretta <chrisa@asty.org>
Benno Schulenbergf26e88b2016-06-17 10:49:29 +02001553 * New formatter code to support syntaxes like Go that have tools to
1554 automatically lint and reformat the text (gofmt), which is lovely.
1555 Added rcfile option formatter, a function do_formatter() in text.c
1556 and some other calls.
Chris Allegretta4b3f2772015-01-03 07:24:17 +00001557
Benno Schulenberge99f0b62014-12-28 21:58:27 +000015582014-12-28 Benno Schulenberg <bensberg@justemail.net>
1559 * src/files.c (do_lockfile): Gettextize the "File being edited"
1560 prompt, and improve its wording.
Benno Schulenberg9f1b1e22014-12-28 22:23:31 +00001561 * src/winio.c (do_credits): Remove the names of past translators
1562 from the Easter-egg scroll.
1563 * THANKS: Add a missing historical translator name.
Benno Schulenberga44def02014-12-28 22:27:56 +00001564 * src/winio.c (do_credits): Add Mark to the scroll, for all his
1565 undo work, colouring nano's interface, and other patches.
Benno Schulenberge99f0b62014-12-28 21:58:27 +00001566
Benno Schulenberg5bb10d22014-11-30 12:05:13 +000015672014-11-30 Benno Schulenberg <bensberg@justemail.net>
1568 * doc/syntax/spec.nanorc: Colorize %pretrans and %posttrans fully.
1569 Original patch from Savannah patch #8573 by Daniel Vrátil.
1570
Benno Schulenbergedabd272014-09-21 15:29:40 +000015712014-09-21 Benno Schulenberg <bensberg@justemail.net>
1572 * doc/syntax/{perl,python,ruby,sh}.nanorc: Recognize also header
1573 lines of the form "#!/usr/bin/env thing" besides "#!/bin/thing".
1574 This fixes Savannah bug #43270 reported by Kitty.
1575
Benno Schulenberg97a5d122014-08-29 20:03:58 +000015762014-08-29 Benno Schulenberg <bensberg@justemail.net>
1577 * src/text.c (do_justify): Replace the old get_shortcut() wrapper
1578 with the new func_from_key().
1579
Benno Schulenberga3cc4e62014-08-10 16:27:30 +000015802014-08-10 Benno Schulenberg <bensberg@justemail.net>
1581 * doc/texinfo/nano.texi: Improve some wordings and formatting.
1582
Benno Schulenberg2a9536c2014-08-07 20:27:21 +000015832014-08-07 Benno Schulenberg <bensberg@justemail.net>
1584 * doc/syntax/nanorc.nanorc: Remove a mistaken OR which causes a
1585 'Bad regex, empty (sub)expression' error on some systems. This
Benno Schulenbergf729c6d2014-08-29 19:22:15 +00001586 fixes Savannah bug #42929 reported by Misty De Meo.
Benno Schulenberg2a9536c2014-08-07 20:27:21 +00001587
Benno Schulenberg3f4389b2014-08-03 20:25:16 +000015882014-08-03 Benno Schulenberg <bensberg@justemail.net>
1589 * doc/man/nano.1, doc/man/rnano.1: Tweak the formatting a bit so that
1590 po4a will create a nicer POT file.
Benno Schulenberg1f960f72014-08-03 20:57:15 +00001591 * doc/man/nanorc.5: Improve some of the wordings and formatting.
Benno Schulenberg3f4389b2014-08-03 20:25:16 +00001592
Benno Schulenberg700c43b2014-08-02 20:47:35 +000015932014-08-02 Benno Schulenberg <bensberg@justemail.net>
1594 * doc/texinfo/nano.texi: Standardize the formatting of command-line
1595 options -- each one separately. Also add some more markup.
1596
Benno Schulenberg2ec70b62014-08-01 21:04:35 +000015972014-08-01 Benno Schulenberg <bensberg@justemail.net>
1598 * doc/man/nano.1, doc/man/rnano.1: Separate short and long option
1599 by a comma instead of putting the long one between parentheses.
1600 And showing the required quotes around the argument of -Q.
1601
Benno Schulenbergfcd44682014-07-31 20:44:19 +000016022014-07-31 Benno Schulenberg <bensberg@justemail.net>
1603 * src/files.c (do_insertfile): Adjust some indentation.
Benno Schulenbergcf9f32b2014-07-31 20:49:32 +00001604 * src/prompt.c (do_statusbar_input), src/browser.c (do_browser):
1605 Reorder a few things, and adjust some whitespace.
Benno Schulenbergfcd44682014-07-31 20:44:19 +00001606
Benno Schulenbergd23283e2014-07-27 19:13:46 +000016072014-07-27 Benno Schulenberg <bensberg@justemail.net>
1608 * src/global.c (add_to_sclist): Remove the now unused and unneeded
1609 addition ability from this builder function of the shortcut list.
Benno Schulenberg80750632014-07-27 19:18:00 +00001610 * src/global.c (strtokeytype): Move this to a better place.
Benno Schulenbergdbb5e7c2014-07-27 19:23:41 +00001611 * src/global.c (first_sc_for): Move this too to a better place.
Benno Schulenberg266e0492014-07-27 19:32:03 +00001612 * src/prompt.c (do_yesno_prompt): Use the new and more direct
1613 func_from_key() wrapper instead of get_shortcut().
Benno Schulenberg47dffa42014-07-27 20:16:28 +00001614 * src/text.c (do_linter): Likewise.
Benno Schulenberg7239fda2014-07-27 21:07:15 +00001615 * src/files.c (do_insertfile, do_writeout): Likewise.
Benno Schulenbergd23283e2014-07-27 19:13:46 +00001616
Jordi Mallach7ffc7b02014-07-24 16:11:20 +000016172014-07-24 Jordi Mallach <jordi@gnu.org>
1618 * doc/texinfo/nano.texi, doc/man/nanorc.5: Typo fix.
1619
Benno Schulenberg1a8c90e2014-07-22 08:17:20 +000016202014-07-22 Benno Schulenberg <bensberg@justemail.net>
1621 * doc/syntax/nanorc.nanorc: Remove 'undo' from the valid options.
1622
Jordi Mallachea40ebb2014-07-21 21:27:15 +000016232014-07-21 Jordi Mallach <jordi@gnu.org>
1624 * doc/nanorc.sample.in: Remove ‘undo’ section which is now obsolete.
1625
Chris Allegretta1c8cdfd2014-07-17 15:32:28 +00001626GNU nano 2.3.6 - 2014.07.17
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001627
Jordi Mallach18be8972014-07-16 11:07:08 +000016282014-07-16 Jordi Mallach <jordi@gnu.org>
Jordi Mallach35cb2c82014-07-17 06:27:08 +00001629 * doc/man/rnano.1: Additional printing formatting improvement from
1630 Bjarni Ingi Gislason.
1631
16322014-07-16 Jordi Mallach <jordi@gnu.org>
Jordi Mallach3d5de0d2014-07-16 17:25:55 +00001633 * doc/man/fr/nano.1, doc/man/fr/rnano.1: Apply similar escaping fixes
1634 to French manpages.
1635 * doc/man/fr/nano.1, doc/man/fr/rnano.1, doc/man/fr/nanorc.5: Recode
1636 as UTF-8.
1637
16382014-07-16 Jordi Mallach <jordi@gnu.org>
Jordi Mallacha3710f62014-07-16 11:22:02 +00001639 * doc/syntax/debian.nanorc: Add https, tor and spacewalk to supported
1640 APT methods.
1641 * doc/syntax/debian.nanorc: Apply the syntax to apt/sources.list.d/
1642 entries as well, as reported by Rodolphe Pelloux-Prayer.
1643
16442014-07-16 Jordi Mallach <jordi@gnu.org>
Jordi Mallach18be8972014-07-16 11:07:08 +00001645 * doc/man/nano.1, doc/man/rnano.1: Add some escaping and formatting
1646 fixes as suggested Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1647 Debian bugs #662842 and #726956.
1648
Benno Schulenberga9fdfd02014-07-16 08:53:16 +000016492014-07-16 Benno Schulenberg <bensberg@justemail.net>
1650 * src/text.c: Normalize the tabbing.
1651
Benno Schulenberg2394e522014-07-16 08:46:42 +000016522014-07-16 Mark Majeres <mark@engine12.com>
1653 * src/text.c (do_undo): Make sure renumbering starts far enough back
1654 after undoing a cut or paste. This fixes a segmentation fault when
1655 undoing a repeated cutting and pasting of the first line of a file.
1656 * src/nano.c (move_to_filestruct, copy_from_filestruct): Fix two leaks.
1657
Chris Allegrettaee7bbf42014-07-13 19:46:32 +000016582014-07-13 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg2394e522014-07-16 08:46:42 +00001659 * ChangeLog: Typo fix.
Chris Allegrettaee7bbf42014-07-13 19:46:32 +00001660
Benno Schulenberg8914bd52014-07-12 08:17:52 +000016612014-07-12 Benno Schulenberg <bensberg@justemail.net>
1662 * configure.ac: The warning about datarootdir being ignored is
1663 not merely a warning, it also activates a workaround.
1664
Benno Schulenberg5dde9182014-07-11 19:14:25 +000016652014-07-11 Mark Majeres <mark@engine12.com>
1666 * src/text.c (do_undo, do_redo): Do not speak of "line wrap"
1667 but instead of "text add" when undoing/redoing text additions
1668 that caused automatic line breaks.
1669
Benno Schulenberg300e2772014-07-11 18:35:08 +000016702014-07-11 Benno Schulenberg <bensberg@justemail.net>
1671 * src/files.c (write_lockfile): Refix typo in error message.
1672
Chris Allegrettacfc396c2014-07-11 13:46:32 +00001673GNU nano 2.3.5 - 2014.07.11
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00001674
Benno Schulenberg6fef9202016-02-23 12:49:08 +000016752014-07-11 Chris Allegretta <chrisa@asty.org>
Chris Allegretta733ca942014-07-11 11:16:15 +00001676 * src/files.c (do_lockfile, open_file): If locking fails,
1677 allow the lock failure message to be preserved AND
1678 preserve the filename passed on the cmdline. Fixes
1679 Savannah bug #42668.
1680
Benno Schulenberg6fef9202016-02-23 12:49:08 +000016812014-07-02 Chris Allegretta <chrisa@asty.org>
Chris Allegretta6d5b2fd2014-07-03 03:54:22 +00001682 * src/files.c (do_lockfile): Check whether the directory
Chris Allegretta733ca942014-07-11 11:16:15 +00001683 of the file we're trying to lock exists, and make the
1684 resulting error message more intuitive. Fixes
1685 Savannah bug #42639 reported by Benno Schulenberg.
Chris Allegretta6d5b2fd2014-07-03 03:54:22 +00001686
Benno Schulenberg92213f92014-07-02 20:29:57 +000016872014-07-02 Mark Majeres <mark@engine12.com>
1688 * src/text.c (undo_cut, redo_cut, update_undo): Handle the
Benno Schulenberg637b76b2014-07-02 20:52:27 +00001689 cases of cutting-from-cursor-to-end-of-line correctly.
Benno Schulenberg92213f92014-07-02 20:29:57 +00001690 * src/nano.c (do_input): Don't preserve the cutbuffer when
1691 CUT_TO_END is toggled -- it would intermix two cut types.
Benno Schulenberg637b76b2014-07-02 20:52:27 +00001692 * src/text.c (redo_cut, do_undo, do_redo): Don't forget to
1693 free the cutbuffer after use.
Benno Schulenberg92213f92014-07-02 20:29:57 +00001694
Benno Schulenberg3933a302014-07-02 08:47:09 +000016952014-07-02 Benno Schulenberg <bensberg@justemail.net>
1696 * src/proto.h: Add a typedef for a pointer to a function.
1697 * src/global.c (func_from_key): New wrapper.
1698 * src/prompt.c (get_prompt_string, do_prompt): Use the new
1699 wrapper to make the code a bit cleaner.
Benno Schulenberg6418ffa2014-07-02 09:29:05 +00001700 * src/help.c (do_help, parse_help_input): Use the wrapper.
1701 * src/browser.c (do_browser, parse_browser_input): Likewise.
Benno Schulenberg6c86ee12014-07-02 19:12:38 +00001702 * src/search.c (search_init, do_gotolinecolumn): Likewise.
1703 * src/search.c (findnextstr): Replace a call of old wrapper
1704 'getfuncfromkey()' with a call of new 'func_from_key()'.
1705 * src/winio.c (getfuncfromkey): Delete now unneeded wrapper.
Benno Schulenberg85ddc712014-07-02 19:57:23 +00001706 * src/nano.c (usage, main), doc/texinfo/nano.texi: Properly
1707 exclude the --quiet option when --disable-nanorc was given.
Benno Schulenberg3933a302014-07-02 08:47:09 +00001708
Benno Schulenberg3b031b12014-07-01 08:38:08 +000017092014-07-01 Benno Schulenberg <bensberg@justemail.net>
1710 * src/browser.c (do_browser), src/help.c (do_help): Make sure
1711 to always set 'currmenu', so that we can rely on it.
Benno Schulenberg49816fe2014-07-01 10:41:10 +00001712 * src/*.c (get_shortcut): Now that 'currmenu' is really global,
1713 stop passing it around.
Benno Schulenberg3cd3e322014-07-01 10:52:07 +00001714 * src/help.c (help_init), src/winio.c (bottombars): There are
1715 no tagless functions, so there is no need to check.
Benno Schulenberg645841f2014-07-01 11:42:28 +00001716 * src/prompt.c (do_prompt, get_prompt_string): Don't pass the
1717 menu, just set it earlier.
Benno Schulenbergebcc68f2014-07-01 11:50:35 +00001718 * src/prompt.c (get_prompt_string): Group the arguments better.
Benno Schulenbergb0957252014-07-01 16:24:01 +00001719 * src/global.c (shortcut_init), src/browser.c (do_filesearch):
1720 Show that it is possible to have backwards, regular-expressive
1721 and case-sensitive searching in the file browser.
1722 * src/browser.c (filesearch_init, do_filesearch): Now delete
1723 these abilities again and all provisions for them.
Benno Schulenberge6a4a642014-07-01 18:52:21 +00001724 * src/global.c (shortcut_init): Add two defines to make the
1725 functions list clearer.
Benno Schulenberg3b031b12014-07-01 08:38:08 +00001726
Benno Schulenberg95e77a92014-06-30 20:39:27 +000017272014-06-30 Mark Majeres <mark@engine12.com>
1728 * src/cut.c, src/global.c, src/nano.c: Rename 'cut_till_end' to
1729 'cut_till_eof', and 'do_cut_till_end' to 'do_cut_till_eof', to
1730 reduce confusion with CUT_TO_END, which is about end-of-line.
1731
Benno Schulenberge94a00a2014-06-30 17:47:07 +000017322014-06-30 Benno Schulenberg <bensberg@justemail.net>
1733 * src/color.c (color_update): When there are no syntaxes, for example
1734 with --ignorercfiles, do not try to find one, because that would lead
1735 to the magic database being searched, which slows down startup a lot.
Benno Schulenbergeaf235f2014-06-30 17:49:53 +00001736 * src/color.c (color_update): Move some variables to a better place.
Benno Schulenberg7e5324d2014-06-30 18:04:33 +00001737 * src/*: Make 'meta_key' and 'func_key' into global variables, instead
1738 of having them declared everywhere and passing them around endlessly.
Benno Schulenberg776931a2014-06-30 18:20:32 +00001739 * src/global.c (sc_seq_or): Now fix a bug introduced somewhere after
1740 2.3.2 where binding a movement function to a Meta key would make the
1741 corresponding Arrow key stop working (producing a character instead).
Benno Schulenberge94a00a2014-06-30 17:47:07 +00001742
Benno Schulenberg6f28d352014-06-29 09:33:51 +000017432014-06-29 Benno Schulenberg <bensberg@justemail.net>
1744 * src/rcfile.c: Fix compilation with --enable-tiny --enable-nanorc.
Benno Schulenberg09dd0a42014-06-29 20:53:00 +00001745 * src/winio.c (parse_kbinput, get_escape_seq_kbinput): Make Ctrl-Left
1746 and Ctrl-Right produce special codes, and map these codes to Prevword
1747 and Nextword instead of reducing them to a plain Left and Right. The
1748 codes 539 and 554 were so chosen because some terminals produce these.
Benno Schulenberg6f28d352014-06-29 09:33:51 +00001749
Benno Schulenberg484a0be2014-06-29 08:49:06 +000017502014-06-29 Mark Majeres <mark@engine12.com>
1751 * src/text.c (do_undo): Update the pointer to the bottom of the file
1752 when undoing line deletions at file's end.
1753
Benno Schulenbergb5895f02014-06-28 08:29:18 +000017542014-06-28 Benno Schulenberg <bensberg@justemail.net>
1755 * src/prompt.c (do_statusbar_input): Remove the useless parameters
1756 'have_shortcut and 'allow_funcs'; the latter is only ever TRUE.
Benno Schulenbergd4623f32014-06-28 14:42:18 +00001757 * src/global.c (shortcut_init), src/prompt.c (do_statusbar_input):
1758 Eradicate the execute flag -- it is only FALSE for functions that are
1759 empty placeholders (so executing them will not do anything anyway) or
1760 for functions ('total_refresh', 'do_suspend_void') that do not exist
1761 in menus with a prompt. The only two exceptions are 'do_cancel' and
1762 'do_gotolinecolumn_void'. The first is handled specially, so do that
1763 too for the second and then get to drop 140 parameters.
Benno Schulenbergd48d84a2014-06-28 15:34:10 +00001764 * src/global.c (strtosc): Move recognition of the toggles to the end,
1765 use a single assignment of do_toggle_void, trim the unneeded braces.
Benno Schulenbergb5895f02014-06-28 08:29:18 +00001766
Benno Schulenberga8c13d72014-06-27 15:51:24 +000017672014-06-27 Benno Schulenberg <bensberg@justemail.net>
1768 * src/global.c (shortcut_init): Add default keybindings for Cut,
1769 PrevWord and NextWord in the prompt input lines; the code for those
1770 special operations already exists, just the shortcuts were missing.
Benno Schulenberg4651f492014-06-27 16:14:52 +00001771 * src/rcfile.c (parse_binding): When binding keys, only allow those
1772 menus where the bound function is actually present. This reduces
1773 the meaning of 'all' to "all menus where the function exists".
1774 * src/rcfile.c (is_universal): New function, returning TRUE for the
1775 functions that are present in most menus but only listed in MMAIN.
Benno Schulenberg64fd3b82014-06-27 16:27:52 +00001776 * doc/man/nanorc.5, doc/texinfo/nano.texi: Update the docs for this.
Benno Schulenberg29dfb682014-06-27 19:32:12 +00001777 * prompt.c (find_statusbar_bracket_match, do_statusbar_find_bracket):
1778 Remove these functions and thus the ability to search for a matching
1779 bracket in a prompt input line. The find_bracket function never had
1780 a default keybinding outside MMAIN, so is unlikely to have been used.
Benno Schulenberg26de2dd2014-06-27 20:01:27 +00001781 * src/prompt.c (do_statusbar_input): Normalize the indentation.
1782 * src/winio.c: Normalize some whitespace.
Benno Schulenberg607b2262014-06-27 20:20:14 +00001783 * Makefile.am, nano.spec.in: Stop distributing the BUGS file.
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00001784 * BUGS: Remove obsolete file, as all the bugs in it have been fixed
1785 long ago. Nowadays bugs are tracked on Savannah.
Benno Schulenberg4868f832014-06-27 20:35:37 +00001786 * configure.ac: Silence a useless warning about ignoring datarootdir.
Benno Schulenberga8c13d72014-06-27 15:51:24 +00001787
Benno Schulenberg0c0fbd52014-06-25 09:05:55 +000017882014-06-25 Benno Schulenberg <bensberg@justemail.net>
1789 * src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be
1790 rebound to Ctrl keys -- checking meta_key is wrong, the function has
1791 already been determined, that is all that matters.
Benno Schulenberg40ae3942014-06-25 09:17:38 +00001792 * src/help.c (do_help): Same thing for 'firstline'/'lastline'.
Benno Schulenberg0c0fbd52014-06-25 09:05:55 +00001793
Benno Schulenbergce0ea442014-06-23 18:20:12 +000017942014-06-23 Benno Schulenberg <bensberg@justemail.net>
Chris Allegrettaee7bbf42014-07-13 19:46:32 +00001795 * src/nano.h, src/move.c (do_up, do_down), src/winio.c (edit_scroll):
Benno Schulenbergce0ea442014-06-23 18:20:12 +00001796 Rename UP_DIR and DOWN_DIR to UPWARD and DOWNWARD, for clarity.
Benno Schulenberga0f66c02014-06-23 18:30:35 +00001797 * src/proto.h, src/global.c, src/search.c: Rename 'no_replace_void()'
1798 to 'flip_replace_void()', to show what it actually does.
1799 * doc/man/nanorc.5, doc/texinfo/nano.texi: Update the docs for that.
Benno Schulenbergef162232014-06-23 20:03:25 +00001800 * src/global.c (strtosc): Add the bindable function 'gotodir'.
1801 * doc/man/nanorc.5, doc/texinfo/nano.texi: Document the bindable
1802 functions 'tofiles','gotodir' and 'flipnewbuffer', and correct
1803 the description of 'gototext' (not being about the file browser).
Benno Schulenberg12ecfbb2014-06-23 20:17:00 +00001804 * doc/syntax/nanorc.nanorc: Show Ins and Del as valid rebindable keys.
Benno Schulenbergcfa13382014-06-23 20:22:42 +00001805 * src/help.c (do_help): Normalize the indentation.
Benno Schulenberg45417c72014-06-23 20:30:23 +00001806 * src/files.c (do_insertfile): Give audible feedback when flipping
1807 the new buffer to off is not allowed in view mode.
Benno Schulenbergce0ea442014-06-23 18:20:12 +00001808
Benno Schulenbergcda06a92014-06-22 19:17:02 +000018092014-06-22 Benno Schulenberg <bensberg@justemail.net>
1810 * src/browser.c (parse_browser_input), src/help.c (parse_help_input):
1811 Remove two pointless calls of get_shortcut(), and adjust the comments.
Benno Schulenberg8ea830f2014-06-22 19:23:54 +00001812 * src/nano.c (do_toggle): When toggling softwrap, only the edit window
1813 needs to be refreshed, not the entire screen.
Benno Schulenberg64039e92014-06-22 21:21:00 +00001814 * src/browser.c (do_browser): Remove superfluous abortion variable,
1815 and place two comments better.
Benno Schulenberg4cf39e42014-06-22 21:26:56 +00001816 * src/text.c (do_redo): Rename 'undidmsg' to 'redidmsg', to be apt.
Benno Schulenbergcda06a92014-06-22 19:17:02 +00001817
Benno Schulenberg07f40612014-06-22 10:14:48 +000018182014-06-22 Mark Majeres <mark@engine12.com>
1819 * src/text.c (do_redo): When redoing a line join at the tail
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00001820 of the file, make sure openfile->filebot is updated.
Benno Schulenberg01666912014-06-22 11:03:49 +00001821 * src/text.c (undo_cut, redo_cut, do_undo, add_undo, update_undo):
1822 Fix three leaks of the cutbuffer, shorten and regroup some stuff,
1823 and remove an unneeded iteration of cutbottom.
Benno Schulenberg07f40612014-06-22 10:14:48 +00001824
Benno Schulenberg76e150b2014-06-21 19:32:17 +000018252014-06-21 Mark Majeres <mark@engine12.com>
1826 * src/text.c (undo_cut, add_undo): When undoing a cut-till-eof,
1827 put the cursor back where the cut started, and not at the end.
Benno Schulenbergfb6c0cd2014-06-21 19:40:30 +00001828 * src/text.c (do_undo): When undoing a line break at the tail
1829 of the file, make sure openfile->filebot is updated.
Benno Schulenberg76e150b2014-06-21 19:32:17 +00001830
Benno Schulenbergf80dcb22014-06-21 19:01:51 +000018312014-06-21 David Lawrence Ramsey <pooka109@gmail.com>
1832 * src/move.c, src/nano.c: Miscellaneous whitespace fixes, one
1833 type fix, and one more #ifdef NANO_TINY.
1834
Benno Schulenberg4147c5e2014-06-20 07:55:24 +000018352014-06-20 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg03f37ad2014-06-20 10:34:52 +00001836 * src/proto.h, src/global.c: Remove two obsolete variables and an
1837 unneeded extern, and regroup some stuff.
Benno Schulenbergac6846a2014-06-20 10:39:31 +00001838 * src/files.c (check_dotnano): Wrap long lines and actually report
1839 the name that is not a directory.
Benno Schulenberg492e9f62014-06-20 10:48:26 +00001840 * src/*: Miscellaneous whitespace adjustments and comment tweaks.
Benno Schulenbergb0555992014-06-20 15:35:26 +00001841 * src/files.c: Fix compilation with --enable-tiny --enable-browser.
Benno Schulenbergc923fa72014-06-20 15:56:31 +00001842 * doc/man/nano.1, doc/texinfo/nano.texi: History logging no longer
1843 depends upon nanorc support, plus many other tweaks.
Benno Schulenbergcf8a2962014-06-20 16:03:38 +00001844 * src/global.c (strtosc): Fix compilation with --enable-tiny
1845 --enable-histories --enable-nanorc.
Benno Schulenberg3b47ff72014-06-20 16:13:54 +00001846 * src/text.c: Fix compilation with --enable-tiny --enable-wrapping.
Benno Schulenberg691689d2014-06-20 16:33:12 +00001847 * src/files.c (do_insertfile): Fix compilation with --enable-tiny
1848 --enable-histories --enable-multibuffer.
Benno Schulenberg1930e812014-06-20 18:06:22 +00001849 * src/nano.c: Fix compilation with --enable-tiny --enable-mouse.
Benno Schulenbergb14fbf72014-06-20 18:40:34 +00001850 * doc/man/nanorc.5, doc/texinfo/nano.texi: Explain better what "all"
1851 means when rebinding keys. This is a fix for Savannah bug #42552.
Benno Schulenberg3060ce32014-06-20 19:10:24 +00001852 * src/nano.c (main): Make +1 and +,1 start on line one column one,
1853 overriding a historical position. This fixes Savannah bug #42538.
Benno Schulenberg4147c5e2014-06-20 07:55:24 +00001854
Benno Schulenberge7c690d2014-06-19 11:58:11 +000018552014-06-19 Benno Schulenberg <bensberg@justemail.net>
1856 * src/nano.c (window_init): Rename 'no_more_space()' to 'more_space()'
1857 for consistency, and tweak the related comments.
Benno Schulenbergd8403022014-06-19 13:08:23 +00001858 * src/files.c: Update some comments to match the current status.
Benno Schulenbergfcb4c3f2014-06-19 15:09:23 +00001859 * src/nano (finish, main): Allow -H/--historylog and -P/--poslog to
1860 function also when -I/--ignorercfiles is given.
Benno Schulenberg0615acd2014-06-19 17:39:26 +00001861 * configure.ac: Add a --disable-histories flag, to disable the code
1862 for the histories of search/replace strings and cursor positions.
1863 * doc/texinfo/nano.texi: Document the new configure flag.
Benno Schulenbergb341f292014-06-19 20:05:24 +00001864 * src/*: Transform many DISABLE_NANORC to the new DISABLE_HISTORIES.
1865 This completes the fix for Savannah bug #42539.
Benno Schulenberge7c690d2014-06-19 11:58:11 +00001866
Benno Schulenbergc55c0db2014-06-18 19:46:35 +000018672014-06-18 Benno Schulenberg <bensberg@justemail.net>
1868 * src/text.c: Rename 'to_end' to 'to_eof', to lessen confusion
1869 with CUT_TO_END (which is about cutting to end-of-line).
Benno Schulenberg3cf338a2014-06-18 19:59:12 +00001870 * src/text.c: Upon better thought, elide the unneeded 'to_eof'.
Benno Schulenbergb39db7b2014-06-18 20:01:30 +00001871 * src/text.c: And elide a totally unused 'strdata2'.
Benno Schulenberg45fe2ad2014-06-18 20:11:52 +00001872 * src/text.c: Rename the undo type UNSPLIT to JOIN, for clarity.
Benno Schulenberg336d1b82014-06-18 20:43:05 +00001873 * src/global.c, src/rcfile.c: Rename function_type to key_type.
Benno Schulenberga81e1412014-06-18 21:23:50 +00001874 * src/text.c (break_line): Remove a condition and a break that
1875 cancel each other.
Benno Schulenbergc55c0db2014-06-18 19:46:35 +00001876
Benno Schulenberga8727092014-06-18 19:04:35 +000018772014-06-18 Mark Majeres <mark@engine12.com>
1878 * src/text.c (add_undo): Don't start a new undo for CUT when the
1879 cutbuffer is being preserved, because then the cuts are contiguous
1880 and will form a single undo item. And make sure the cutbuffer will
1881 be cleared when a new undo item for CUT is created.
1882 * src/cut.c (keeping_cutbuffer): New function, to access the status
1883 of 'keep_cutbuffer' from the undo/redo code in src/text.c.
1884 * src/cut.c (do_copy_text): Blow away the contents of the cutbuffer
1885 if the mark is set or the cursor has moved between two copy commands.
1886
Benno Schulenberge96022b2014-06-17 15:50:34 +000018872014-06-17 Mark Majeres <mark@engine12.com>
1888 * src/text.c (do_undo, do_redo): After an undo or redo, update the
1889 'placewewant' (the desired horizontal position of the cursor).
1890
Benno Schulenberg38cb8fc2014-06-17 15:37:34 +000018912014-06-17 Benno Schulenberg <bensberg@justemail.net>
1892 * src/text.c (do_undo, do_redo): Remove obsolete boolean variable.
Benno Schulenbergb439f552014-06-17 20:30:59 +00001893 * doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Replace
1894 SYSCONFDIR with an absolute path or a circumlocution, as suggested
1895 by Mike Frysinger, plus some other tweaks.
Benno Schulenberg38cb8fc2014-06-17 15:37:34 +00001896
Benno Schulenberg4f3f9762014-06-16 20:44:34 +000018972014-06-16 David Lawrence Ramsey <pooka109@gmail.com>
1898 * src/nano.c (do_exit): Display the message "No file name" on the
1899 statusbar for two seconds when --tempfile was given and the current
1900 buffer has no name. This fixes Savannah bug #41750.
1901
Benno Schulenbergca9abd82014-06-16 12:06:58 +000019022014-06-16 Benno Schulenberg <bensberg@justemail.net>
1903 * configure.ac: For the sake of statically linked systems, make sure
1904 the compiler also links against libz, which is used by libmagic.
1905 This fixes Savannah bug #38378, reported by Alan Hourihane.
Benno Schulenberg99a649d2014-06-16 12:30:35 +00001906 * src/nano.c (do_mouse, do_input): Don't bother returning zero when
1907 the cursor moved, just reset the cutbuffer directly. This avoids an
1908 "Unknown Command" message on every cursor-positioning mouse click.
Benno Schulenberg0ec77102014-06-16 12:40:14 +00001909 * src/nano.c (do_mouse): Put a common statement outside of then/else.
Benno Schulenberg1f67c122014-06-16 12:45:03 +00001910 * src/Makefile.am: Remove -I m4; it is needed only at the top level.
Benno Schulenbergd21649e2014-06-16 12:54:06 +00001911 * Makefile.am: Trim the contents of EXTRA_DIST to what is required.
Benno Schulenberg73a8aa02014-06-16 15:02:58 +00001912 * doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Update
1913 the docs for the changed location of nano's search history.
Benno Schulenberg7152a4b2014-06-16 15:24:28 +00001914 * doc/man/nano.1, doc/man/nanorc.5, doc/texinfo/nano.texi: Change
Benno Schulenberga77efae2015-12-11 16:55:07 +00001915 some wordings, triggered by Savannah bug #42539.
Benno Schulenbergca9abd82014-06-16 12:06:58 +00001916
Benno Schulenberg948b8e92014-06-14 14:08:28 +000019172014-06-14 Mark Majeres <mark@engine12.com>
1918 * src/nano.h, src/text.c (undo_cut, update_undo): When undoing a
1919 backwards cut, put the cursor back in front of it, where it was.
1920
Benno Schulenberg454563c2014-06-13 12:07:18 +000019212014-06-13 Benno Schulenberg <bensberg@justemail.net>
1922 * src/nano.c (do_input): Repositioning the cursor with the mouse
1923 (result == 0) should break a series of ^Ks.
Benno Schulenberg1d064552014-06-13 12:19:44 +00001924 * src/nano.c (do_mouse): Clicking on the titlebar or the statusbar
1925 should not break a series of ^Ks, thus result must not be zero.
Benno Schulenberg3af22aa2014-06-13 12:28:33 +00001926 * src/nano.c (do_input): A toggle should not break a series of ^Ks.
Benno Schulenbergcd59a642014-06-13 14:58:02 +00001927 * src/winio.c (get_shortcut): Do not treat holding both Control and
1928 Meta the same as holding only Control.
Benno Schulenberg736fbf22014-06-13 15:20:26 +00001929 * src/global.c, src/rcfile.c, src/nano.h, src/nano.c, src/text.c:
1930 Remove the --undo option, having the undo functions always enabled.
1931 If wished, the user can unbind them. This fixes Savannah bug #42456.
1932 * doc/man/{nano.1,nanorc.5}, doc/texinfo/nano.texi: Update the docs.
Benno Schulenbergc5c0d742014-06-13 20:52:39 +00001933 * nano.spec.in: Remove useless info dir file from the build directory,
1934 don't clean this directory first, it's unnecessary, add a suggestion
1935 for a pico symlink, and update the license and the source URL.
Benno Schulenberg454563c2014-06-13 12:07:18 +00001936
Benno Schulenberga3f421c2014-06-11 18:04:36 +000019372014-06-11 Benno Schulenberg <bensberg@justemail.net>
1938 * src/winio.c (get_mouseinput): Produce the correct return value for
1939 when a mouse event reinserted something into the keyboard buffer.
1940 * src/nano.c (do_input): Do not continue when there is a spurious
1941 mouse event (a touch of the touchpad, for example) but get out.
1942 Continuing would result in the cutbuffer being cleared upon the
1943 next cut. These two changes together fix Savannah bug #42326.
Benno Schulenbergfc35e202014-06-11 18:23:29 +00001944 * src/nano.c (do_input): Always accept mouse events, also when
1945 just looking for Unjustify. This fixes Savannah bug #42322.
Benno Schulenberg8cc8b082014-06-11 18:34:35 +00001946 * src/nano.c (do_input): Remove a superfluous switch statement.
Benno Schulenberg62bb6e82014-06-11 19:24:38 +00001947 * src/winio.c (get_mouseinput): Set the type of a reinserted key,
1948 also when it is a function key. This fixes Savannah bug #42092.
Benno Schulenberga3f421c2014-06-11 18:04:36 +00001949
Benno Schulenberga8a23ab2014-06-10 19:12:14 +000019502014-06-10 Benno Schulenberg <bensberg@justemail.net>
1951 * src/browser.c, src/files.c, src/nano.c src/prompt.c, src/winio.c:
1952 A few minimalistic whitespace adjustments.
Benno Schulenberg7d5f42c2014-06-10 19:50:44 +00001953 * src/rcfile.c (check_bad_binding): Avoid a compiler warning.
Benno Schulenberga8a23ab2014-06-10 19:12:14 +00001954
Benno Schulenberg53435b02014-06-10 19:07:47 +000019552014-06-10 David Lawrence Ramsey <pooka109@gmail.com>
1956 * src/winio.c: One more type fix and two tiny message tweaks.
1957
Benno Schulenberg505125e2014-06-09 14:23:53 +000019582014-06-09 David Lawrence Ramsey <pooka109@gmail.com>
1959 * src/*.c: Cosmetic tweaks of comments and whitespace.
Benno Schulenberged0086b2014-06-09 14:33:00 +00001960 * src/help.c, src/rcfile.c, src/winio.c: Elide a function call by
1961 not comparing with an empty string but checking for the final \0.
Benno Schulenbergacda2552014-06-09 15:08:59 +00001962 * src/files.c, src/nano.c, src/text.c, src/winio.c: Type fixes in
1963 debugging stuff -- line numbers are long, x positions unsigned long.
Benno Schulenberg1102aaa2014-06-09 20:26:54 +00001964 * src/files.c, src/move.c, src/nano.c, src/text.c, src/winio.c:
1965 Make tiny nano a bit tinier by preening out some soft-wrap stuff.
Benno Schulenberg6af5bde2014-06-09 20:41:15 +00001966 * src/global.c, src/nano.c, src/winio.c: A few more cosmetic tweaks
1967 (whitespace, order, braces, parentheses, and a typo) and type fixes.
Benno Schulenberg505125e2014-06-09 14:23:53 +00001968
Benno Schulenberg9ac910e2014-06-09 10:28:23 +000019692014-06-09 Benno Schulenberg <bensberg@justemail.net>
1970 * src/nano.c (do_input): Remove two superfluous false conditions.
Benno Schulenbergc35eb5a2014-06-09 10:35:44 +00001971 * src/nano.h, src/text.c (add_undo): Avoid a compiler warning with
1972 --disable-wrapping.
Benno Schulenberg9ac910e2014-06-09 10:28:23 +00001973
Benno Schulenbergbe10c2a2014-06-09 10:01:54 +000019742014-06-09 Mark Majeres <mark@engine12.com>
1975 * src/text.c (do_undo, do_redo, add_undo, update_undo, do-wrap):
1976 Rewrite the line-wrapping code to make use of the existing line-break
1977 code. And undo line wraps together with their causal text additions,
1978 and not as separate actions because the user did not make them.
1979
Benno Schulenberg64896ba2014-06-08 19:02:12 +000019802014-06-08 Mark Majeres <mark@engine12.com>
1981 * src/text.c (do_delete, do_deletion, do_undo, do_redo, update_undo):
1982 Differentiate between undoing a Delete and undoing a Backspace -- the
1983 cursor should be in a slightly but significantly different position.
1984
Benno Schulenberg04a38da2014-06-04 19:15:16 +000019852014-06-04 Benno Schulenberg <bensberg@justemail.net>
1986 * src/global.c (shortcut_init), src/files.c (do_insertfile): Rename
1987 'ext_cmd_void' to 'flip_execute_void' to better match what it does.
1988 * src/global.c (strtosc), doc/man/nanorc.5, doc/texinfo/nano.texi:
1989 Add function name 'flipexecute' to enable rebinding ^X in the menus
1990 Read File and Execute Command.
1991
Benno Schulenberg1de337d2014-06-04 16:02:51 +000019922014-06-04 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg95592ce2014-06-04 16:32:45 +00001993 * src/*.c: Adjustments of whitespace and comments.
1994 * doc/nanorc.sample.in: Interpunction tweaks.
Benno Schulenberg1eb23d42014-06-04 16:30:11 +00001995 * src/global.c (add_to_funcs): Add cast to subnfunc* for nmalloc().
1996 * src/files.c (do_lockfile): Properly make the variable 'lockfilesize'
1997 a size_t instead of a ssize_t, since it holds the result of strlen().
1998 And use charalloc() instead of (char *)nmalloc().
1999 * src/text.c (do_undo): Use charealloc() and not (char *)nrealloc().
2000 * src/text.c (add_undo): Make use of null_at() to both null-terminate
2001 the multibyte character and align it to use only the amount of memory
2002 necessary.
Benno Schulenberg1de337d2014-06-04 16:02:51 +00002003
Benno Schulenberg25df3ab2014-06-05 07:57:04 +00002004GNU nano 2.3.4 - 2014.06.02
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00002005
Benno Schulenberg6fef9202016-02-23 12:49:08 +000020062014-06-02 Chris Allegretta <chrisa@asty.org>
Chris Allegretta0de8d0d2014-06-02 14:35:21 +00002007 * doc/syntax/default.nanorc: Can't do trailing spaces in the
Benno Schulenberg95592ce2014-06-04 16:32:45 +00002008 default syntax or it will hilight the spaces as you type them
2009 into a new file, which for non-programming is infuriating.
Chris Allegretta0de8d0d2014-06-02 14:35:21 +00002010
Benno Schulenbergff36b052014-05-29 18:50:13 +000020112014-05-29 Mark Majeres <mark@engine12.com>
2012 * src/text.c (do_delete): For the undo structure, differentiate
2013 between deleting a newline and any other character.
2014
Benno Schulenberg6fef9202016-02-23 12:49:08 +000020152014-05-29 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg95592ce2014-06-04 16:32:45 +00002016 * src/chars.c (addstrings): This function needs to be available even
2017 on non-utf-8 systems.
2018 * nano-regress: Added --disable-utf8 to regression check.
Chris Allegretta82a41102014-05-29 18:30:23 +00002019
Benno Schulenberg25df3ab2014-06-05 07:57:04 +00002020GNU nano 2.3.3 - 2014.05.29
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00002021
Benno Schulenberg6fef9202016-02-23 12:49:08 +000020222014-05-28 Chris Allegretta <chrisa@asty.org>
Chris Allegretta4f3fe132014-05-29 04:38:16 +00002023 * doc/syntax/mutt.nanorc: Include Benno's awesome signature
2024 matcher, modified slightly to also work for quoted sigs.
2025 * doc/syntax/default.nanorc: Be far more gentle with something
2026 which affects every file which doesn't match another syntax, and
2027 the user may not be able to override if their distro turns on
2028 highlighting by default.
2029
Benno Schulenbergd0e234d2014-05-28 13:24:05 +000020302014-05-28 Benno Schulenberg <bensberg@justemail.net>
2031 * src/nano.c (do_input): Remove the three unused parameters 's_or_t',
2032 'ran_func', and 'finished'. They are only ever set and never used.
2033 * src/text.c (do_justify): Adjust a call of do_input().
Benno Schulenbergec173222014-05-28 13:27:33 +00002034 * src/browser (do_browser): Actually translate the go-to-dir prompt.
Benno Schulenberga2d74f72014-05-28 14:34:11 +00002035 * src/browser, src/search.c: There is no need to repeat translator
2036 comments for the same string -- once is enough to get them included.
2037 Add instead some translator comments for the prompts.
Benno Schulenbergff6b92c2014-05-28 15:35:00 +00002038 * src/global.c (shortcut_init): Make ^X in the Read-File menu toggle
2039 between executing a command and inserting a file. The mechanism in
2040 do_insertfile() in files.c is already present -- in the past just
2041 the wrong function was used in the relevant function-list item:
2042 'do_insertfile_void' instead of the unintuitive 'ext_cmd_void'.
Benno Schulenberg9b084b22014-05-28 15:40:24 +00002043 * src/browser (filesearch_init): Remove an unneeded format specifier.
Benno Schulenberg62de3302014-05-28 15:44:11 +00002044 * src/nano.c (usage): Add a translator comment for the --help output.
Benno Schulenberg48223592014-05-28 19:02:00 +00002045 * src/global.c (shortcut_init): Elide four unneeded tags.
Benno Schulenberg8c5f5042014-05-28 20:31:06 +00002046 * src/global.c (shortcut_init): Make tiny nano just a bit tinier.
Benno Schulenbergf470c902014-05-28 21:02:39 +00002047 * src/global.c (shortcut_init): Standardize the add_to_funcs() calls,
2048 breaking always between the menus and the tag.
Benno Schulenbergd0e234d2014-05-28 13:24:05 +00002049
Benno Schulenberg6fef9202016-02-23 12:49:08 +000020502014-05-27 Chris Allegretta <chrisa@asty.org>
Chris Allegrettacfa29762014-05-28 01:35:51 +00002051 * src/winio.c (edit_refresh): wredrawln() is not supported under
2052 slang.
2053
Benno Schulenberg0d5e7322014-05-27 12:17:49 +000020542014-05-27 Benno Schulenberg <bensberg@justemail.net>
2055 * src/global.c (shortcut_init): Improve the arrangement of help items
2056 under certain compilation conditions.
Benno Schulenberg769e81c2014-05-27 12:34:43 +00002057 * src/global.c (strtosc): Make tiny nano a bit tinier.
Benno Schulenberg5a393392014-05-27 12:38:32 +00002058 * src/global.c (strtosc): Allow rebinding 'suspend' in tiny nano.
Benno Schulenberg0606c622014-05-27 22:03:04 +00002059 * src/winio.c (set_modified): Adjust translator comment to make it
2060 show up in the POT file, and make it take the "[ ]" into account.
Benno Schulenberg0d5e7322014-05-27 12:17:49 +00002061
Benno Schulenbergc3c2c662014-05-26 07:53:20 +000020622014-05-26 Benno Schulenberg <bensberg@justemail.net>
2063 * src/cut.c (cut_line): Fix compilation with --enable-tiny.
2064 * src/text.c (do_linter): Avoid a warning with --enable-tiny.
Benno Schulenberg022d32a2014-05-26 10:07:00 +00002065 * src/global.c (shortcut_init): Unwrap some lines, and reorder two.
Benno Schulenbergc3c2c662014-05-26 07:53:20 +00002066
Benno Schulenberg353dd212014-05-25 19:47:46 +000020672014-05-25 Benno Schulenberg <bensberg@justemail.net>
2068 * src/global.c: Cut down on the size of tiny nano, by not compiling
2069 the function strtosc() when --disable-nanorc is given or implied.
2070
Benno Schulenbergf5ac8c12014-05-25 19:41:49 +000020712014-05-25 Mark Majeres <mark@engine12.com>
2072 * src/chars.c (addstrings): New function, concatenates two allocated
2073 strings, tacking the second onto the first and freeing the second.
2074 * src/cut.c (do_uncut_text): Update the undo structure for a paste.
2075 * src/text.c (undo_cut, redo_cut, add_undo, update_undo): Place the
2076 cursor after an undo there where it was before the do, and handle
2077 multibyte characters correctly.
2078
Benno Schulenberg0ae38b42014-05-23 20:24:31 +000020792014-05-23 Benno Schulenberg <bensberg@justemail.net>
2080 * src/winio.c (edit_draw): Finally, the proper fix for bug #31743;
2081 telling ncurses to really redraw the line, without optimization, so
2082 it will not mistakenly assume that a wide character at the start of
2083 a line takes up just one column. This deletes the workaround that
2084 had the side effect of creating pastes full of trailing whitespace.
2085
Benno Schulenbergeb5c49d2014-05-19 20:44:24 +000020862014-05-19 Mark Majeres <mark@engine12.com>
2087 * src/winio.c (edit_draw): Paint the current line *after* tickling the
2088 terminal, so that the character in the final column will be displayed
2089 properly. Bug was introduced five days ago.
2090
Benno Schulenberg277701f2014-05-18 10:16:07 +000020912014-05-18 Benno Schulenberg <bensberg@justemail.net>
2092 * src/nano (precalc_multicolorinfo): Do not match the ^ anchor when
2093 looking further on in a line. This prevents an end="^$" from being
2094 sometimes mistakenly matched. Fix inspired by Savannah bug #27708.
Benno Schulenberg8491c222014-05-18 10:34:18 +00002095 * doc/syntax/default.nanorc: New file, example for a default syntax.
Benno Schulenberg277701f2014-05-18 10:16:07 +00002096
Benno Schulenbergc7b0e542014-05-17 11:44:35 +000020972014-05-17 Benno Schulenberg <bensberg@justemail.net>
2098 * doc/syntax/json.nanorc: New file, originally from Aapo Rantalainen,
2099 but edited, extended, and improved. See Savannah patch #7410.
Benno Schulenberg3be5f462014-05-17 20:25:42 +00002100 * src/winio.c (edit_draw): Do not skip the colour-off commands at the
2101 end of the loop. Based on Savannah patch #7550 by Ryan Lothian.
2102 This fixes bug #26111 reported by Dave Geering <dreamlax@Savannah>.
Benno Schulenbergc7b0e542014-05-17 11:44:35 +00002103
Benno Schulenberg52e35332014-05-16 11:03:04 +000021042014-05-16 Benno Schulenberg <bensberg@justemail.net>
2105 * src/text.c, src/winio.c: Remove some more double spaces.
Benno Schulenberg3edcfd22014-05-16 11:08:52 +00002106 * doc/syntax/patch.nanorc: Show trailing whitespace on added lines.
Benno Schulenberg1028d652014-05-16 20:13:02 +00002107 * doc/syntax/debian.nanorc: Make the component colouring simpler,
2108 and the URI colouring completer, and improve the comments.
Benno Schulenbergfe9da942014-05-16 20:21:34 +00002109 * doc/syntax/*.nanorc: Harmonize (partially) the syntax files.
Benno Schulenberg52e35332014-05-16 11:03:04 +00002110
Benno Schulenberg275bd282014-05-16 10:34:05 +000021112014-05-16 David Lawrence Ramsey <pooka109@gmail.com>
2112 * src/color.c, src/cut.c, src/text.c: Tweak some whitespace.
2113 * src/global.c, src/move.c: Use TRUE and FALSE instead of 1 and 0.
2114 * src/winio.c (edit_draw): Mention the name of the tickling character.
Benno Schulenberg5298d512014-05-16 10:50:01 +00002115 * src/search.c (goto_line_posx): Remove unneeded call of edit_refresh.
2116 * src/text.c (do_undo, do_redo): Use size_t for line lengths.
Benno Schulenberg275bd282014-05-16 10:34:05 +00002117
Benno Schulenberg60815462014-05-15 20:00:46 +000021182014-05-15 Mark Majeres <mark@engine12.com>
2119 * src/*, but mainly src/text.c (undo_cut, redo_cut, do_undo, do_redo):
2120 Go to the correct positions for undoing/redoing the cuts and pastes.
2121 This fixes several undo problems and Savannah bug #25585.
2122
Benno Schulenberg275b6172014-05-15 12:52:30 +000021232014-05-15 Benno Schulenberg <bensberg@justemail.net>
2124 * doc/syntax/c.nanorc: Improve the magic regex, plus tweaks.
Benno Schulenberg4774ca62014-05-15 13:18:48 +00002125 * src/color.c (color_update): Adjust a comment, and be clearer.
Benno Schulenbergeb91ad52014-05-15 13:11:55 +00002126 * src/nano.h: Improve two comments, and elide one macro.
Benno Schulenberg4774ca62014-05-15 13:18:48 +00002127 * doc/syntax/Makefile.am: Add texinfo.nanorc to the packing list.
Benno Schulenberg275b6172014-05-15 12:52:30 +00002128
Benno Schulenbergdfc9a7e2014-05-14 08:42:14 +000021292014-05-14 Benno Schulenberg <bensberg@justemail.net>
2130 * src/winio.c (edit_draw): Poke a non-breaking space into the last
2131 column of every line, to startle the terminal into handling wide,
2132 two-column characters properly. This fixes Savannah bug #31743.
Benno Schulenbergef2cbb72014-05-14 09:17:25 +00002133 * src/nano.c (precalc_multicolorinfo): Improve debugging messages,
2134 and remove superfluous assignment (fileptr already equals endptr).
Benno Schulenbergf9375262014-05-14 10:09:42 +00002135 * src/color.c (color_update): Move magic check to after headerline.
Benno Schulenbergf3046222014-05-14 10:29:55 +00002136 * src/color.c (color_update): Open the magic database only when
2137 actually going to use it, and close it afterward.
Benno Schulenberg5edd0412014-05-14 11:16:40 +00002138 * doc/syntax/{perl.nanorc,xml.nanorc}: Improve two magic regexes.
Benno Schulenberge81a43f2014-05-14 11:51:26 +00002139 * src/color.c (color_update): Stop seeking when a magic matched.
Benno Schulenberg230bd0d2014-05-14 12:52:15 +00002140 * doc/nanorc.sample.in: Add an example of colouring nano's interface
2141 elements, and tweak some of the other descriptions.
Benno Schulenbergdfc9a7e2014-05-14 08:42:14 +00002142
Benno Schulenberg127ce152014-05-13 08:12:52 +000021432014-05-13 Benno Schulenberg <bensberg@justemail.net>
2144 * src/text.c (do_linter): Make an error message somewhat clearer.
Benno Schulenberg111071a2014-05-13 08:34:29 +00002145 * src/rcfile.c (parse_binding): Improve another error message.
Benno Schulenberg2088bfd2014-05-13 17:58:39 +00002146 * doc/syntax/nanorc.nanorc: Show key names like M-6 and M-/ as valid.
Benno Schulenberg24bc59f2014-05-13 18:06:09 +00002147 * src/global.c (thanks_for_all_the_fish): Upon exit also free the
2148 lists with functions and shortcuts.
Benno Schulenberg71c9a522014-05-13 20:14:01 +00002149 * src/*.c: Several random whitespace and comment tweaks.
Benno Schulenberg74541032014-05-13 20:20:51 +00002150 * src/global.c (replace_scs_for): Condense the function a bit.
Benno Schulenberg32187712014-05-13 20:34:15 +00002151 * src/help.c (help_init): No need to keep looping when two are found.
Benno Schulenbergd1238c02014-05-13 20:51:19 +00002152 * src/global.c: Improve compilation with --disable-browser.
Benno Schulenberg044e4d22014-05-13 21:11:59 +00002153 * src/nano.h, src/*.c: A few more comment tweaks.
Benno Schulenberg127ce152014-05-13 08:12:52 +00002154
Benno Schulenberg85c2c2a2014-05-12 11:50:58 +000021552014-05-12 Benno Schulenberg <bensberg@justemail.net>
2156 * src/text.c (do_spell): Provide startup feedback, as for the linter.
Benno Schulenberg1d19e012014-05-12 11:54:27 +00002157 * doc/syntax/nanorc.nanorc: Show bright foreground colours as valid.
Benno Schulenberg07f14de2014-05-12 12:11:24 +00002158 * src/rcfile.c: Improve some comments, and remove some others that
2159 are mispasted or superfluous.
Benno Schulenbergd2892ad2014-05-12 12:16:43 +00002160 * doc/texinfo/nano.texi: Add missing parenthesis, remove blank line.
Benno Schulenberg8e012932014-05-12 12:57:00 +00002161 * src/rcfile.c (parse_magictype, parse_headers): Handle the libmagic
2162 and headerline regexes in the same manner, eliding a static variable
2163 while renaming some others.
Benno Schulenbergcf4f80d2014-05-12 13:52:50 +00002164 * src/*.h, src/rcfile.c (parse_magictype, parse_headers): Rename them
2165 to parse_magic_exp() and parse_header_exp() to be more fitting, further
2166 symmetrify them, and improve some comments.
Benno Schulenberg1d5134d2014-05-12 14:31:54 +00002167 * src/nano.h, src/color.c, src/global.c, src/rcfile.c: Rename struct
2168 type 'exttype' to 'regexlisttype', to better match its functions, and
2169 upon exit also free the regexes for libmagic results and headerlines.
Benno Schulenbergd17b4802014-05-12 16:01:57 +00002170 * doc/syntax/python.nanorc: Improve the multiline regexes, make the
2171 one with single quotes work again, and add some comments.
Benno Schulenberg4e628422014-05-12 18:10:08 +00002172 * doc/syntax/{man,python,fortran}.nanorc: Add regexes for comments,
2173 trailing whitespace and reminders, and trim some trailing spaces.
Benno Schulenbergd2f3f212014-05-12 19:57:12 +00002174 * src/rcfile.c: Move parse_magic_exp() next to its sister.
Benno Schulenberg6a007a92014-05-12 20:22:57 +00002175 * src/color.c (color_update): Rename a variable, and elide another.
Benno Schulenberg85c2c2a2014-05-12 11:50:58 +00002176
Benno Schulenberg6fef9202016-02-23 12:49:08 +000021772014-05-10 Chris Allegretta <chrisa@asty.org>
Chris Allegretta61523be2014-05-11 03:09:00 +00002178 * src/rcfile.c (parse_color_names): Redefine false and true to
2179 their appropriate macro names so --with-slang works (slangv2 anyway).
2180 * src/text.c (do_linter): Care about whether user cancelled the file
Benno Schulenberg4e5af832014-05-14 12:13:51 +00002181 save (cancel the operation) versus just said no (continue but don't
Chris Allegretta61523be2014-05-11 03:09:00 +00002182 save the file). Also doupdate() after statusbar message that
2183 linter is being invoked and blank the shortcuts to draw the eye.
2184 Also allow user to cancel at the "open in a new buffer" prompt.
Benno Schulenberg4e5af832014-05-14 12:13:51 +00002185 New function lint_cleanup(). Fixes Savannah bug #42203.
Chris Allegretta61523be2014-05-11 03:09:00 +00002186
Benno Schulenberga2258412014-05-10 20:28:48 +000021872014-05-10 Benno Schulenberg <bensberg@justemail.net>
2188 * doc/texinfo/nano.texi: Make syntax highlighting into a separate
2189 section, and add the still missing section on rebinding keys.
2190
Benno Schulenberge7d6e552014-05-10 19:15:04 +000021912014-05-10 Mark Majeres <mark@engine12.com>
2192 * src/*.h, src/*.c: Make it possible for the foreground colour of
2193 interface elements to be bright.
2194
Benno Schulenberg59cd3e62014-05-09 11:44:17 +000021952014-05-09 Benno Schulenberg <bensberg@justemail.net>
2196 * src/winio.c (get_mouseinput): Count only shortcuts that are actually
2197 shown, so that clicking on the ones after ^T (Speller/Linter) will work
2198 again correctly. This fixes the second part of Savannah bug #42093.
Benno Schulenbergd16f9af2014-05-09 12:20:20 +00002199 * src/global.c (shortcut_init, strtosc): Do not define nor accept
2200 shortcuts for functions that are disabled.
Benno Schulenberg387b2092014-05-09 15:14:29 +00002201 * src/global.c (shortcut_init, strtosc): Define shortcut for the linter
2202 when speller is disabled, and fix compilation with --disable-speller.
Benno Schulenberga6804b52014-05-09 20:33:49 +00002203 * src/global.c (shortcut_init, strtosc), doc/man/nanorc.5: Put softwrap
2204 back among the "Appearance" toggles.
Benno Schulenberg77afd322014-05-09 21:02:14 +00002205 * doc/man/nanorc.5: Describe bindable functions in the third person.
Benno Schulenberg59cd3e62014-05-09 11:44:17 +00002206
Benno Schulenberg763f3142014-05-06 09:58:23 +000022072014-05-06 Benno Schulenberg <bensberg@justemail.net>
2208 * doc/texinfo/nano.texi: Let makeinfo figure out the node pointers.
Benno Schulenberg22a04422014-05-06 10:03:02 +00002209 * doc/syntax/texinfo.nanorc: New file, colouring for Texinfo files.
Benno Schulenbergaa9b1ee2014-05-06 13:27:41 +00002210 * doc/texinfo/nano.texi: Add sections on the Cutbuffer and the Mark,
2211 remove option '-?', and make some other tweaks.
Benno Schulenbergc1c67d82014-05-06 20:43:00 +00002212 * doc/man/{nano.1,nanorc.5}, doc/texinfo/nano.texi: Synchronize the
2213 documentation, and tweak some wording here and there.
Benno Schulenberga1523112014-05-06 20:45:56 +00002214 * doc/syntax/texinfo.nanorc: Stop the brace content from spilling.
Benno Schulenberg763f3142014-05-06 09:58:23 +00002215
Benno Schulenbergdcb05572014-05-05 19:32:42 +000022162014-05-05 Benno Schulenberg <bensberg@justemail.net>
2217 * doc/man/nanorc.5: Give syntax highlighting its own section,
2218 add the "header" command, tweak some wording and formatting,
2219 and trim some duplicate introductory information.
Benno Schulenbergf8507bb2014-05-05 19:54:34 +00002220 * src/global.c (strtosc), doc/man/nanorc.5: Allow the function
2221 do_cut_till_end (naming it "cutrestoffile") to be rebound.
Benno Schulenbergc1005fa2014-05-05 20:18:35 +00002222 * doc/syntax/nanorc.nanorc: Add the four new *color options.
Benno Schulenberg38cb8ac2014-05-05 20:48:31 +00002223 * doc/syntax/nanorc.nanorc: Differentiate between options that
2224 take an argument and those that don't.
Benno Schulenbergdcb05572014-05-05 19:32:42 +00002225
Benno Schulenberg0c3ced02014-05-04 08:25:09 +000022262014-05-04 Benno Schulenberg <bensberg@justemail.net>
2227 * src/winio.c (statusbar): Elide a variable.
Benno Schulenbergc9700352014-05-04 08:53:06 +00002228 * src/*: Rename the variable 'reverse_attr' to 'hilite_attribute',
2229 and remove an unneeded call of wattroff().
Benno Schulenberg693e2aa2014-05-04 10:24:34 +00002230 * doc/man/nanorc.5, doc/texinfo/nano.tex: Document the settings
2231 of titlecolor, statuscolor, keycolor and functioncolor.
Benno Schulenberg80563902014-05-04 11:51:10 +00002232 * doc/man/nanorc.5, doc/texinfo/nano.tex: Show quotes where quotes
2233 are needed, remove some unneeded spaces, and do other tweaks.
Benno Schulenberg08465832014-05-04 12:20:51 +00002234 * src/global.c (strtosc), doc/man/nanorc.5: Allow the Backwards
2235 toggle to be rebound, document it, and document Backspace too.
Benno Schulenberg0c3ced02014-05-04 08:25:09 +00002236
Benno Schulenberg16639942014-05-03 18:24:45 +000022372014-05-03 Benno Schulenberg <bensberg@justemail.net>
2238 * src/*.h, src/*.c: Add the ability to colour four elements of
2239 nano's interface differently: title bar, status bar, key combo,
Benno Schulenberg794956f2014-05-03 20:38:09 +00002240 and function tag. Idea and original patch #8421 by Mark Majeres.
Benno Schulenberg436cd342014-05-03 18:44:18 +00002241 * src/global.c (shortcut_init): Unfold long lines consistently.
Benno Schulenberg523598a2014-05-03 19:19:31 +00002242 * src/global.c (shortcut_init): Order the shortcuts in roughly
2243 the same manner as in the help lines, and group them per menu.
Benno Schulenberg672821c2014-05-03 20:09:47 +00002244 * src/global.c (shortcut_init): Remove the search-mode toggles
2245 from the inappropriate WHEREISFILE and REPLACEWITH menus.
Benno Schulenbergbe3e3022014-05-03 20:27:25 +00002246 * src/global.c (shortcut_init): Paragraph jumping only makes
2247 sense in the main editing menu; remove it from all others.
Benno Schulenberg16639942014-05-03 18:24:45 +00002248
Benno Schulenberg7a9f4a42014-04-30 20:18:26 +000022492014-04-30 Benno Schulenberg <bensberg@justemail.net>
2250 * src/*, doc/*: Update the years in the copyright notices -- there
2251 were releases in 2010, 2011, and 2013, and there will be in 2014.
2252
Benno Schulenberg43019182014-04-27 12:13:26 +000022532014-04-27 Benno Schulenberg <bensberg@justemail.net>
2254 * src/nano.c (usage, main): Don't blurt out the full help text
2255 but just a hint when the command line contains some mistake, to
2256 avoid drowning out the error message.
Benno Schulenbergc269d312014-04-27 12:19:59 +00002257 * src/nano.c (usage): Mention only those options that actually do
2258 something. For the no-op compat flags the man page is the place.
Benno Schulenberg61758e92014-04-27 14:21:57 +00002259 * src/global.c (shortcut_init): In the help lines of Search/Replace
2260 show the important toggles early on, and group them better.
Benno Schulenberg4da24342014-04-27 15:20:57 +00002261 * src/global.c (shortcut_init): Improve order and grouping in the
2262 main help text and help lines.
Benno Schulenberg5f655da2014-04-27 15:26:25 +00002263 * src/global.c (strtosc): Fix compilation with --enable-tiny.
Benno Schulenberg63716122014-04-27 19:51:03 +00002264 * src/global.c (shortcut_init): Improve the order of the help items
2265 still further, and make them also group nicely in the tiny version.
Benno Schulenberg43019182014-04-27 12:13:26 +00002266
Benno Schulenberg20011f42014-04-27 11:29:50 +000022672014-04-27 Mark Majeres <mark@engine12.com>
2268 * src/rcfile.c (parse_include): Plug two tiny memory leaks.
2269
Benno Schulenberg20b1e922014-04-26 18:41:43 +000022702014-04-26 Benno Schulenberg <bensberg@justemail.net>
2271 * src/global.c (add_to_funcs): Add a pointer to the tail of the
2272 functions list, to simplify and speed up adding new items. And
2273 make use of it to remember the location of the Uncut item.
Benno Schulenberg11d76442014-04-26 19:01:18 +00002274 * src/global.c, src/files.c (make_new_buffer, close_buffer): Make
2275 help lines show "Close" again when more than one buffer is open.
Benno Schulenberg301c4ef2014-04-26 19:33:11 +00002276 * src/global.c (strtosc), doc/man/nanorc.5: Allow the do_spell
2277 (and thus do_lint) function to be bound to other key combos.
Benno Schulenberg618051c2014-04-26 20:16:17 +00002278 * src/global.c (strtosc), doc/man/nanorc.5: Group related functions
2279 together, remove duplicate up/down, add missing prevpage/nextpage.
Benno Schulenberg20b1e922014-04-26 18:41:43 +00002280
Benno Schulenberg67e13872014-04-24 20:22:32 +000022812014-04-24 Benno Schulenberg <bensberg@justemail.net>
2282 * doc/faq.html: Update a few URLs, delete some obsolete ones, update
Benno Schulenberg4e5af832014-05-14 12:13:51 +00002283 the section on configuration flags and on translating nano, plus a
2284 whole series of other small fixes and adjustments.
Benno Schulenberg67e13872014-04-24 20:22:32 +00002285
Benno Schulenberg25e58962014-04-23 19:33:03 +000022862014-04-23 Benno Schulenberg <bensberg@justemail.net>
2287 * src/winio.c, src/help.c, src/text.c, src/browser.c: Remove
Benno Schulenberg00db9942014-04-23 20:42:55 +00002288 several unneeded double semicolons, and two relic comments.
Benno Schulenbergb9914032014-04-23 19:44:21 +00002289 * src/help.c (parse_help_input), src/browser.c (parse_browser_input):
2290 Make the Minus and Space keys work in the help viewer and file browser
2291 also when the PrevPage and NextPage functions are bound to meta-key
2292 sequences -- searching for these will not find them. So, instead put
2293 in the standard key code. This fixes Savannah bug #42140.
Benno Schulenberg86b86862014-04-23 20:03:24 +00002294 * src/global.c (first_sc_for): Stop the whole charade of preferring
2295 control keys over meta keys over function keys, but return the first
2296 one in the list -- just like the function name implies. This will
2297 make a user-defined shortcut appear in the two bottomlines without
2298 having to unbind the existing one first -- better feedback.
Benno Schulenberg794956f2014-05-03 20:38:09 +00002299 * src/global.c (shortcut_init, flagtostr, strtosc): Put the two
Benno Schulenberg00db9942014-04-23 20:42:55 +00002300 wrapping toggles together and increase their contrast a bit.
2301 * src/nano.c (usage), doc/man/nano{.1,rc.5}, doc/texinfo/nano.texi:
2302 Increase the contrast between hard-wrapping and soft-wrapping.
Benno Schulenberg25e58962014-04-23 19:33:03 +00002303
Benno Schulenberg12da94c2014-04-22 10:02:55 +000023042014-04-22 Benno Schulenberg <bensberg@justemail.net>
2305 * src/global.c (shortcut_init): Put the movement keys in the
2306 help viewer in the order of increasing stride.
Benno Schulenberg9fc713b2014-04-22 10:18:48 +00002307 * src/global.c (shortcut_init): Rename many constants from
2308 '*_msg' to '*_tag' to reduce confusion with 'nano_*_msg'.
Benno Schulenberg9aebd272014-04-22 10:44:24 +00002309 * src/global.c (shortcut_init): Elide several pointless constants.
Benno Schulenbergc8b60ce2014-04-22 11:57:11 +00002310 * src/global.c (shortcut_init): Elide more unneeded constants, and
2311 update some translator comments and shorten a few tags.
Benno Schulenbergc40cf0a2014-04-22 12:10:30 +00002312 * src/global.c (shortcut_init): Delete unneeded empty funcs; being
2313 in the list of shortcuts is enough.
Benno Schulenberg47be8c22014-04-22 19:07:32 +00002314 * src/global.c (shortcut_init): Put left/right in normal order.
Benno Schulenberg9c0f9de2014-04-22 19:10:26 +00002315 * src/global.c (shortcut_init): List function key after meta key.
Benno Schulenbergcb7d11b2014-04-22 20:10:43 +00002316 * src/help.c (help_init): Show just two shortcuts per function --
2317 only three functions showed three, but who has an F13, F14, F15?
Benno Schulenberg25e58962014-04-23 19:33:03 +00002318 This also fixes Savannah bug #41889: misalignment of help text.
Benno Schulenberg051c9ba2014-04-22 20:26:58 +00002319 * src/help.c (help_init): Split the toggles into three groups,
2320 and do not show toggle keys that have been rebound.
Benno Schulenberg12da94c2014-04-22 10:02:55 +00002321
Benno Schulenberg374f4e22014-04-21 10:30:35 +000023222014-04-21 Benno Schulenberg <bensberg@justemail.net>
2323 * doc/syntax/nanorc.nanorc: There is no F0 key.
Benno Schulenberge0149c12014-04-21 11:09:30 +00002324 * src/global.c (first_sc_for): Adjust two comments -- the help
2325 viewer no longer sorts keys to be control first, meta second.
Benno Schulenbergbb8c9032014-04-21 11:15:48 +00002326 * src/global.c (first_sc_for): Put meta first, for clarity.
Benno Schulenberg57d773f2014-04-21 11:22:54 +00002327 * src/global.c (strtokeytype): No need to check for lowercase
2328 'm' or 'f', the source doesn't use them and rc-file processing
2329 uppercases them. Also put control first, for clarity.
Benno Schulenberg3064db22014-04-21 12:06:20 +00002330 * src/global.c (strtosc, strtomenu): Sort functions slightly
2331 better, and allow things to be rebound in the linter menu.
Benno Schulenberg8c5b9e72014-04-21 12:31:52 +00002332 * src/nano.h: Delete a large bunch of unused defines.
Benno Schulenberg24d9f312014-04-21 13:00:49 +00002333 * src/nano.h, src/proto.h: Delete some more unused stuff.
Benno Schulenberg27a52a82014-04-21 13:07:18 +00002334 * src/rcfile.c (parse_binding), src/winio.c (get_mouseinput):
2335 Avoid three compiler warnings with --enable-debug.
Benno Schulenberg75ff3a92014-04-21 15:22:14 +00002336 * src/global.c (assign_keyinfo): Decombine repetitive condition.
Benno Schulenbergd6308802014-04-21 15:45:23 +00002337 * src/global.c (assign_keyinfo, shortcut_init): Give nicer names
2338 to the dedicated keys, for when they show up in the help lines.
Benno Schulenbergac997362014-04-21 17:47:16 +00002339 * src/rcfile.c (parse_binding): K-keys no longer exist.
Benno Schulenberg94b1d012014-04-21 18:05:11 +00002340 * src/global.c, src/rcfile.c, doc/nanorc.sample.in: Allow the
2341 codes from the Ins and Del keys to be rebound.
Benno Schulenberge15abc92014-04-21 18:12:29 +00002342 * src/rcfile.c (parse_binding): Improve two error messages, and
2343 complain about wrong menu names after wrong function names.
Benno Schulenberg374f4e22014-04-21 10:30:35 +00002344
Benno Schulenberg0d843012014-04-16 08:24:32 +000023452014-04-16 Benno Schulenberg <bensberg@justemail.net>
2346 * src/winio.c (get_mouseinput): Properly find also the zeroeth
2347 item from a certain menu in the list of functions. Until now
2348 this accidentally worked, because "Get Help" was the very first
2349 item in almost all menus. Partly fixes Savannah bug #42093.
Benno Schulenbergbf6a9002014-04-16 08:58:40 +00002350 * src/nano.h: MHELP should not be part of MALL, as ^B and ^F and
2351 Enter and Backspace and so on don't make any sense there.
Benno Schulenberg4c9573d2014-04-16 09:12:13 +00002352 * src/nano.h, src/global.c (shortcut_init): Rename MALL to MMOST,
2353 to be more accurate.
Benno Schulenberge167afe2014-04-16 09:26:15 +00002354 * src/nano.h, src/global.c, src/help.c, src/search.c: Rename
2355 MREPLACE2 to MREPLACEWITH, for clarity.
Benno Schulenberg5df7c0d2014-04-16 09:32:53 +00002356 * src/nano.h: Adjust some tabbing and spacing.
Benno Schulenbergf6a3ab02014-04-16 09:55:16 +00002357 * src/global.c (shortcut_init): Make better use of MMOST.
Benno Schulenberg0d843012014-04-16 08:24:32 +00002358
Benno Schulenberg4b5fa612014-04-15 10:51:43 +000023592014-04-15 Benno Schulenberg <bensberg@justemail.net>
2360 * src/nano.c (precalc_multicolorinfo): Actually set the intended
2361 non-blocking mode for keyboard input.
Benno Schulenbergf876ee12014-04-15 11:25:29 +00002362 * src/winio.c: Relocate and correct a few comments.
Benno Schulenbergd0691d92014-04-15 12:13:04 +00002363 * README.SVN: To build nano from svn, ssh is not required.
Benno Schulenberg5bd359d2014-04-15 15:02:43 +00002364 * src/*.c: Normalize whitespace around '==' comparison.
Benno Schulenbergd6ecb962014-04-15 15:17:40 +00002365 * configure.ac: Check for the availability of snprintf(),
2366 fixes Savannah bug #42070 reported by David Lawrence Ramsey.
Benno Schulenbergfdec2a12014-04-15 19:28:11 +00002367 * src/global.c (shortcut_init), src/help.c (do_help): Add the
2368 shortcuts M-\ and M-/ for First Line and Last Line to the help
2369 viewer, instead of ^Y and ^V, which are already taken for Page
2370 Up and Page Down. Also, stop them from aborting the viewer.
Benno Schulenberg623b1b62014-04-15 19:32:45 +00002371 * src/help.c (do_help): Remove superfluous abortion variable.
Benno Schulenberg5c2b44a2014-04-15 20:01:19 +00002372 * src/global.c (shortcut_init), src/help.c (do_help): Add the
2373 shortcut ^L for Refresh to the help viewer and stop it aborting;
2374 a changed version of patch #7013 from David Lawrence Ramsey.
Benno Schulenberg4b5fa612014-04-15 10:51:43 +00002375
Benno Schulenbergc8fbc7d2014-04-14 09:14:39 +000023762014-04-14 Benno Schulenberg <bensberg@justemail.net>
2377 * src/{proto.h,cut.c,nano.c,text.c}: Remove the unused parameter
2378 'file_bot' from copy_from_filestruct(), and rename the other.
Benno Schulenberg7828a802014-04-14 09:22:29 +00002379 * src/*: Remove the unused parameter 'func_key' from get_shortcut(),
2380 and subsequently from parse_browser_input() and parse_help_input().
Benno Schulenberg5bd359d2014-04-15 15:02:43 +00002381 * src/*: Adjust some whitespace and tweak a few comments.
Benno Schulenberg1e3f6bc2014-04-14 10:03:32 +00002382 * src/winio.c (getfuncfromkey): Elide variable and condense comment.
Benno Schulenbergcd634e02014-04-14 13:02:43 +00002383 * src/text.c (break_line): Initialize a variable to avoid a compiler
2384 warning, rename it to be more apt, add a comment, tweak some others,
2385 and remove an unneeded 'if'.
Benno Schulenbergff8454a2014-04-14 20:42:10 +00002386 * src/char.c (move_mbleft): Avoid a compiler warning (int → size_t),
2387 rename the variable, and another, and straighten out the logic.
Benno Schulenbergc8fbc7d2014-04-14 09:14:39 +00002388
Benno Schulenberg1f934e32014-04-13 11:56:08 +000023892014-04-13 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg7b4faba2014-04-13 12:09:32 +00002390 * proto.h, global.c, rcfile.c: Remove the unused parameter 'menu'
Benno Schulenberg1f934e32014-04-13 11:56:08 +00002391 from strtosc().
Benno Schulenberg7b4faba2014-04-13 12:09:32 +00002392 * global.c (shortcut_init): Remove mistaken browser item from the
Benno Schulenbergade84e62014-04-13 12:01:36 +00002393 Go-To-Line menu.
Benno Schulenberg7b4faba2014-04-13 12:09:32 +00002394 * global.c (shortcut_init): Delete a misplaced setting of 'currmenu'.
Benno Schulenbergf803ef52014-04-13 12:16:37 +00002395 * global.c (shortcut_init, strtomenu): Cosmetic tweaks.
Benno Schulenberg8347d022014-04-13 15:57:05 +00002396 * doc/syntax/{changelog,c,po}.nanorc: Some small extra colourings.
Benno Schulenberg5c7a6d72014-04-13 19:44:30 +00002397 * configure.ac, doc/texinfo/nano.texi: Make --enable-tiny disable
2398 the use of libmagic, and document the --disable-libmagic flag.
Benno Schulenbergb9881322014-04-13 19:54:47 +00002399 * src/nano.c (version): Print the correct --enable/--disable option.
Benno Schulenbergeea09082014-04-13 20:50:20 +00002400 * configure.ac, src/*, doc/texinfo/nano.texi: Convert all occurrences
2401 of #ifdef ENABLE_NANORC to #ifndef DISABLE_NANORC, and adapt for it.
Benno Schulenberg9cc64382014-04-13 21:05:57 +00002402 * configure.ac: Complain about --enable-color without --enable-nanorc.
Benno Schulenberg1f934e32014-04-13 11:56:08 +00002403
Benno Schulenbergcc054ec2014-04-10 20:56:25 +000024042014-04-10 Benno Schulenberg <bensberg@justemail.net>
2405 * doc/syntax/Makefile.am: Add four recent syntaxes to the packlist.
2406
Benno Schulenberge1f46a92014-04-08 19:40:37 +000024072014-04-08 Benno Schulenberg <bensberg@justemail.net>
2408 * doc: Add the documentation for the new --noread option.
Benno Schulenberg753d93d2014-04-08 20:01:17 +00002409 * doc: Add missing --poslog option to the texinfo file, plus tweaks.
Benno Schulenberge1f46a92014-04-08 19:40:37 +00002410
Benno Schulenbergdb7064b2014-04-08 18:59:30 +000024112014-04-08 Hans Alves <fonsvandeachterburen@gmail.com>
2412 * nano.h, files.c, nano.c: Adding the command-line option --noread
2413 to treat any name on the command line as a new file. This allows
2414 nano to write to named pipes -- it will start with a blank buffer,
2415 and will write to the pipe when the user saves the file. This way
2416 nano can be used as an editor in combination with for instance gpg
2417 without having to write sensitive data to disk first.
2418
Benno Schulenbergd19be5a2014-04-08 18:38:45 +000024192014-04-08 David Lawrence Ramsey <pooka109@gmail.com>
2420 * src/*.c: More editing of comment blocks and trimming of blank lines.
2421
Benno Schulenbergde597bc2014-04-08 13:27:32 +000024222014-04-08 Benno Schulenberg <bensberg@justemail.net>
2423 * src/rcfile.c: Correct two comments, and tweak two others.
Benno Schulenberg598c6542014-04-08 13:58:04 +00002424 * src/color.c (color_update): Correct one comment, tweak some others,
2425 remove two superfluous ones, and remove an unneeded 'if'.
Benno Schulenbergde597bc2014-04-08 13:27:32 +00002426
Benno Schulenberg91c740e2014-04-08 12:24:52 +000024272014-04-08 David Lawrence Ramsey <pooka109@gmail.com>
2428 * src/nano.c (main): Convert the literal UTF-8 whitespace string into
2429 its corresponding byte sequence, and add a comment for it.
Benno Schulenbergd0dec312014-04-08 12:35:18 +00002430 * src/{files.c,global.c,help.c,winio.c}: Reformat some comment blocks,
2431 fix a few typos, and remove a few unneeded blank lines.
Benno Schulenberg91c740e2014-04-08 12:24:52 +00002432
Benno Schulenberg2cdaaac2014-04-08 11:22:41 +000024332014-04-08 Benno Schulenberg <bensberg@justemail.net>
2434 * src/rcfile.c (parse_binding): Melt the binding and unbinding code,
2435 which are very similar, into a single function.
Benno Schulenbergf7c5eee2014-04-08 11:43:50 +00002436 * src/rcfile.c (parse_binding): Uppercase only the first two or three
2437 characters of the key name, in order to preserve ^Space and M-Space,
2438 so they can be unbound. Fixes Savannah bug #41940.
Benno Schulenberg5e901c42014-04-08 12:09:29 +00002439 * doc/syntax/go.nanorc: Extend the syntax highlighting for Go lang,
2440 from the submission by Robert Clausecker <fuzxxl@Savannah>.
Benno Schulenberg2cdaaac2014-04-08 11:22:41 +00002441
Benno Schulenbergbc6e9aa2014-04-07 09:02:22 +000024422014-04-07 Benno Schulenberg <bensberg@justemail.net>
2443 * src/{proto.h,global.c,text.c}: Keep a pointer to the Uncut item in
2444 the functions list, to be able to change its description to Unjustify
2445 at the appropriate moment. This avoids having to fully repopulate
2446 the functions and shortcuts lists before and after every Justify.
2447 Also, look for ^U only in the main menu, to which ^W M-J factually
2448 returns and which shortcut_init() "sneakily" sets.
Benno Schulenberga2dcd6e2014-04-07 09:24:10 +00002449 * src/{proto.h,files.c,global.c,nano.c,rcfile.c}: Drop the obsolete
2450 argument of shortcut_init(), and remove two unneeded calls of it.
Benno Schulenbergd58fb902014-04-07 09:44:52 +00002451 * src/global.c (shortcut_init): Allow M-J after an --enable-justify.
Benno Schulenberg2f00c9d2014-04-07 20:38:29 +00002452 * src/rcfile.c (parse_rcfile): The user documentation only speaks
2453 of options, not of flags. Make the error messages conform.
Benno Schulenberg7f40bdf2014-04-07 20:47:26 +00002454 * src/rcfile.c (check_vitals_mapped): Improve layout of message.
Benno Schulenbergbc6e9aa2014-04-07 09:02:22 +00002455
Benno Schulenbergef976552014-04-06 08:57:36 +000024562014-04-06 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg2ff9dc72014-04-06 20:55:21 +00002457 * src/global.c (shortcut_init): Limit M-T (cut-till-end-of-file) to
2458 the main menu, and M-J (full-justify) to the main and search menus.
Benno Schulenberge6821732014-04-06 20:47:57 +00002459 * src/proto.h: There is no need for the helpline tags to be external,
2460 they are only ever used in src/global.c.
Benno Schulenberg2ff9dc72014-04-06 20:55:21 +00002461 * src/global.c: Do not set any helpline tags to empty strings;
2462 compilation should fail if they are needed and not defined.
Benno Schulenbergef976552014-04-06 08:57:36 +00002463
Benno Schulenberg2d83e8d2014-04-05 19:57:17 +000024642014-04-05 Benno Schulenberg <bensberg@justemail.net>
2465 * src/nano.c (version): Print the correct configuration options.
Benno Schulenberg70b2d082014-04-05 20:28:29 +00002466 * src/{chars.c,nano.c,text.c}: Cosmetic tweaks.
Benno Schulenberg24ed1bb2014-04-05 20:56:10 +00002467 * doc/texinfo/nano.texi: Adjust for new disabling config options.
Benno Schulenberg2d83e8d2014-04-05 19:57:17 +00002468
Benno Schulenbergfc557562014-04-05 18:59:46 +000024692014-04-05 Mike Frysinger <vapier@gentoo.org>
2470 * src/nano.c (do_input): Reload possibly freed function pointer.
2471
Benno Schulenbergf14096e2014-04-04 07:50:41 +000024722014-04-04 Benno Schulenberg <bensberg@justemail.net>
2473 * src/{files.c,nano.c}: Avoid two more compilation warnings.
Benno Schulenbergd8bf8872014-04-04 07:54:08 +00002474 * configure.ac: Allow --enable-extra and --enable-multibuffer
2475 to override --enable-tiny.
Benno Schulenberg7a254dd2014-04-04 08:38:20 +00002476 * src/rcfile.c (check_vitals_mapped): Do not allow 'set quiet'
2477 to suppress a fatal-error message, make sure the user sees it.
Benno Schulenberg61bba1d2014-04-04 09:01:21 +00002478 * src/color.c: Comment tweaks.
Benno Schulenberg5bd359d2014-04-15 15:02:43 +00002479 * src/{*.h,*.c}, configure.ac: Convert all occurrences of
Benno Schulenberg26fd9b22014-04-04 15:31:40 +00002480 #ifdef ENABLE_COLOR to #ifndef DISABLE_COLOR.
Benno Schulenberg817707e2014-04-04 12:29:28 +00002481 * src/nano.h: Comment tweaks.
Benno Schulenberg99011702014-04-04 13:12:07 +00002482 * configure.ac: Move the enabling stuff to after the disablers.
Benno Schulenberg46b07fa2014-04-04 13:42:13 +00002483 * configure.ac: Add submissive colour disabling to --enable-tiny.
Benno Schulenberg1db6de42014-04-04 13:54:05 +00002484 * configure.ac: Allow other enablers to override --enable-tiny too.
Benno Schulenberg26fd9b22014-04-04 15:31:40 +00002485 * src/{proto.h,search.c}: Fix compilation with --enable-browser.
Benno Schulenberg81377d92014-04-04 15:42:39 +00002486 * src/global.c (shortcut_init): Fix warnings with --enable-help.
Benno Schulenberg36c87bc2014-04-04 15:52:52 +00002487 * src/text.c (do_justify): Fix compilation with --enable-justify.
Benno Schulenberg8611e472014-04-04 16:06:27 +00002488 * src/nano.c (do_mouse): Fix warning with --enable-mouse.
Benno Schulenberg062bca72014-04-04 19:21:56 +00002489 * src/prompt.c (get_prompt_string): Fix compilation for the
2490 combination of --enable-tiny with --enable-tabcomp.
Benno Schulenberg96c95cd2014-04-04 19:26:08 +00002491 * src/prompt.c (get_prompt_string): Normalize the indentation.
Benno Schulenberg189fff42014-04-04 20:45:28 +00002492 * src/text.c: Comment tweaks.
Benno Schulenbergf14096e2014-04-04 07:50:41 +00002493
Benno Schulenberga4c0c2f2014-04-03 10:52:27 +000024942014-04-03 Benno Schulenberg <bensberg@justemail.net>
2495 * configure.ac: Remove unused '*_support' variables.
Benno Schulenberg5ead22d2014-04-03 10:54:46 +00002496 * doc/syntax/po.nanorc: New file, syntax colouring for PO files.
Benno Schulenberg4d570e52014-04-03 19:35:42 +00002497 * configure.ac: Stop --with-slang from duplicating --enable-tiny.
Benno Schulenberg9d306cd2014-04-03 19:50:12 +00002498 * configure.ac: Sort all the disabling options alphabetically.
Benno Schulenberg0636d7b2014-04-03 20:23:07 +00002499 * src/{proto.h,files.c,global.c,nano.c,rcfile.c}, configure.ac:
2500 Convert #ifdef ENABLE_MULTIBUFFER to #ifndef DISABLE_MULTIBUFFER.
Benno Schulenbergd17438b2014-04-03 20:57:44 +00002501 * src/{proto.h,files.c,,nano.c,winio.c}, configure.ac:
2502 Convert #ifdef NANO_EXTRA to #ifndef DISABLE_EXTRA.
Benno Schulenbergb8b29ff2014-04-03 21:06:30 +00002503 * src/{global.c,text.c}: Fix two compilation warnings for tiny.
Benno Schulenberga4c0c2f2014-04-03 10:52:27 +00002504
Benno Schulenbergb29ea102014-04-02 20:37:30 +000025052014-04-02 Benno Schulenberg <bensberg@justemail.net>
2506 * configure.ac, doc/Makefile.am: Try to build the info documentation
2507 only when 'makeinfo' is available. Patch partly by Mike Frysinger.
Benno Schulenberg7cf7f422014-04-02 21:06:37 +00002508 * configure.ac: Upping the required version of Autoconf, to ensure the
Benno Schulenberg73ff00e2014-04-02 21:03:32 +00002509 ONCE macros are defined. Suggested by Kamil Dudka and Mike Frysinger.
Benno Schulenbergb29ea102014-04-02 20:37:30 +00002510
Benno Schulenberg055f0fb2014-04-02 19:42:54 +000025112014-04-02 Mike Frysinger <vapier@gentoo.org>
2512 * doc/man/{,fr}/Makefile.am: Simplify the man rules still further.
Benno Schulenberg7a8bd822014-04-02 19:56:09 +00002513 * .gitignore: Add 'config.cache', created by './configure -C'.
Benno Schulenbergd28ed532014-04-02 20:09:16 +00002514 * src/nano.c (die_save_file): Newer gcc warns about set-but-unused
2515 variables, so add a dummy if() check to kill that off.
Benno Schulenberg41714772014-04-02 20:17:05 +00002516 * src/search.c (search_init): Silence a compiler warning about a
2517 variable possibly being used uninitialized.
Benno Schulenberg055f0fb2014-04-02 19:42:54 +00002518
Benno Schulenberg6fef9202016-02-23 12:49:08 +000025192014-03-31 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg5bd359d2014-04-15 15:02:43 +00002520 * doc/syntax/go.nanorc: New file, basic go syntax highlighting.
Chris Allegretta211a5e42014-03-31 20:26:03 +00002521
Benno Schulenberg682c1d02014-03-30 21:04:58 +000025222014-03-30 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergd0dec312014-04-08 12:35:18 +00002523 * doc/syntax/changelog.nanorc: New file, first attempt at colouring
Benno Schulenberg682c1d02014-03-30 21:04:58 +00002524 Changelog files.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002525 * ChangeLog: Consistently use a colon after names of changed files.
Benno Schulenberg682c1d02014-03-30 21:04:58 +00002526
Benno Schulenberge9a440f2014-03-30 20:08:45 +000025272014-03-30 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00002528 * doc/Makefile.am, doc/man/Makefile.am, doc/man/fr/Makefile.am:
Benno Schulenberge9a440f2014-03-30 20:08:45 +00002529 The build already provides a standard htmldir for installing html
2530 files. Use that instead of creating our own.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002531 * doc/man/Makefile.am, doc/man/fr/Makefile.am: Use dist_ prefixes
Benno Schulenberg0e39d7f2014-03-30 20:14:36 +00002532 and += appending supported by automake to produce simpler files.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002533 * doc/Makefile.am: Drop redundant localedir, as autoconf/automake
Benno Schulenbergb21daeb2014-03-30 20:19:33 +00002534 already creates this for us.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002535 * src/rcfile.c, doc/nanorc.sample.in: Hard-listing all the wanted
Benno Schulenberg38142832014-03-30 20:37:40 +00002536 syntax files is a PITA. Support globs in include paths, so people
2537 can easily drop in new files and have it "just work".
Benno Schulenberge9a440f2014-03-30 20:08:45 +00002538
Benno Schulenbergcf715782014-03-27 11:06:16 +000025392014-03-27 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002540 * src/nano.c (main): Fix compilation with --disable-utf8.
2541 * src/global.c (shortcut_init): Place a help string among
Benno Schulenberg91ee10a2014-03-27 21:35:18 +00002542 its kin, adjust some indentation, group function pairs more
2543 tightly, bundle restricted stuff, and delete an unused item.
Benno Schulenbergcf715782014-03-27 11:06:16 +00002544
Benno Schulenberge9a440f2014-03-30 20:08:45 +000025452014-03-27 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002546 * configure.ac: Make --disable-nanorc with --enable-color barf.
2547 * configure.ac: Allow --disable-utf8 and --enable-utf8 to work.
Benno Schulenberg463db0d2014-03-27 10:15:43 +00002548
Benno Schulenberg90ea21f2014-03-26 10:45:07 +000025492014-03-26 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002550 * configure.ac: Word, tab, and comment tweaks.
2551 * src/global.c: Some comment tweaks, and whitespace trimmings.
2552 * src/global.c (print_sclist): Also print last shortcut in list.
2553 * doc/texinfo/nano.texi: Explain how to select and paste with
Benno Schulenberg804b94e2014-03-26 13:12:52 +00002554 the mouse when mouse support is enabled: by holding down Shift.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002555 * nano.spec.in, doc/faq.html, doc/texinfo/nano.texi: Remove
Benno Schulenbergf7b5c5a2014-03-26 14:08:10 +00002556 vestiges of the obsolete '--enable-all' configure flag.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002557 * src/rcfile.c: Fix compilation with --disable-color.
2558 * src/rcfile.c: Allow (un)binding keys when colour is disabled.
2559 * src/help.c: Fix compilation with --disable-browser.
2560 * src/{proto.h,browser.c,help.c}: Remove a superfluous function.
Benno Schulenberg90ea21f2014-03-26 10:45:07 +00002561
Benno Schulenberge9a440f2014-03-30 20:08:45 +000025622014-03-26 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002563 * configure.ac: Clean up most of the --with/--enable flags:
Benno Schulenberg673d2102014-03-26 09:35:52 +00002564 - use AS_HELP_STRING instead of writing the text ourselves;
2565 - use the normal enable_xxx var AC_ARG_ENABLE creates for us;
2566 - delete duplicate checks in a few places (due to previous cleanup);
2567 - unwrap some macros/var assignments;
2568 - delete trailing whitespace;
2569 - delete old --enable-all flag;
2570 - fix quoting on a lot of vars that come from the user;
2571 - use AC_MSG_* helpers instead of raw `echo`.
2572
Benno Schulenbergb2a47a12014-03-24 12:31:25 +000025732014-03-24 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002574 * src/{nano,move,winio}.c: Fix a few compiler warnings.
2575 * src/{global,rcfile,winio}.c: Print menu numbers for debugging
Benno Schulenberg18c252d2014-03-24 20:35:17 +00002576 in hex, and tweak a few of those debugging messages.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002577 * src/nano.c: Harmonize comments, and trim some blank lines.
Benno Schulenbergb2a47a12014-03-24 12:31:25 +00002578
Benno Schulenberg18530ec2014-03-26 09:41:52 +000025792014-03-24 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002580 * doc/syntax/gentoo.nanorc: Match more files, add a trailing
Benno Schulenberg18530ec2014-03-26 09:41:52 +00002581 whitespace check, and EAPI=5 updates.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002582 * doc/syntax/javascript.nanorc: New file, based on C syntax.
2583 * doc/syntax/{nanorc,python}.nanorc: Highlight trailing whitespace.
2584 * configure.ac, m4/ax_check_compile_flag.m4: Start building with
Benno Schulenberg18530ec2014-03-26 09:41:52 +00002585 warnings enabled, to help prevent issues from silently creeping in.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002586 * configure.ac: Newer ncurses include pkg-config files which tell
Benno Schulenberg18530ec2014-03-26 09:41:52 +00002587 us the right -I/-L paths we need, so default to that before trying
2588 the legacy ways.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002589 * configure.ac: Add a configure flag to disable the use of the
Benno Schulenberg18530ec2014-03-26 09:41:52 +00002590 fattening libmagic.
2591
Benno Schulenberg52402752014-03-23 20:49:59 +000025922014-03-23 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002593 * src/rcfile.c (parse_keybinding, parse_unbinding): Improve a
Benno Schulenberg52402752014-03-23 20:49:59 +00002594 debugging message, fix a translator comment, and tweak others.
2595
Benno Schulenberg117cf852014-03-22 19:46:09 +000025962014-03-22 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002597 * THANKS: Add some missing translator names, and tweak others.
Benno Schulenberg117cf852014-03-22 19:46:09 +00002598
Benno Schulenberg0b2f8432014-03-21 12:47:34 +000025992014-03-21 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002600 * src/chars.c (is_punct_mbchar, mbstrchr): Elide a variable,
Benno Schulenberg0b2f8432014-03-21 12:47:34 +00002601 thus making two ifs identical to six others.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002602 * doc/syntax/nanorc.nanorc: Add the 'extendsyntax' directive,
Benno Schulenberg42e75822014-03-21 13:59:29 +00002603 and change two colours to be legible on a light background.
Benno Schulenberg0b2f8432014-03-21 12:47:34 +00002604
Benno Schulenbergeec71e32014-03-19 09:34:37 +000026052014-03-19 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002606 * doc/nanorc.sample.in: Document the changed whitespace defaults.
2607 * src/global.c, doc/man/nanorc.5: Allow softwrap to be rebound.
2608 * doc/nanorc.sample.in: Sort the includes alphabetically, and
Benno Schulenberge51cfa32014-03-19 09:46:55 +00002609 add the ones for Lua, Magicpoint, and Spec files.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002610 * doc/nanorc.sample.in: Add "poslog", plus tiny textual tweaks.
2611 * src/global.c, doc/man/nanorc.5: Group softwrap with the toggles
Benno Schulenbergcb80ca52014-03-19 21:09:08 +00002612 that affect how things look -- it does not belong in the group of
2613 general program functions, nor in the group of editing behaviour.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002614 * doc/man/nanorc.5: Add the descriptions of six missing bindable
Benno Schulenbergcc7fef72014-03-19 21:30:08 +00002615 functions, and tweak those of a few others.
Benno Schulenberg90a43c32014-03-19 09:23:55 +00002616
26172014-03-18 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002618 * src/global.c (shortcut_init): In the file browser one cannot
Benno Schulenberg960a1202014-03-18 22:04:41 +00002619 search for a regular expression, so do not mention it.
2620
Benno Schulenbergc3e4a1f2014-03-17 11:47:49 +000026212014-03-17 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002622 * src/global.c (shortcut_init): Show ^F and ^B instead of kright
Benno Schulenbergc3e4a1f2014-03-17 11:47:49 +00002623 and kleft in the help lines of the tiny version.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002624 * src/global.c (shortcut_init): Remove some inconsistent spaces
Benno Schulenberge34ac8e2014-03-17 12:15:23 +00002625 and newlines, condense three statements into one, place an #endif
2626 better, melt two #ifndefs into one, and add a comment.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002627 * src/winio.c (edit_scroll): Remove the old softwrap scrolling code.
Benno Schulenberge4c34c32014-03-17 14:15:57 +00002628 * src/{nano.h,proto.h,color.c,cut.c,files.c,global.c,help.c,nano.c,
Benno Schulenberg619b2162014-03-30 21:23:40 +00002629 search.c,text.c,utils.c}: Add, fix, and remove some #endif comments,
Benno Schulenberge4c34c32014-03-17 14:15:57 +00002630 remove an obsolete comment, and remove some superfluous #ifndefs.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002631 * src/global.c (shortcut_init): Put ^B and ^F in the same order as
Benno Schulenberg88ff6a72014-03-17 21:26:53 +00002632 all other command keys: first the backward then the forward motion.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002633 * src/{nano.h,*.c}: Remove stray spaces before tabs.
Benno Schulenbergc3e4a1f2014-03-17 11:47:49 +00002634
Benno Schulenberg8977c4b2014-03-16 16:58:18 +000026352014-03-16 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002636 * src/nano.h: Display more help items when the terminal is wider.
Benno Schulenberg8977c4b2014-03-16 16:58:18 +00002637
Benno Schulenbergc85dc052014-03-16 13:19:41 +000026382014-03-14 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002639 * src/nano.c (main): When in a UTF-8 locale, use prettier characters
Benno Schulenbergc85dc052014-03-16 13:19:41 +00002640 (»·) for indicating whitespace, and for similarity use ">." instead of
2641 ":." when not in a UTF-8 locale. Changes suggested by Mike Frysinger.
2642
Benno Schulenberg3278f832014-03-05 09:47:35 +000026432014-03-05 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002644 * src/move.c (do_down): Initialize the correct variable to zero.
Benno Schulenberg5ac86512014-03-17 14:29:25 +00002645 Solves jumpy scrolling behaviour reported by Chris Allegretta.
Benno Schulenberg3278f832014-03-05 09:47:35 +00002646
Benno Schulenberg6fef9202016-02-23 12:49:08 +000026472014-03-04 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002648 * global.c (first_sc_for): Return raw keystrokes last, so
Benno Schulenberg5ac86512014-03-17 14:29:25 +00002649 they will not be displayed if there are F-keys or Meta keys
Chris Allegrettaf7c68cd2014-03-05 04:30:07 +00002650 mapped for an item in the shortcut list.
2651
Benno Schulenbergd39de242014-03-04 10:01:27 +000026522014-03-04 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002653 * doc/syntax/nanorc.nanorc: Add keyword 'quiet', sort 'locking',
Benno Schulenbergd39de242014-03-04 10:01:27 +00002654 and concatenate the two separate strings into one.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002655 * src/nano.c (main), doc/nanorc.sample.in: Make the M-P toggle
Benno Schulenberg377a6e32014-03-04 10:18:54 +00002656 actually do something by default, by using visible characters.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002657 * src/global.c (shortcut_init): Normalize the writing of three
Benno Schulenberg6ae77602014-03-04 10:30:15 +00002658 help-line items: "Write Out", "Uncut Text", and "Unjustify", to
2659 better stress the O and U -- the big C and J were distracting.
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00002660 * doc/{syntax/nanorc.nanorc,man/nanorc.5,texinfo/nano.texi}:
Benno Schulenberg1a1b2a02014-03-04 11:07:43 +00002661 Remove erroneous 'suspendenable' -- it is not a settable option
2662 but a bindable function.
Benno Schulenbergd39de242014-03-04 10:01:27 +00002663
Benno Schulenberg6fef9202016-02-23 12:49:08 +000026642014-03-03 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002665 * global.c (shortcut_init): Don't actually free the shortcut
Benno Schulenberg5ac86512014-03-17 14:29:25 +00002666 list, since the next pass via justifying will then remove all
2667 custom shortcuts. Fixes bug discovered by Benno Schulenberg.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002668 * text.c (do_linter): Remove some unused variables to quiet
Benno Schulenberg4e5af832014-05-14 12:13:51 +00002669 -pedantic -Wall.
Chris Allegretta3a5f55e2014-03-04 03:55:43 +00002670
Benno Schulenberg3ae5bab2014-03-03 08:53:38 +000026712014-03-03 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002672 * src/global.c (add_to_funcs): Add a newline, for clarity.
2673 * src/global.c (shortcut_init): Mark, don't translate yet.
2674 * src/move.c (do_down): Correctly compute the minimum amount
Benno Schulenbergb1a7fdd2014-03-03 10:02:13 +00002675 to scroll when softwrap is on and there are overlong lines.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002676 * src/winio.c (edit_scroll): Disable amount computation here.
2677 * src/move.c (do_down): Trim some redundant code, and correct
Benno Schulenberg54a11052014-03-03 13:24:09 +00002678 the scrolling behaviour when softwrap is off -- the construct
2679 (amount ? amount : 1) wasn't doing what I intended.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002680 * doc/man/nano{.1,rc.5}: Slightly improve formatting and wording.
2681 * doc/{texinfo/nano.texi,man/nanorc.5}: Add some missing options
Benno Schulenberg6cd83142014-03-03 18:49:52 +00002682 to the texinfo documentation, and improve alphabetization a bit.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002683 * src/nano.c (usage): Don't mention --softwrap in tiny version.
Benno Schulenberg3ae5bab2014-03-03 08:53:38 +00002684
Benno Schulenberg6fef9202016-02-23 12:49:08 +000026852014-03-01 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002686 * global.c (shortcut_init): Fix an issue with the split
Benno Schulenberg5ac86512014-03-17 14:29:25 +00002687 do_research() setup when using --enable-tiny.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002688 * rcfile.c (parse_linter): Allow linter to be unset using "".
2689 * rcfile.c: Allow syntaxes to be extended via "extendsyntax"
Chris Allegrettae52eac52014-03-02 05:27:56 +00002690 directive. Color, header, magic and linter should all be
2691 able to be extended. Man page updates for nanorc(5).
Benno Schulenberg619b2162014-03-30 21:23:40 +00002692 * doc/nanorc.sample.in: Document 'set quiet'.
Chris Allegrettae52eac52014-03-02 05:27:56 +00002693
Benno Schulenbergbc5c7c32014-03-01 10:20:57 +000026942014-03-01 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002695 * src/color.c (color_update): Do not write to stderr on magic
Benno Schulenbergbc5c7c32014-03-01 10:20:57 +00002696 errors. If the magic db has errors such that magic_load() fails,
2697 the current code dumps to stderr which messes up the terminal.
2698 The error message is also vague to the point where it's confusing
2699 -- I thought nano had problems writing to the file I was editing.
2700 Instead, use statusbar() and clarify the messages.
2701 (Patch tweaked by Benno.)
2702
Benno Schulenberg46fccb22014-02-28 11:49:12 +000027032014-02-28 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002704 * src/text.c (execute_command): Equalize pipe error messages.
2705 * src/global.c (thanks_for_all_the_fish): Remove a redundant
Benno Schulenberg9a217612014-02-28 11:52:52 +00002706 '#ifdef DEBUG', it is contained within a wider one.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002707 * src/global.c (strtosc): Correct a misspelled keyword.
2708 * src/rcfile.c (check_vitals_mapped): Actually translate a
Benno Schulenbergfe267f62014-02-28 19:47:48 +00002709 helpful message, and reword it somewhat for clarity.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002710 * src/global.c: Remove unused function 'free_shortcutage'.
2711 * src/global.c (strtosc): Indent conditions consistently.
Benno Schulenberg46fccb22014-02-28 11:49:12 +00002712
Benno Schulenberg22a14402014-02-28 11:24:12 +000027132014-02-28 Eitan Adler <lists@eitanadler.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002714 * src/nano.c (do_toggle): Constify a char pointer, to fix
Benno Schulenberg22a14402014-02-28 11:24:12 +00002715 a warning when compiling with clang (and -Wall).
2716
Benno Schulenberg86fb8dd2014-02-27 19:57:52 +000027172014-02-27 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002718 * doc/man/nanorc.5: Relocate the misplaced unbind section,
Benno Schulenberg86fb8dd2014-02-27 19:57:52 +00002719 and improve formatting. (Patch tweaked by Benno.)
Benno Schulenberg619b2162014-03-30 21:23:40 +00002720 * doc/syntax/nanorc.nanorc: Add the bind/unbind commands,
Benno Schulenberg9c11ba92014-02-27 20:19:31 +00002721 so they will look supported when using syntax highlighting.
Benno Schulenberg86fb8dd2014-02-27 19:57:52 +00002722
Benno Schulenberg8e82d352014-02-27 08:48:54 +000027232014-02-27 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002724 * src/help.c (parse_help_input): Make 'Space' again an alias
Benno Schulenberg8e82d352014-02-27 08:48:54 +00002725 for PageDown and 'Minus' for PageUp -- they were mistakenly
Benno Schulenberga77efae2015-12-11 16:55:07 +00002726 swapped during code conversion in r4223.
Benno Schulenberg8e82d352014-02-27 08:48:54 +00002727
Benno Schulenberg5d5e9302014-02-26 21:33:47 +000027282014-02-26 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002729 * doc/syntax/sh.nanorc: Highlight more shell builtins and
Benno Schulenberg5d5e9302014-02-26 21:33:47 +00002730 common commands, and rewrite the variable highlighting to be
2731 more exact and handle cases where string operations are used.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002732 * doc/syntax/gentoo.nanorc: Update to newer EAPIs, and fold
Benno Schulenbergb2b7c2f2014-02-26 21:38:44 +00002733 in updated shell changes too. Much of this is based on work
2734 by Davide Pesavento <pesa@gentoo.org>.
Benno Schulenberg8a2c2452014-02-26 21:42:53 +00002735 * doc/syntax/makefile.nanorc: Highlight trailing whitespace.
Benno Schulenberg5d5e9302014-02-26 21:33:47 +00002736
Benno Schulenbergcae7aea2014-02-26 20:37:40 +000027372014-02-26 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00002738 * src/global.c (shortcut_init): Put PageUp and PageDown
Benno Schulenbergcae7aea2014-02-26 20:37:40 +00002739 and also WhereIs and WhereIsNext together in the help lines
2740 of the file browser, and WriteOut and Readfile in the help
2741 lines of the main window -- related stuff in one column.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002742 * doc/syntax/man.nanorc: Better colouring of manpage files.
Benno Schulenbergcae7aea2014-02-26 20:37:40 +00002743
Benno Schulenbergb3306b22014-02-26 12:35:10 +000027442014-02-26 Konstantin Abakumov <abakumov@Savannah> (tiny change)
Benno Schulenberg619b2162014-03-30 21:23:40 +00002745 * doc/syntax/python.nanorc: Slightly improve the regexes for
Benno Schulenbergb3306b22014-02-26 12:35:10 +00002746 multiline strings in Python, reducing spillage.
2747
Benno Schulenbergdf7bba32014-02-26 11:38:30 +000027482014-02-26 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002749 * src/move.c (do_down), src/winio.c (edit_scroll): Scroll an
Benno Schulenbergdf7bba32014-02-26 11:38:30 +00002750 extra amount when softwrap is on and the current line would
2751 otherwise run off the screen, and recalculate maxrows after
2752 each scroll. Solves bug #27550 reported by Hannes Schueller.
2753
Benno Schulenbergccb02f72014-02-25 20:53:50 +000027542014-02-25 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002755 * NEWS: Fix some typos and wordings, and rewrap a few lines.
2756 * src/global.c: Correcting some translator comments, removal
Benno Schulenberg7f873932014-02-25 21:27:22 +00002757 of a few superfluous blank lines, and some pedantic comment
2758 tweaks (mainly adding missing periods and stars).
Benno Schulenberg619b2162014-03-30 21:23:40 +00002759 * src/global.c: Ordering "Prev Word" and "Next Word" better.
2760 * src/global.c: Make ^G not only call help but also exit from
Benno Schulenbergdb906ea2014-02-25 21:45:55 +00002761 it, and make ^C also exit from help and from the file browser.
2762 Also remove two redundant shortcut definitions.
Benno Schulenbergccb02f72014-02-25 20:53:50 +00002763
Benno Schulenbergfde9d4c2014-02-25 19:08:12 +000027642014-02-25 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002765 * src/Makefile.am: Rename 'INCLUDES' to 'AM_CPPFLAGS', since
Benno Schulenbergfde9d4c2014-02-25 19:08:12 +00002766 Automake changed the naming of these a while ago, and at least
2767 version 1.13 now starts warning about it.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002768 * .gitignore: Ignore generated files (and bak files).
Benno Schulenbergfde9d4c2014-02-25 19:08:12 +00002769
Benno Schulenberg4ab142c2014-02-25 11:10:24 +000027702014-02-25 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002771 * src/files.c (write_lockfile, do_lockfile): Fix a typo reported
Benno Schulenbergae092b92014-02-25 17:12:58 +00002772 by Jean-Philippe Guérard and inconsistent spelling of "lock file"
2773 reported by myself on nano-devel in March 2013.
2774
27752014-02-25 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002776 * src/help.c (do_help_void): Call the help browser with the correct
Benno Schulenberg4ab142c2014-02-25 11:10:24 +00002777 refresher for afterwards. This solves a bug reported by myself on
2778 nano-devel in August 2010: after typing ^R ^T ^W ^G ^X, the file
2779 being edited would get displayed instead of the list of files.
2780
Benno Schulenberg6fef9202016-02-23 12:49:08 +000027812014-02-24 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg5ac86512014-03-17 14:29:25 +00002782 * New linter functionality, rcfile option "linter".
Benno Schulenberg619b2162014-03-30 21:23:40 +00002783 * src/global.c (shortcut_init): Actually free the sclist
Chris Allegretta5575bfa2014-02-24 10:18:15 +00002784 if it was allocated before.
Benno Schulenberg619b2162014-03-30 21:23:40 +00002785 * src/winio.c (do_credits): Add Benno, my children,
Benno Schulenberg5ac86512014-03-17 14:29:25 +00002786 update copyright info.
Chris Allegretta5575bfa2014-02-24 10:18:15 +00002787
Benno Schulenberge9ee0782014-02-23 10:12:50 +000027882014-02-23 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002789 * doc/syntax/*.nanorc: Comment and punctuation tweaks.
2790 * doc/syntax/sh.nanorc: Colour $VAR within a "" string
Benno Schulenberg1dd389e2014-02-23 16:15:38 +00002791 but not within a '' string, and do not colour strings
2792 within comments. Fixes bug #29943.
Benno Schulenbergc4b344f2014-02-23 16:07:44 +00002793
27942014-02-23 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002795 * src/text.c (do_undo, do_redo, add_undo): Make warning
Benno Schulenberge9ee0782014-02-23 10:12:50 +00002796 sentences in the status bar consistently end in a period.
2797
Benno Schulenbergc4520d52014-02-22 19:36:35 +000027982014-02-22 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002799 * src/files.c (write_file): Add a missing malloc.
Benno Schulenberg4abf9442014-02-22 20:44:43 +00002800 Reported by an anonymous cross compiler, bug #30671.
2801
28022014-02-22 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002803 * src/winio.c (get_mouseinput): Correct an oversight,
Benno Schulenbergc4520d52014-02-22 19:36:35 +00002804 use the proper 'do_up_void' and 'do_down_void' names.
2805 Reported by Zhou Z.J. <zzj666@Savannah>, bug #38268.
2806
Benno Schulenberg10a18c12014-02-22 18:57:24 +000028072014-02-22 Lauri Kasanen <laxy@Savannah> (tiny change)
Benno Schulenberg619b2162014-03-30 21:23:40 +00002808 * doc/syntax/html.nanorc: Also recognize htm as extension,
Benno Schulenberg10a18c12014-02-22 18:57:24 +00002809 use cyan for tags (more visible on dark background), correct
2810 the expression for ampersand codes, and colour strings too.
2811
Benno Schulenbergcf79e522014-02-22 16:57:23 +000028122014-02-22 Dennis Jenkins <dennisjenkins@Savannah> (tiny change)
Benno Schulenberg619b2162014-03-30 21:23:40 +00002813 * doc/syntax/c.nanorc: Also recognize c++ as extension.
Benno Schulenbergcf79e522014-02-22 16:57:23 +00002814
Benno Schulenbergd6e39722014-02-22 16:26:30 +000028152014-02-22 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002816 * src/nano.c (move_to_filestruct): Update the data in 'mark_begin'
Benno Schulenberg72495072014-02-22 16:46:27 +00002817 when mark and cursor are on the same line. This avoids a segfault
2818 after M-A, right, M-T, left, ^K, or a hang when the left is left out.
2819
28202014-02-22 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002821 * src/nano.c (main): Add two conditions on ENABLE_NANORC.
2822 * src/files.c (close_buffer, do_insertfile): Likewise.
Benno Schulenbergd6e39722014-02-22 16:26:30 +00002823 This avoids compilation failure when nano is configured
2824 with both --disable-color and --disable-nanorc.
2825
Benno Schulenberg44e85832014-02-22 13:54:20 +000028262014-02-22 Felipe Bugno <capent@Savannah> (tiny change)
Benno Schulenberg619b2162014-03-30 21:23:40 +00002827 * doc/nanorc.sample.in: Add an include for CMake files.
Benno Schulenberg44e85832014-02-22 13:54:20 +00002828
Benno Schulenbergb55ce292014-02-22 10:28:58 +000028292014-02-22 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002830 * src/nano.c (allow_pending_sigwinch): A (char *) cast for pedantic purposes.
2831 * src/cut.c (do_cut_text): Wrap a reference to 'copy_text' in NANO_TINY.
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002832
Benno Schulenbergfb4e4022014-02-22 10:56:52 +000028332014-02-22 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002834 * ChangeLog, NEWS, doc/faq.html: Fix typos, wording, and spacing.
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002835
Benno Schulenberg6fef9202016-02-23 12:49:08 +000028362014-01-25 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002837 * src/winio.c (set_modified): Check for a filename before trying to lock.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002838
28392014-01-24 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg2418b942015-10-31 20:32:11 +00002840 * src/nano.c (copy_from_filestruct): Refresh the mark's pointer when
2841 stuff was pasted into the line where the mark is. This applies
2842 Savannah patch #8180 and fixes the segfault reported on the list:
2843 https://lists.gnu.org/archive/html/nano-devel/2012-07/msg00000.html.
Chris Allegrettac2184152014-01-26 22:47:08 +00002844
Benno Schulenberg6fef9202016-02-23 12:49:08 +000028452014-01-01 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002846 * doc/texinfo/nano.texi: Change '@sp4' since makeinfo 5.1 hates the
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002847 lack of spacing. Fixes bug #40103 reported by flapane@Savannah.
Chris Allegrettabac696a2014-01-03 02:11:04 +00002848 Also change SVN status to non-binary so diffs work.
2849
Benno Schulenberg6fef9202016-02-23 12:49:08 +000028502014-01-01 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002851 * src/global.c (strtokeytype): Check for lower-case 'f' for defining F-key
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002852 sequences for consistency (previously was two checks for upper case 'F').
2853 Fixes bug #40815 reported by David Binderman <dcb314@Savannah>.
Chris Allegretta18b10922014-01-01 22:21:38 +00002854
Chris Allegrettad1336f62013-06-14 02:48:59 +000028552013-06-13 Matthew Fischer <mfisch@Savannah>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002856 * doc/syntax/c.nanorc: Add the 'auto' keyword.
Chris Allegrettad1336f62013-06-14 02:48:59 +00002857
Chris Allegrettabf406ff2013-06-14 02:44:54 +000028582013-06-13 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002859 * src/global.c (first_sc_for): Try to more consistently display keystrokes,
Benno Schulenbergf26e88b2016-06-17 10:49:29 +02002860 useful when the user has rebound a bunch of them.
Chris Allegrettabf406ff2013-06-14 02:44:54 +00002861
Chris Allegretta2e46cc12013-06-14 02:31:38 +000028622013-06-13 Kamil Dudka <kdudka@redhat.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002863 * doc/man/nano.1: Actually document the -P (--poslog) option.
Chris Allegretta2e46cc12013-06-14 02:31:38 +00002864
Chris Allegretta62513582013-04-12 06:43:06 +000028652013-04-12 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaf9e94642013-06-14 02:29:15 +00002866 * src/files.c (do_insertfile): Check for saved cursor position when inserting a
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002867 file as well. Fixes Savannah bug #38600 reported by Craig Barnes.
Chris Allegretta2d345862013-04-13 02:56:03 +00002868 * src/files.c (write_file): Don't re-stat() the file if we're writing out
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002869 a marked portion (especially because it would give the wrong stat info).
2870 Part two of issue reported by Benno Schulenberg.
Chris Allegretta62513582013-04-12 06:43:06 +00002871
Chris Allegretta4cc4b9b2013-04-08 03:19:21 +000028722013-04-07 Michael Berg <mike@berg-net.us>
Benno Schulenberg619b2162014-03-30 21:23:40 +00002873 * do_cut_text: Fix copying (not cutting) text setting Modified state.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002874 Partly fixes an issue reported by Benno Schulenberg.
Chris Allegretta4cc4b9b2013-04-08 03:19:21 +00002875
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002876GNU nano 2.3.2 - 2013.03.23
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00002877
Chris Allegretta22c83ec2013-03-17 22:09:38 +000028782013-03-17 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaf9e94642013-06-14 02:29:15 +00002879 * Revert r4547 as we should have a new release and the overlap code is not yet
2880 ready for public consumption.
Chris Allegretta22c83ec2013-03-17 22:09:38 +00002881
Chris Allegretta67acf2c2013-01-20 07:51:34 +000028822013-01-20 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaf9e94642013-06-14 02:29:15 +00002883 * src/text.c (do_histify): Don't allow sigwinch to be received while justifying
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002884 as that puts us into a wacky state. Fixes crash on justify by Joshua Rogers.
Chris Allegrettaa1495492013-01-20 17:57:04 +00002885 * configure.ac: Added --with-wordbounds option to let cross compilers force
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002886 whether their target system support GNU-style word boundaries or not.
Benno Schulenberga77efae2015-12-11 16:55:07 +00002887 Originally reported by Dave Festing.
Chris Allegretta2072b742013-01-21 03:40:08 +00002888 * doc/man/nanorc.5: Fix typo in softwrap description, reported by
2889 cbart387@Savannah.
Chris Allegretta67acf2c2013-01-20 07:51:34 +00002890
Chris Allegretta29479ca2013-01-19 07:18:29 +000028912013-01-19 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaf9e94642013-06-14 02:29:15 +00002892 * configure.ac: Make ncurses checking to set $LIBS and check the ncursesw lib
2893 actually works before defaulting to it over ncurses! Shock!
Chris Allegretta29479ca2013-01-19 07:18:29 +00002894
Chris Allegrettab7a2dfb2013-01-13 08:37:54 +000028952013-01-13 Chris Allegretta <chrisa@asty.org>
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002896 * src/utils.c (parse_num): Initialize errno before calling strtol(). Fixes issue
Chris Allegrettaf9e94642013-06-14 02:29:15 +00002897 where trying to go to a line number too long will break legitimate goto-lines
2898 for the remainder of the editing session, reported by Joshua Rogers.
Chris Allegrettab7a2dfb2013-01-13 08:37:54 +00002899
29002013-01-09 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg16fe1782014-02-27 20:54:26 +00002901 * configure.ac: Check for ncursesw5-config and base $CPPFLAGS on it.
Chris Allegrettaf4e26d12013-01-10 03:51:24 +00002902
Chris Allegretta2e4228f2013-01-10 03:29:59 +000029032013-01-09 Fabian Groffen <grobian@Savannah>
Benno Schulenberg16fe1782014-02-27 20:54:26 +00002904 * configure.ac, src/nano.h: Make the search for ncursesw more generalized.
Chris Allegretta2e4228f2013-01-10 03:29:59 +00002905
Chris Allegrettaa016f002013-01-03 05:17:36 +000029062013-01-02 David Benjamin <davidben@Savannah>
Benno Schulenberg16fe1782014-02-27 20:54:26 +00002907 * src/search.c (parse_syntax): Fix blatantly and dangerously incorrect code
2908 for deleting old syntaxes.
Chris Allegrettaa016f002013-01-03 05:17:36 +00002909
Chris Allegretta2a76b432013-01-03 04:50:49 +000029102013-01-02 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002911 * src/files.c (cwd_tab_completion): Remove unnecessary variables.
2912 * src/search.c (search_init): Fix gcc complaints on certain versions.
Chris Allegretta2a76b432013-01-03 04:50:49 +00002913
Chris Allegretta636e76a2013-01-03 03:47:26 +000029142013-01-02 Eitan Adler <lists@eitanadler.com>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002915 * configure.ac: Remove unnecessary checks.
2916 * src/nano.h, NEWS: Fix redundant wording.
Chris Allegretta636e76a2013-01-03 03:47:26 +00002917
Chris Allegrettabf88d272013-01-01 03:24:39 +000029182012-12-31 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaf9e94642013-06-14 02:29:15 +00002919 * src/*: Introduce (basic) vim-style file locks. Does not allow vim to recover
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002920 our changes, and just lets a vim user know we're editing a file. Command-line
2921 option "-G" or "--locking", nanorc option "locking". New functions in
2922 src/files.c: do_lockfile(), write_lockfile(), and delete_lockfile().
Chris Allegrettabf88d272013-01-01 03:24:39 +00002923
Chris Allegrettad84849e2012-02-06 01:10:45 +000029242012-02-05 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002925 * src/*: Fix overlapping strings highlighting each other. New variables in edit_draw
2926 (slmatcharray, pbegin, paintok), new logic (with repeated setting of values in the
2927 array but it's BFI after all). FIXME: Need to create a new 'overlap'.
2928 * src/*: Fix a silly issue with the argument to nregcomp, as it's confusing to the caller.
2929 * src/nano.h: Change the color types to a compiler macro (COLORWIDTH), may not actually
2930 even be worth doing, but someday who knows how wide a color curses implementation might
Chris Allegrettad84849e2012-02-06 01:10:45 +00002931 be, and maybe we'll even start checking for it in autoconf!
2932
Chris Allegretta8d7402f2011-05-11 04:54:39 +00002933GNU nano 2.3.1 - 2011.05.10
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00002934
Chris Allegrettadaeab052011-05-10 05:43:08 +000029352011-05-10 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002936 * text.c (do_enter): Only increment totsize by the auto-indented amount, since the previous
2937 line's size was already counted. Fixes bug reported by Robert Spanjaard.
Chris Allegrettadaeab052011-05-10 05:43:08 +00002938
Chris Allegretta090e2cf2011-05-08 04:23:24 +000029392011-05-08 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002940 * doc/syntax/Makefile.am: Finally get around to sorting the syntax file list.
Chris Allegretta090e2cf2011-05-08 04:23:24 +00002941
29422011-05-08 Matthew Wild <mattj100@Savannah>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002943 * doc/syntax/spec.nanorc: New lua syntax highlighting config.
Chris Allegretta090e2cf2011-05-08 04:23:24 +00002944
Chris Allegretta7a707672011-03-29 04:10:11 +000029452011-03-28 Asterios Dramis <asterios.dramis@gmail.com>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002946 * doc/syntax/spec.nanorc: New RPM spec file highlighting config.
Chris Allegretta7a707672011-03-29 04:10:11 +00002947
Chris Allegrettaf9217432011-03-13 06:05:19 +000029482011-03-12 Chris Allegretta <chrisa@asty.org>
2949 * po/*: Sync latest translation fixes, add an update_linguas.sh script. Rename
2950 existing update.pl to update_sources.pl to make it more specific.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002951
Chris Allegrettafda622c2011-03-05 05:01:13 +000029522011-03-04 Chris Allegretta <chrisa@asty.org>
2953 * color.c (color_update): Add check for whether the file even exists
2954 before we try to run the magic check on it. Fixes error messages to stderr
2955 when reading in files that don't exist, reported by Mike Frysinger.
2956
Chris Allegrettabccf2fa2011-03-03 16:23:27 +000029572011-03-03 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002958 * color.c (color_update): Remove unneeded debugging message from libmagic commit.
2959 Fixed extra messages going to stderr, reported by Mike Frysinger.
Chris Allegrettabccf2fa2011-03-03 16:23:27 +00002960
2961GNU nano 2.3.0 - 2011.02.26
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00002962
Chris Allegretta3bd12e32011-02-26 14:22:37 +000029632011-02-26 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002964 * Change RAW in function_type enum to RAWINPUT, to fix compilation on AIX,
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002965 reported by Richard G Daniel <skunk@iskunk.org>.
Chris Allegretta3bd12e32011-02-26 14:22:37 +00002966
Chris Allegretta3459e4f2011-02-24 02:47:25 +000029672011-02-23 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002968 * Fix some more severe warnings from 'g++ -pedantic', from patch originally
2969 by Eitan Adler <lists@eitanadler.com>.
Chris Allegretta3459e4f2011-02-24 02:47:25 +00002970
Chris Allegretta20d93292011-02-24 02:14:30 +000029712011-02-23 Kamil Dudka <kdudka@redhat.com>
Benno Schulenberg5270dd82016-06-25 10:29:09 +02002972 * doc/man/nanorc.5: Fix small typo. Report and original patch by John Bradshaw.
Chris Allegretta20d93292011-02-24 02:14:30 +00002973
Chris Allegretta154136a2011-02-23 03:09:23 +000029742011-02-22 Chris Allegretta <chrisa@asty.org>
2975 * color.c (nfreeregex): Fix that we were trying to set the pointer passed by value
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002976 to NULL. Fixes crashes on file save reported by Ken Tyler and Matthieu Lejeune.
Chris Allegretta154136a2011-02-23 03:09:23 +00002977
Chris Allegretta8e2a9302011-02-18 07:30:57 +000029782011-02-18 Chris Allegretta <chrisa@asty.org>
2979 * New saved cursor position history option. Command line option -P or --poslog, rc file
2980 entry "poslog". Search history changes to ~/.nano/search_history, cursor position log
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00002981 is ~/.nano/filepos_history. Added checks to move the legacy .nano_history file to the
2982 new location. Several new functions to files.c: load_poshistory(), save_poshistory(),
Chris Allegretta8e2a9302011-02-18 07:30:57 +00002983 check_poshistory(), update_poshistory(), and reworking of histfilename(). New FAQ entry
2984 4.15 discussing the change and offering an interoperability workaround.
Chris Allegretta392c23c2011-02-18 07:49:28 +00002985 * files.c (load_history): Set last_search to the last search value we loaded from history,
Benno Schulenbergb55ce292014-02-22 10:28:58 +00002986 so do_research will succeed without needing to manually load the last search in. Fixes
Chris Allegretta154136a2011-02-23 03:09:23 +00002987 bug reported by Matthieu Lejeune.
Chris Allegretta8e2a9302011-02-18 07:30:57 +00002988
Chris Allegrettab00d0b92011-02-13 04:23:10 +000029892011-02-12 Chris Allegretta <chrisa@asty.org>
2990 * Initial libmagic implementation, adapted from Eitan Adler <eitanadlerlist@gmail.com>.
2991 New nanorc entry "magic" to enable this functionality, nanorc file and man page updates.
2992
Chris Allegretta3d411182011-02-07 02:06:20 +000029932011-02-06 Chris Allegretta <chrisa@asty.org>
Benno Schulenberga77efae2015-12-11 16:55:07 +00002994 * src/*: Retire iso_me_harder_funcmap based on suggestion by <bernd.spaeth@gmx.net>.
Chris Allegretta637daa82011-02-07 14:45:56 +00002995 This does add 20KB to nano's executable size but it gets rid of a lot of indirection
Benno Schulenberga77efae2015-12-11 16:55:07 +00002996 that makes people's stomach turn. There are several new stub functions and a need of
2997 more tidying as a result of this.
Chris Allegretta637daa82011-02-07 14:45:56 +00002998 * files.c (write_file): Fix problems with writing the backup file (albeit interactively)
Chris Allegretta3d411182011-02-07 02:06:20 +00002999 with new function prompt_failed_backupwrite(), allows more secure handling of problems
3000 with failing to write the backup file compared to 'allow_insecure_backup'.
Benno Schulenberga77efae2015-12-11 16:55:07 +00003001 * winio.c (edit_redraw): Remove unused variable.
Chris Allegretta3d411182011-02-07 02:06:20 +00003002
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00003003GNU nano 2.2.6 - 2010.11.22
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003004
Chris Allegrettad5b1c7c2010-11-15 06:59:09 +000030052010-11-15 Chris Allegretta <chrisa@asty.org>
3006 * Add a section to the FAQ about using nanorc on Win32 systems.
3007
Chris Allegrettaab538642010-11-12 06:22:12 +000030082010-11-12 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003009 * Add check for RESTRICTED mode back to speller, suspend and insert file routines,
3010 since adding key bindings broke the fact that they should be disabled in restricted\
3011 mode. Fixes Savannah bug #31625 reported by Charlie Somerville.
Chris Allegrettaab538642010-11-12 06:22:12 +00003012
Chris Allegretta9b1c8682010-08-06 01:20:51 +00003013GNU nano 2.2.5 - 2010.08.05
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003014
Benno Schulenbergdfbabc02016-06-21 22:01:15 +020030152010-08-04 Lauri Kasanen <curaga@operamail.com>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003016 * doc/syntax/mgp.nanorc: New Magicpoint syntax highlighting definition.
Chris Allegretta14d7c5d2010-08-04 13:47:23 +00003017
Chris Allegretta7a1b1ff2010-08-04 13:37:48 +000030182010-08-04 Peter <exodus@savannah>
3019 * doc/syntax/tex.nanorc: No longer highlight escaped comments
3020
Chris Allegretta0acca272010-06-21 03:10:10 +000030212010-06-20 Chris Allegretta <chrisa@asty.org>
3022 * New rc file option allow_insecure_backup, allows the previous security
3023 fixes for backup files to be overridden if you're really positive
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003024 you want to. Fixes Savannah bug #29732 by Brian Szymanski <skibrianski>.
Chris Allegretta0acca272010-06-21 03:10:10 +00003025
Chris Allegretta86be3af2010-05-23 04:30:23 +000030262010-05-23 Chris Allegretta <chrisa@asty.org>
3027 * files.c (write_file): Don't even try to chown() the backup
3028 file unless we're root, since it's probably going to fail if
3029 we're editing a file we don't own. Fixes Savannah bug
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003030 #29514: [nano 2.2.2] backup should ignore chown errors.
Chris Allegretta86be3af2010-05-23 04:30:23 +00003031
Chris Allegrettaa2c51722010-04-15 07:40:41 +00003032GNU nano 2.2.4 - 2010.04.15
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003033
Benno Schulenbergdfbabc02016-06-21 22:01:15 +020030342010-04-14 Chris Allegretta <chrisa@asty.org>
Chris Allegretta29e20122010-04-14 21:55:39 +00003035 * doc/man/nano.1,nanorc.5: Remove the backup file warnings now
Chris Allegrettaf9e94642013-06-14 02:29:15 +00003036 that a sufficient security fix exists for the backup file code.
Chris Allegretta29e20122010-04-14 21:55:39 +00003037
Chris Allegrettadb9d9832010-04-14 06:03:12 +000030382010-04-14 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003039 * text.c (do_alt_speller): Skip invoking the alt speller if the file size
3040 is 0 bytes. Fixes Savannah bug #29393 reported by Mike Frysinger.
Benno Schulenbergb55ce292014-02-22 10:28:58 +00003041 * files.c (write_file): Don't set current_stat when tmp == TRUE, check
Chris Allegrettadb9d9832010-04-14 06:03:12 +00003042 whether current_stat is set when trying to use it, and don't do the
3043 modification check if the filename changed, since we have no way
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003044 of knowing about it in that case. Fixes Savannah bug #29392, reported
Chris Allegrettac8590492010-04-14 21:53:59 +00003045 by Mike Frysinger. [CVE-2010-1160]
Chris Allegretta181c4a92010-04-14 03:14:40 +00003046
Chris Allegretta053fabd2010-04-14 02:38:56 +000030472010-04-13 Felipe Bugno <necron@bol.com.br>
3048 * doc/syntax/cmake.nanorc: Added cmake syntax highlighting file.
3049
Chris Allegretta7f61a6c2010-04-09 15:01:51 +000030502010-04-09 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003051 * files.c (do_writeout): Better security fixes for backup file writing,
3052 mangled from submission by Dan Rosenberg <dan.j.rosenberg at gmail>.
Chris Allegrettaf9e94642013-06-14 02:29:15 +00003053 [CVE-2010-1161]
Chris Allegretta7f61a6c2010-04-09 15:01:51 +00003054
30552010-04-08 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003056 * files.c (do_writeout): Previous fixes should not cause a crash
Chris Allegretta83a0e902010-04-08 02:22:53 +00003057 when saving a new file. Discovered by Mike Frysinger <vapier@gentoo.org>.
3058
Chris Allegrettae68616b2010-04-07 06:20:55 +000030592010-04-07 Chris Allegretta <chrisa@asty.org>
3060 * doc/man/nano.1,nanorc.5: Add warnings about using backup
3061 mode as root due to the Dan Rosenberg security analysis.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003062
Chris Allegrettacdb5b162010-04-03 02:39:18 +000030632010-04-02 Chris Allegretta <chrisa@asty.org>
3064 * files.c (do_writeout): Expand modification check to include both the
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003065 original file's device ID and inode number as reasons to warn the
Chris Allegrettaf9e94642013-06-14 02:29:15 +00003066 user that the file has been modified. Also abort on writing a backup
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003067 file when its owner doesn't match the edited file. Based on security
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003068 analysis on nano by Dan Rosenberg. [CVE-2010-1160]
Chris Allegrettac8590492010-04-14 21:53:59 +00003069
Chris Allegretta35b59762010-03-21 05:31:43 +000030702010-03-21 Chris Allegretta <chrisa@asty.org>
3071 * nano.c (page_stdin et al): Don't attempt to reset/reopen the terminal
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003072 settings when reading stdin if it was aborted with SIGINT. May fix
Benno Schulenberg41e19a12014-06-29 09:32:04 +00003073 Savannah bug #29114 reported by Mike Frysinger.
Chris Allegretta35b59762010-03-21 05:31:43 +00003074
Chris Allegrettafe2042d2010-03-21 05:04:03 +000030752010-03-21 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003076 * doc/syntax/c.nanorc: Add additional support for #include_next and #pragma.
Chris Allegrettafe2042d2010-03-21 05:04:03 +00003077
Chris Allegrettab5e76472010-03-21 04:35:17 +000030782010-03-21 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003079 * move.c (do_page_up, do_page_down()): Explicitly set current_y to 0 when
3080 paging up when not in smooth scroll mode, as previous fixes would otherwise
3081 cause the cursor to not really be moved to the top of the screen.
Chris Allegrettab5e76472010-03-21 04:35:17 +00003082
Chris Allegretta42bd8712010-03-07 19:35:46 +000030832010-03-07 Chris Allegretta <chrisa@asty.org>
3084 * configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003085 COLS can safely be redefined. Fixes compilation issues with Cygwin, and likely
3086 with newer versions of ncurses. Fixes Savannah bug #28984 reported by Andy Koppe
3087 and by Eric Oliver via mailing list.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003088 * winio.c (get_mouseinput): Fix stray semicolon in code, also reported in
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003089 bug #28984.
Chris Allegretta42bd8712010-03-07 19:35:46 +00003090
Chris Allegrettaf81d6fe2010-02-11 06:13:55 +00003091GNU nano 2.2.3 - 2010.02.11
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003092
Chris Allegretta1456a102010-01-29 03:40:58 +000030932010-01-28 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003094 * move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cursor
3095 position. Part one of fix for Savannah bug #21178 by Mike Frysinger.
Chris Allegretta1456a102010-01-29 03:40:58 +00003096
3097GNU nano 2.2.2 - 2010.01.17
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003098
Chris Allegretta4e621b52010-01-18 00:24:09 +000030992010-01-17 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003100 * nano.c (main), prompt.c (do_statusbar_input): Handle problems with an unmapped
3101 function due to key rebinding, fixes crashes on FreeBSD reported by Eitan
Chris Allegretta4e621b52010-01-18 00:24:09 +00003102 Adler <eitanadlerlist@gmail.com>.
3103
Chris Allegretta6cf05d42010-01-14 06:32:37 +000031042010-01-14 Chris Allegretta <chrisa@asty.org>
3105 * files.c (do_writeout): Fix for crash / incorrect external modification warning
3106 due to earlier fix in r4467.
3107
Chris Allegretta1a7a91b2010-01-13 03:21:19 +000031082010-01-12 Chris Allegretta <chrisa@asty.org>
3109 * move.c (do_page_up, do_page_down): Fix issues with not enough scrolling down/up
3110 and cursor centering.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003111 * winio.c (edit_scroll): Remove lots of needless checking of line length for
Chris Allegretta1a7a91b2010-01-13 03:21:19 +00003112 soft wrapping code.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003113 * winio.c (edit_update): Remove extra code for when updating with old_current outside
Chris Allegretta1a7a91b2010-01-13 03:21:19 +00003114 of the new buffer boundary and centering issues.
3115
Chris Allegrettadf8c3de2010-01-05 23:35:50 +000031162010-01-05 Tito <farmatito@tiscali.it>
Chris Allegretta1a7a91b2010-01-13 03:21:19 +00003117 * search.c (update_history): Fix bad length check causing search crash on armel platform.
Chris Allegrettadf8c3de2010-01-05 23:35:50 +00003118
Chris Allegretta374216f2010-01-04 19:00:55 +000031192010-01-04 Chris Allegretta <chrisa@asty.org>
Chris Allegretta1a7a91b2010-01-13 03:21:19 +00003120 * winio.c: edit_update, edit_redraw: Fix search not scrolling to the middle of the screen
Chris Allegretta374216f2010-01-04 19:00:55 +00003121 (reported by alpha@qzx.com) and places where we rely on maxrows but should not.
3122
Jordi Mallachfc6ef3e2009-12-26 01:58:50 +000031232009-12-26 Jordi Mallach <jordi@gnu.org>
3124 * doc/man/nano.1: Avoid a groff warning by prepending a zero-width
3125 space to a line starting with '.
3126
Chris Allegretta8d41fb82009-12-23 05:03:09 +000031272009-12-22 Chris Allegretta <chrisa@asty.org>
3128 * files.c (write_file): Fix compatibility with previous stat fix and tiny mode.
3129
31302009-12-22 David Lawrence Ramsey <pooka109@gmail.com>
3131 * global.c: Add new strings for forward/back in the file browser. New variables
3132 nano_forwardfile_msg and nano_backfile_msg.
3133
Chris Allegretta3c7dda62009-12-20 05:55:41 +000031342009-12-20 Chris Allegretta <chrisa@asty.org>
3135 * files.c (is_file_writable): remove assert check for f, since it's not
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003136 initialized at the time. Fixes Savannah bug #28309, reported by Zoltan Kovacs.
Chris Allegretta3c7dda62009-12-20 05:55:41 +00003137
Chris Allegretta869aca42009-12-20 05:46:35 +000031382009-12-20 Brian Szymanski <skibrianski via Savannah>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003139 * src/files.c (write_file): Check whether stat struct exists, and if not, use the
3140 just obtained stat data. Fixes Ubuntu bug 471568, "reproducible crash in nano on
3141 trying to save to a file different than the one specified on the command line".
Chris Allegretta869aca42009-12-20 05:46:35 +00003142
Chris Allegrettad9be86f2009-12-15 18:07:17 +000031432009-12-15 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003144 * doc/nanorc.sample.in: Remove erroneous 'set suspendenable' as it's actually a
Chris Allegrettad9be86f2009-12-15 18:07:17 +00003145 key binding (e.g. 'bind M-Z suspendenable all') and not a settable flag. Fixes
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003146 Savannah bug #28299 reported by Mike Frysinger.
Chris Allegrettad9be86f2009-12-15 18:07:17 +00003147
Chris Allegretta560a8cd2009-12-13 03:31:00 +00003148GNU nano 2.2.1 - 2009.12.12
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003149
Chris Allegrettaa8bc4922009-12-12 22:21:20 +000031502009-12-12 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003151 * text.c (do_delete), nano.c (do_output): Add check for length of current line
Chris Allegrettaa8bc4922009-12-12 22:21:20 +00003152 before and after adding/deleting text, and do full refresh if it is now
3153 a different multiple of COLS. Also get rid of superfluous do_refresh
3154 vars now that we have edit_refresh_needed.
3155
31562009-12-09 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003157 * global.c (shortcut_init), browser.c (do_browser): Fix M-W not being bound to
Chris Allegrettaf387f332009-12-09 17:09:37 +00003158 research in either main menu or browser.
3159
Chris Allegretta2c7b5062009-12-09 16:51:43 +000031602009-12-09 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003161 * files.c (read_file): Add parameter for whether we should even try to check
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003162 file writability, as the message is useless when we're inserting into an
3163 existing buffer. Fixes Savannah bug #28219.
Chris Allegretta2c7b5062009-12-09 16:51:43 +00003164
Chris Allegretta5b25e072009-12-07 12:34:23 +000031652009-12-07 David Lawrence Ramsey <pooka109@gmail.com>
3166 * global.c (shortcut_init): Many fixes for keybindings code oversights, including
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003167 restore page up/down and GotoDir in browser.
3168 * browser.c (do_browser): Fix breaking out of a submenu (e.g. gotodir), it broke
3169 out of the browser altogether.
Chris Allegretta5b25e072009-12-07 12:34:23 +00003170 * doc/nanorc.sample.in: Add missing entries for fortran/ObjC/OCaml entries.
3171
Chris Allegrettab27b3a12009-12-04 04:29:55 +000031722009-12-03 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003173 * global.c (shortcut_init): Remove help shortcut from help shortcut list. :-) Tweaked
Chris Allegrettab27b3a12009-12-04 04:29:55 +00003174 to reorder exit shortcut to end of list to not mess up prev/next shortcut symmetry.
3175
Chris Allegretta96466162009-12-04 03:46:04 +000031762009-12-03 Eitan Adler <eitanadlerlist@gmail.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003177 * doc/syntax/makefile.nanorc: Fix poor regex for all alpha characters which sometimes
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003178 leads to error messages, reported by gibboris@gmail.com.
Chris Allegretta96466162009-12-04 03:46:04 +00003179
Chris Allegrettac9f07992009-12-03 03:12:00 +000031802009-12-02 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003181 * text.c (add_undo, do_undo, do_redo): Do not execute cases for SPLIT when
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003182 DISABLE_WRAPPING is defined. Fixes Savannah bug #28151 (anon).
Chris Allegrettac9f07992009-12-03 03:12:00 +00003183
Jordi Mallach42a39042009-12-02 22:47:57 +000031842009-12-02 Jordi Mallach <jordi@gnu.org>
3185 * doc/man/nano.1: Fix escaping of hyphens for the -$ option.
3186
Chris Allegrettaa97cb812009-12-02 03:24:18 +000031872009-12-01 Kamil Dudka <kdudka@redhat.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003188 * chars.c, file.c: Better handle unused results for things like mbtowc(), new
Chris Allegrettaa97cb812009-12-02 03:24:18 +00003189 macro IGNORE_CALL_RESULT.
3190
31912009-12-01 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003192 * global.c (shortcut_init): Remove redundant entries for ^Y/^V reported by
Chris Allegrettaa97cb812009-12-02 03:24:18 +00003193 Christian Weisgerber.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003194 * doc/man/nanorc.5: Fix typo in Meta documentation, reported by <gibboris@gmail.com>.
Chris Allegrettaa97cb812009-12-02 03:24:18 +00003195
Chris Allegretta8a07a962009-12-02 03:36:22 +000031962009-12-01 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003197 * global.c (shortcut_init): Add support for ^P and ^N in the help menu.
Chris Allegretta8a07a962009-12-02 03:36:22 +00003198 * Update documentation for 2.2 features including sample nanorc file, texinfo
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003199 file, man pages, UPGRADE file, and update copyright notice for the current year.
Chris Allegrettaa97cb812009-12-02 03:24:18 +00003200
Chris Allegrettacb9a5be2009-11-30 05:26:30 +00003201GNU nano 2.2.0 - 2009.11.30
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003202
Chris Allegretta5a018f02009-11-29 06:13:22 +000032032009-11-29 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003204 * prompt.c (get_prompt_string): Universally handle help key when it is disabled.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003205 Fixes Savannah bug #28117 by David Lawrence Ramsey <pooka109@gmail.com>.
Chris Allegretta5a018f02009-11-29 06:13:22 +00003206 * chars.c, files.c: Add junk vars to silence the compiler. Sigh.
3207
32082009-11-29 David Lawrence Ramsey <pooka109@gmail.com>
3209 * Change several *chars to const char, additional cleanups and casts to make compilers happier.
Chris Allegrettab43f6912009-11-29 06:24:10 +00003210 * global.c: Fix replace and insert file initializations for proper compilation options.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003211 * nano.c (do_suspend): Update comments to reflect actual code path, bad Chris, and thanks for
3212 noticing, Jordi.
3213 * configure.ac: Fix typos.
Chris Allegretta5a018f02009-11-29 06:13:22 +00003214
Chris Allegrettadaaf4682009-11-28 03:01:30 +000032152009-11-27 Chris Allegretta <chrisa@asty.org>
3216 * nano.c (do_suspend): Don't clear the screen but do move the cursor down to the last line
3217 first in an effort to not corrupt the screen, which contradicts Pico but is consistent
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003218 with almost all other text editors. Fixes Savannah bug #28110 / Debian bug 460510
Chris Allegrettadaaf4682009-11-28 03:01:30 +00003219 reported by Tim Connors <reportbug@rather.puzzling.org>.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003220 * doc/syntax/makefile.nanorc: Sample Makefile highlighting based on wiki.linuxhelp.net version.
Chris Allegrettadaaf4682009-11-28 03:01:30 +00003221
Chris Allegretta3b830ee2009-11-27 03:04:59 +000032222009-11-26 Chris Allegretta <chrisa@asty.org>
3223 * winio.c (edit_scroll): Adjust for long lines when scrolling.
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003224 * rcfile.c (parse_rcfile): initialize size argument to getline(), fixes crash on FreeBSD
Chris Allegrettadcf5cbb2009-11-27 05:09:56 +00003225 reported by Eitan Adler <eitanadlerlist@gmail.com>.
Chris Allegretta3b830ee2009-11-27 03:04:59 +00003226
Chris Allegrettad753efd2009-11-27 02:50:12 +000032272009-11-26 Jordi Mallach <jordi@gnu.org>
Chris Allegrettacb9a5be2009-11-30 05:26:30 +00003228 * doc/man/*: Update all man pages to escape unescaped hyphens.
Chris Allegrettad753efd2009-11-27 02:50:12 +00003229
Chris Allegrettae2df2c82009-11-24 17:15:53 +000032302009-11-24 Chris Allegretta <chrisa@asty.org>
3231 * move.c (do_page_up, do_page_down): Make these functions work better with soft
3232 line wrapping.
3233 * winio.c (compute_maxrows): Make maxrows calculation more accurate when all lines are > COLS.
3234
Chris Allegretta8b6f6fc2009-11-22 21:35:56 +000032352009-11-22 Chris Allegretta <chrisa@asty.org>
3236 * nano.c (main): Allow edit_refresh_needed to take effect when using --enable-tiny
Benno Schulenberg183fa5a2014-02-23 11:08:04 +00003237 (fixes Savannah bug #28076 reported by David Lawrence Ramsey).
Chris Allegretta8b6f6fc2009-11-22 21:35:56 +00003238
32392009-11-22 David Lawrence Ramsey <pooka109@gmail.com>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003240 * nano.c (move_to_filestruct): Fix bug 71 (cut at top of line recenters).
3241 * Fix compilation with --enable-tiny.
Chris Allegretta8b6f6fc2009-11-22 21:35:56 +00003242
Chris Allegretta0bff84e2009-11-22 16:36:53 +000032432009-11-22 Mike Frysinger <vapier@gentoo.org>
3244 * doc/syntax/gentoo.nanorc: Tweak comment highlighting.
3245
Chris Allegretta6c3d8862009-11-22 02:49:39 +00003246GNU nano 2.1.99pre2 - 2009.11.21
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003247
Chris Allegrettae9dee882009-11-21 16:26:59 +000032482009-11-21 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003249 * rcfile.c: Add unbinding keyword, fixes Savannah bug #22852 reported by frankd.
Chris Allegretta879dfba2009-11-21 17:12:28 +00003250 * prompt.c (update_statusbar_line): Set statusbar_pww when updating the line.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003251 Fixes Savannah bug #24957 reported by Mike Frysinger.
Chris Allegrettae9dee882009-11-21 16:26:59 +00003252
Chris Allegretta123110c2009-11-20 05:09:12 +000032532009-11-19 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003254 * nano.c (die_save_file): Try and match the permissions of the file we were
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003255 editing but only make a minimal effort to do so. Fixes Savannah bug #27273
Chris Allegretta123110c2009-11-20 05:09:12 +00003256 reported by Mike Frysinger.
3257
Chris Allegretta16e07d52009-11-18 12:39:47 +000032582009-11-18 Adrian Bunk <bunk via Savannah>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003259 * nano.c (main): Allow --fill and --nowrap to override nanorc entries
3260 and each other on the command line.
Chris Allegretta16e07d52009-11-18 12:39:47 +00003261
Chris Allegrettafc483472009-11-16 00:15:45 +000032622009-11-15 Chris Allegretta <chrisa@asty.org>
3263 * winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003264 is enabled. Fixes Savannah bug #28024 by Mike Frysinger.
Chris Allegrettafc483472009-11-16 00:15:45 +00003265
Chris Allegretta2cd2d4b2009-11-15 06:20:21 +00003266GNU nano 2.1.99pre1 - 2009.11.15
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003267
Chris Allegrettaf9d4fd32009-11-14 19:57:38 +000032682009-11-14 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003269 * move.c (do_first_line, do_last_line): Just set edit_refresh_needed
3270 rather than get messy.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003271 * files.c (do_writeout): Only mention file modification if we're
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003272 writing the same file we originally opened.
Chris Allegrettaf9d4fd32009-11-14 19:57:38 +00003273
Chris Allegretta99c8d402009-11-13 13:48:56 +000032742009-11-13 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg41e19a12014-06-29 09:32:04 +00003275 * winio.c: Add new static maxsize for easier calculation with softwrap.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003276 * nano.c (do_mouse): Fix mouse support not working with soft wrapping.
3277 Fixes Savannah bug #27549 reported by Hannes Schueller.
Chris Allegretta99c8d402009-11-13 13:48:56 +00003278
Chris Allegretta6f083322009-11-11 06:00:33 +000032792009-11-11 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003280 * winio.c: Large tweaking of cursor and text display based on COLS not COLS - 1,
Chris Allegretta6f083322009-11-11 06:00:33 +00003281 due to finally understanding that display_string wasn't being called properly
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003282 when softwrap was enabled. Fixes Savannah bug #27603, "Return key doesn't scroll
3283 viewport" reported by Hannes Schueller.
3284 * Fix size_t formatting issues with -pedantic
Chris Allegretta6f083322009-11-11 06:00:33 +00003285
Chris Allegretta7be32042009-11-10 02:46:17 +000032862009-11-09 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003287 * files.c (read_file): Remove debugging messages from file load.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003288 Fixes Savannah bug #27838.
Chris Allegretta7be32042009-11-10 02:46:17 +00003289
Chris Allegretta795be592009-11-07 16:56:17 +000032902009-11-07 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003291 * nano.h: Add bogus value at begin of flags enumeration because it
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003292 caused the casesens rcfile option to misbehave, reported by Helmut
3293 Jarausch <jarausch@igpm.rwth-aachen.de>.
Chris Allegretta795be592009-11-07 16:56:17 +00003294
Chris Allegretta1d461472009-11-03 18:47:39 +000032952009-11-03 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003296 * nano.h: Fix comma at end of enumerator list which angers -pedantic.
3297 * rcfile.c: Add in specific check for UNDOABLE and fix declaration as
Chris Allegretta3aad8ab2009-11-03 19:31:17 +00003298 to what flag it toggles. Fixes undo mode being able to be called from
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003299 the rc file, reported by Helmut Jarausch <jarausch@igpm.rwth-aachen.de>.
Chris Allegretta1d461472009-11-03 18:47:39 +00003300
33012009-11-03 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003302 * files.c: Move up is_file_writable() to stop implicit definition complaints.
Chris Allegretta1d461472009-11-03 18:47:39 +00003303
Chris Allegrettaa535cec2009-10-27 04:09:27 +000033042009-10-27 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003305 * browser.c (browser_init): Set column width to something sane when
Chris Allegrettaa535cec2009-10-27 04:09:27 +00003306 initializing in a directory with no file entries. Fixes Savannah
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003307 bug #24163 found (and initial patch) by Paul Wise.
Chris Allegrettaa535cec2009-10-27 04:09:27 +00003308
Chris Allegrettad233e7e2009-09-15 04:51:09 +000033092009-09-15 Chris Allegretta <chrisa@asty.org>
3310 * winio.c: Clean up some unused variables from the soft wrapping code.
3311
Chris Allegretta1f218fa2009-09-15 03:50:17 +00003312GNU nano 2.1.11 - 2009.09.14
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003313
Chris Allegretta35afab52009-09-13 04:50:44 +000033142009-09-12 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003315 * winio.c (edit_update): properly update edittop when using soft wrapping.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003316 Fixes lack of centering for searching for off-screen answers, found by
3317 Hannes Schueller <mr_creosote@mutantwatch.de>.
Chris Allegretta35afab52009-09-13 04:50:44 +00003318
Chris Allegrettabce7d402009-09-03 23:29:14 +000033192009-09-03 Chris Allegretta <chrisa@asty.org>
3320 * global.c (shortcut_init): Fix up/down keys not responding in the file browser,
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003321 discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003322 * move.c (do_up): Fix another scrolling issue with softwrap when the cursor
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003323 is beyond COLS, discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
Chris Allegrettabce7d402009-09-03 23:29:14 +00003324
Chris Allegrettaf8f90272009-09-03 05:45:13 +000033252009-09-02 Chris Allegretta <chrisa@asty.org>
3326 * Attempt to check file writability and emit a warning on the status bar
3327 if nano doesn't think the file can be written to. Feature originally
Benno Schulenbergb58676f2015-07-19 16:01:15 +00003328 requested by Damien Joldersma <damien@skullsquad.com> et al.
Chris Allegrettaf8f90272009-09-03 05:45:13 +00003329
Chris Allegretta139934a2009-08-30 03:50:16 +000033302009-08-29 Chris Allegretta <chrisa@asty.org>
Chris Allegretta5687c3d2009-09-03 02:48:35 +00003331 * Fix more soft wrapping issues, particularly with scrolling,
Benno Schulenberg41e19a12014-06-29 09:32:04 +00003332 discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
Chris Allegretta139934a2009-08-30 03:50:16 +00003333
Chris Allegretta3de025f2009-08-19 05:38:07 +000033342009-08-19 Chris Allegretta <chrisa@asty.org>
3335 * Fix issue with soft wrapping not displaying the last character of each line,
Benno Schulenberg41e19a12014-06-29 09:32:04 +00003336 fixed bug discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
Chris Allegretta3de025f2009-08-19 05:38:07 +00003337
Chris Allegretta308a7b02009-08-18 02:55:22 +000033382009-08-17 Mike Frysinger <vapier@gentoo.org>
3339 * doc/syntax/(gentoo|sh|tcl).nanorc: Fix problems with empty regexes on POSIX.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003340 Fixes Savannah bug #27175.
Chris Allegretta308a7b02009-08-18 02:55:22 +00003341
Chris Allegretta05417a22009-08-17 07:52:10 +000033422009-08-17 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003343 * Initial soft line wrapping implementation. Command-line flags -$ or --softwrap.
Chris Allegretta05417a22009-08-17 07:52:10 +00003344 * nano.c, text.c: Clean up some fprintf warnings in debug mode due to printing
3345 a size_t without using the zd specifier.
Benno Schulenberg41e19a12014-06-29 09:32:04 +00003346
Chris Allegrettaa48507d2009-08-14 03:18:29 +000033472009-08-13 Chris Allegretta <chrisa@asty.org>
3348 * New global flag implementation courtesy of Adam Wysocki <gophi@arcabit.pl>, allows
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003349 previous undo flag to be implemented consistent with other flags.
Chris Allegrettaa48507d2009-08-14 03:18:29 +00003350
Chris Allegretta7f388202009-07-28 05:08:35 +00003351GNU nano 2.1.10 - 2009.07.28
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003352
Chris Allegretta42726f72009-07-27 04:16:44 +000033532009-07-27 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003354 * text.c (undo_cut, redo_cut): Don't actually try and undo/redo an empty cut, i.e. the magicline.
Chris Allegretta42726f72009-07-27 04:16:44 +00003355 Fixes crash on cutting last line discovered by Eitan Adler <eitanadlerlist@gmail.com>.
3356
Chris Allegrettaad37e672009-07-12 03:36:58 +000033572009-07-11 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg41e19a12014-06-29 09:32:04 +00003358 * nano-regress: Small tweaks.
3359 * Change undo code to off unless enabled via a command line option (-u/--undo).
3360 Until this code stabilizes this is the only responsible way to treat it.
Chris Allegrettaad37e672009-07-12 03:36:58 +00003361
Chris Allegretta55ca1022009-03-09 02:04:40 +000033622009-03-08 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003363 * TODO: Break out some targets for various features into 2.2
Chris Allegretta55ca1022009-03-09 02:04:40 +00003364 and 2.4 series for things which are feasible.
3365
Chris Allegretta5a3464b2009-03-01 00:50:19 +000033662009-02-28 Chris Allegretta <chrisa@asty.org>
3367 * configure.ac: Add check for whether _XOPEN_SOURCE_EXTENDED is needed for
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003368 curses to work w/color. Fixes compilation on HP-UX with older GCC,
Chris Allegretta5a3464b2009-03-01 00:50:19 +00003369 reported by jay.krell@cornell.edu.
3370
Chris Allegrettafb6446d2009-02-25 05:06:05 +000033712009-02-23 Eitan Adler <eitanadlerlist@gmail.com>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003372 * doc/man/Makefile.am: Fix make variable substitution to be more portable.
Chris Allegrettafb6446d2009-02-25 05:06:05 +00003373
Chris Allegrettaf86fa862009-02-25 04:32:15 +000033742009-02-23 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003375 * rcfile.c (parse_keybinding): Define a var before tryung to use it. Whoops!
Chris Allegrettaf86fa862009-02-25 04:32:15 +00003376 * fix some redefinitions causing compiler warnings, from Eitan Adler. Other
3377 (hopefully) fixes for uncasted malloc()s, reported by the same.
Chris Allegrettafb6446d2009-02-25 05:06:05 +00003378 * doc/man/fr/Makefile.am: Add groff check fix to fr files.
Chris Allegretta5ba7a932009-02-17 04:31:04 +00003379
3380GNU nano 2.1.9 - 2009.02.16
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003381
Chris Allegretta9555e1d2009-02-16 21:04:00 +000033822009-02-16 Chris Allegretta <chrisa@asty.org>
3383 * Add new argument to reset_multis for force redraws without attempting to
Chris Allegrettab71cf302009-02-16 23:06:09 +00003384 guess whether we need to, for functions that we don't have good info about
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003385 the text state. New utility function color.c:reset_multis_for_id().
Chris Allegretta9555e1d2009-02-16 21:04:00 +00003386
Chris Allegretta7aec3922009-02-15 19:16:18 +000033872009-02-15 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003388 * configure.ac, doc/man/Makefile.am: Add check for HTML output support in GNU
Chris Allegretta7aec3922009-02-15 19:16:18 +00003389 groff. Fixes Savannah bug #24461: build traps on groff. Also, add installation
3390 of html-ized man pages to $datadir/nano/man-html, since we should probably
3391 install files we went to all the trouble of generating.
3392
Chris Allegrettae027fc22009-02-15 02:40:16 +000033932009-02-14 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003394 * nano.c (precalc_multicolorinfo): Add debugging so we have a better clue if further
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00003395 issues arise. Also start at the beginning of later lines when trying to match the
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003396 end of a multi-line regex. Fixes more overly aggressive highlighting found by
Chris Allegrettaf9e94642013-06-14 02:29:15 +00003397 Mike Frysinger. Finally, advance to the match end for performance.
Chris Allegrettae027fc22009-02-15 02:40:16 +00003398
Chris Allegretta8257bf12009-02-11 05:45:57 +000033992009-02-11 Chris Allegretta <chrisa@asty.org>
3400 * nanorc.c (parse_include): Do call real_dir_from_tilde() on included
3401 files in .nanorc, but still avoiding bug #25297. Fixes ~ and ~user
3402 specifications for nanorc include files, as reported by Eitan Adler.
3403
Chris Allegrettaa30eb782009-02-09 04:03:20 +000034042009-02-09 Chris Allegretta <chrisa@asty.org>
3405 * New option -q, --quiet, rcfile option "quiet" implemented. Skips printing
3406 errors about the rcfile and asking user to press enter. Also, nano should
3407 now only ask for one enter press when there is an error when not using -q.
3408 Based on discussion between Eitan Adler and Mike Frysinger.
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00003409 * rcfile.c (parse_keybinding): Significant cleanups and fixes for
Chris Allegrettaa30eb782009-02-09 04:03:20 +00003410 detecting and reporting errors in key bindings code.
3411
Chris Allegretta04fbfaa2009-02-08 17:45:21 +000034122009-02-08 Chris Allegretta <chrisa@asty.org>
Chris Allegretta35686da2009-02-08 18:00:44 +00003413 * Make reset_multidata reset more lines, since contrary to previous problems the
3414 syntax highlting is now too *un*ambitious, causing display glitches when
3415 deleting a regex boundary.
Chris Allegretta04fbfaa2009-02-08 17:45:21 +00003416 * Add more multidata initliazers for new buffers and 'magic lines'. Fixes segfaults
3417 with syntax highlighting in new buffers, initially reported by Mike Frysinger.
3418
Chris Allegretta1658d4d2009-02-08 04:12:07 +00003419GNU nano 2.1.8 - 2009.02.07
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003420
Chris Allegretta4522ca22009-02-07 00:01:40 +000034212009-02-06 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003422 * rcfile.c (parse_include): Abort on being unable to open an included rcfile.
3423 Fixes Savannah bug #25490, nanorc: "include"ing a file which doesn't exist
3424 causes nano to segfault.
Chris Allegretta4522ca22009-02-07 00:01:40 +00003425
Chris Allegrettafd265af2009-02-06 03:41:02 +000034262009-02-05 Chris Allegretta <chrisa@asty.org>
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00003427 * More color syntax speedups: Determine in reset_multis() whether we really need to call
Chris Allegrettafd265af2009-02-06 03:41:02 +00003428 edit_refresh(). Additional global var edit_refresh_needed() to hopefully reduce
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003429 repeated calls to the function. New helper funcs reset_multis_before() and
Chris Allegrettafd265af2009-02-06 03:41:02 +00003430 reset_multis_after().
3431
34322009-02-02 Chris Allegretta <chrisa@asty.org>
3433 * New color precalculation code for mult-line regexes. New function precalc_multicolorinfo(),
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003434 new structure multidata for keeping track of where regexes start/stop. More
Chris Allegrettafd265af2009-02-06 03:41:02 +00003435 performance improvements forthcoming.
3436
Chris Allegretta25d459a2009-01-30 08:34:27 +000034372009-01-29 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003438 * nano.c (move_to_filestruct): Properly initialize new fileage for multiswatching, sigh.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003439 Fix cut segfaults discovered by Mike Frysinger.
Chris Allegretta61f5c552009-01-31 23:36:00 +00003440
34412009-01-29 Chris Allegretta <chrisa@asty.org>
Chris Allegretta25d459a2009-01-30 08:34:27 +00003442 * nano.c (main): Add support for nano acting like a pager when invoked with - as first
Chris Allegretta75dfa8a2009-01-30 17:38:23 +00003443 file argument.
Chris Allegretta25d459a2009-01-30 08:34:27 +00003444
Chris Allegretta2d90cf32009-01-28 18:32:33 +000034452009-01-28 Davide Pesavento <davidepesa@gmail.com>
3446 * doc/syntax/gentoo.nanorc: Updates from David and Mike Frysinger.
3447
Chris Allegretta2823c992009-01-26 08:48:22 +000034482009-01-25 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003449 * files.c (open_file), nanorc.c (parse_include): Don't get_full_path on included
3450 rc files, due to it potentially impacting the ability to read files in nano's
3451 cwd(). Fixes Savnanah bug #25297 reported by Mike Frysinger.
Chris Allegretta2823c992009-01-26 08:48:22 +00003452
Chris Allegretta0dc26dc2009-01-24 22:40:41 +000034532009-01-24 Chris Allegretta <chrisa@asty.org>
Chris Allegrettad47d8cd2009-01-25 07:25:17 +00003454 * First pass at some caching of caching color info. Right now it's only for
3455 multi-line regexes but this may not be enough to increase performance.
Chris Allegretta0dc26dc2009-01-24 22:40:41 +00003456 * Add interruptability to search functions. New functions enable_nodelay and
3457 disable_nodelay and changes to the routines to handle checking for pending
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003458 searches. Fixes Savnnah bug #24946: Need interrrupt for search.
Chris Allegretta0dc26dc2009-01-24 22:40:41 +00003459
Chris Allegrettaa1171632009-01-19 19:10:39 +000034602009-01-19 Chris Allegretta <chrisa@asty.org>
Chris Allegretta0dc26dc2009-01-24 22:40:41 +00003461 * Change function definitions to shorts instead of (void *)s. New mapping function
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003462 iso_me_harder_funcmap(). Fixes compilation complaints with -pedantic,
Chris Allegrettaa1171632009-01-19 19:10:39 +00003463 reported by Eitan Adler <eitanadlerlist@gmail.com>.
3464
Chris Allegretta2f2f4d32008-11-10 06:33:12 +00003465GNU nano 2.1.7 - 2008.11.10
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003466
Chris Allegretta95add8d2008-10-21 10:20:07 +000034672008-10-20 Chris Allegretta <chrisa@asty.org>
3468 * files.c (do_writeout): Add check for file modification when saving
3469 the file so the user can at least know they may be blowing away changes.
3470
Chris Allegretta2a044ee2008-10-14 16:46:58 +000034712008-10-14 Chris Allegretta <chrisa@asty.org>
3472 * nanorc.5: Fix redo man page entry and update explanation, reported by
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003473 Eitan Adler <eitanadlerlist@gmail.com>.
Chris Allegretta973addc2008-10-15 01:25:25 +00003474 * global.c (shortcut_init), search.c (search_init): Fix add_to_sclist for ^W^T so
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003475 invalid messages will display properly. Fixes Savannah bug #24507.
Chris Allegretta2a044ee2008-10-14 16:46:58 +00003476
Chris Allegrettac84e7652008-10-14 01:14:12 +000034772008-10-13 Chris Allegretta <chrisa@asty.org>
3478 * Remove CUTTOEND as an undo type as it's unneeded, fix u->to_end logic in undo struct.
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003479 * undo.c (update_undo): Don't free cutbuffer if NULL, fixes Savannah bug #24499.
Chris Allegrettac84e7652008-10-14 01:14:12 +00003480
Chris Allegretta5c1c1432008-10-04 11:10:11 +000034812008-10-04 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003482 * cut.c (add_undo): Save last cut undo information so it can be used for
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003483 next uncut, fixes Savannah bug #24183.
Chris Allegretta5c1c1432008-10-04 11:10:11 +00003484
Chris Allegretta8f0a9212008-10-03 22:20:43 +00003485GNU nano 2.1.6 - 2008.10.03
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003486
Chris Allegretta513157d2008-10-03 21:00:35 +000034872008-10-03 Pascal Gentil <pascal.gentil@univ-rennes1.fr>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003488 * fortran.nanorc: Sample Fortran syntax highlighting file.
Chris Allegretta513157d2008-10-03 21:00:35 +00003489
34902008-09-30 Dirkjan Ochtman <dirkjan@ochtman.nl>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003491 * python.nanorc: Small Python syntax update.
Chris Allegrettafa195e62008-10-01 00:55:13 +00003492
Chris Allegretta215eb362008-10-01 00:49:19 +000034932008-09-30 <bluestorm_dylc@hotmail.com>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003494 * ocaml.nanorc: Sample OCaml syntax highlighting file.
Chris Allegretta215eb362008-10-01 00:49:19 +00003495
34962008-09-30 Dave Geering <dgeering@toshiba-tap.com>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003497 * objc.nanorc: Sample Objective-C syntax hightlighting file.
Chris Allegretta215eb362008-10-01 00:49:19 +00003498
Chris Allegretta8227d412008-09-30 14:30:33 +000034992008-09-30 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003500 * configure.ac: Change extra, multibuffer, color and rcfile configure options
3501 to default to enabled --enable-tiny will now disable these options as well.
3502 * python.nanorc, ruby.nanorc: Add header lines for Python and Ruby as well.
Chris Allegretta215eb362008-10-01 00:49:19 +00003503
Chris Allegrettaf30c1392008-09-21 23:02:30 +000035042008-09-21 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003505 * rcfile.c, color.c, nano.h: Add new capability for matching a syntax type by
3506 the "header" (1st line) of a file being edited. Based on Savannah bug #24197
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003507 and initial proof of concept by Dave Geering <dgeering@toshiba-tap.com>.
Chris Allegretta215eb362008-10-01 00:49:19 +00003508
Chris Allegrettab549f372008-09-16 21:35:19 +000035092008-09-16 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003510 * text.c: Add support for undoing a text uncut. Split out the undo and redo
3511 of a text cut in order to avoid code duplication.
Chris Allegretta215eb362008-10-01 00:49:19 +00003512
Chris Allegrettae137f122008-09-06 06:52:47 +000035132008-09-06 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg64c00b52014-02-24 19:00:11 +00003514 * nano.c: Do call disable_signals at startup regardless, since under Cygwin
3515 we can't generate ^C without it.
Chris Allegrettae137f122008-09-06 06:52:47 +00003516
Chris Allegretta566635e2008-08-30 21:40:33 +00003517GNU nano 2.1.5 - 2008.08.30
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003518
Chris Allegretta6b83e522008-08-30 05:16:20 +000035192008-08-29 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003520 * configure.ac, color.c, rcfile.c, utils.c: 1st attempt at supporting systems
3521 which don't support GNU-style word boundaries. New function fixbounds() to
3522 translate from GNU-style to BSD-style, autoconf option GNU_WORDBOUNDS.
3523 * nano-regress: New perl script to check for some of the more obvious issues
3524 with compilation issues with certain configure options.
3525 * global.c, help.c, browser.c, files.c, proto.h: Fix several compilation and
3526 programmatic issues with --disable-help, especially that do-writeout was
3527 treating ^G the same as ^M.
Chris Allegretta6b83e522008-08-30 05:16:20 +00003528
Chris Allegrettafaeeb5b2008-08-28 06:13:05 +000035292008-08-28 Chris Allegretta <chrisa@asty.org>
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00003530 * configure.ac, rcfile.c: Add support for an alternate rcfilename at configure time. Maybe this
Chris Allegrettafaeeb5b2008-08-28 06:13:05 +00003531 should become a command line option some day, but I don't see the need currently. Start of
3532 fix for Savannah bug #24128: Add nanorc support to win32 platform.
3533
Chris Allegretta77bf1b52008-08-21 04:21:06 +000035342008-08-21 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003535 * text.c: Change error messages where we may possibly get into a bad state and urge the
3536 user to save when this happens. Originally by Benno Schulenberg <bensberg@justemail.net>
3537 * text.c (do_enter): Fix issue when compiled with --enable-debug, fixes Savannah bug #24092.
Chris Allegretta77bf1b52008-08-21 04:21:06 +00003538
Chris Allegretta90ad8e22008-08-17 16:25:40 +000035392008-08-08 Magnus Granberg <zorry@ume.nu> / Adam Conrad <?>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003540 * files.c (write_file): Add needed flags to open() calls when writing out files.
3541 Fixes Savannah bug #23827: Compilation fails with -D_FORTIFY_SOURCE=2.
Chris Allegretta90ad8e22008-08-17 16:25:40 +00003542
Chris Allegretta2cc58882008-08-16 23:54:15 +000035432008-08-08 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003544 * files.c (write_file): Check the exit code of fclose(), since in certain
3545 out-of-space conditions the OS will happily report successful fwrite()s
3546 until you try and close the file. Fixes Savannah bug #24000: no free
3547 space on partition - nano claims successful write - file is empty.
Chris Allegretta2cc58882008-08-16 23:54:15 +00003548
Chris Allegrettad2780ec2008-08-09 10:25:22 +00003549GNU nano 2.1.4 - 2008.08.09
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003550
Chris Allegretta447f1b42008-08-09 03:39:10 +000035512008-08-08 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003552 * files.c (write_file): Do not go on and attempt to write the main file if writing
3553 the backup file failed, related to Savannah bug #24000.
Chris Allegretta5c27d722008-08-09 09:28:07 +00003554 * text.c (do_redo): Fix improperly restoring the text when redoing a line split.
Chris Allegrettaf9e94642013-06-14 02:29:15 +00003555 * text.c (add_undo): Fix check for multi-line cut check skips adding other new legit events.
Chris Allegretta447f1b42008-08-09 03:39:10 +00003556
Chris Allegretta6f681c12008-08-08 03:02:03 +000035572008-07-23 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003558 * text.c: Reset openfile-> to OTHER after an undo or redo so we don't
Chris Allegretta6f681c12008-08-08 03:02:03 +00003559 mistakenly think this is an update when it's really an add. Also
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003560 fix an extra ; after an if statement which makes nano try to free
3561 a struct which may be NULL.
Chris Allegretta6f681c12008-08-08 03:02:03 +00003562
Chris Allegretta599c5592008-08-05 01:35:42 +00003563GNU nano 2.1.3 - 2008.08.04
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003564
Chris Allegrettae418b692008-07-31 17:01:47 +000035652008-07-23 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003566 * configure.ac: Add ncursesw dir to include path if lib is detected.
Chris Allegrettae418b692008-07-31 17:01:47 +00003567
Chris Allegretta9fb13fb2008-07-12 02:52:08 +000035682008-07-11 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003569 * doc/nanorc.sample.in: Include the updated files in the default sample nanorc.
Chris Allegretta9fb13fb2008-07-12 02:52:08 +00003570
Chris Allegrettab8576782008-07-12 02:32:19 +000035712008-07-11 Fabian Groffen <grobian@gentoo.org>
3572 * nano.c: Don't include langinfo.h if not using ENABLE_UTF8
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003573 (Savannah patch #6565).
Chris Allegrettab8576782008-07-12 02:32:19 +00003574
Chris Allegretta09b81242008-07-12 01:54:49 +000035752008-07-11 Mitsuya Shibata <mty.shibata@gmail.com>
3576 * text.c: Fix crashing in help menu when using certain locales
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003577 (Savannah bug #23751).
Chris Allegretta09b81242008-07-12 01:54:49 +00003578
Chris Allegretta07fcc4c2008-07-10 20:13:04 +000035792008-07-09 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaf9e94642013-06-14 02:29:15 +00003580 * nano.c/nano.h/global.c/text.c: New generalized undo code, currently
Chris Allegretta07fcc4c2008-07-10 20:13:04 +00003581 just works for adding and deleting text and splitting and unsplitting lines.
3582
Chris Allegretta1347f222008-06-29 06:22:31 +000035832008-06-29 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003584 * global.c: Fix for not having a search history when --disable-justify is used
3585 (Savannah bug #23733).
Chris Allegretta1347f222008-06-29 06:22:31 +00003586
Chris Allegretta2c367bf2008-06-25 03:35:15 +00003587GNU nano 2.1.2 - 2008.06.24
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003588
Chris Allegretta47a7ac22008-06-25 03:09:10 +000035892008-06-24 Chris Allegretta <chrisa@asty.org>
3590 * rcfile.c: Added function check_bad_binding() to look for sequences which
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003591 shouldn't be bound, per Savannah bug #22674.
Chris Allegretta47a7ac22008-06-25 03:09:10 +00003592
Chris Allegretta506af6f2008-05-31 22:49:55 +000035932008-05-31 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003594 * prompt.c,search.c,global.c: Tentative fix for bug #23144: using arrow
3595 keys in search buffer affects main window (by Mike Frysinger).
Chris Allegretta1371fb62008-06-03 06:21:31 +00003596
35972008-05-31 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003598 * global.c: Fix for Savannah bug #23442: left/right arrow keys
3599 do not work with --enable-tiny (by Mike Frysinger).
Chris Allegretta3daeeeb2008-06-03 05:55:04 +00003600
36012008-05-31 Chris Allegretta <chrisa@asty.org>
Chris Allegretta8b6461f2008-05-31 23:09:40 +00003602 * files.c,proto.h,text.c: Fix for conflicts with AIX curses
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003603 variables, from William Jojo <jojowil@hvcc.edu>.
Chris Allegretta8b6461f2008-05-31 23:09:40 +00003604
36052008-05-31 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003606 * global.c: Fix for compile error when --disable-speller is used
3607 (Savannah bug #23227 by Mike Frysinger).
Chris Allegretta33a8b4e2008-04-02 04:08:09 +00003608
Chris Allegrettaed505f52008-05-31 21:59:53 +000036092008-05-31 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg1265e4a2014-03-31 09:22:19 +00003610 * Fix for seg fault when window size is too small,
3611 by Andreas Amann <andreas.amann@tyndall.ie>.
Chris Allegrettae67bf802008-05-31 22:23:16 +00003612
Chris Allegrettaf9cf3622008-05-31 22:33:32 +00003613GNU nano 2.1.1 - 2008.04.01
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003614
Chris Allegrettae67bf802008-05-31 22:23:16 +000036152008-05-31 Chris Allegretta <chrisa@asty.org>
Chris Allegrettaed505f52008-05-31 21:59:53 +00003616 * Added the following contributed files, by owner:
3617 Donnie Berkholz <dberkholz@gentoo.org>
3618 * Sample awk.nanorc
3619 Simon Rupf <simon.rupf@int-ag.ch>
3620 * Sample css.nanorc
3621 Josef 'Jupp' Schugt <jupp@rubyforge.org>
Benno Schulenberg59fdd4d2015-07-18 19:06:42 +00003622 * Sample ruby.nanorc
Chris Allegrettaed505f52008-05-31 21:59:53 +00003623
Chris Allegretta33a8b4e2008-04-02 04:08:09 +000036242008-03-31 Chris Allegretta <chrisa@asty.org>
3625 * global.c: Fix for issues compiling with --enable-tiny and
3626 --enable-multibuffer, as reported by Mike Frysinger.
3627 * files.c: Fix the fact that the insert file prompt text did not
3628 properly appears in tiny mode.
3629
Chris Allegrettab04248c2008-03-20 05:56:46 +000036302008-03-19 Benno Schulenberg <bensberg@justemail.net>
3631 * help.c, nano.c: Fix toggle help not being translated, fix allocation
3632 issue.
3633
Chris Allegretta2ea0b8f2008-03-20 04:57:46 +000036342008-03-19 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003635 * global.c: Fix bracket matching sequence to be M-] not M-[, as reported
Chris Allegretta2ea0b8f2008-03-20 04:57:46 +00003636 Nick Warne <nick@ukfsn.org>.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003637 * doc/syntax/Makefile.am: Actually include new syntaxes from Mike, etc.
3638 * debian.nanorc: New debian sources.list config since we're including
3639 gentoo, adapted from Milian Wolff <mail@milianw.de>.
Chris Allegretta2ea0b8f2008-03-20 04:57:46 +00003640
36412008-03-18 Mike Frysinger <vapier@gentoo.org>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003642 * winio.c: Remove unneeded variable in parse_kbinput().
3643 * rcfile.c: Relocate check_vitals_mapped() function to just above where
3644 it actually gets used and declare it "static void" in the process.
3645 * global.c: Only declare nano_justify_msg when justify support is enabled.
3646 * php.nanorc: Php syntax highlighting config.
3647 * tcl.nanorc: Tcl syntax highlighting config.
3648 * gentoo.nanorc: Gentoo syntax highlighting config.
Chris Allegretta90ee8ee2008-03-20 04:45:55 +00003649
Chris Allegretta1fb25fd2008-03-18 03:06:27 +000036502008-03-17 Benno Schulenberg <bensberg@justemail.net>
Chris Allegretta90ee8ee2008-03-20 04:45:55 +00003651 * global.c: Fix incorrect first line jump messsage, fix
Benno Schulenberg619b2162014-03-30 21:23:40 +00003652 more comments to assist translators.
Chris Allegretta90ee8ee2008-03-20 04:45:55 +00003653 * winio.c: Fix shortcut labels not being translated.
Chris Allegretta1fb25fd2008-03-18 03:06:27 +00003654
Chris Allegretta8ded73e2008-03-18 02:44:39 +000036552008-03-17 Mike Frysinger <vapier@gentoo.org>
Benno Schulenbergbe3e4402014-07-07 18:46:47 +00003656 * */.gitignore: Git ignore files for those running a local git
3657 against SVN.
Chris Allegretta8ded73e2008-03-18 02:44:39 +00003658
Chris Allegrettad3659f82008-03-16 23:57:14 +000036592008-03-16 Benno Schulenberg <bensberg@justemail.net>
Benno Schulenberg619b2162014-03-30 21:23:40 +00003660 * src/help.c, src/global: Fix help strings no longer being
Chris Allegrettad3659f82008-03-16 23:57:14 +00003661 translated properly.
Benno Schulenberg619b2162014-03-30 21:23:40 +00003662 * src/global.c, doc/man/nanorc.5: Fix typos and poorly worded
3663 lines in the source and man pages.
Chris Allegrettad3659f82008-03-16 23:57:14 +00003664
Benno Schulenberg113cd502016-01-09 21:10:39 +000036652008-03-04 Chris Allegretta <chrisa@asty.org>
Chris Allegretta1fb25fd2008-03-18 03:06:27 +00003666 * everything: New shortcut backend. New structs subnfunc
Benno Schulenberg619b2162014-03-30 21:23:40 +00003667 for menu functions and toggles and sc for shortcut keys, old
3668 'shortcut' and 'toggles' structs are gone. The current implementation
3669 has a bunch of broken stuff (some of which is documented in BUGS).
Chris Allegretta90218062008-03-05 07:35:01 +00003670 Updated nanorc.5 with some mostly complete documentation on configuring.
3671
David Lawrence Ramsey9fff4e12007-12-20 18:41:04 +000036722007-12-20 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey9fff4e12007-12-20 18:41:04 +00003673 * AUTHORS, doc/faq.html: Update maintenance information.
David Lawrence Ramsey200f0c82007-12-20 18:57:41 +00003674 * NEWS: Resync with NEWS from the 2.0 branch.
David Lawrence Ramsey9fff4e12007-12-20 18:41:04 +00003675
David Lawrence Ramsey3fb62b82007-12-18 22:00:17 +000036762007-12-18 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey3fb62b82007-12-18 22:00:17 +00003677 * nano.c (print_opt_full): Use strlenpt() instead of strlen(),
3678 so that tabs are placed properly when displaying translated
3679 strings in UTF-8, as found by Jean-Philippe Guérard.
3680
David Lawrence Ramseye3a02632007-12-17 23:05:11 +000036812007-12-17 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyf78bc852007-12-18 15:55:48 +00003682 * configure.ac, doc/texinfo/nano.texi, nano.c (terminal_init):
3683 Change slang curses emulation support to turn off the same
3684 options as --enable-tiny, as it's hopelessly broken otherwise.
David Lawrence Ramsey7f6f5a62007-12-18 02:03:00 +00003685 * nano.c (disable_signals, main): Simplify terminal handling by
David Lawrence Ramseyf78bc852007-12-18 15:55:48 +00003686 using raw mode instead of cbreak mode.
David Lawrence Ramsey8b9c91b2007-12-18 01:28:53 +00003687 * text.c (execute_command): Call terminal_init() instead of just
3688 disable_signals() after executing the command, as the command
3689 may have changed the terminal settings.
David Lawrence Ramsey7f6f5a62007-12-18 02:03:00 +00003690 * ChangeLog.pre-2.1: Add missing attribution.
3691 * NEWS: Resync with NEWS from the 2.0 branch.
David Lawrence Ramseye3a02632007-12-17 23:05:11 +00003692
David Lawrence Ramseye68748a2007-12-10 17:59:26 +000036932007-12-10 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseye68748a2007-12-10 17:59:26 +00003694 * nano.c (main): Exit if initscr() fails.
3695
David Lawrence Ramseyc63a5c02007-12-09 18:28:36 +000036962007-12-09 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyc63a5c02007-12-09 18:28:36 +00003697 * faq.html: Add minor punctuation and wording fixes, and update
3698 various sections to account for Alpine.
3699
David Lawrence Ramsey281a4692007-12-08 07:00:27 +000037002007-12-08 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey281a4692007-12-08 07:00:27 +00003701 * prompt.c (do_statusbar_mouse, reset_statusbar_cursor,
3702 update_statusbar_line, need_statusbar_horizontal_update): Fix
3703 minor display and cursor placement problems when scrolling
3704 between pages at the statusbar prompt.
3705
David Lawrence Ramsey97a6ecb2007-12-08 04:21:15 +000037062007-12-07 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey97a6ecb2007-12-08 04:21:15 +00003707 * winio.c (get_mouseinput): Fix longstanding problem where mouse
3708 clicks on the statusbar prompt text wouldn't be recognized
3709 unless the NO_HELP flag was turned off.
David Lawrence Ramseycd79a812007-12-08 04:27:44 +00003710 * doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices,
3711 as Thijs Kinkhorst's copyrights have now been assigned to the
3712 Free Software Foundation.
David Lawrence Ramsey97a6ecb2007-12-08 04:21:15 +00003713
David Lawrence Ramsey98958e82007-12-04 16:38:47 +000037142007-12-04 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey98958e82007-12-04 16:38:47 +00003715 * nano.c (main), prompt.c (get_prompt_string), winio.c
3716 (do_replace_highlight): Per OKATA Akio's patch, with minor
3717 tweaks by me, add wnoutrefresh() calls after
3718 reset_(statusbar_)?cursor() calls, to ensure that the cursor is
3719 placed properly when using NetBSD curses.
David Lawrence Ramsey9bd537f2007-12-04 20:49:09 +00003720 * nano.c (disable_mouse_support, enable_mouse_support): When
3721 toggling mouse support on or off, save and restore the mouse
3722 click interval.
David Lawrence Ramsey98958e82007-12-04 16:38:47 +00003723
David Lawrence Ramsey38de45b2007-11-29 19:09:21 +000037242007-11-29 Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>
David Lawrence Ramsey38de45b2007-11-29 19:09:21 +00003725 * doc/man/fr/*.1, doc/man/fr/nanorc.5: Fix copyright notices.
3726 The copyrights are disclaimed on these translations, but the
3727 copyrights of the untranslated works also apply.
3728
David Lawrence Ramsey9b5f4632007-11-28 17:09:42 +000037292007-11-28 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey9b5f4632007-11-28 17:09:42 +00003730 * doc/man/fr/nanorc.5: Remove trailing whitespace.
3731
David Lawrence Ramseycfd4b892007-11-17 20:34:38 +000037322007-11-17 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseycfd4b892007-11-17 20:34:38 +00003733 * files.c (read_file): Improve autodetection of DOS and Mac
3734 format files to not trigger on carriage returns in the middle of
3735 files, as found by Kjell Braden.
3736
David Lawrence Ramsey4510bac2007-11-06 22:58:33 +000037372007-11-06 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey4510bac2007-11-06 22:58:33 +00003738 * doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices,
3739 as Jordi Mallach's copyrights have now been assigned to the Free
3740 Software Foundation.
3741
David Lawrence Ramsey4fe5edb2007-11-05 17:18:16 +000037422007-11-05 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey4fe5edb2007-11-05 17:18:16 +00003743 * search.c (do_gotolinecolumn): Use a clearer error message if
3744 we enter an invalid line or column number, per Mike Melanson's
3745 suggestion.
3746
David Lawrence Ramseyd8a1d372007-10-11 05:01:32 +000037472007-10-11 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyd8a1d372007-10-11 05:01:32 +00003748 * doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi,
3749 src/*.c, src/*.h: Update copyright notices, as Chris
3750 Allegretta's copyrights have now been assigned to the Free
3751 Software Foundation.
3752 * doc/man/nanorc.5, doc/man/fr/nanorc.5: Make copyright notices
3753 for these files consistent in style.
David Lawrence Ramseyb4b55362007-10-11 15:19:45 +00003754 * files.c (cwd_tab_completion): Remove unneeded assert.
David Lawrence Ramsey6e6c80b2007-10-11 15:38:32 +00003755 * files.c (username_tab_completion, cwd_tab_completion): Rename
3756 variable buflen to buf_len, for consistency.
David Lawrence Ramsey4821ac62007-10-11 15:49:08 +00003757 * files.c (input_tab): Disable completion of usernames,
3758 directories, and filenames if the cursor isn't at the end of the
3759 line, as it can lead to odd behavior (e.g. adding a copy of the
3760 entire match to the middle of the line instead of just the
3761 uncompleted part of the match).
David Lawrence Ramseyd8a1d372007-10-11 05:01:32 +00003762
David Lawrence Ramseyc9694b72007-10-05 16:44:45 +000037632007-10-05 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyc9694b72007-10-05 16:44:45 +00003764 * src/*.c, src/*.h: Update copyright notices, as my copyrights
3765 have now been assigned to the Free Software Foundation.
3766
David Lawrence Ramsey1072fce2007-09-16 16:53:20 +000037672007-09-16 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey1072fce2007-09-16 16:53:20 +00003768 * winio.c (edit_scroll): Fix problem where the screen wouldn't
3769 be updated properly if you paged up with the first line of the
3770 file onscreen and the mark on.
3771
David Lawrence Ramseycd7a3132007-08-26 15:21:05 +000037722007-08-26 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseycd7a3132007-08-26 15:21:05 +00003773 * doc/faq.html: Update links to the Free Translation Project.
3774
David Lawrence Ramseyc1f4b9e2007-08-24 00:36:51 +000037752007-08-23 Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>
David Lawrence Ramseyc1f4b9e2007-08-24 00:36:51 +00003776 * doc/man/fr/*.1, doc/man/fr/nanorc.5: Add translation of new
3777 licensing terms.
3778
David Lawrence Ramseyac154c32007-08-23 14:00:58 +000037792007-08-23 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyac154c32007-08-23 14:00:58 +00003780 * doc/man/fr/*.1, doc/man/fr/nanorc.5: Delete translation of
3781 old licensing terms, until it can be updated.
3782
David Lawrence Ramseye3eed022007-08-23 04:34:35 +000037832007-08-22 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseye3eed022007-08-23 04:34:35 +00003784 * COPYING.DOC: Add a copy of the GNU FDL version 1.2.
3785 * Makefile.am: Add COPYING.DOC to EXTRA_DIST.
3786 * doc/man/*.1, doc/man/nanorc.5, doc/man/fr/*.1,
3787 doc/man/fr/nanorc.5, doc/texinfo/nano.texi: Relicense to the GNU
3788 GPL version 3 or later/the GNU FDL version 1.2 or later with no
3789 Invariant Sections, Front-Cover Texts, or Back-Cover Texts.
3790
David Lawrence Ramsey093a4412007-08-21 16:38:43 +000037912007-08-21 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseya22b2672007-08-21 17:00:42 +00003792 * doc/man/rnano.1, doc/man/fr/rnano.1: Add missing copyright
3793 notice from nano-tiny.1, which rnano.1 is based on.
3794 * doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
3795 Make all copyright notices consistent.
David Lawrence Ramsey093a4412007-08-21 16:38:43 +00003796
David Lawrence Ramsey64b8f422007-08-16 14:45:17 +000037972007-08-16 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey64b8f422007-08-16 14:45:17 +00003798 * files.c (do_insertfile): Properly handle more cases of
3799 inserting a file with the mark on.
3800 * nano.c (copy_from_file): Properly handle more cases of
3801 uncutting text with the mark on.
3802
David Lawrence Ramseybf700872007-08-15 22:40:33 +000038032007-08-15 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseybf700872007-08-15 22:40:33 +00003804 * Makefile.am: Remove erroneous backslash after
3805 ChangeLog.pre-2.1 in EXTRA_DIST, so that "make dist" works
3806 again.
David Lawrence Ramsey908b1272007-08-16 02:34:23 +00003807 * files.c (do_insertfile): Make sure the mark is always properly
David Lawrence Ramseyee894182007-08-16 03:23:30 +00003808 positioned after inserting a file with the mark on.
3809 * nano.c (copy_from_file): Make sure the mark is always properly
3810 positioned after uncutting multiple lines with the mark on.
David Lawrence Ramseybf700872007-08-15 22:40:33 +00003811
David Lawrence Ramseyd0035b42007-08-11 05:17:36 +000038122007-08-11 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyd0035b42007-08-11 05:17:36 +00003813 * COPYING: Add a copy of the GNU GPL version 3.
3814 * configure.ac, *.c, *.h: Relicense to the GNU GPL version 3 or
3815 later.
3816
David Lawrence Ramsey273c1132007-08-10 17:03:29 +000038172007-08-10 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyfd21be12007-08-10 22:12:39 +00003818 * files.c (username_tab_completion, cwd_tab_completion,
3819 input_tab): Update copyright notice to account for
3820 modifications.
David Lawrence Ramsey273c1132007-08-10 17:03:29 +00003821 * utils.c (ngetdelim): Simplify.
3822 * utils.c (ngetline, ngetdelim): Update copyright notice to
3823 account for modifications.
3824
David Lawrence Ramseyd1ab89a2007-08-07 20:21:39 +000038252007-08-07 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyd1ab89a2007-08-07 20:21:39 +00003826 * nano.c (copy_from_file): Fix potential segfault, found by Paul
3827 Goins, after uncutting one line of text with the mark on by
3828 properly preserving the beginning of the mark.
3829 * nano.c (copy_from_file): Make sure the mark is always properly
3830 positioned after uncutting one line of text with the mark on.
3831
David Lawrence Ramsey129dfb62007-08-01 12:49:57 +000038322007-08-01 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey129dfb62007-08-01 12:49:57 +00003833 * nano.c (version): Display copyright notices.
3834
David Lawrence Ramseycb535632007-07-31 21:20:08 +000038352007-07-31 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey396f6652007-08-01 01:28:39 +00003836 * configure.ac: Update copyright notice to account for
3837 modifications.
David Lawrence Ramseycb535632007-07-31 21:20:08 +00003838
David Lawrence Ramsey1f5c89f2007-07-29 16:30:27 +000038392007-07-29 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey1f5c89f2007-07-29 16:30:27 +00003840 * doc/faq.html: Update RPM links for nano 2.0.x.
3841
David Lawrence Ramsey36784772007-07-12 03:12:31 +000038422007-07-11 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey36784772007-07-12 03:12:31 +00003843 * files.c (copy_file): Assert that inn and out don't both point
3844 to the same file.
3845
David Lawrence Ramsey9276f4d2007-07-10 22:54:58 +000038462007-07-10 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey9276f4d2007-07-10 22:54:58 +00003847 * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
David Lawrence Ramseyfe1bc662007-07-14 16:41:40 +00003848 mbrevstrcasestr): Simplify and rewrite to use the strncasecmp()
3849 equivalents.
David Lawrence Ramsey9276f4d2007-07-10 22:54:58 +00003850
David Lawrence Ramseybebfd9f2007-07-09 22:36:32 +000038512007-07-09 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey36536672007-07-09 22:57:07 +00003852 * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
3853 mbrevstrcasestr): Fix typo that broke the check for needle's
3854 being blank.
David Lawrence Ramseybebfd9f2007-07-09 22:36:32 +00003855 * chars.c (mbstrncasecmp, mbstrnlen, mbstrpbrk,
3856 has_blank_mbchars): Simplify by using for loops instead of while
3857 loops where possible, to match the single-byte versions of these
3858 functions.
David Lawrence Ramseya90e6c32007-07-09 23:24:37 +00003859 * search.c (do_replace_loop): Fix problem where replacing e.g.
3860 single-byte characters with multibyte ones could result in
3861 openfile->totsize's being miscalculated.
David Lawrence Ramseybebfd9f2007-07-09 22:36:32 +00003862
David Lawrence Ramseyae46b912007-07-06 13:44:13 +000038632007-07-06 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyae46b912007-07-06 13:44:13 +00003864 * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
3865 mbrevstrcasestr): Return char* instead of const char*.
3866
David Lawrence Ramsey71058302007-07-02 15:45:13 +000038672007-07-02 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey71058302007-07-02 15:45:13 +00003868 * chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
David Lawrence Ramsey08077ec2007-07-02 15:49:05 +00003869 mbrevstrcasestr): For efficiency, return haystack/rev_start
3870 immediately if needle is blank.
David Lawrence Ramsey71058302007-07-02 15:45:13 +00003871
David Lawrence Ramsey444f8022007-07-01 21:46:00 +000038722007-07-01 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey444f8022007-07-01 21:46:00 +00003873 * chars.c (nstrncasecmp, mbstrncasecmp): For efficiency, return
3874 zero immediately if s1 and s2 point to the same string.
3875
David Lawrence Ramsey23a4e432007-06-30 21:19:42 +000038762007-06-30 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey23a4e432007-06-30 21:19:42 +00003877 * prompt.c (do_yesno_prompt): Remove redundant check for
3878 NO_HELP's being FALSE.
3879
David Lawrence Ramseyebc38fd2007-06-28 16:00:50 +000038802007-06-28 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyebc38fd2007-06-28 16:00:50 +00003881 * browser.c (do_browser), nano.c (do_mouse), prompt.c
3882 (do_statusbar_mouse, do_yesno_prompt): Further simplify
3883 processing of mouse events by consolidating if clauses.
David Lawrence Ramsey81acb972007-06-28 17:46:04 +00003884 * winio.c (do_mouseinput): Return unconditionally if we get a
3885 mouse event that we don't deal with, instead of inside an else
3886 clause.
David Lawrence Ramseyebc38fd2007-06-28 16:00:50 +00003887
David Lawrence Ramsey3a504702007-05-29 17:01:12 +000038882007-05-29 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey3a504702007-05-29 17:01:12 +00003889 * winio.c (do_mouseinput): Deal with clicks of the first mouse
3890 button again. Oddly, ncurses built without --enable-ext-mouse
3891 needs this, but ncurses built with --enable-ext-mouse doesn't.
3892
David Lawrence Ramseya78b4352007-05-25 14:39:40 +000038932007-05-25 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseya78b4352007-05-25 14:39:40 +00003894 * configure.ac, nano.c (main): Replace the current hackish check
3895 for a UTF-8 locale with a proper call to nl_langinfo().
David Lawrence Ramsey14aa37c2007-05-25 16:54:06 +00003896 * winio.c (get_key_buffer): Fix inaccurate comments.
David Lawrence Ramseya78b4352007-05-25 14:39:40 +00003897
David Lawrence Ramseybc653132007-05-22 17:20:28 +000038982007-05-22 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseybc653132007-05-22 17:20:28 +00003899 * browser.c (do_browser), nano.c (do_mouse), prompt.c
3900 (do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput):
3901 Simplify processing of mouse events. Instead of calling
3902 wenclose() to get the window a mouse event took place in and
3903 manually adjusting the returned coordinates to be relative to
3904 that window the mouse event took place in, call wmouse_trafo(),
3905 which does both.
3906
David Lawrence Ramsey3a5eaeb2007-05-20 23:41:56 +000039072007-05-20 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey54fdb752007-05-22 17:18:06 +00003908 * browser.c (do_browser), nano.c (do_mouse), prompt.c
3909 (do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput):
3910 Fix processing of mouse events so that those we don't handle are
3911 ignored instead of being erroneously passed through.
David Lawrence Ramsey3a5eaeb2007-05-20 23:41:56 +00003912 * winio.c (do_mouseinput): Simplify handling of mouse events
David Lawrence Ramsey3a504702007-05-29 17:01:12 +00003913 involving the first mouse button by only dealing with releases.
David Lawrence Ramsey3a5eaeb2007-05-20 23:41:56 +00003914 * winio.c (do_mouseinput): Improve mouse wheel support to only
3915 move the cursor if we're in the edit window or on the statusbar.
3916
David Lawrence Ramseyb9fa1b12007-05-15 18:04:25 +000039172007-05-15 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyb9fa1b12007-05-15 18:04:25 +00003918 * winio.c (do_mouseinput): Add mouse wheel support, per Helmut
David Lawrence Ramsey7f8bfca2007-05-15 19:33:56 +00003919 Jarausch's suggestion. Now, if mouse support is enabled, and
3920 nano is using a version of ncurses compiled with the
David Lawrence Ramseyb9fa1b12007-05-15 18:04:25 +00003921 --enable-ext-mouse option, rolling the mouse wheel up or down
3922 will move the cursor three lines up or down.
3923
David Lawrence Ramseyc88556c2007-04-23 15:39:01 +000039242007-04-23 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyc88556c2007-04-23 15:39:01 +00003925 * TODO: Add entries for fixing limitations with pasting text and
3926 handling bad/incomplete UTF-8 sequences.
3927
David Lawrence Ramseyee43ea62007-04-22 15:04:05 +000039282007-04-22 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseyee43ea62007-04-22 15:04:05 +00003929 * text.c (backup_lines): Avoid a segfault when the mark begins
3930 and ends on the line after the last line of the paragraph.
3931
David Lawrence Ramsey462720a2007-04-21 18:23:06 +000039322007-04-21 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey7622ca02007-04-21 18:57:47 +00003933 * files.c (do_writeout): If we're in restricted mode, we're not
3934 allowed to write selections to files, so don't display the
3935 "Write Selection to File" prompt.
David Lawrence Ramsey462720a2007-04-21 18:23:06 +00003936 * files.c (do_writeout): Simplify.
3937
David Lawrence Ramsey380a7082007-04-19 04:12:54 +000039382007-04-19 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey380a7082007-04-19 04:12:54 +00003939 * files.c (tail): Remove unneeded if statement.
3940
David Lawrence Ramseyb68cd632007-04-18 23:15:30 +000039412007-04-18 John M. Gabriele <jmg3000@gmail.com>
David Lawrence Ramseyb68cd632007-04-18 23:15:30 +00003942 * doc/faq.html: Add a new section 4.14 (with minor tweaks by
3943 David Lawrence Ramsey) to explain how autoindent affects pasted
3944 text.
3945
David Lawrence Ramseya31d54e2007-04-18 13:48:37 +000039462007-04-18 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey7fc36c72007-04-18 18:22:13 +00003947 * files.c (open_file): Open files using their full paths
3948 whenever possible, so that ~user/file.txt and "~user/file.txt"
3949 are treated the same way if ~user is a user's home directory.
David Lawrence Ramseydc588ae2007-04-18 17:13:36 +00003950 * files.c (real_dir_from_tilde): Simplify.
David Lawrence Ramseyb8dfcb32007-04-18 19:09:44 +00003951 * files.c (do_writeout): Properly display the warning in all
3952 cases if we try to save (a) an existing file under a different
3953 name, or (b) a file with no name under an existing file's name.
3954 * files.c (do_writeout): Rename variable different_name to
3955 do_warning, for clarity.
David Lawrence Ramsey7fc36c72007-04-18 18:22:13 +00003956 * rcfile.c (parse_include): Open files using their full paths
3957 whenever possible, so that ~user/file.txt and "~user/file.txt"
3958 are treated the same way if ~user is a user's home directory.
3959 * rcfile.c (parse_include): Properly check for the included
3960 file's being a directory, a character file, or a block file.
3961 * rcfile.c (parse_include): For consistency, display the
3962 filename as the user entered it if we can't read the specified
3963 file.
David Lawrence Ramsey6a8b3502007-04-18 14:06:34 +00003964 * winio.c (parse_kbinput): Interpret Cancel and Shift-Cancel.
David Lawrence Ramseya31d54e2007-04-18 13:48:37 +00003965 * winio.c (get_escape_seq_kbinput): Add missing comments.
3966
David Lawrence Ramseye93cfd12007-04-17 04:38:30 +000039672007-04-17 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey88bf4872007-04-18 13:45:57 +00003968 * files.c (real_dir_from_tilde): Fix long-standing problem,
3969 found by Justin Fletcher, where directory names that began with
3970 "~", but that weren't users' home directories, could be
3971 erroneously treated as users' home directories (e.g. "~d/" would
3972 be treated as "~daemon/").
David Lawrence Ramsey31023f02007-04-17 18:12:19 +00003973 * files.c (input_tab): Don't bother checking if num_matches is
David Lawrence Ramsey88bf4872007-04-18 13:45:57 +00003974 less than zero, as it's a size_t and hence unsigned.
David Lawrence Ramseye93cfd12007-04-17 04:38:30 +00003975
David Lawrence Ramseya1cf6be2007-04-17 03:43:59 +000039762007-04-16 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramsey88bf4872007-04-18 13:45:57 +00003977 * files.c (real_dir_from_tilde): Fix segfault, found by Justin
3978 Fletcher, when dealing with directory names that begin with "~",
3979 but that aren't users' home directories.
David Lawrence Ramseya1cf6be2007-04-17 03:43:59 +00003980
David Lawrence Ramseye081fb92007-04-11 22:18:16 +000039812007-04-11 Mike Frysinger <vapier@gentoo.org>
David Lawrence Ramseye081fb92007-04-11 22:18:16 +00003982 * doc/syntax/asm.nanorc, doc/syntax/c.nanorc,
3983 doc/syntax/sh.nanorc: Copy the regex that highlights trailing
David Lawrence Ramsey88bf4872007-04-18 13:45:57 +00003984 whitespace (with minor tweaks by David Lawrence Ramsey) from
3985 doc/syntax/java.nanorc to these files, as it's also useful in
3986 them.
David Lawrence Ramseye081fb92007-04-11 22:18:16 +00003987
David Lawrence Ramseya2c47042007-04-04 20:00:24 +000039882007-04-04 David Lawrence Ramsey <pooka109@gmail.com>
David Lawrence Ramseya2c47042007-04-04 20:00:24 +00003989 * AUTHORS, faq.html: Update email address.
David Lawrence Ramsey267daeb2007-04-04 20:36:56 +00003990 * winio.c (get_escape_seq_kbinput): Add escape sequences for
3991 Terminal.
David Lawrence Ramseya2c47042007-04-04 20:00:24 +00003992
David Lawrence Ramsey9f1db5d2007-02-01 13:40:59 +000039932007-02-01 Benno Schulenberg <bensberg@justemail.net>
David Lawrence Ramsey9f1db5d2007-02-01 13:40:59 +00003994 * global.c (shortcut_init): Reword the movement shortcut
3995 descriptions so that they use "Go to" instead of "Move to",
3996 since not all of them move the cursor in the same way.
3997 * global.c (shortcut_init): Reword the paragraph movement
3998 shortcut descriptions to more accurately describe how they work.
David Lawrence Ramsey817cb9e2007-02-01 15:25:29 +00003999 * nano.c (usage): Reword the description of the -S/--smooth
4000 command line option in order to differentiate it from the
4001 associated toggle description.
David Lawrence Ramsey9f1db5d2007-02-01 13:40:59 +00004002
Jordi Mallach94d8fe62007-01-30 19:48:52 +000040032007-01-29 David Lawrence Ramsey <pooka109@cox.net>
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004004 * ChangeLog: Rework the 2.1 branch's changelog to be more
4005 readable, per Jordi Mallach's suggestion.
4006 * ChangeLog.pre-2.1: Move the 2.0 branch's changelog here, per
4007 Jordi Mallach's suggestion.
David Lawrence Ramseydd7c9a32007-01-29 15:54:21 +00004008 * Makefile.am: Add ChangeLog.pre-2.1 to EXTRA_DIST.
David Lawrence Ramsey31d623f2007-01-29 15:45:50 +00004009 * src/help.c (help_init): Add a missing space to the "Execute
4010 Command" help text.