David Lawrence Ramsey | 013e8d1 | 2004-08-17 20:44:31 +0000 | [diff] [blame] | 1 | CVS code - |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 2 | - General: |
| 3 | - Convert more ints that hold only TRUE and FALSE values to |
| 4 | bools. (DLR) |
David Lawrence Ramsey | c7ca28a | 2004-09-07 21:51:49 +0000 | [diff] [blame] | 5 | - Consolidate the code for finding and running a shortcut in a |
| 6 | shortcut list, the code for finding and toggling a toggle in a |
| 7 | toggle list, and the code for doing both of those and |
| 8 | interpreting mouse clicks in the edit window. Also move the |
| 9 | code for do_mouse() to get_edit_mouse() and tweak it to |
| 10 | properly handle cases where a shortcut isn't clicked. New |
| 11 | functions get_shortcut(), get_toggle(), get_edit_input(), and |
| 12 | get_edit_mouse(); changes to do_browser(), do_justify(), |
| 13 | do_help(), and main(). (DLR) |
David Lawrence Ramsey | d132210 | 2004-08-26 04:22:54 +0000 | [diff] [blame] | 14 | - Simplify a few more translated messages. (DLR) |
Jordi Mallach | cc79a9a | 2004-08-31 00:23:16 +0000 | [diff] [blame] | 15 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 8bf0809 | 2004-09-01 22:08:57 +0000 | [diff] [blame] | 16 | - Remove reference to @includedir@ in src/Makefile.am, as it's |
| 17 | unneeded and can break cross-compilation. (DLR, found by Mike |
| 18 | Frysinger) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 19 | - Overhaul the file opening, reading, and loading operations to |
| 20 | increase efficiency, avoid problems on invalid filenames |
| 21 | specified on the command line, and eliminate corner cases that |
| 22 | erroneously leave edittop or current NULL when they shouldn't |
| 23 | be. Also split out the code to execute a command into a |
| 24 | separate function, eliminate a workaround for one of the |
| 25 | aforementioned corner cases, handle files with a mix of DOS |
| 26 | and Mac format lines, and remove the code to turn on the |
| 27 | NO_CONVERT flag when opening a binary file, as it's not always |
| 28 | reliable and will cause problems with UTF-8 text files. New |
| 29 | functions open_file(), execute_command(), and mallocstrassn(); |
| 30 | changes to read_line(), load_file(), read_file(), open_file(), |
| 31 | get_next_filename(), do_insertfile(), do_insertfile_void(), |
| 32 | do_alt_speller(), and edit_refresh(). (David Benbennick) DLR: |
| 33 | Add a few minor fixes to make sure that current is set |
| 34 | properly in all cases, indicate on the statusbar when the file |
| 35 | has a mix of DOS and Mac format lines, move the test for DOS |
| 36 | line endings from read_line() to read_file() to avoid |
| 37 | inaccurate statusbar messages and to reduce fileformat to a |
| 38 | local variable in read_file(), eliminate another workaround in |
| 39 | edit_update(), rename open_the_file() to open_file() since the |
| 40 | latter has been removed, and rename load_a_file() to |
| 41 | load_buffer(). |
David Lawrence Ramsey | db6015c | 2004-09-11 21:41:13 +0000 | [diff] [blame] | 42 | - Add alternative shortcuts for moving to the beginning and end |
| 43 | of a paragraph and justifying the entire file: Meta-( |
| 44 | (Meta-9), Meta-) (Meta-0), and Meta-J, respectively. Also add |
| 45 | these functions to the main shortcut list, as Pico's practice |
| 46 | of putting them in the search menu is rather odd. (DLR) |
David Lawrence Ramsey | 013344c | 2004-09-22 22:45:08 +0000 | [diff] [blame] | 47 | - Turn off extended input processing (the IEXTEN termios flag) |
| 48 | as nano 1.2.x does. New function disable_extended_input(); |
| 49 | changes to terminal_init(). (DLR) |
David Lawrence Ramsey | f3ca80e | 2004-09-23 21:52:58 +0000 | [diff] [blame] | 50 | - Remove redundant include of limits.h from nano.c. nano.c |
| 51 | includes nano.h and nano.h includes limits.h. (DLR) |
David Lawrence Ramsey | 146bb60 | 2004-08-27 21:02:38 +0000 | [diff] [blame] | 52 | - files.c: |
| 53 | do_insertfile() |
| 54 | - Readd the NANO_SMALL #ifdef around the start_again: label to |
| 55 | avoid a warning. (DLR) |
David Lawrence Ramsey | a16b27f | 2004-08-26 01:29:25 +0000 | [diff] [blame] | 56 | - global.c: |
| 57 | shortcut_init() |
| 58 | - Remove redundant NANO_SMALL #ifdef. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 59 | - nano.c: |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 60 | die_save_file() |
| 61 | - Clarify the error message when there are too many backup files |
| 62 | and the current one can't be written. (DLR) |
David Lawrence Ramsey | db6015c | 2004-09-11 21:41:13 +0000 | [diff] [blame] | 63 | help_init() |
| 64 | - Rework to be a bit more flexible. Only add tabs for shortcut |
| 65 | key entries if those entries exist, and if there's only one |
| 66 | entry left but there's room for more than one, add enough tabs |
| 67 | to put that entry at the end. These changes allow e.g. the |
| 68 | miscellaneous meta key sequence to be displayed in a shortcut |
| 69 | that has a control key, a primary meta key sequence, and a |
| 70 | miscellaneous meta key sequence, but no function key. (DLR) |
David Lawrence Ramsey | fd73c46 | 2004-09-11 21:28:36 +0000 | [diff] [blame] | 71 | justify_format() |
| 72 | - For more compatibility with Pico, remove extra space after a |
| 73 | character in punct if that character is the same as the one |
| 74 | before it. For example, with the default values of punct and |
| 75 | brackets, only one space will be left after "...". (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 76 | do_para_begin(), do_para_end() |
David Lawrence Ramsey | c510042 | 2004-08-27 20:28:34 +0000 | [diff] [blame] | 77 | - Maintain current_y's value when moving up or down lines so |
| 78 | that smooth scrolling works correctly. (DLR) |
David Lawrence Ramsey | d08348b | 2004-09-18 22:02:21 +0000 | [diff] [blame] | 79 | breakable(), break_line() |
| 80 | - Make goal a ssize_t instead of an int, since fill is now a |
| 81 | ssize_t, and the position at which a line is broken can be |
| 82 | greater than COLS. (DLR) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 83 | - nano.h: |
| 84 | - Add WIDTH_OF_TAB #define, containing the default width of a |
| 85 | tab. (DLR) |
David Lawrence Ramsey | 19420aa | 2004-08-18 16:14:18 +0000 | [diff] [blame] | 86 | - rcfile.c: |
| 87 | parse_rcfile() |
| 88 | - Add missing brackets around an if statement block so that |
| 89 | parsing the numeric argument after "tabsize" works properly |
| 90 | again. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 91 | - Since flag values are longs, use "%ld" instead of "%d" in the |
| 92 | debugging messages indicating when a flag is set or unset. |
| 93 | (DLR) |
David Lawrence Ramsey | c510042 | 2004-08-27 20:28:34 +0000 | [diff] [blame] | 94 | - search.c: |
| 95 | findnextstr() |
| 96 | - Take the no_sameline parameter after can_display_wrap and |
| 97 | wholewords, not after all other parameters. (DLR) |
| 98 | - Maintain current_y's value when moving up or down lines so |
| 99 | that smooth scrolling works correctly. (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 100 | - winio.c: |
David Lawrence Ramsey | dfca1c4 | 2004-08-25 16:37:06 +0000 | [diff] [blame] | 101 | unget_kbinput() |
| 102 | - New function used as a wrapper for ungetch(). (DLR) |
David Lawrence Ramsey | 6da969e | 2004-08-28 15:51:07 +0000 | [diff] [blame] | 103 | get_kbinput() |
| 104 | - When reading an escape sequence, set get_verbatim_kbinput()'s |
| 105 | new first parameter to the first character of the sequence |
| 106 | instead of putting that character back and reading the entire |
| 107 | sequence afterwards. (DLR) |
| 108 | get_verbatim_kbinput() |
| 109 | - Add new parameter first. If first isn't ERR, make it the |
| 110 | first character in the returned sequence instead of reading |
| 111 | the first character in via blocking input. (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 112 | get_mouseinput() |
| 113 | - Consolidate two if statements to increase efficiency. (DLR) |
David Lawrence Ramsey | fe0d366 | 2004-08-26 01:43:16 +0000 | [diff] [blame] | 114 | - Check kbinput against metaval instead of (erroneously) ctrlval |
| 115 | when putting back a meta sequence. (DLR) |
| 116 | - If there are more than MAIN_VISIBLE shortcuts available, only |
| 117 | register clicks on the first MAIN_VISIBLE shortcuts, since |
| 118 | bottombars() only shows that many shortcuts. (DLR) |
David Lawrence Ramsey | 72d8e54 | 2004-09-25 00:45:07 +0000 | [diff] [blame^] | 119 | nanogetstr() |
| 120 | - Refresh the screen when Ctrl-L is pressed at the statusbar |
| 121 | prompt, as Pico does. (DLR) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 122 | reset_cursor() |
| 123 | - If this is called before any files have been opened, as it can |
| 124 | be by statusbar(), put the cursor at the top left corner of |
| 125 | the edit window before getting out. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 126 | edit_refresh() |
| 127 | - Call edit_update() with NONE instead of CENTER when smooth |
| 128 | scrolling is on, for consistency with the movement routines. |
| 129 | (DLR) |
David Lawrence Ramsey | 20b8350 | 2004-08-26 18:07:58 +0000 | [diff] [blame] | 130 | edit_update() |
| 131 | - Simplify so as not to require the fileptr parameter anymore, |
| 132 | since it's set to current in all calls. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 133 | - Add comments better explaining what the update actually does, |
David Lawrence Ramsey | 4aece06 | 2004-08-28 16:34:28 +0000 | [diff] [blame] | 134 | and avoid an infinite loop when location is NONE and current_y |
| 135 | is greater than (editwinrows - 1). (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 136 | do_yesno() |
| 137 | - Don't bother assigning the value of get_mouseinput() to |
| 138 | anything. Since allow_shortcuts is FALSE, its return value |
| 139 | will always be FALSE. (DLR) |
David Lawrence Ramsey | 1a5c4c6 | 2004-09-07 00:48:49 +0000 | [diff] [blame] | 140 | - configure.ac: |
| 141 | - When calling AC_TRY_RUN() to test for a broken regexec() |
| 142 | function, set the fourth parameter to default to "no" (since |
| 143 | it apparently only occurs on glibc 2.2.3-based systems) so |
| 144 | that cross-compiling will work. (DLR, found by Mike Frysinger) |
Jordi Mallach | 1fabded | 2004-08-31 18:26:28 +0000 | [diff] [blame] | 145 | - nanorc.sample: |
David Lawrence Ramsey | 2a60ea8 | 2004-08-29 14:42:03 +0000 | [diff] [blame] | 146 | - Remove specific references to control key shortcuts other than |
| 147 | XON and XOFF. (DLR) |
Jordi Mallach | 1fabded | 2004-08-31 18:26:28 +0000 | [diff] [blame] | 148 | - doc/man/fr/nano.1, doc/man/fr/nanorc.1: |
| 149 | - Updated manpage translations by Jean-Philippe Guérard. |
David Lawrence Ramsey | 013e8d1 | 2004-08-17 20:44:31 +0000 | [diff] [blame] | 150 | |
David Lawrence Ramsey | c6718cf | 2004-08-17 20:38:44 +0000 | [diff] [blame] | 151 | GNU nano 1.3.4 - 2004.08.17 |
David Lawrence Ramsey | ebd0d7c | 2004-07-01 18:59:52 +0000 | [diff] [blame] | 152 | - General: |
| 153 | - More minor comment cleanups. (DLR) |
David Lawrence Ramsey | ce62e82 | 2004-08-05 22:10:22 +0000 | [diff] [blame] | 154 | - Convert more ints and functions using 0 and 1 to bools using |
| 155 | TRUE and FALSE. (David Benbennick and DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 156 | - Change more instances of ints that have large enough upper |
| 157 | bounds and which can never be negative to size_t's, and |
| 158 | convert nano to handle them properly. (DLR) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 159 | - Convert the shortcut list functions and most related functions |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 160 | to return void instead of int, as the return values of all |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 161 | those functions are essentially unused. Changes to |
| 162 | sc_init_one(), shortcut_init(), etc. (David Benbennick and |
| 163 | DLR) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 164 | - Make flags and all variables meant to store the value of flags |
| 165 | longs for consistency. (David Benbennick) |
| 166 | - Rename the TEMP_OPT flags to TEMP_FILE, as it's more |
| 167 | descriptive. (DLR) |
David Lawrence Ramsey | a5dda84 | 2004-07-08 15:27:04 +0000 | [diff] [blame] | 168 | - Remove unused global variable search_offscreen. (David |
| 169 | Benbennick) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 170 | - Add new N_() macro to mark strings that aren't translated |
| 171 | immediately, and convert nano to use it in cases where the |
David Lawrence Ramsey | 76f63ff | 2004-08-05 15:45:09 +0000 | [diff] [blame] | 172 | translated string is stored in a const char*. Changes |
| 173 | to sc_init_one(), print1opt(), help_init(), rcfile_error(), |
| 174 | do_credits(), etc. (David Benbennick) DLR: Do this for |
| 175 | toggle_init_one() too. |
| 176 | - Minor tweaks and clarifications to some option descriptions. |
| 177 | (DLR) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 178 | - Overhaul the shortcut list and toggle list initialization |
| 179 | code for efficiency. Changes to shortcut_init() and |
| 180 | toggle_init(). (David Benbennick) DLR: Move "Cancel" to just |
| 181 | after "Get Help" in the file browser list, for consistency |
| 182 | with all the other lists, have the replace list accept all the |
| 183 | same function keys as the search list, and clarify a few |
| 184 | shortcut descriptions. |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 185 | - Convert nano to use the new parse_num() function to read in |
| 186 | numeric values at the command line and in the rcfile, and |
| 187 | duplicate the messages used in the rcfile in the command line |
David Lawrence Ramsey | c53ab2a | 2004-08-04 18:24:53 +0000 | [diff] [blame] | 188 | for consistency. (David Benbennick) DLR: Tweak parse_num() to |
| 189 | parse ssize_t values instead of ints and to return a bool |
| 190 | indicating whether parsing succeeded. Convert tabsize, |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 191 | wrap_at, and fill to ssize_t in order to work with |
| 192 | parse_num() properly and also to increase their capacity |
| 193 | while keeping the ability to hold negative numbers in case of |
| 194 | errors. Also exit instead of calling usage() in the event of |
| 195 | an invalid fill value, for consistency with how an invalid |
David Lawrence Ramsey | 36dd87b | 2004-07-18 17:43:43 +0000 | [diff] [blame] | 196 | tabsize value is handled. Finally, handle invalid tabsize |
David Lawrence Ramsey | 04419b9 | 2004-07-18 18:13:54 +0000 | [diff] [blame] | 197 | entries in the rcfile the same way as on the command line, |
| 198 | and reset tabsize and wrap_at to their default values if |
| 199 | invalid rcfile entries are specified for them. |
David Lawrence Ramsey | aea4dab | 2004-07-13 17:09:24 +0000 | [diff] [blame] | 200 | - Remove several unnecessary reset_cursor() calls. (David |
| 201 | Benbennick) |
David Lawrence Ramsey | fd3039a | 2004-07-17 19:49:12 +0000 | [diff] [blame] | 202 | - Include <sys/types.h> in proto.h. (David Benbennick) DLR: |
| 203 | Remove some redundant inclusions of <sys/types.h> elsewhere. |
David Lawrence Ramsey | 8aaf030 | 2004-07-27 16:46:35 +0000 | [diff] [blame] | 204 | - Move the main terminal initialization functions, aside from |
| 205 | initscr(), into a new terminal_init() function, and convert |
| 206 | nano to use it. (DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 207 | - Convert placewewant to a size_t, and convert some functions |
| 208 | that use it as a parameter to use size_t as well. (David |
| 209 | Benbennick and DLR) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 210 | - Overhaul the paragraph searching code and some of the justify |
| 211 | code to clarify it and fix a bug where searches from the |
| 212 | previous paragraph would move up too far. Also make |
| 213 | quotestr-related variables global so that they only have to be |
| 214 | compiled once, and remove the no-longer-needed IFREG() macro. |
| 215 | New functions begpar() and inpar(); changes to quote_length(), |
| 216 | quotes_match(), do_para_search(), do_para_begin(), |
| 217 | do_para_end(), and do_justify(). (David Benbennick) |
David Lawrence Ramsey | a6d26d0 | 2004-07-30 22:52:44 +0000 | [diff] [blame] | 218 | - Readded the errors flag and moved the ending prompt from |
| 219 | rcfile_error() to parse_rcfile() so that we only get prompted |
| 220 | once for all errors instead of separately for each error. |
David Lawrence Ramsey | 7dfec43 | 2004-08-12 15:20:14 +0000 | [diff] [blame] | 221 | (DLR) David Benbennick: Make sure that no rcfile error |
| 222 | messages end in newlines, and show the ending prompt if we |
| 223 | can't read the .nano_history file while starting nano. |
David Lawrence Ramsey | b8c479a | 2004-07-31 14:10:23 +0000 | [diff] [blame] | 224 | - Don't treat the return value of strn?(case)?cmp() as boolean. |
| 225 | (DLR and David Benbennick) |
David Lawrence Ramsey | 76fb3ec | 2004-08-01 16:09:15 +0000 | [diff] [blame] | 226 | - Automatically install a symlink "rnano" pointing to nano. |
| 227 | Changes to src/Marefile.am. (DLR) |
David Lawrence Ramsey | 22fac78 | 2004-08-05 15:16:19 +0000 | [diff] [blame] | 228 | - Move the static int pid to the beginning of nano.c with all |
| 229 | the other static variables. (DLR) |
David Lawrence Ramsey | 00d7798 | 2004-08-07 21:27:37 +0000 | [diff] [blame] | 230 | - Consolidate some if blocks to remove some redundant code. |
| 231 | (David Benbennick) |
David Lawrence Ramsey | 73cd1a5 | 2004-08-05 21:57:48 +0000 | [diff] [blame] | 232 | - Fix warnings when compiling with ENABLE_NLS undefined and with |
| 233 | -the fwritable-strings option. (David Benbennick) |
David Lawrence Ramsey | 00d7798 | 2004-08-07 21:27:37 +0000 | [diff] [blame] | 234 | - Add various #ifdefs to fix warnings and compilation problems |
| 235 | when compiling with every option manually turned on, including |
| 236 | NANO_SMALL. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 237 | - Simplify some of the rcfile and statusbar error messages, and |
| 238 | make some of them more consistent. (David Benbennick and DLR) |
| 239 | - Change some functions to take const char*'s instead of char*'s |
| 240 | where possible. (David Benbennick) |
David Lawrence Ramsey | bb50b30 | 2004-08-12 21:43:00 +0000 | [diff] [blame] | 241 | - Tweak some #ifdefs around indent_length() and references to |
| 242 | fill_flag_used to avoid warnings when compiling with |
David Lawrence Ramsey | df13e3b | 2004-08-12 19:48:21 +0000 | [diff] [blame] | 243 | --disable-wrapping, --disable-justify, or a combination of the |
| 244 | two. (DLR) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 245 | - Overhaul the routines used to read the rcfiles and history |
| 246 | files for efficiency, make them work properly on lines over |
| 247 | 1023 characters long and on lines containing nulls, and make |
| 248 | them properly handle the case where the user's home directory |
| 249 | changes in the middle of a session. New functions |
| 250 | histfilename() and writehist(); changes to |
| 251 | thanks_for_all_the_fish(), load_history(), save_history(), and |
| 252 | do_rcfile(). (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 253 | - files.c: |
David Lawrence Ramsey | 049e4a5 | 2004-08-10 23:05:59 +0000 | [diff] [blame] | 254 | get_next_filename() |
| 255 | - Tweak for efficiency, and add the ".save" suffix to the file |
| 256 | here. (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 257 | close_open_file() |
| 258 | - Tweak to no longer rely on the return values of |
| 259 | open_(prev|next)file(). (DLR) |
David Lawrence Ramsey | c8c69d5 | 2004-07-03 03:22:23 +0000 | [diff] [blame] | 260 | write_file() |
| 261 | - For consistency with nano 1.2.x and with other editors, make |
| 262 | the mode of newly created files 666 instead of 600 before |
| 263 | it's modified by the umask. (DLR) |
David Lawrence Ramsey | f7b5d93 | 2004-07-05 14:27:29 +0000 | [diff] [blame] | 264 | do_writeout() |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 265 | - If we're in restricted mode and the current filename isn't |
David Lawrence Ramsey | f7b5d93 | 2004-07-05 14:27:29 +0000 | [diff] [blame] | 266 | blank, we can't change it, so disable tab completion in that |
| 267 | case. (DLR) |
David Lawrence Ramsey | 1536f86 | 2004-07-24 16:50:20 +0000 | [diff] [blame] | 268 | - Fix spacing problem in the "Save Under Different Name" |
| 269 | prompt. (DLR) |
David Lawrence Ramsey | a539fce | 2004-06-29 00:43:56 +0000 | [diff] [blame] | 270 | - global.c: |
| 271 | shortcut_init() |
| 272 | - Fix erroneous #ifdef so that nano compiles with |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 273 | --disable-justify again. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 274 | - Change the Cancel shortcut in the file browser to an Exit |
| 275 | shortcut, to be more compatible with the current version of |
| 276 | Pico. (DLR) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 277 | thanks_for_all_the_fish() |
| 278 | - Delete topwin, edit, and bottomwin. (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 279 | - nano.c: |
David Lawrence Ramsey | 049e4a5 | 2004-08-10 23:05:59 +0000 | [diff] [blame] | 280 | die() |
| 281 | - Don't add the ".save" suffix to a saved file here anymore, |
| 282 | since get_next_filename() does that now. (David Benbennick) |
| 283 | die_save_file() |
| 284 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | ce62e82 | 2004-08-05 22:10:22 +0000 | [diff] [blame] | 285 | help_init() |
| 286 | - Fix the display of the translated key descriptions "Up" and |
| 287 | "Space" under all circumstances, and make the help browser |
| 288 | work properly when there are fewer than 24 columns available. |
| 289 | (David Benbennick) |
David Lawrence Ramsey | 22fac78 | 2004-08-05 15:16:19 +0000 | [diff] [blame] | 290 | usage() |
| 291 | - Don't translate the option strings for -Z/--restricted. |
| 292 | (David Benbennick) |
David Lawrence Ramsey | 9ef3adb | 2004-07-30 17:30:17 +0000 | [diff] [blame] | 293 | do_enter() |
| 294 | - Don't treat it as a special case when the user presses Enter |
| 295 | on the last line of the screen and smooth scrolling is on, for |
| 296 | consistency. (DLR) |
David Lawrence Ramsey | 8aaf030 | 2004-07-27 16:46:35 +0000 | [diff] [blame] | 297 | do_alt_speller() |
| 298 | - When reloading the newly spell-checked temporary file, call |
| 299 | terminal_init() to make sure that all the original terminal |
| 300 | settings are restored, as a curses-based alternative spell |
| 301 | checker (e.g. aspell) can change them. (DLR) |
David Lawrence Ramsey | b8c479a | 2004-07-31 14:10:23 +0000 | [diff] [blame] | 302 | quote_length() |
| 303 | - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H |
| 304 | wasn't set. (David Benbennick) |
David Lawrence Ramsey | 01a6bf4 | 2004-07-03 05:23:19 +0000 | [diff] [blame] | 305 | do_justify() |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 306 | - Add allow_respacing flag, used to indicate when we've moved to |
David Lawrence Ramsey | 4693864 | 2004-07-03 14:15:58 +0000 | [diff] [blame] | 307 | the next line after justifying the current line, and only run |
| 308 | the respacing routine when it's true. This keeps the |
| 309 | respacing routine from erroneously being run more than once on |
| 310 | the same line. (DLR) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 311 | - Check for first_par_line's not being NULL and only run the |
| 312 | renumbering and cutbuffer-splicing routines depending on that |
| 313 | if that's the case. This fixes a segfault occurring when |
| 314 | trying to do full justification on a file with no paragraphs |
| 315 | (in which case there are no normal lines to renumber and no |
| 316 | backed-up lines to be stored in the cutbuffer or spliced back |
| 317 | in during unjustify). (DLR) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 318 | do_exit() |
| 319 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | aea4dab | 2004-07-13 17:09:24 +0000 | [diff] [blame] | 320 | main() |
| 321 | - Move the reset_cursor() call to the beginning of the main |
| 322 | input loop, and remove the apparently unnecessary wrefresh() |
| 323 | call. (David Benbennick) |
David Lawrence Ramsey | ad1fd0d | 2004-07-27 15:46:58 +0000 | [diff] [blame] | 324 | - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8 |
| 325 | support won't work properly if the locale isn't set, whether |
| 326 | NLS is enabled or not. (Junichi Uekawa) |
David Lawrence Ramsey | 6b24856 | 2004-08-07 22:33:14 +0000 | [diff] [blame] | 327 | - Add titlebar() calls before all open_file() calls and remove |
| 328 | the titlebar() call after them, so that the titlebar is |
David Lawrence Ramsey | 69a2812 | 2004-08-12 04:34:00 +0000 | [diff] [blame] | 329 | displayed properly for all file(s) loaded. Also call |
| 330 | display_main_list() after adding the first file to open_files, |
| 331 | so that "Close" is properly displayed then instead of "Exit". |
| 332 | (DLR) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 333 | - nano.h: |
| 334 | - Reassign the key for full justification to Ctrl-U, for |
| 335 | compatibility with the current version of Pico. (DLR) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 336 | - Remove justbegend enum, as it's no longer needed. (DLR) |
David Lawrence Ramsey | ebd0d7c | 2004-07-01 18:59:52 +0000 | [diff] [blame] | 337 | - proto.h: |
David Lawrence Ramsey | f708037 | 2004-07-08 17:15:10 +0000 | [diff] [blame] | 338 | - Change the variables in the prototypes for do_justify(), |
| 339 | get_verbatim_kbinput(), and get_mouseinput() to match the ones |
| 340 | used in the actual functions. (DLR) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 341 | - Remove unused declaration of temp_opt. (David Benbennick) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 342 | - Add missing copy_file() prototype. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 343 | - Move the load_history() and save_history() prototypes up to |
| 344 | match their corresponding location in files.c. (DLR) |
David Lawrence Ramsey | db357a1 | 2004-06-29 12:36:25 +0000 | [diff] [blame] | 345 | - rcfile.c: |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 346 | rcfile_msg() |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 347 | - Removed and replaced with calls to rcfile_error(). (David |
| 348 | Benbennick) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 349 | - Removed the reference to "starting nano" in the statusbar |
| 350 | message, as it may be called when we exit if the history file |
| 351 | can't be saved. (DLR) |
David Lawrence Ramsey | db357a1 | 2004-06-29 12:36:25 +0000 | [diff] [blame] | 352 | parse_rcfile() |
| 353 | - Have whitespace display default to off instead of on. (Mike |
| 354 | Frysinger) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 355 | nregcomp() |
| 356 | - Rename the variable flags to eflags so as not to conflict with |
| 357 | the global flags. (DLR) |
David Lawrence Ramsey | f56cc9e | 2004-07-29 14:32:17 +0000 | [diff] [blame] | 358 | - search.c: |
| 359 | do_replace_loop() |
| 360 | - Make sure old_pww is updated to the current value of |
| 361 | placewewant when a new match is found, so that edit_redraw() |
| 362 | will redraw the screen properly when only placewewant changes. |
| 363 | (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 9062579 | 2004-07-30 20:21:34 +0000 | [diff] [blame] | 364 | do_replace() |
| 365 | - Instead of using edit_update() to redraw the screen with |
| 366 | edittop at the top, set edittop beforehand and call |
| 367 | edit_refresh(). (DLR) |
| 368 | do_gotoline() |
| 369 | - Use parse_num() to interpret a line entered by the user, and |
| 370 | start the search for a line from current instead of fileage. |
| 371 | (DLR) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 372 | do_gotopos(), find_node(), free_history() |
David Lawrence Ramsey | 9062579 | 2004-07-30 20:21:34 +0000 | [diff] [blame] | 373 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 374 | free_history() |
| 375 | - Only include when DEBUG is defined. (David Benbennick) |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 376 | - utils.c: |
| 377 | parse_num() |
| 378 | - New function to parse numeric values, so that we don't have to |
| 379 | duplicate code that calls strtol() all over the place. (David |
| 380 | Benbennick) DLR: Renamed from parse_int() to parse_num() and |
| 381 | converted to use ssize_t instead of int. |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 382 | nstrnicmp() |
| 383 | - Remove code chacking for n's being less than 0 that will never |
| 384 | be run, since n is a size_t and is hence unsigned. (David |
| 385 | Benbennick) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 386 | ngetdelim(), ngetline() |
| 387 | - New functions equivalent to getdelim() and getline(), which |
| 388 | are both GNU extensions. (DLR, adapted from GNU mailutils |
David Lawrence Ramsey | b4041d6 | 2004-08-17 16:04:48 +0000 | [diff] [blame] | 389 | 0.5 with minor changes to better integrate with nano and |
| 390 | increase efficiency) |
David Lawrence Ramsey | cff5558 | 2004-06-30 12:28:15 +0000 | [diff] [blame] | 391 | - winio.c: |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 392 | get_kbinput() |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 393 | - Since the only valid values for escapes are 0, 1, and 2, |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 394 | convert it to an int. (DLR) |
David Lawrence Ramsey | cff5558 | 2004-06-30 12:28:15 +0000 | [diff] [blame] | 395 | get_control_kbinput() |
| 396 | - Fix erroneous debugging statement so that nano compiles with |
| 397 | --enable-debug again. (Jon Oberheide) |
David Lawrence Ramsey | 0fb841a | 2004-07-01 17:04:23 +0000 | [diff] [blame] | 398 | nanogetstr() |
| 399 | - Tweak the code to update the edit window just before getting |
| 400 | statusbar input for efficiency, and update bottomwin just |
| 401 | before then too. (David Benbennick) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 402 | - Don't delete the statusbar line on UnCut, since the current |
| 403 | version of Pico doesn't. (DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 404 | do_cursorpos() |
| 405 | - Add assert to check whether totsize is correct. (David |
| 406 | Benbennick) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 407 | line_len() |
| 408 | - Rename to help_line_len() so as not to conflict with the |
| 409 | line_len variable used elsewhere, and move inside the |
| 410 | DISABLE_HELP #ifdef surrounding do_help() since it's only |
| 411 | called in do_help(). (DLR) |
| 412 | do_help() |
| 413 | - Have help_line_len() properly return an int again, since its |
| 414 | value can't be larger than COLS. (DLR) |
| 415 | - Allow the user to exit the help browser via Ctrl-C as well as |
| 416 | Ctrl-X, for consistency with the file browser. (DLR) |
David Lawrence Ramsey | 76fb3ec | 2004-08-01 16:09:15 +0000 | [diff] [blame] | 417 | - configure.ac: |
| 418 | - Add AC_PROG_LN_S, so that we can portably create symlinks. |
| 419 | (DLR) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 420 | - Check for getdelim() and getline(), which are both GNU |
| 421 | extensions. (DLR) |
David Lawrence Ramsey | 7d3817f | 2004-07-28 13:03:06 +0000 | [diff] [blame] | 422 | - nanorc.sample: |
| 423 | - Add sample regexes for patch files. (Mike Frysinger) |
David Lawrence Ramsey | 2d140c2 | 2004-07-28 13:50:43 +0000 | [diff] [blame] | 424 | - Various improvements to the "c-file" regexes. Add double, |
| 425 | typedef, extern, union, unsigned, inline, and long to the |
| 426 | green list. (Mike Frysinger) DLR: Also add signed, short, and |
| 427 | enum to the green list. |
David Lawrence Ramsey | 8bf9ba0 | 2004-08-01 22:00:29 +0000 | [diff] [blame] | 428 | - nano.spec.in: |
| 429 | - Tweak to include all files in %{_bindir} instead of just nano, |
| 430 | so that the "rnano" symlink will be properly packaged. (DLR) |
David Lawrence Ramsey | d36715e | 2004-06-28 13:23:37 +0000 | [diff] [blame] | 431 | |
David Lawrence Ramsey | e115156 | 2004-06-28 13:17:33 +0000 | [diff] [blame] | 432 | GNU nano 1.3.3 - 2004.06.28 |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 433 | - General: |
| 434 | - Minor comment cleanups. (DLR) |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 435 | - Convert more ints used as boolean values to use TRUE and |
| 436 | FALSE. (David Benbennick) |
David Lawrence Ramsey | 5520e85 | 2004-04-07 00:44:35 +0000 | [diff] [blame] | 437 | - Make sure the special control keys are handled the same way |
| 438 | after the window is resized or we come out of suspend mode. |
| 439 | Changes to do_cont() and handle_sigwinch(). (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 440 | - Change some instances of ints that can never be negative to |
| 441 | size_t's. (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 442 | - Add better explanations for and in the "Terminal breakage" |
| 443 | comments, and handle missing key #ifdefs inside the functions |
| 444 | that use those keys. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 445 | - Add restricted mode, accessible via the -Z/--restricted |
| 446 | command line option or by invoking nano with any name |
| 447 | beginning with 'r' (e.g. "rnano"). In restricted mode, nano |
| 448 | will not read or write to any file not specified on the |
| 449 | command line, read any nanorc files, allow suspending, or |
| 450 | allow a file to be appended to, prepended to, or saved under a |
| 451 | different name if it already has one. (IO ERROR) DLR: Also |
| 452 | disable backup files and spell checking (since the latter can |
| 453 | leave a pre-spell-checked version of the file in a temporary |
| 454 | directory), use tail() to get the program name so that the |
| 455 | check for its beginning with 'r' will work when a path is |
| 456 | specified, disable toggles that are only useful with options |
| 457 | that are disabled in restricted mode, call nano_disabled_msg() |
| 458 | when trying to read or spell check a file instead of leaving |
| 459 | the shortcuts out of the main list, and instead of acting as |
| 460 | though TEMP_OPT is enabled when exiting with a modified file |
| 461 | (which caused problems if the filename was blank), only allow |
| 462 | a filename to be modified at the writeout prompt if it's blank |
| 463 | beforehand. Changes to do_writeout(), toggle_init(), |
| 464 | shortcut_init(), die_save_file(), and nanogetstr(). |
| 465 | - Call nano_disabled_msg() directly from the shortcut list |
| 466 | instead of inside the disabled functions. (David Benbennick) |
David Lawrence Ramsey | 0381c21 | 2004-05-01 01:21:38 +0000 | [diff] [blame] | 467 | - Clarifications to comments explaining exactly what control |
| 468 | characters and escape sequences are supported. (DLR) |
David Lawrence Ramsey | 5aa3983 | 2004-05-05 21:36:50 +0000 | [diff] [blame] | 469 | - Disable "Where Is Next" in tiny mode. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 470 | - Added the ability to justify the entire file at once, which |
David Lawrence Ramsey | 91bc83a | 2004-06-25 01:52:10 +0000 | [diff] [blame] | 471 | Pico has via ^W^J. Changes to backup_lines() and |
| 472 | do_justify(); new functions do_justify_void() and |
| 473 | do_full_justify(). (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 474 | - Modify the justification algorithm to work the same way as in |
| 475 | the current version of Pico, i.e, add a space at the end of |
David Lawrence Ramsey | a9a6ce0 | 2004-06-05 22:09:56 +0000 | [diff] [blame] | 476 | each line of the justified paragraph except for the last one, |
| 477 | and if there was a space at the end of the last one, remove |
David Lawrence Ramsey | 2b6c301 | 2004-06-10 01:35:02 +0000 | [diff] [blame] | 478 | it. Changes to justify_format() and do_justify(). Note that |
| 479 | we can no longer reliably detect the first modified line in a |
| 480 | paragraph, since a line unmodified by justify_format() may get |
| 481 | a space tacked onto the end of it or removed from the end of |
| 482 | it later. The entire original paragraph is now always backed |
| 483 | up, and justify_format() no longer has a non-modifying mode, |
| 484 | so it's now only called in backup_lines(). (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 485 | - Wrap the long jump code in NANO_SMALL #ifdefs, since we only |
| 486 | use it if we're resizing the window, which is disabled when |
| 487 | NANO_SMALL is defined. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 488 | - Add smart home key option, accessible via -A/--smarthome on |
| 489 | the command line, "set smarthome" in the rcfile, and the |
| 490 | Meta-H toggle in the edit window. Smart home works as |
| 491 | follows: When Home is pressed anywhere but at the very |
| 492 | beginning of non-whitespace characters on a line, the cursor |
| 493 | will jump to that beginning (either forwards or backwards). |
| 494 | If the cursor is already at that position, it will jump to the |
| 495 | true beginning of the line. This option is disabled in tiny |
| 496 | mode. Changes to do_home(), nanogetstr(), etc. (DLR; |
| 497 | suggested by Stephan T. Lavavej) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 498 | - Minor tweaks to the punctuation in some statusbar messages. |
| 499 | (DLR) |
David Lawrence Ramsey | 48ae986 | 2004-05-28 17:23:33 +0000 | [diff] [blame] | 500 | - Overhaul the low-level input routines into main routines that |
| 501 | actually get the input and state machines that interpret the |
| 502 | input. This allows better handling of the input (e.g. ignored |
| 503 | keys are now always ignored instead of just being ignored when |
| 504 | there are no escapes prefixing them) and will make it easier |
| 505 | to port to interfaces that don't have blocking input. New |
| 506 | functions reset_kbinput(), get_translated_kbinput(), |
| 507 | get_control_kbinput(), and get_untranslated_kbinput(); changes |
| 508 | to do_verbatim_input(), handle_sigwinch(), get_kbinput(), |
| 509 | get_ascii_kbinput(), get_escape_seq_kbinput(), and |
David Lawrence Ramsey | 7ea39ef | 2004-06-04 22:36:42 +0000 | [diff] [blame] | 510 | get_verbatim_kbinput(); removal of get_ignored_kbinput() and |
| 511 | get_accepted_kbinput(). (DLR) |
David Lawrence Ramsey | 2ed225f | 2004-05-28 20:44:09 +0000 | [diff] [blame] | 512 | - Overhaul all the movement functions in order to avoid |
| 513 | redundant screen redraws (and regexec()s when color support is |
| 514 | available) whenever possible during ordinary cursor movement |
| 515 | when the text doesn't change. Do the same for moving in |
| 516 | do_char(), do_delete(), do_next_word(), do_prev_word(), |
| 517 | do_search(), do_research(), and do_replace_loop. Changes to |
| 518 | do_first_line(), do_last_line(), do_home(), do_end(), |
| 519 | do_page_up(), do_page_down(), do_up(), do_down(), do_left(), |
| 520 | do_right(), do_delete(), do_backspace(), do_search(), |
| 521 | do_research(), do_replace_loop(), do_find_bracket(), and |
| 522 | edit_refresh(). New functions do_left_void(), |
| 523 | do_right_void(), need_horizontal_update(), |
David Lawrence Ramsey | c21790d | 2004-05-30 03:19:52 +0000 | [diff] [blame] | 524 | need_vertical_update(), edit_scroll(), and edit_redraw(). All |
| 525 | of these functions but the first two require the previous |
David Lawrence Ramsey | ce1d765 | 2004-06-01 18:32:36 +0000 | [diff] [blame] | 526 | versions of current and/or placewewant as parameters, so that |
| 527 | they can redraw properly when the location has changed. Also |
David Lawrence Ramsey | c21790d | 2004-05-30 03:19:52 +0000 | [diff] [blame] | 528 | rename the int refresh in do_delete() and do_backspace() to |
| 529 | do_refresh so as not to conflict with refresh(). (DLR) |
David Lawrence Ramsey | 32e3b88 | 2004-05-29 01:20:17 +0000 | [diff] [blame] | 530 | - Add some comments better explaining what is disabled in |
| 531 | restricted mode and why. (DLR) |
David Lawrence Ramsey | c833d9e | 2004-05-29 15:36:58 +0000 | [diff] [blame] | 532 | - Since KEEP_CUTBUFFER is only used in cut.c, make it a static |
| 533 | variable in cut.c instead of a flag, and unset it in other |
| 534 | files via the new function cutbuffer_reset(). (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 535 | - Add the ability to change the characters used to display the |
| 536 | beginning characters of tabs and spaces via the rcfile entry |
| 537 | "whitespace". This is disabled if nanorc support is disabled |
David Lawrence Ramsey | f521b60 | 2004-05-30 03:56:52 +0000 | [diff] [blame] | 538 | or if we're in tiny mode. Displaying the new characters is |
David Lawrence Ramsey | 4a80fcf | 2004-05-30 04:19:27 +0000 | [diff] [blame] | 539 | toggled on and off by Meta-P; the default is on. (Mike |
David Lawrence Ramsey | f521b60 | 2004-05-30 03:56:52 +0000 | [diff] [blame] | 540 | Frysinger; minor changes and adaptations by DLR) |
David Lawrence Ramsey | 2c62b07 | 2004-05-29 16:38:57 +0000 | [diff] [blame] | 541 | - Add the ability to change the closing punctuation and closing |
| 542 | brackets used to control justification, via the rcfile |
| 543 | entries "punct" and "brackets". (DLR) |
Jordi Mallach | 0675c2f | 2004-06-01 15:29:31 +0000 | [diff] [blame] | 544 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 85529b3 | 2004-06-22 15:38:47 +0000 | [diff] [blame] | 545 | - Make the former flag same_line_wrap use TRUE and FALSE |
| 546 | instead of 1 and 0. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 547 | - files.c: |
| 548 | add_open_file() |
| 549 | - Rearrange the NANO_SMALL #ifdef so that the code to set the |
| 550 | MODIFIED flag in open_files->flags is included only once. |
| 551 | (DLR) |
David Lawrence Ramsey | 2f0d03b | 2004-05-28 00:15:28 +0000 | [diff] [blame] | 552 | write_marked() |
| 553 | - Call write_file() with nonamechange set to TRUE so that we |
| 554 | don't erroneously change the current filename when writing a |
| 555 | selection, and don't take a nonamechange parameter anymore |
| 556 | since we don't use it. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 557 | do_writeout() |
| 558 | - Refactor so that no recursion is needed if we try to exit with |
| 559 | a modified file that has no name when TEMP_OPT is set. (DLR) |
David Lawrence Ramsey | 2826047 | 2004-05-30 03:23:39 +0000 | [diff] [blame] | 560 | - Add spaces to the ends of the "Overwrite" and "Different Name" |
| 561 | prompts, for consistency. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 562 | do_browser() |
| 563 | - Call check_statblank() instead of blanking the statusbar |
| 564 | unconditionally, for consistency. (David Benbennick) |
David Lawrence Ramsey | be26561 | 2004-05-29 20:38:08 +0000 | [diff] [blame] | 565 | - global.c: |
| 566 | shortcut_init() |
| 567 | - Don't assign any handler functions to the help browser keys, |
| 568 | as the help browser handles them all internally. (David |
| 569 | Benbennick) |
David Lawrence Ramsey | 4be15f0 | 2004-05-23 21:33:23 +0000 | [diff] [blame] | 570 | - move.c: |
| 571 | do_first_line(), do_last_line() |
| 572 | - Move these functions here from winio.c. (DLR) |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 573 | - nano.c: |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 574 | finish() |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 575 | - Call blank_statusbar() and blank_bottombars() to blank out |
| 576 | the statusbar and shortcut list in bottomwin. (DLR) |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 577 | - Since all of the calls to finish() use 0 for the value of |
| 578 | sigage, and the return value of finish() is never used, make |
| 579 | it accept and return void. (David Benbennick) |
David Lawrence Ramsey | 2f0d03b | 2004-05-28 00:15:28 +0000 | [diff] [blame] | 580 | die_save_file() |
| 581 | - Call write_file() with nonamechange set to TRUE since we don't |
| 582 | need to change the current filename if we're writing emergency |
| 583 | backup files. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 584 | do_early_abort() |
| 585 | - Removed, as it's no longer called anywhere. (David Benbennick) |
David Lawrence Ramsey | 4525137 | 2004-06-09 08:36:46 +0000 | [diff] [blame] | 586 | usage() |
| 587 | - Add missing "[dir]" and two missing _()'s around the strings |
| 588 | describing the -E [dir]/--backupdir=[dir]" option. (CHAO |
| 589 | Wei-Lun) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 590 | open_pipe() |
| 591 | - Call enable_signals() at the beginning and disable_signals() |
| 592 | at the end, so that we get a SIGINT when Ctrl-C is pressed |
| 593 | during wait() and can then call cancel_fork() properly. (DLR) |
David Lawrence Ramsey | 228148b | 2004-05-27 20:09:52 +0000 | [diff] [blame] | 594 | do_delete(), do_enter() |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 595 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 1b525e9 | 2004-05-24 02:35:02 +0000 | [diff] [blame] | 596 | do_prev_word() |
| 597 | - Switch the last test (current != NULL or not) around to match |
| 598 | the order of the same test in do_next_word() (current == |
| 599 | NULL). The results are the same either way. (DLR) |
David Lawrence Ramsey | 9a527f5 | 2004-05-31 14:58:59 +0000 | [diff] [blame] | 600 | do_wrap() |
| 601 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 602 | do_spell() |
| 603 | - Tweak for efficiency. (David Benbennick) |
| 604 | - Change the statusbar entries used in cases of failure so that |
| 605 | they all display the actual error that occurred. (David |
| 606 | Benbennick and DLR) |
| 607 | do_int_speller(), do_alt_speller() |
| 608 | - Make these functions return const char*'s instead of char*'s. |
| 609 | (David Benbennick) |
David Lawrence Ramsey | d4693cb | 2004-05-14 01:17:25 +0000 | [diff] [blame] | 610 | justify_format() |
| 611 | - Remove redundant assignment. (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 612 | do_para_search() |
| 613 | - Remove unneeded edit_update() calls. (David Benbennick) |
David Lawrence Ramsey | 2e3aeae | 2004-05-24 05:52:35 +0000 | [diff] [blame] | 614 | - Convert to use an enum to specify the search type: JUSTIFY, |
| 615 | BEGIN, or END. (DLR) |
David Lawrence Ramsey | dbde9d7 | 2004-06-27 00:54:08 +0000 | [diff] [blame] | 616 | - Refactor to properly do searches for beginnings of paragraphs |
| 617 | in the same way as searches for endings of paragraphs, without |
| 618 | needing the old (and somewhat inaccurate) recursive approach. |
| 619 | (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 620 | do_justify() |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 621 | - Remove unneeded edit_update() calls, and add a few minor |
| 622 | efficiency tweaks. (David Benbennick) |
David Lawrence Ramsey | 7097d7b | 2004-05-17 16:11:18 +0000 | [diff] [blame] | 623 | - Simplify an if statement. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 624 | do_exit() |
| 625 | - Refactor so that no recursion is needed if we try to exit with |
| 626 | a modified file that has no name when TEMP_OPT is set. (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 627 | print_numlock_warning() |
| 628 | - Removed, as it's no longer needed and was never called |
| 629 | anywhere after the input overhaul. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 630 | signal_init() |
| 631 | - Don't use termios and _POSIX_VDISABLE to disable keys anymore, |
| 632 | as there's no real equivalent of it when the latter isn't |
| 633 | defined. (DLR) |
| 634 | handle_sigwinch() |
| 635 | - Call resetty() to get the original terminal settings back. |
| 636 | (DLR) |
| 637 | - Rework so that nano properly redraws the screen on systems |
| 638 | that don't have resizeterm() and/or wresize(). In curses, we |
| 639 | now leave and immediately reenter curses mode via endwin() and |
| 640 | refresh(), and then reinitialize all windows via |
| 641 | window_init(). In slang, the above routine will only work if |
| 642 | the resize made the window smaller, so we now leave and |
| 643 | immediately reenter screen management mode via |
| 644 | SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize |
| 645 | all windows via window_init(). (DLR, adapted from code in |
| 646 | Minimum Profit 3.3.0 and mutt 1.4.2.1, respectively) |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 647 | do_toggle() |
| 648 | - Call blank_statusbar() and blank_bottombars() to blank out |
| 649 | the statusbar and shortcut list in bottomwin. (DLR) |
David Lawrence Ramsey | d4693cb | 2004-05-14 01:17:25 +0000 | [diff] [blame] | 650 | do_verbatim_input() |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 651 | - If PRESERVE is set, disable flow control characters before |
| 652 | getting input and reenable them after getting input. (DLR) |
| 653 | disable_signals(), enable_signals(), disable_flow_control(), |
| 654 | enable_flow_control() |
| 655 | - New functions that allow more fine-grained control of the |
| 656 | terminal: disabling and enabling signals without having to use |
| 657 | _POSIX_VDISABLE and disabling and enabling flow control |
| 658 | characters. (DLR) |
David Lawrence Ramsey | 97133f5 | 2004-05-14 17:39:19 +0000 | [diff] [blame] | 659 | main() |
| 660 | - Don't open the first file in quiet mode, since if we do, an |
| 661 | error message won't be shown if it's unreadable. (DLR; found |
| 662 | by Jaap Eldering) |
David Lawrence Ramsey | 1d43db8 | 2004-05-14 17:57:00 +0000 | [diff] [blame] | 663 | - If we've specified multiple files on the command line and |
| 664 | multibuffer support is compiled in, turn multibuffer mode on |
| 665 | when reading those files and turn it off afterward if it was |
| 666 | off before. This allows us to open multiple files without |
| 667 | having to turn multibuffer mode on at the command line or in |
| 668 | the nanorc first, both of which are unintuitive. Multibuffer |
| 669 | mode should only affect how the "Read File" command behaves |
| 670 | anyway. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 671 | - Remove the disabling of implementation-defined input |
David Lawrence Ramsey | e608f94 | 2004-05-19 16:04:27 +0000 | [diff] [blame] | 672 | processing, as cbreak mode appears to turn it off anyway. |
| 673 | (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 674 | - After noecho(), call disable_signals() and |
| 675 | disable_flow_control(), the latter only if PRESERVE is not |
| 676 | set. (DLR) |
| 677 | - Move the savetty() call down from just after initscr() to just |
| 678 | after the terminal is properly set up, so that we can restore |
| 679 | it easily after a resize. (DLR) |
David Lawrence Ramsey | 570ea89 | 2004-05-28 21:02:32 +0000 | [diff] [blame] | 680 | - Add missing cast to char when calling do_char(). (DLR) |
David Lawrence Ramsey | dd7cc72 | 2004-05-28 23:45:25 +0000 | [diff] [blame] | 681 | - Don't initialize the backup directory if we're in restricted |
| 682 | mode, since backups are disabled then. (DLR) |
David Lawrence Ramsey | 3aedb36 | 2004-05-28 22:42:41 +0000 | [diff] [blame] | 683 | - Check $SPELL for an alternative spell checker if we didn't get |
David Lawrence Ramsey | dd7cc72 | 2004-05-28 23:45:25 +0000 | [diff] [blame] | 684 | one from the command line and/or rcfile, as Pico does. Don't |
| 685 | do this if we're in restricted mode, since spell checking is |
| 686 | disabled then. (DLR) |
David Lawrence Ramsey | 74af3a7 | 2004-06-12 21:03:14 +0000 | [diff] [blame] | 687 | - Add some cleanups for greater readability, and remove a few |
| 688 | bits of redundant code. (DLR and David Benbennick) |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 689 | - nano.h: |
| 690 | - Since REGEXP_COMPILED is only used in search.c, convert it |
| 691 | from a flag to a static int there. (DLR) |
David Lawrence Ramsey | 2e3aeae | 2004-05-24 05:52:35 +0000 | [diff] [blame] | 692 | - Add justbegend enum, used in do_para_search(). (DLR) |
David Lawrence Ramsey | 2ed225f | 2004-05-28 20:44:09 +0000 | [diff] [blame] | 693 | - Add updown enum, used in edit_scroll(). (DLR) |
David Lawrence Ramsey | f38230a | 2004-04-21 22:25:16 +0000 | [diff] [blame] | 694 | - proto.h: |
David Lawrence Ramsey | d62b634 | 2004-04-28 21:49:30 +0000 | [diff] [blame] | 695 | - Remove unused xpt() and add_marked_sameline() prototypes. |
| 696 | (DLR) |
David Lawrence Ramsey | 14bf803 | 2004-05-22 20:19:15 +0000 | [diff] [blame] | 697 | - Add missing #ifdefs around the nstristr() and get_mouseinput() |
| 698 | prototypes. (DLR) |
David Lawrence Ramsey | f38230a | 2004-04-21 22:25:16 +0000 | [diff] [blame] | 699 | - rcfile.c: |
| 700 | - Move "rebinddelete" up in the list of options so that the list |
| 701 | is in alphabetical order. (DLR) |
David Lawrence Ramsey | b6a4b10 | 2004-05-29 17:20:01 +0000 | [diff] [blame] | 702 | - Cosmetic reorganization of the order in which some options are |
| 703 | interpreted. (DLR) |
David Lawrence Ramsey | 8d91199 | 2004-05-29 17:05:52 +0000 | [diff] [blame] | 704 | - Explicitly check for rcopts[i].name's being "tabsize" to avoid |
| 705 | a spurious error under some circumstances about tabsize's |
| 706 | being 0 when there's no tabsize entry in the rcfile. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 707 | - search.c: |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 708 | regexp_init() |
| 709 | - Overhaul for efficiency. Also check if regcomp() failed, and |
| 710 | if so, display "Bad regex" message on the statusbar, so that |
| 711 | we don't have to display it separately after every call to |
| 712 | this function. (David Benbennick) |
| 713 | search_init() |
| 714 | - Only check whether USE_REGEXP is set, and hence whether or not |
| 715 | to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is |
| 716 | defined. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 717 | not_found_msg() |
| 718 | - Convert to properly handle strings generated by |
| 719 | display_string() that have been used in the search prompt |
| 720 | since 1.3.0. (David Benbennick) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 721 | - Use display_string() directly to display the text that we |
| 722 | didn't find instead of relying on statusbar() to do it |
| 723 | indirectly, since the latter won't display its text with the |
| 724 | user-specified whitespace characters and the former will. |
| 725 | (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 726 | - utils.c: |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 727 | is_blank_char() |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 728 | - New function used as an isblank() equivalent, since isblank() |
| 729 | is a GNU extension. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 730 | nstricmp(), nstrnicmp() |
| 731 | - Add extra blank lines for greater readability, and remove |
| 732 | unneeded test for n's being less than zero (since it's already |
| 733 | been tested for being greater than zero or equal to zero at |
| 734 | that point) from nstrnicmp(). (DLR) |
| 735 | stristr() |
| 736 | - Rename to nstristr() to avoid a potential conflict with an |
| 737 | existing stristr() function, and move up to just after |
| 738 | nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency. |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 739 | - Include and use only when strcasestr() is unavailable, since |
| 740 | strcasestr() is a GNU extension. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 741 | nstrnlen() |
| 742 | - New function used as a strnlen() equivalent, since strnlen() |
| 743 | is a GNU extension. (DLR) |
David Lawrence Ramsey | e1e7cb2 | 2004-04-15 06:15:55 +0000 | [diff] [blame] | 744 | - winio.c: |
| 745 | get_verbatim_kbinput() |
| 746 | - Refactor the output in the DEBUG #ifdef. It didn't work |
| 747 | properly ever since this function was changed to use an int* |
| 748 | instead of a char*. (DLR) |
David Lawrence Ramsey | 805547f | 2004-04-22 03:41:04 +0000 | [diff] [blame] | 749 | - When reading characters from input, properly reallocate |
| 750 | verbatim_kbinput via (int*)nrealloc() instead of an uncast |
| 751 | realloc(). (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 752 | get_accepted_kbinput() |
| 753 | - Add proper support for the keypad values and escape sequences |
David Lawrence Ramsey | 16eb518 | 2004-06-03 20:26:12 +0000 | [diff] [blame] | 754 | generated by the NumLock glitch and by certain keys on the |
| 755 | numeric keypad. (DLR) |
David Lawrence Ramsey | d897445 | 2004-06-04 22:28:55 +0000 | [diff] [blame] | 756 | - Add an extra break and move an #endif down to fix a potential |
| 757 | problem when NANO_SMALL is defined or KEY_RESIZE isn't, and |
| 758 | when PDCURSES isn't defined. (DLR) |
David Lawrence Ramsey | 805547f | 2004-04-22 03:41:04 +0000 | [diff] [blame] | 759 | get_escape_seq_kbinput() |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 760 | - Add proper support for the keypad values and escape sequences |
| 761 | generated by the NumLock glitch. (DLR) |
David Lawrence Ramsey | e65e639 | 2004-06-04 18:18:17 +0000 | [diff] [blame] | 762 | - Add ignore_seq parameter. If a sequence is recognized but |
| 763 | ignored, we will now return ERR and set ignore_seq to TRUE, and |
| 764 | if a sequence is unrecognized, we will now return ERR and set |
| 765 | ignore_seq to FALSE. Also, here and elsewhere, don't bother |
| 766 | assigning ERR to retval when that's its initial value. (DLR) |
David Lawrence Ramsey | 973a96b | 2004-06-22 14:30:18 +0000 | [diff] [blame] | 767 | - Fix problem where the escape sequence for F3 on the FreeBSD |
| 768 | console would not be interpreted properly. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 769 | get_mouseinput() |
| 770 | - Don't ungetch() anything if there's no control key and no meta |
| 771 | key defined in the shortcut we clicked. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 772 | bottombars() |
| 773 | - Don't display any more than MAIN_VISIBLE shortcuts. Adding |
| 774 | justification of the entire file above made the search |
| 775 | shortcut list longer than this and hence made the shortcuts in |
| 776 | it so short as to be almost incomprehensible. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 777 | - Tweak for efficiency and to better handle shorter screen |
| 778 | widths. (David Benbennick) |
| 779 | - Restructure the if block used for the sentinel key values, |
| 780 | dynamically allocate keystr based on the number of columns |
| 781 | available, and make sure we can display shortcuts even when |
| 782 | the number of available columns is too short for any complete |
| 783 | one. (DLR) |
| 784 | onekey() |
| 785 | - Don't bother padding the displayed shortcuts with spaces. |
| 786 | (David Benbennick) |
| 787 | - Convert len to a size_t. (DLR) |
David Lawrence Ramsey | e5b2f83 | 2004-04-29 06:30:36 +0000 | [diff] [blame] | 788 | edit_add() |
| 789 | - Minor cosmetic reformatting. Also remove unused int |
| 790 | searched_later_lines. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 791 | blank_bottomwin() |
| 792 | - Removed, as it does the same thing as blank_bottombars(). |
| 793 | (David Benbennick) |
| 794 | blank_titlebar() |
| 795 | - New function used to blank the titlebar in topwin. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 796 | blank_statusbar_refresh() |
| 797 | - Removed, as it's now unnecessary. (David Benbennick) |
| 798 | titlebar() |
| 799 | - Overhaul to use display_string() to display the filename, and |
| 800 | to better handle shorter screen widths. Also remove |
| 801 | now-unneeded wrefresh(topwin) calls. (David Benbennick) |
David Lawrence Ramsey | 8328fc2 | 2004-05-25 23:34:43 +0000 | [diff] [blame] | 802 | DLR: Tweak to reserve enough space for "Modified", plus |
| 803 | padding, in all cases, to make sure that the version message |
| 804 | takes up no more more than 1/3 of the available width, minus |
| 805 | padding, and to include a reset_cursor() call so that the |
| 806 | cursor is always in the right place. |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 807 | bottombars() |
| 808 | - Call blank_bottombars() instead of blank_bottomwin(). (David |
| 809 | Benbennick) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 810 | check_statblank() |
| 811 | - Overhaul for efficiency, (David Benbennick) DLR: Add |
| 812 | reset_cursor() call to ensure that the cursor is always in the |
| 813 | right place. |
David Lawrence Ramsey | 228148b | 2004-05-27 20:09:52 +0000 | [diff] [blame] | 814 | update_cursor() |
| 815 | - Removed, as it's no longer called anywhere. (David Benbennick) |
David Lawrence Ramsey | 07d3feb | 2004-04-16 05:15:11 +0000 | [diff] [blame] | 816 | edit_refresh() |
| 817 | - Remove apparently unneeded leaveok() calls. (David Benbennick) |
David Lawrence Ramsey | c279a63 | 2004-05-25 01:49:58 +0000 | [diff] [blame] | 818 | edit_refresh_clearok(), center_cursor() |
| 819 | - Removed, as they are now unnecessary. (David Benbennick) |
David Lawrence Ramsey | d12fd4b | 2004-05-28 15:05:56 +0000 | [diff] [blame] | 820 | statusq() |
| 821 | - Don't allow "Full Justify" when in view mode. (DLR) |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 822 | statusbar() |
| 823 | - Call reset_cursor() just before refreshing the edit window, so |
| 824 | that slang and other non-ncurses versions of curses will |
| 825 | properly place the cursor back in the edit window instead of |
| 826 | leaving it at the end of the statusbar. (DLR) |
David Lawrence Ramsey | be26561 | 2004-05-29 20:38:08 +0000 | [diff] [blame] | 827 | do_help() |
| 828 | - Overhaul for efficiency, and allow scrolling through the help |
| 829 | via the arrow keys as well as the paging keys. (David |
David Lawrence Ramsey | ae064bf | 2004-06-01 20:38:00 +0000 | [diff] [blame] | 830 | Benbennick) DLR: Revert the use of the return value of |
| 831 | curs_set() to restore the previous state of the cursor, as |
| 832 | some curses implementations (including slang) get it wrong, |
| 833 | and explicitly turn the cursor off where needed instead. |
David Lawrence Ramsey | dc35cb8 | 2004-04-24 18:30:23 +0000 | [diff] [blame] | 834 | do_credits() |
| 835 | - Use napms() instead of nanosleep(), as it does the same thing |
| 836 | (aside from taking an argument in milliseconds instead of |
| 837 | microseconds) and curses includes it. (DLR) |
David Lawrence Ramsey | 837a02b | 2004-05-18 15:23:31 +0000 | [diff] [blame] | 838 | - Overhaul for efficiency, and make sure the xlcredits |
| 839 | translations are done after initialization in order to avoid |
| 840 | an error when compiling with -pedantic. (David Benbennick) |
Jordi Mallach | 21ad762 | 2004-06-25 22:43:09 +0000 | [diff] [blame] | 841 | do_yesno() |
| 842 | - Add a comment to encourage translators to use both native and |
| 843 | English shortcuts, if possible. (Jordi) |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 844 | - configure.ac: |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 845 | - Add tests for isblank(), strcasestr(), and strnlen(), and |
| 846 | define _GNU_SOURCE so that the tests work properly. Increase |
| 847 | the minimum required autoconf version to 2.54. (DLR) |
David Lawrence Ramsey | 1122c85 | 2004-05-13 17:46:57 +0000 | [diff] [blame] | 848 | - Reformat the test programs so that they aren't packed into |
| 849 | fewer lines than usual, so as to make them easier to read, and |
| 850 | remove unnecessary inclusion of stdio.h in the slang test |
| 851 | programs. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 852 | - Remove the checks for resizeterm() and wresize(), as they're |
| 853 | no longer needed. (DLR) |
Jordi Mallach | d350727 | 2004-06-25 22:34:18 +0000 | [diff] [blame] | 854 | - config.rpath: |
| 855 | - Replace usage of egrep with grep -E, avoiding a XSI:ism (David |
| 856 | Weinehall) |
| 857 | |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 858 | - faq.html: |
| 859 | - Removed question about the NumLock glitch, as it's no longer |
| 860 | needed. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 861 | - nano.1: |
| 862 | - Document restricted mode. (IO ERROR) DLR: Add minor |
| 863 | modifications to account for the above changes. |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 864 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 498e13d | 2004-06-01 22:56:34 +0000 | [diff] [blame] | 865 | - Document the use of the SPELL environment variable. (DLR) |
David Lawrence Ramsey | 12e066f | 2004-05-29 14:13:02 +0000 | [diff] [blame] | 866 | - nanorc.5: |
| 867 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 868 | - Document the whitespace option. (DLR, adapted from |
| 869 | documentation by Mike Frysinger) |
David Lawrence Ramsey | 2c62b07 | 2004-05-29 16:38:57 +0000 | [diff] [blame] | 870 | - Document the punct and brackets options. (DLR) |
David Lawrence Ramsey | 9be546b | 2004-04-20 19:19:21 +0000 | [diff] [blame] | 871 | - nano.texi: |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 872 | - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and |
| 873 | Meta-< and Meta-> aren't toggles. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 874 | - Document restricted mode. (IO ERROR) DLR: Add minor |
| 875 | modifications to account for the above changes. |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 876 | - Fix version number inaccuracies: Search/replace history and |
| 877 | sorting/uniqueness filtering for the internal spell chacker |
| 878 | were added in nano 1.1.99pre1. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 879 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 498e13d | 2004-06-01 22:56:34 +0000 | [diff] [blame] | 880 | - Document the use of the SPELL environment variable. (DLR) |
David Lawrence Ramsey | 71d0a1f | 2004-05-08 00:06:15 +0000 | [diff] [blame] | 881 | - nanorc.sample: |
| 882 | - Add missing mouse entry, and update the nanorc sample regexes |
| 883 | to account for the backupdir and mouse options. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 884 | - Add smarthome description. (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 885 | - Document the whitespace option. (DLR, adapted from |
| 886 | documentation by Mike Frysinger) |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 887 | - README.CVS: |
| 888 | - Increase the minimum required autoconf version to 2.54, and |
| 889 | change the recommended automake version 1.7 to the minimum |
| 890 | required automake version. Note that autoconf 2.54 will |
| 891 | technically also work with automake 1.6c, but that is a CVS |
| 892 | version as opposed to a stable release version, and automake |
| 893 | 1.7 requires at least autoconf 2.54 in any case. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 894 | - TODO: |
| 895 | - Added entry for justifying the entire file at once, since Pico |
| 896 | can do it, and with "[DONE]" since it's already been |
| 897 | implemented. (DLR) |
David Lawrence Ramsey | befb25a | 2004-03-31 18:53:07 +0000 | [diff] [blame] | 898 | |
David Lawrence Ramsey | f70f0cf | 2004-03-31 18:42:52 +0000 | [diff] [blame] | 899 | GNU nano 1.3.2 - 2004.03.31 |
David Lawrence Ramsey | 760a2dc | 2004-01-14 06:38:00 +0000 | [diff] [blame] | 900 | - General: |
| 901 | - Change instances in the code that refresh the entire edit |
| 902 | window when color support is enabled (in order to properly |
| 903 | handle multi-line color regexes) to only do so when |
| 904 | it's necessary, i.e, when COLOR_SYNTAX is set. (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 905 | - Minor cosmetic tweaks to the code involving direction keys. |
| 906 | NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and |
| 907 | NANO_NEXTLINE_KEY, and the help messages for them have been |
| 908 | changed accordingly. Also remove extraneous references to |
| 909 | NANO_DOWN_KEY in the search history shortcut entries. (DLR) |
David Lawrence Ramsey | c91696e | 2004-01-29 04:16:23 +0000 | [diff] [blame] | 910 | - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the |
| 911 | shortcut list, and tweak the unjustify routine to use it. |
David Lawrence Ramsey | d7f5ad9 | 2004-03-04 19:30:53 +0000 | [diff] [blame] | 912 | Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak |
| 913 | the statusbar input routines to handle them and NANO_HELP_FKEY |
| 914 | properly. (DLR) |
David Lawrence Ramsey | 369732f | 2004-02-16 20:32:40 +0000 | [diff] [blame] | 915 | - Block SIGWINCH after setting up its handler, and only unblock |
| 916 | and handle it when we're in a stable state, i.e, when we're |
| 917 | waiting for input from the user. New function |
| 918 | allow_pending_sigwinch(); changes to signal_init(), |
| 919 | get_kbinput(), and get_verbatim_kbinput(). (DLR) |
David Lawrence Ramsey | 281e056 | 2004-02-27 18:54:04 +0000 | [diff] [blame] | 920 | - Decouple the paragraph searching code and the justifying code. |
| 921 | Removed function do_para_operation(); new function |
| 922 | do_para_search(); changes to do_justify(). (DLR) |
David Lawrence Ramsey | 04e42a6 | 2004-02-28 16:24:31 +0000 | [diff] [blame] | 923 | - Add -E/--backupdir option. When used with -B/--backup, backup |
| 924 | files will be saved in the specified directory with their |
| 925 | canonical pathnames encoded in their names (all '/'s replaced |
| 926 | with '!'s). Changes to write_file(). (Martin Ehmsen) DLR: |
| 927 | Add function init_backup_dir() to handle relative paths |
| 928 | correctly, use get_full_path() to get the canonical pathname, |
| 929 | and use tail() to get the filename if get_full_path() fails. |
David Lawrence Ramsey | a619ae6 | 2004-03-04 06:33:52 +0000 | [diff] [blame] | 930 | - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom |
| 931 | Bates; minor tweaks by DLR) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 932 | - Change some instances of boolean 0 and 1 to TRUE and FALSE. |
| 933 | (David Benbennick) |
| 934 | - Fix memory corruption problem occurring when answer is used as |
| 935 | the value of def; if the realloc() of answer leads to its |
| 936 | pointing to a different memory block, there will be a segfault |
David Lawrence Ramsey | 7947544 | 2004-03-19 20:47:57 +0000 | [diff] [blame] | 937 | when the value of def is copied into it via strcpy(). |
David Lawrence Ramsey | b882340 | 2004-04-27 21:06:11 +0000 | [diff] [blame] | 938 | (bort@alltel.net, Christian Weisgerber, David Benbennick, and |
David Lawrence Ramsey | 7947544 | 2004-03-19 20:47:57 +0000 | [diff] [blame] | 939 | DLR) |
David Lawrence Ramsey | b977515 | 2004-03-19 02:15:42 +0000 | [diff] [blame] | 940 | - Remove the last editbot references, to avoid any potential |
| 941 | segfaults related to them. Also remove fix_editbot(), as it's |
| 942 | no longer needed. (David Benbennick) |
David Lawrence Ramsey | 1576d53 | 2004-03-19 21:46:34 +0000 | [diff] [blame] | 943 | - Rename several variables to make their use clearer and to |
| 944 | avoid conflicts. (DLR) |
David Lawrence Ramsey | ce991bb | 2004-03-29 18:36:39 +0000 | [diff] [blame] | 945 | - Set the input mode before turning the keypad on. (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 946 | - cut.c: |
| 947 | add_to_cutbuffer() |
| 948 | - Add parameter allow_concat to determine whether we're allowed |
| 949 | to concatenate strings in the cutbuffer. (DLR) |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 950 | - files.c: |
David Lawrence Ramsey | da35251 | 2004-03-05 20:04:44 +0000 | [diff] [blame] | 951 | do_insertfile() |
| 952 | - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef. |
| 953 | (DLR) |
David Lawrence Ramsey | c6908f2 | 2004-03-11 02:20:25 +0000 | [diff] [blame] | 954 | - Save the already-typed answer when switching from "Insert |
| 955 | File" to "Execute Command" mode via Ctrl-X, just in case we |
| 956 | started typing a command before switching. (DLR) |
David Lawrence Ramsey | cb34a67 | 2004-02-06 21:20:05 +0000 | [diff] [blame] | 957 | add_open_files() |
| 958 | - Make the saving of marked status in open_files->file_flags |
| 959 | work properly again; a tweak to the ISSET() macro in 1.3.0 |
| 960 | to make it only return 0 or 1 broke it. (DLR) |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 961 | write_marked() |
| 962 | - New function used to write the current marked selection to a |
| 963 | file, split out from do_writeout(). (DLR) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 964 | do_writeout() |
| 965 | - Tweak for efficiency. (David Benbennick) DLR: Modify to have |
| 966 | the current answer preserved between toggles again. |
David Lawrence Ramsey | 3af54d3 | 2004-02-25 04:43:27 +0000 | [diff] [blame] | 967 | filestat() |
| 968 | - Removed, as it is only called in one place and is |
| 969 | redundant. (DLR) |
| 970 | do_browser() |
| 971 | - Replace the filestat() call with an equivalent stat() call. |
| 972 | (DLR) |
David Lawrence Ramsey | 00c2054 | 2004-02-01 06:27:59 +0000 | [diff] [blame] | 973 | - global.c: |
| 974 | shortcut_init() |
| 975 | - Only allow verbatim input when we're not in view mode. (DLR) |
David Lawrence Ramsey | ba7b168 | 2004-02-29 20:07:14 +0000 | [diff] [blame] | 976 | - Set the associated function for unjustify to 0 instead of |
| 977 | do_uncut_text(), since it's currently unused. (DLR) |
David Lawrence Ramsey | c53a92d | 2004-01-12 03:28:06 +0000 | [diff] [blame] | 978 | - nano.c: |
David Lawrence Ramsey | a7c9364 | 2004-02-25 03:19:29 +0000 | [diff] [blame] | 979 | usage() |
| 980 | - Clarify the description for -T/--tabsize a bit. (DLR) |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 981 | do_verbatim_input() |
| 982 | - Remove the now-unneeded code to disable XON, XOFF, and |
| 983 | suspend, since we now go into raw mode in |
| 984 | get_verbatim_kbinput() and bypass them. (DLR) |
David Lawrence Ramsey | bf3c93e | 2004-03-13 19:42:58 +0000 | [diff] [blame] | 985 | do_next_word() |
| 986 | - Simplify and remove references to editbot so as to avoid a |
| 987 | segfault. (David Benbennick) |
David Lawrence Ramsey | b6aa428 | 2004-03-14 01:42:17 +0000 | [diff] [blame] | 988 | do_prev_word() |
| 989 | - Simplify and remove references to edittop. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 990 | do_int_speller(), do_alt_speller(), do_spell() |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 991 | - Modify to write only the current selection from a file to the |
| 992 | temporary file used for spell checking when the mark is on, |
| 993 | and add a few miscellaneous cosmetic cleanups. (DLR) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 994 | do_int_spell_fix() |
| 995 | - Store the value of current_x in a size_t instead of an int, |
| 996 | and add a few minor efficiency tweaks. (David Benbennick) |
| 997 | - Remove comment explaining why findnextstr() is called with |
| 998 | bracket_mode set to TRUE even though we aren't doing a bracket |
| 999 | search, since after the above efficiency tweaks, it's now more |
| 1000 | accurately called can_display_wrap. (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 1001 | indent_length() |
| 1002 | - Remove unneeded #ifdef. (David Benbennick) |
| 1003 | do_justify() |
| 1004 | - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR) |
David Lawrence Ramsey | 2897d2b | 2004-01-26 20:56:20 +0000 | [diff] [blame] | 1005 | signal_init() |
| 1006 | - Trap SIGQUIT in addition to turning it off via termios in |
| 1007 | main(). This is consistent with SIGINT, which we trap here |
| 1008 | and turn off via termios in main(), as well as with the |
| 1009 | associated comment. (DLR) |
David Lawrence Ramsey | 273d2ce | 2004-01-30 04:20:28 +0000 | [diff] [blame] | 1010 | handle_sigwinch() |
David Lawrence Ramsey | 5380944 | 2004-01-30 04:29:52 +0000 | [diff] [blame] | 1011 | - Set keypad() to TRUE and switch to cbreak mode just before |
| 1012 | calling siglongjmp(), in case we resized during verbatim |
| 1013 | input. (DLR) |
David Lawrence Ramsey | c53a92d | 2004-01-12 03:28:06 +0000 | [diff] [blame] | 1014 | main() |
| 1015 | - Move the call to raw() on systems that don't define |
| 1016 | _POSIX_VDISABLE outside the main input/output loop, as it |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 1017 | doesn't need to be called every time through the loop. Call it |
| 1018 | instead of cbreak() on such systems, as it overrides cbreak() |
| 1019 | anyway. (DLR) |
David Lawrence Ramsey | 369732f | 2004-02-16 20:32:40 +0000 | [diff] [blame] | 1020 | - Add more descriptive comments explaining the termios and |
| 1021 | curses setup routines, and turn the keypad on before setting |
| 1022 | the input mode. (DLR) |
David Lawrence Ramsey | aca5d04 | 2004-03-19 01:35:57 +0000 | [diff] [blame] | 1023 | - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR) |
David Lawrence Ramsey | ce991bb | 2004-03-29 18:36:39 +0000 | [diff] [blame] | 1024 | - Don't call keypad() before initializing the windows it needs |
| 1025 | via window_init(). |
David Lawrence Ramsey | 24ae56c | 2004-02-27 03:06:28 +0000 | [diff] [blame] | 1026 | - nano.h: |
| 1027 | - Move the NANO_H include guard up before the first #include. |
| 1028 | (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 1029 | - Remove the now-unneeded JUSTIFY_MODE flag. (DLR) |
David Lawrence Ramsey | 41151ac | 2004-01-15 05:47:03 +0000 | [diff] [blame] | 1030 | - search.c: |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1031 | regexp_cleanup() |
| 1032 | - Only do anything if REGEXP_COMPILED is set. (David Benbennick) |
| 1033 | search_abort() |
| 1034 | - Only test if the mark is set when NANO_SMALL isn't defined. |
| 1035 | (David Benbennick) |
| 1036 | search_init() |
| 1037 | - Add some more comments and comment tweaks, don't indicate that |
| 1038 | the search has been canceled when we enter a blank string in |
| 1039 | replace mode, only call regexp_init() when USE_REGEXP is set, |
| 1040 | and return -1 instead of -3 since a canceled search and a |
| 1041 | canceled replace should be mostly equivalent. (David |
| 1042 | Benbennick) DLR: Tweak to use the old behavior if we try to |
| 1043 | search for invalid regexes. |
| 1044 | findnextstr() |
| 1045 | - Refactor to use a loop invariant, and tweak for greater |
| 1046 | efficiency and simplicity. Also modify so that all searches |
| 1047 | start one character after (or before, if we're doing a |
| 1048 | backwards search) the current one, as opposed to all searches |
| 1049 | except for regex searches for "^" and the like, for |
| 1050 | consistency with other searches. (David Benbennick) |
| 1051 | do_search() |
| 1052 | - Handle search_init()'s no longer returning -3 above. (David |
| 1053 | Benbennick) |
| 1054 | - Port the code from do_replace_loop() to skip the current line |
| 1055 | if we're searching for a regex with "^" and/or "$" in it and |
| 1056 | end up on the same line to this function. This fixes a |
| 1057 | problem where doing a forward search for "^" on a file with |
| 1058 | more than one line would erroneously stop at the magicline and |
| 1059 | indicate that that was the only occurrence. (DLR) |
| 1060 | do_research() |
| 1061 | - Port David Benbennick's efficiency tweaks and the |
| 1062 | aforementioned code ported from do_replace_loop() to this |
| 1063 | function. (DLR) |
| 1064 | replace_regexp() |
| 1065 | - Completely refactor for increased efficiency. (David |
| 1066 | Benbennick) |
| 1067 | replace_line() |
| 1068 | - Use a char* parameter for the replacement string instead of |
| 1069 | last_search, and add minor efficiency tweaks. (David |
| 1070 | Benbennick) |
David Lawrence Ramsey | 41151ac | 2004-01-15 05:47:03 +0000 | [diff] [blame] | 1071 | do_replace_loop() |
| 1072 | - Fix segfault when doing a regex replace of a string that |
| 1073 | matches inside a line (e.g. replace the "b" in "abc" with |
| 1074 | anything). (David Benbennick) |
David Lawrence Ramsey | 1122c85 | 2004-05-13 17:46:57 +0000 | [diff] [blame] | 1075 | - If the mark is on at the beginning of the function, turn it |
| 1076 | off and turn it back on just before returning. Also overhaul |
| 1077 | to rely on the return value of findnextstr() instead of a loop |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1078 | invariant, to not need to take an int* parameter, and store |
| 1079 | the beginning x-coordinate in a size_t instead of an int. |
| 1080 | (David Benbennick) |
| 1081 | do_replace() |
| 1082 | - Handle search_init()'s no longer returning -3 above, and add |
| 1083 | efficiency tweaks. (David Benbennick) DLR: Tweak to follow |
| 1084 | the old behavior of adding non-blank strings entered at the |
| 1085 | "Replace: " prompt to the search history. (DLR) |
David Lawrence Ramsey | c6908f2 | 2004-03-11 02:20:25 +0000 | [diff] [blame] | 1086 | do_gotoline() |
| 1087 | - Simplify the edit_update() call depending on the value of |
| 1088 | save_pos. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1089 | do_bracket() |
| 1090 | - Add efficiency tweaks. (David Benbennick) DLR: Remove |
| 1091 | reliance on the hardcoded bracket string length; instead, only |
| 1092 | require that the bracket string length be even. |
| 1093 | - utils.c: |
| 1094 | regexec_safe() |
| 1095 | - Wrap in HAVE_REGEX_H #ifdefs. (DLR) |
| 1096 | regexp_bol_or_eol() |
| 1097 | - New function used to check if a regex contains "^" and/or "$", |
| 1098 | assuming that the regex would be found if the REG_NOT(BOL|EOL) |
| 1099 | flags aren't used in the regexec() call; it replaces the |
| 1100 | direct regexec()s used before. (DLR) |
| 1101 | strstrwrapper() |
| 1102 | - Refactor for increased efficiency, and eliminate the need for |
| 1103 | the line_pos parameter. (David Benbennick) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 1104 | mallocstrcpy() |
| 1105 | - Tweak so that when src is "", "" is allocated and returned |
| 1106 | instead of NULL. (David Benbennick) |
David Lawrence Ramsey | e97c8d5 | 2004-01-14 19:26:29 +0000 | [diff] [blame] | 1107 | - winio.c: |
David Lawrence Ramsey | 58f6d83 | 2004-01-27 07:12:47 +0000 | [diff] [blame] | 1108 | get_verbatim_kbinput() |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 1109 | - Set keypad() to FALSE and switch to raw mode while reading |
David Lawrence Ramsey | 273d2ce | 2004-01-30 04:20:28 +0000 | [diff] [blame] | 1110 | input, and set it back to TRUE and go back into cbreak mode |
| 1111 | mode afterwards. (Note that if _POSIX_VDISABLE isn't defined, |
| 1112 | we don't need to change to or from raw mode since we're |
| 1113 | already in it exclusively.) This ensures that we don't end up |
| 1114 | reading in extended keypad values that are outside the ASCII |
| 1115 | range or having to deal with interrupt-generating key values. |
| 1116 | Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE |
| 1117 | when the user hits Ctrl-H, which, when cut down to ASCII |
| 1118 | range, ends up being Ctrl-G, which can be confusing. (DLR) |
David Lawrence Ramsey | ee383db | 2004-02-06 03:07:10 +0000 | [diff] [blame] | 1119 | - For consistency with get_kbinput(), use an int* to store and |
| 1120 | return the input instead of a char*, and tweak the functions |
| 1121 | that call it to handle this. (DLR) |
David Lawrence Ramsey | 2506136 | 2004-01-16 19:12:46 +0000 | [diff] [blame] | 1122 | get_accepted_kbinput() |
| 1123 | - Don't use "kbinput = wgetch(win)" as a switch value. (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 1124 | get_escape_seq_kbinput() |
| 1125 | - Add support for the escape sequences for F1-F14 whenever |
| 1126 | possible (i.e, whenever a conflict doesn't occur), some |
| 1127 | additional comments, and a few cosmetic cleanups. (DLR) |
David Lawrence Ramsey | ee383db | 2004-02-06 03:07:10 +0000 | [diff] [blame] | 1128 | - Use switch statements instead of strncmp() to read in the long |
| 1129 | xterm sequences for Ctrl-[arrow key] and Shift-[arrow key]. |
| 1130 | (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 1131 | get_escape_seq_abcd() |
| 1132 | - A resurrected version of the old abcd() function, readded in |
| 1133 | order to simplify get_escape_seq_kbinput(). (DLR) |
David Lawrence Ramsey | 0b047c5 | 2004-03-29 23:09:08 +0000 | [diff] [blame] | 1134 | get_mouseinput() |
David Lawrence Ramsey | 1576d53 | 2004-03-19 21:46:34 +0000 | [diff] [blame] | 1135 | - Interpret shortcut key values slightly more stringently when |
| 1136 | ungetch()ing them. (DLR) |
David Lawrence Ramsey | 0b047c5 | 2004-03-29 23:09:08 +0000 | [diff] [blame] | 1137 | strlenpt() |
| 1138 | - Properly cast the second parameter of the strnlenpt() call to |
| 1139 | size_t. (DLR) |
David Lawrence Ramsey | 66081d4 | 2004-01-22 07:25:31 +0000 | [diff] [blame] | 1140 | get_page_start() |
| 1141 | - For consistency, tweak so that scrolling always occurs when we |
| 1142 | try to move onto the "$" at the end of the line, as opposed to |
| 1143 | (a) when we move onto the "$" at the end of the line on the |
| 1144 | first page and (b) when we move onto the character just before |
| 1145 | the "$" on subsequent pages. (DLR) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1146 | reset_cursor() |
| 1147 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1148 | edit_refresh() |
| 1149 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 1150 | statusq() |
| 1151 | - Rename "tabs" to "allowtabs". (David Benbennick) |
David Lawrence Ramsey | e97c8d5 | 2004-01-14 19:26:29 +0000 | [diff] [blame] | 1152 | do_credits() |
| 1153 | - Use nanosleep() instead of usleep(). The latter is only |
| 1154 | standard under BSD, whereas the former is POSIX compliant. |
David Lawrence Ramsey | f5300af | 2004-02-24 20:48:12 +0000 | [diff] [blame] | 1155 | Accordingly, only include time.h if we use this function, i.e, |
| 1156 | if NANO_EXTRA is defined. (DLR) |
David Lawrence Ramsey | fdece46 | 2004-01-19 18:15:03 +0000 | [diff] [blame] | 1157 | - Add explanatory comment. (DLR) |
David Lawrence Ramsey | 35557c5 | 2004-03-07 15:14:56 +0000 | [diff] [blame] | 1158 | - configure.ac: |
| 1159 | - Change instances of "int main ()" to "int main(void)". (DLR) |
David Lawrence Ramsey | be66a6b | 2004-01-30 21:31:57 +0000 | [diff] [blame] | 1160 | - faq.html: |
| 1161 | - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0, |
| 1162 | not 1.1.12. (DLR) |
David Lawrence Ramsey | 475a2a7 | 2004-02-25 03:58:46 +0000 | [diff] [blame] | 1163 | - nano.1, nanorc.5, nano.texi |
| 1164 | - Clarify the description for -T/--tabsize a bit. (DLR) |
David Lawrence Ramsey | 04e42a6 | 2004-02-28 16:24:31 +0000 | [diff] [blame] | 1165 | - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic |
| 1166 | fixes by DLR) |
| 1167 | - nanorc.sample: |
| 1168 | - Add backupdir description. (Martin Ehmsen; minor cosmetic |
| 1169 | fixes by DLR) |
David Lawrence Ramsey | f0b3009 | 2004-01-10 06:02:05 +0000 | [diff] [blame] | 1170 | - README: |
| 1171 | - Reformat to 72 characters per line, fix wording in one spot, |
David Lawrence Ramsey | ce364e2 | 2004-03-03 01:25:46 +0000 | [diff] [blame] | 1172 | and fix spacing and capitalization in several spots. (DLR) |
David Lawrence Ramsey | 1eadebe | 2004-01-25 21:36:38 +0000 | [diff] [blame] | 1173 | - NEWS: |
| 1174 | - Capitalization fix. (DLR) |
David Lawrence Ramsey | 5ae684f | 2004-03-04 23:48:26 +0000 | [diff] [blame] | 1175 | - TODO: |
| 1176 | - Clarify the paragraph searching item, and add item for |
| 1177 | filename searches in the file browser. (DLR) |
David Lawrence Ramsey | 606dfda | 2004-01-09 23:26:54 +0000 | [diff] [blame] | 1178 | |
David Lawrence Ramsey | fa1497b | 2004-01-09 23:22:02 +0000 | [diff] [blame] | 1179 | GNU nano 1.3.1 - 2004.01.09 |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 1180 | - General: |
| 1181 | - Minor overhaul and abstraction of the lowest level of mouse |
| 1182 | input, mostly adapted from the code in do_mouse() that handles |
| 1183 | clicking on the shortcut list. New function do_mouseinput(); |
| 1184 | changes to do_mouse(). (DLR) David Benbennick: Add a few |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1185 | efficiency/extensibility tweaks. |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 1186 | - Modify the shortcut structure so that instead of having two |
| 1187 | miscellaneous key values (misc1 and misc2), there is one key |
| 1188 | value reserved for function keys (func_key) and one |
| 1189 | miscellaneous key value (misc), and tweak the |
| 1190 | shortcut-handling code to deal with this. These changes allow |
| 1191 | NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the |
| 1192 | shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove |
David Lawrence Ramsey | d291460 | 2003-11-30 02:22:22 +0000 | [diff] [blame] | 1193 | the values in the shortcut list and elsewhere that were made |
| 1194 | redundant by the low-level input overhaul, use toupper() |
| 1195 | instead of subtracting 32 from values for greater code |
| 1196 | readability, and eliminate use of adding 32 to values when |
| 1197 | testing for toggles, as get_kbinput_accepted() converts toggle |
| 1198 | values to lowercase before returning them. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1199 | - Remove the workarounds for missing KEY_UP and KEY_DOWN, as |
| 1200 | they appear to be holdovers of the old way of denoting the |
| 1201 | search history shortcuts; if they aren't defined, KEY_LEFT and |
| 1202 | KEY_RIGHT probably shouldn't work either, and all four appear |
| 1203 | to be standard keys in termcap/terminfo in any case. Add new |
| 1204 | special sentinel key values NANO_NO_KEY (for no shortcut key) |
| 1205 | and NANO_HISTORY_KEY (for search history keys, both Up and |
| 1206 | Down), modify the shortcut list to use them, and modify the |
| 1207 | shortcut display routines to handle them. Also modify the |
| 1208 | shortcut list code to not treat non-control character values |
| 1209 | of val as Meta-sequences, and fix dependencies on that |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1210 | behavior. Also rename several variables: "alt" -> "meta", |
| 1211 | "altval" -> "metaval". (DLR) |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 1212 | - Hook up the verbatim input functions so that verbatim input |
| 1213 | can be used in the edit window. New function |
| 1214 | do_verbatim_input(); changes to do_char(). (DLR) Additional |
| 1215 | minor tweaks to do_char() by David Benbennick. |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1216 | - Clarify the description of the --rebinddelete option. (DLR) |
David Lawrence Ramsey | 6481c3f | 2004-01-09 23:06:54 +0000 | [diff] [blame] | 1217 | - Miscellaneous comment tweaks, and copyright year updates in |
| 1218 | the comments and in do_credits(). (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1219 | - cut.c: |
| 1220 | - Overhaul to increase efficiency and add various cleanups. |
| 1221 | Changes to add_to_cutbuffer(), cut_marked_segment(), and |
| 1222 | do_uncut_text(). (David Benbennick) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 1223 | - files.c: |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1224 | check_operating_dir() |
| 1225 | - Add an assert to ensure that full_operatingdir isn't NULL, |
| 1226 | a fix for reporting nonexistent (incomplete) directory names |
| 1227 | as being outside the operating directory when tab completion |
| 1228 | is being used, and cosmetic cleanups. (David Benbennick) |
| 1229 | copy_file() |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 1230 | - New function used to create a copy of a file, split out from |
David Lawrence Ramsey | c2946fb | 2003-12-24 21:47:28 +0000 | [diff] [blame] | 1231 | do_writeout(). (David Benbennick) |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 1232 | write_file() |
| 1233 | - Completely overhauled to properly ignore appending/prepending |
| 1234 | to symlinks when NOFOLLOW_SYMLINKS is defined, to properly |
| 1235 | support writing a selection to a file under the changed |
| 1236 | cutting code, to have more concise error messages, to add |
| 1237 | various cleanups, and so on. (David Benbennick) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 1238 | do_writeout() |
David Lawrence Ramsey | bc503c8 | 2003-11-19 23:59:14 +0000 | [diff] [blame] | 1239 | - Prompt the user if we're trying to save an existing file (and |
| 1240 | not just a selection of it) under a different name. (DLR; |
| 1241 | suggested by Jean-Philippe Guérard) |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 1242 | - Overhaul the code used to write a selection of a file to |
| 1243 | temporarily set fileage and filebot to the top and bottom of |
| 1244 | the selection and then call write_file(), instead of following |
| 1245 | the old hackish behavior with cut_marked_segment() (which |
| 1246 | won't work after the cutting code changes anyway). (David |
David Lawrence Ramsey | 70bd6e0 | 2004-01-15 16:08:42 +0000 | [diff] [blame] | 1247 | Benbennick) DLR: Tweak to not add an extra blank line to the |
| 1248 | end of the written selection if the cursor is at the beginning |
| 1249 | of the last line of the selection. |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1250 | open_prevfile(), open_nextfile() |
| 1251 | - For consistency with the rest of the multibuffer code, change |
| 1252 | "No more open files" to "No more open file buffers". (DLR) |
| 1253 | do_browser() |
| 1254 | - Allow '?' to open the help browser, and readd the ability of |
| 1255 | 'G'/'g' to open the "Go to Directory" prompt (which was |
| 1256 | erroneously removed before), for compatibility with Pico. |
| 1257 | (DLR) |
David Lawrence Ramsey | 8fa1976 | 2003-11-03 00:13:21 +0000 | [diff] [blame] | 1258 | - global.c: |
| 1259 | shortcut_init() |
| 1260 | - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR) |
David Lawrence Ramsey | 3255929 | 2003-12-28 03:56:04 +0000 | [diff] [blame] | 1261 | - nano.c: |
| 1262 | do_int_spell_fix() |
| 1263 | - Add comment explaining why findnextstr() is called with |
| 1264 | bracket_mode set to TRUE even though we aren't doing a bracket |
| 1265 | search. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1266 | do_para_operation() |
| 1267 | - Convert to use the new low-level input functions. (DLR) |
| 1268 | main() |
| 1269 | - Remove unused variable option_index. (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1270 | - Fix omission of NANO_NO_KEY in the shortcut list scanning |
| 1271 | code. (DLR) |
David Lawrence Ramsey | f8ddf31 | 2004-01-09 22:38:09 +0000 | [diff] [blame] | 1272 | - Remove now-unnecessary initialization of kbinput. (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1273 | - nano.h: |
| 1274 | - Comment additions and cosmetic tweaks. (DLR) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 1275 | - search.c: |
David Lawrence Ramsey | 45cfbec | 2003-11-28 16:04:24 +0000 | [diff] [blame] | 1276 | findnextstr(), do_replace_loop() |
David Lawrence Ramsey | 18394ac | 2003-12-24 03:13:44 +0000 | [diff] [blame] | 1277 | - Fix potential infinite loops and other misbehavior when doing |
David Lawrence Ramsey | e190ff3 | 2004-01-03 21:42:25 +0000 | [diff] [blame] | 1278 | beginning-of-line or end-of-line regex replacements ("^", "$", |
| 1279 | and "^$"). Add a no_sameline parameter to findnextstr(), and |
| 1280 | set it in the calls in do_replace_loop() when such regexes are |
| 1281 | found, so that such regexes are only found once per line. |
| 1282 | Also change length_change from a long to an int; size_t is |
| 1283 | unsuitable due to its being unsigned. (DLR; found by Mike |
| 1284 | Frysinger and DLR) David Benbennick: Add a few minor cleanups |
| 1285 | to do_replace_loop(). |
David Lawrence Ramsey | 7776ef9 | 2003-11-04 18:32:35 +0000 | [diff] [blame] | 1286 | - winio.c: |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1287 | get_kbinput(), get_accepted_kbinput() |
| 1288 | - Don't pass in the value of the REBIND_DELETE flag anymore. |
| 1289 | Instead, handle it directly inside the functions. (DLR) |
David Lawrence Ramsey | 7776ef9 | 2003-11-04 18:32:35 +0000 | [diff] [blame] | 1290 | get_accepted_kbinput() |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1291 | - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY |
| 1292 | if REBIND_DELETE is set), since it apparently is generated |
| 1293 | sometimes even when keypad() is TRUE. (DLR) |
| 1294 | - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into |
| 1295 | NANO_FORWARD_KEY, since they are sometimes generated by |
| 1296 | Shift-Left and Shift-Right. (DLR) |
| 1297 | get_ascii_kbinput() |
| 1298 | - Tweak to make it slightly more readable. (DLR) |
| 1299 | get_verbatim_kbinput() |
| 1300 | - Modify to take an extra parameter indicating if we should |
| 1301 | interpret ASCII codes or not. (DLR) |
| 1302 | get_escape_seq_kbinput() |
| 1303 | - Expand to deal with more broken terminals that don't generate |
| 1304 | keypad values. Support the escape sequences for Insert, |
| 1305 | Delete, Home, End, PageUp, and PageDown, [arrow key], |
| 1306 | Ctrl-[arrow key], and Shift-[arrow key] when needed in the |
| 1307 | Linux console, the FreeBSD console, the Hurd console, xterm, |
| 1308 | rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII |
| 1309 | interpretation disabled, to read in the sequences. (DLR) |
| 1310 | get_skip_tilde_kbinput() |
| 1311 | - Removed, as it is unneeded due to the expansion of |
| 1312 | get_escape_seq_kbinput(). (DLR) |
| 1313 | get_mouseinput() |
| 1314 | - Modify to take an extra parameter indicating if we should |
| 1315 | ungetch() the key equivalents of shortcuts we click on or not. |
| 1316 | (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1317 | nanogetstr() |
| 1318 | - Properly interpret the Meta key value in misc if we hit it at |
| 1319 | the statusbar prompt. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1320 | do_yesno() |
| 1321 | - Add a few efficiency/extensibility tweaks. (David Benbennick) |
| 1322 | - Convert to use the new low-level input functions, and remove |
| 1323 | two last hardcoded widths left after the above tweaks. (DLR) |
David Lawrence Ramsey | 76c4b33 | 2003-12-24 08:17:54 +0000 | [diff] [blame] | 1324 | do_replace_highlight() |
| 1325 | - Display a highlighted space if the word length is zero, so |
| 1326 | that we can see zero-length regexes we're replacing. (DLR; |
| 1327 | suggested by Mike Frysinger) |
David Lawrence Ramsey | 4dca76f | 2003-11-20 00:15:52 +0000 | [diff] [blame] | 1328 | - configure.ac: |
| 1329 | - Check for glib 2.x and then 1.2.x if we need glib. (DLR) |
David Lawrence Ramsey | 47162bc | 2004-01-05 19:01:53 +0000 | [diff] [blame] | 1330 | - faq.html: |
| 1331 | - Add question explaining how verbatim input works, as well as a |
| 1332 | few minor fixes. (DLR) |
David Lawrence Ramsey | 9e45a47 | 2004-01-06 17:12:28 +0000 | [diff] [blame] | 1333 | - nano.1, nanorc.5: |
| 1334 | - Add nano version numbers (minus any "-cvs" suffixes). (DLR) |
David Lawrence Ramsey | 637f6e5 | 2003-11-04 18:34:44 +0000 | [diff] [blame] | 1335 | - nano.spec.in: |
| 1336 | - Update for the 1.3 branch of nano. (DLR) |
David Lawrence Ramsey | 9e45a47 | 2004-01-06 17:12:28 +0000 | [diff] [blame] | 1337 | - NEWS: |
| 1338 | - Reformat so all lines are limited to 72 columns, add a few |
| 1339 | typo fixes, and make a few minor cosmetic cleanups. (DLR) |
Jordi Mallach | a5d8e54 | 2003-11-06 10:47:44 +0000 | [diff] [blame] | 1340 | - THANKS: |
| 1341 | - Add Danilo Segan, for the Serbian translation. |
| 1342 | |
David Lawrence Ramsey | 133f7b1 | 2003-10-22 17:15:12 +0000 | [diff] [blame] | 1343 | GNU nano 1.3.0 - 2003.10.22 |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 1344 | - General: |
| 1345 | - Complete overhaul and abstraction of the lowest level of |
| 1346 | keyboard input, mostly rewritten but incorporating a few bits |
| 1347 | from the old functions and adding support for Pico's Esc Esc |
| 1348 | [three-digit decimal ASCII code] input method. New functions |
| 1349 | get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(), |
| 1350 | get_accepted_kbinput(), get_ascii_kbinput(), |
| 1351 | get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These |
| 1352 | should work properly on FreeBSD (due to code and input |
| 1353 | provided by Lee Nelson and Wouter van Hemel, respectively). |
| 1354 | (DLR) |
| 1355 | - The -K/--keypad command line/rcfile option has been removed, |
| 1356 | and keypad() is now always TRUE. keypad_on() in winio.c and |
| 1357 | the check for _use_keypad in configure.ac have both been |
| 1358 | removed. (DLR) |
| 1359 | - The -d/--rebinddelete command line/rcfile option, equivalent |
| 1360 | to Pico's -d, has been added. It is intended to work around |
| 1361 | the problem with Backspace/Delete confusion on some terminals, |
| 1362 | notably FreeBSD; if your Backspace key acts like Delete, this |
| 1363 | option will fix that. (DLR) |
David Lawrence Ramsey | a9cebd8 | 2003-08-17 03:31:57 +0000 | [diff] [blame] | 1364 | - Remove unneeded breaks at the ends of default: clauses. (DLR) |
David Lawrence Ramsey | e049706 | 2003-08-23 21:11:06 +0000 | [diff] [blame] | 1365 | - Add the ability to repeat the last search without prompting |
| 1366 | via Meta-W, and move the line wrapping toggle to Meta-L. New |
| 1367 | function do_research(). (Wouter van Hemel) |
David Lawrence Ramsey | 8faf305 | 2003-09-04 20:25:29 +0000 | [diff] [blame] | 1368 | - Added the ability to move to the beginning or end of the |
| 1369 | paragraph, which Pico has via ^W^W (previous paragraph) |
David Lawrence Ramsey | 4510834 | 2004-04-21 23:04:55 +0000 | [diff] [blame] | 1370 | and ^W^O (next paragraph). Changes to do_justify(); new |
| 1371 | functions do_para_operation(), do_para_begin(), and |
David Lawrence Ramsey | 8faf305 | 2003-09-04 20:25:29 +0000 | [diff] [blame] | 1372 | do_para_end(). Note that the last three functions are |
| 1373 | disabled if justification is disabled. (DLR) |
David Lawrence Ramsey | 417b03a | 2003-09-06 21:44:37 +0000 | [diff] [blame] | 1374 | - Make sure the "historylog" option isn't included at all if |
| 1375 | NANO_SMALL is defined. (DLR) |
Jordi Mallach | 3a42087 | 2003-10-19 23:30:48 +0000 | [diff] [blame] | 1376 | - Source reorganization: move code to src/, docs to doc/. |
| 1377 | (Jordi) |
Jordi Mallach | 298b975 | 2003-09-07 00:44:12 +0000 | [diff] [blame] | 1378 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | c97acfb | 2003-09-10 20:08:00 +0000 | [diff] [blame] | 1379 | - Since SAMELINEWRAP is only used in nano.c, make it a static |
| 1380 | variable in nano.c instead of a flag, and surround all |
David Lawrence Ramsey | 1356a0a | 2003-09-10 20:31:02 +0000 | [diff] [blame] | 1381 | wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR) |
| 1382 | - Change enum "topmidbotnone" to "topmidnone", as there's no |
| 1383 | BOTTOM option anymore. (DLR) |
David Lawrence Ramsey | 5ffbec5 | 2003-09-16 01:16:49 +0000 | [diff] [blame] | 1384 | - Split out the string-displaying routine from update_line() |
| 1385 | into a separate function; convert the edit window, statusbar |
| 1386 | display, and statusbar prompt to use it, so that they can all |
| 1387 | properly display control characters and tabs; free and NULL |
| 1388 | the backup search string in one place in the search code |
| 1389 | instead of several; and do some other minor refactoring of |
| 1390 | related display functions to simplify them. New functions |
| 1391 | mark_order() and display_string(); changes to actual_x(), |
David Lawrence Ramsey | 2dd7ed1 | 2003-09-29 05:15:24 +0000 | [diff] [blame] | 1392 | strnlenpt(), blank_bottombars(), blank_edit(), |
| 1393 | get_page_start(), edit_add(), update_line(), statusbar(), and |
| 1394 | do_replace_highlight(). (David Benbennick) DLR: Add minor |
| 1395 | cosmetic tweaks, add missing NANO_SMALL #ifdef around the text |
| 1396 | for a backwards search in the refactored code, and enclose |
| 1397 | dump_buffer() and dump_buffer_reverse() in one ENABLE_DEBUG |
| 1398 | #ifdef instead of two. |
David Lawrence Ramsey | 9eff746 | 2003-09-16 02:04:00 +0000 | [diff] [blame] | 1399 | - Convert memmove() function calls to charmove() macro calls, as |
| 1400 | the former all work on char*'s. (DLR) |
David Lawrence Ramsey | f5b256b | 2003-10-03 20:26:25 +0000 | [diff] [blame] | 1401 | - Miscellaneous #define cleanups: only include the prototype for |
| 1402 | and definition of wrap_at if wrapping and/or justification are |
| 1403 | enabled, remove duplicate wrap_at prototype, and define |
| 1404 | DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h |
| 1405 | instead of all over the code. (DLR) |
Jordi Mallach | 3a42087 | 2003-10-19 23:30:48 +0000 | [diff] [blame] | 1406 | - Autogenerate the html versions of the manpages in the |
| 1407 | Makefile.am's in doc/man/, make sure that they're properly |
| 1408 | installed via "make dist", and make sure that "make distcheck" |
David Lawrence Ramsey | 13dfdb2 | 2003-10-22 15:37:13 +0000 | [diff] [blame] | 1409 | works too. Also be sure to set EXTRA_DIST properly. (Jordi, |
| 1410 | DLR and Jeff Bailey) |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 1411 | - files.c: |
David Lawrence Ramsey | 7bf00de | 2003-09-23 04:25:05 +0000 | [diff] [blame] | 1412 | read_file() |
| 1413 | - After we've read in a file and possibly converted it from |
| 1414 | DOS/Mac format, set fileformat back to 0 to prevent erroneous |
| 1415 | conversion messages when we read other files in. (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1416 | do_browser() |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 1417 | - Some of the Pico compatibility options in the file browser |
David Lawrence Ramsey | 1018761 | 2003-08-17 05:40:45 +0000 | [diff] [blame] | 1418 | that don't work properly for current Pico have been removed. |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1419 | Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes |
| 1420 | the highlighted file, and 'r' renames the highlighted file; |
| 1421 | neither of these are implemented. (DLR) |
David Lawrence Ramsey | ba6fd42 | 2003-08-23 21:16:02 +0000 | [diff] [blame] | 1422 | - global.c: |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1423 | toggle_init() |
David Lawrence Ramsey | ba6fd42 | 2003-08-23 21:16:02 +0000 | [diff] [blame] | 1424 | - Change the message for the line wrapping toggle from "Auto |
| 1425 | wrap" to "Auto line wrap", to more clearly associate it with |
| 1426 | Meta-L. (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1427 | shortcut_init() |
David Lawrence Ramsey | cb7ee0e | 2003-08-31 17:08:59 +0000 | [diff] [blame] | 1428 | - Change multibuffer-enabled references to |
| 1429 | opening/closing/toggling the previous/next loaded file to |
| 1430 | toggling/switching to/closing the previous/next file buffer, |
| 1431 | for consistency with other references. (DLR) |
David Lawrence Ramsey | 2786366 | 2003-08-29 21:31:37 +0000 | [diff] [blame] | 1432 | - nano.c: |
| 1433 | window_init() |
| 1434 | - Set keypad() to TRUE regardless of whether PDCurses is being |
| 1435 | used, as Meta-X apparently turns it off even under ncurses. |
| 1436 | (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 1437 | do_backspace() |
| 1438 | - Vastly simplify, and remove dependency on page_up(). (David |
| 1439 | Benbennick) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1440 | help_init() |
| 1441 | - Document the support for Esc Esc [character]'s being |
| 1442 | interpreted as Ctrl-[character], and the support for Pico's |
| 1443 | Esc Esc [three-digit decimal ASCII code] input method. (DLR) |
David Lawrence Ramsey | f03c78b | 2003-09-28 21:26:49 +0000 | [diff] [blame] | 1444 | do_mark() |
David Lawrence Ramsey | cb34a67 | 2004-02-06 21:20:05 +0000 | [diff] [blame] | 1445 | - Toggle MARK_ISSET at the beginning of the function instead of |
| 1446 | setting it in one place and unsetting it in another place. |
David Lawrence Ramsey | f03c78b | 2003-09-28 21:26:49 +0000 | [diff] [blame] | 1447 | (David Benbennick) |
David Lawrence Ramsey | 99bede3 | 2003-09-29 07:21:11 +0000 | [diff] [blame] | 1448 | do_suspend() |
| 1449 | - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can |
| 1450 | properly deal with them while nano is suspended. (DLR; problem |
| 1451 | found by David Benbennick) |
David Lawrence Ramsey | f0b7dca | 2003-09-22 15:46:21 +0000 | [diff] [blame] | 1452 | abcd() |
| 1453 | - Removed, as it's unneeded due to the low-level input overhaul. |
| 1454 | (DLR) |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 1455 | - nano.h: |
David Lawrence Ramsey | e0a9f50 | 2003-09-07 05:32:24 +0000 | [diff] [blame] | 1456 | - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as |
| 1457 | slang has no equivalent of either. When nano is compiled with |
| 1458 | slang support, resizing the window doesn't generate |
| 1459 | KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux |
| 1460 | console with keypad(TRUE) generates Ctrl-Z instead of |
| 1461 | KEY_SUSPEND, both unlike ncurses. (DLR) |
David Lawrence Ramsey | 2530725 | 2003-10-10 04:42:48 +0000 | [diff] [blame] | 1462 | - Define KEY_RESIZE as -1 if it isn't defined, as it isn't in |
David Lawrence Ramsey | c1f630e | 2003-10-18 20:21:52 +0000 | [diff] [blame] | 1463 | the curses library included with SunOS 5.7-5.9. Also define |
David Lawrence Ramsey | 2530725 | 2003-10-10 04:42:48 +0000 | [diff] [blame] | 1464 | KEY_SUSPEND as -1 if it isn't defined, in case it isn't in |
| 1465 | more than just Slang. (DLR) |
David Lawrence Ramsey | f6cf4a7 | 2003-10-22 16:20:47 +0000 | [diff] [blame] | 1466 | - Define all potentially missing keys as different negative |
| 1467 | values (ERR is -1, so use -2, -3, etc.) so as to avoid having |
| 1468 | duplicate case values when keys are missing. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 1469 | - move.c: |
| 1470 | - Remove unneeded inclusion of stdio.h, make various cleanups, |
| 1471 | and preserve the cursor's coordinates when paging up and down. |
| 1472 | (David Benbennick) DLR: Readd the ability to behave the old |
| 1473 | way while paging, make it so the new behavior is only used in |
| 1474 | smooth-scrolling mode, and modify page_down() to always go |
| 1475 | down a full page (even when there's less than one page of text |
| 1476 | left) for consistency. |
| 1477 | page_up() |
| 1478 | - Removed due to rewrite of movement functions. (David |
| 1479 | Benbennick) |
David Lawrence Ramsey | c97acfb | 2003-09-10 20:08:00 +0000 | [diff] [blame] | 1480 | - proto.h: |
| 1481 | - Surround the do_prev_word() and do_next_word() prototypes with |
| 1482 | NANO_SMALL #ifdefs, since the actual functions aren't included |
| 1483 | in tiny mode. (DLR) |
David Lawrence Ramsey | 3bd9628 | 2003-09-06 05:09:32 +0000 | [diff] [blame] | 1484 | - rcfile.c: |
| 1485 | parse_colors() |
| 1486 | - Generate an error if we try to use a bright background color |
| 1487 | in a nanorc file. (DLR; found by Brand Huntsman) |
| 1488 | - Make sure all rcfile error messages are capitalized, for |
| 1489 | consistency. (DLR) |
David Lawrence Ramsey | ec290f2 | 2003-08-30 19:05:40 +0000 | [diff] [blame] | 1490 | - winio.c: |
David Lawrence Ramsey | da8fd8f | 2003-09-16 01:22:31 +0000 | [diff] [blame] | 1491 | get_verbatim_kbinput() |
| 1492 | - Fix a silly memory corruption bug that would occur when trying |
| 1493 | to read a sequence of more than one key verbatim. (DLR) |
| 1494 | get_accepted_kbinput() |
| 1495 | Handle Ctrl-{ to Ctrl-~ correctly, and drop support for |
| 1496 | converting Esc ` to Esc Space, since making Meta-[key] |
| 1497 | correspond to Ctrl-[key] in all cases is inconsistent due to |
| 1498 | the different natures of Contol and Meta key sequences. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 1499 | do_first_line() |
| 1500 | - Call edit_update() with TOP instead of CENTER; both do the |
| 1501 | same thing, but it works faster with TOP. (DLR) |
David Lawrence Ramsey | 7f47d42 | 2003-09-08 18:01:49 +0000 | [diff] [blame] | 1502 | nanogetstr() |
| 1503 | - Don't let the user type in ASCII 127 at the statusbar prompt. |
| 1504 | (DLR) |
David Lawrence Ramsey | ec290f2 | 2003-08-30 19:05:40 +0000 | [diff] [blame] | 1505 | titlebar() |
| 1506 | - Fix problem with the available space for a filename on the |
| 1507 | titlebar's being short by one. (DLR) |
David Lawrence Ramsey | 4dcd070 | 2003-10-03 04:20:28 +0000 | [diff] [blame] | 1508 | edit_add() |
| 1509 | - Fix problems with the marking highlight's being drawn |
| 1510 | improperly in some cases. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 1511 | edit_update() |
| 1512 | - Tweak for efficiency and remove the fix_editbot() call. (David |
| 1513 | Benbennick) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1514 | do_credits() |
| 1515 | - Update the copyright years to "1999-2003", to match those |
| 1516 | given in the rest of the code. (DLR) |
David Lawrence Ramsey | a3831ab | 2003-09-22 16:26:40 +0000 | [diff] [blame] | 1517 | - configure.ac: |
| 1518 | - Change instances of "GNU Nano" to "GNU nano" for consistency. |
| 1519 | (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1520 | - nano.1, nanorc.5, nano.texi: |
| 1521 | - Change all instances of $SYSCONFDIR to SYSCONFDIR, since |
| 1522 | SYSCONFDIR is set at compile time and can't be overridden by |
| 1523 | setting SYSCONFDIR in the environment. (David Benbennick) |
| 1524 | - Remove -K/--keypad, and document -d/--rebinddelete. (DLR) |
| 1525 | - Document the support for Esc Esc [character]'s being |
| 1526 | interpreted as Ctrl-[character], and the support for Pico's |
| 1527 | Esc Esc [three-digit decimal ASCII code] input method, if |
| 1528 | applicable. (DLR) |
Jordi Mallach | 298b975 | 2003-09-07 00:44:12 +0000 | [diff] [blame] | 1529 | - French translation by Jean-Philippe Guérard. |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 1530 | - nano.1.html, nanorc.5.html: |
| 1531 | - Regenerated. (DLR) |
| 1532 | - nanorc.sample: |
| 1533 | - Remove duplicate "historylog" entry, remove "keypad" entry, |
| 1534 | and add "rebinddelete" entry. (DLR) |
David Lawrence Ramsey | dc9c40a | 2003-09-07 23:54:57 +0000 | [diff] [blame] | 1535 | - Update and add comments to the regexes for nanorc files. |
| 1536 | (Brand Huntsman) |
David Lawrence Ramsey | 21cc550 | 2003-09-06 19:04:02 +0000 | [diff] [blame] | 1537 | - Fix an attempt at a bright background color in the sample Java |
| 1538 | source regexes. (DLR) |
| 1539 | - Since tabs are shown as groups of spaces, they are interpreted |
| 1540 | as such when parsed by color regexes. Accordingly, simplify |
| 1541 | regexes that handle both spaces and tabs to just handle |
| 1542 | spaces, as the results are the same. (DLR) |
Chris Allegretta | f3fee5d | 2003-08-12 02:40:47 +0000 | [diff] [blame] | 1543 | - AUTHORS |
| 1544 | - Updated to show 1.2/1.3 maintainers. |
| 1545 | |
Chris Allegretta | 6954f05 | 2003-08-12 02:34:03 +0000 | [diff] [blame] | 1546 | - 1.3 tree forks here |
| 1547 | |
Chris Allegretta | 3364214 | 2003-08-12 01:49:20 +0000 | [diff] [blame] | 1548 | GNU nano 1.2.2 - 2003.08.11 |
Jordi Mallach | 5b63eaf | 2003-06-11 10:17:20 +0000 | [diff] [blame] | 1549 | - General: |
| 1550 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 1551 | - Change uncast nrealloc()s assigned to char pointers/arrays to |
| 1552 | charealloc()s, and cast all other nrealloc()s and all |
| 1553 | nmalloc()s. (David Benbennick and DLR) |
Jordi Mallach | f9390af | 2003-08-05 19:31:12 +0000 | [diff] [blame] | 1554 | - Remove gettext marks from all debug messages. Good for developers, |
| 1555 | better for translators. (Jordi) |
| 1556 | - Add translator comments on strings that should be short, like in |
| 1557 | status bar strings, etc. (Jordi) |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 1558 | - utils.c: |
| 1559 | align() |
| 1560 | - Tweak to avoid a potential problem when strp is non-NULL but |
| 1561 | *strp is NULL. (David Benbennick) |
Chris Allegretta | 4f5335d | 2003-08-04 02:51:12 +0000 | [diff] [blame] | 1562 | nstricmp(), nstrnicmp() |
| 1563 | - Add these functions, equivalent to strcasecmp() and |
| 1564 | strncasecmp(), and convert nano to use them when strcasecmp() |
| 1565 | and/or strncasecmp() are unavailable. (DLR) |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 1566 | - winio.c: |
Chris Allegretta | 653d614 | 2003-08-04 02:12:03 +0000 | [diff] [blame] | 1567 | do_help() |
| 1568 | - Get rid of keypad_on() call for bottomwin, which should not be |
| 1569 | needed (DLR). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 1570 | nanogetstr() |
| 1571 | - Fix problem with search history where a temporary string |
| 1572 | added at the bottom of the history (but which was not in the |
| 1573 | history) would not be preserved after scrolling down to the |
| 1574 | blank bottom entry and then scrolling back up. (DLR) |
Chris Allegretta | c30fc24 | 2003-08-11 00:32:45 +0000 | [diff] [blame] | 1575 | - Fix problem where pressing down,up,down does not blank the |
| 1576 | search prompt but keeps the previous search (DLR). |
Chris Allegretta | 653d614 | 2003-08-04 02:12:03 +0000 | [diff] [blame] | 1577 | - Handle Alt-[-F and H (DLR, fixed home and end not working with |
| 1578 | -K in statusbar). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 1579 | - configure.ac: |
| 1580 | - Change the program used to detect a broken regexec() function |
| 1581 | so that it works properly, using information found at |
| 1582 | http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html. |
| 1583 | (DLR) |
| 1584 | - nanorc.sample: |
| 1585 | - Revised comment explaining the non-escaping of quotes to cover |
| 1586 | non-escaping of all shell-interpreted characters. (DLR) |
| 1587 | - Fixes to the descriptions and examples in the comments, and |
| 1588 | changes to some default values. (David Benbennick and DLR) |
| 1589 | - Add regexes for Perl syntax. (Richard Smith, tweaked for |
| 1590 | greater efficiency by David Benbennick) |
| 1591 | - Add regexes for Java source syntax. (David Benbennick) |
| 1592 | Regex for C++-style comments (colored the same way as C-style |
| 1593 | comments) added by DLR. |
Jordi Mallach | 2e6d0ca | 2003-04-24 18:23:56 +0000 | [diff] [blame] | 1594 | - THANKS: |
| 1595 | - Added Laurentiu Buzdugan, for Romanian. |
Jordi Mallach | 9e74ade | 2003-06-11 15:52:34 +0000 | [diff] [blame] | 1596 | - Added Geir Helland, for Norwegian BokmĂĄl. |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 1597 | - TODO: |
| 1598 | - Move the items for nano 1.2 to the "Old Requests" section, |
| 1599 | and mark color syntax highlighting as done. (David Benbennick) |
David Lawrence Ramsey | 6d97d18 | 2003-07-02 14:20:11 +0000 | [diff] [blame] | 1600 | - faq.html: |
| 1601 | - Added question about nano's not showing color when it's |
| 1602 | compiled with color support. (DLR; suggested by Jordi) |
Jordi Mallach | d995e9a | 2003-06-11 16:38:35 +0000 | [diff] [blame] | 1603 | - nano.1, nanorc.5: |
Jordi Mallach | 5b63eaf | 2003-06-11 10:17:20 +0000 | [diff] [blame] | 1604 | - Formatting improvements by Jean-Philippe Guérard. |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 1605 | - Minor fixes by DLR. |
| 1606 | - nano.1.html, nanorc.5.html: |
| 1607 | - Regenerated from nano.1 and nanorc.5. (DLR) |
Chris Allegretta | ffe575f | 2003-04-20 16:25:46 +0000 | [diff] [blame] | 1608 | |
Chris Allegretta | aa45931 | 2003-04-20 16:20:15 +0000 | [diff] [blame] | 1609 | GNU nano 1.2.1 - 2003.04.19 |
Jordi Mallach | 723399a | 2003-02-23 19:12:54 +0000 | [diff] [blame] | 1610 | - General: |
| 1611 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1612 | - Work around broken regexec() on some systems that segfaults |
David Lawrence Ramsey | 1a5c4c6 | 2004-09-07 00:48:49 +0000 | [diff] [blame] | 1613 | when passed an empty string. This is known to be in glibc |
| 1614 | 2.2.3. New function regexec_safe(). (David Benbennick) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1615 | - Fix various bugs with search string history logging: don't |
| 1616 | print a broken error message and freeze if ~/.nano_history is |
| 1617 | unreadable, actually show an error message in save_history() |
| 1618 | if ~/.nano_history is unwritable, and prevent ~/.nano_history |
| 1619 | from being completely overwritten by save_history() if it's |
| 1620 | unreadable but writable. (David Benbennick) |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 1621 | - Only unset KEEP_CUTBUFFER in main() when we do something other |
| 1622 | than cut text in the main input loop, instead of unsetting it |
| 1623 | all over the place (which, as written, didn't handle cases |
| 1624 | like a cut followed by M-Space properly). Also, instead of |
| 1625 | checking for keyhandled's not being set inside the for loops, |
| 1626 | do it in if blocks surrounding the for loops to increase |
| 1627 | efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER |
| 1628 | if we hit a shortcut key other than the one for cutting text. |
| 1629 | - Make it so a marked cut immediately followed by an unmarked |
| 1630 | cut tacks the latter's text onto the end of the former's text |
| 1631 | instead of putting it on a new line, as Pico does. (DLR) |
| 1632 | - Convert instances of "(char *)nrealloc()" to the macro |
| 1633 | charealloc(), which does the same thing. (DLR) |
Chris Allegretta | 8151ba5 | 2003-04-19 19:34:05 +0000 | [diff] [blame] | 1634 | - Change justify_mode from a boolean int to a flag (DLR). |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 1635 | - cut.c: |
| 1636 | do_cut_text() |
| 1637 | - Tweak where KEEP_CUTBUFFER is set so that a marked cut |
| 1638 | immediately followed by an unmarked cut preserves the |
| 1639 | cutbuffer between the two. (David Benbennick) DLR: Also |
| 1640 | properly set KEEP_CUTBUFFER in tiny mode. |
| 1641 | do_uncut_text() |
| 1642 | - If we're about to uncut on the magicline, always make a new |
| 1643 | magicline in advance, as Pico does. (DLR) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1644 | - global.c: |
| 1645 | shortcut_init() |
| 1646 | - Simplify the #ifdef used to enable file insertion in view mode |
| 1647 | if multibuffer support has been compiled in. (DLR) |
| 1648 | - nano.c: |
| 1649 | justify_format() |
| 1650 | - If we shave spaces off the end of the line, make sure totsize |
| 1651 | is properly updated. (DLR; much simplified by David |
| 1652 | Benbennick) |
| 1653 | - nano.h: |
| 1654 | - Simplify #ifdefs relating to HAVE_STRCASECMP and |
| 1655 | HAVE_STRNCASECMP. (David Benbennick) |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 1656 | - search.c: |
| 1657 | goto_abort() |
| 1658 | - Removed, with all instances replaced with display_main_list(), |
| 1659 | since with the removal of all the scattered calls to |
| 1660 | SET(KEEP_CUTBUFFER), that function was all that was left of |
| 1661 | it. (DLR) |
| 1662 | do_find_bracket() |
| 1663 | - If a matching bracket wasn't found, call update_line() after |
| 1664 | setting current and current_x back to their original values, |
| 1665 | in case current_x's original value is greater than the width |
| 1666 | of the screen. (DLR) |
Chris Allegretta | 4b376a4 | 2003-04-16 02:08:23 +0000 | [diff] [blame] | 1667 | - winio.c: |
| 1668 | nanogetstr() |
| 1669 | - Remove a few unnecessary breaks occurring immediately after |
| 1670 | gotos, and properly interpret the up and down arrow keys when |
| 1671 | ALT_KEYPAD is set. (DLR) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1672 | - configure.ac: |
| 1673 | - Enable autodetection of broken regexec(). (DLR) Re-added |
| 1674 | regex.h check to ensure compile under Debian w/autoconf 1.6. |
Jordi Mallach | db469d8 | 2003-03-24 13:08:16 +0000 | [diff] [blame] | 1675 | - README: |
| 1676 | - Update obsolete 1.1.x information. |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1677 | - TODO: |
| 1678 | - Fix typo. (David Benbennick) |
| 1679 | - faq.html: |
| 1680 | - Update RPM links for nano 1.2.x. (DLR) |
Chris Allegretta | dbc3ec7 | 2003-02-20 03:14:37 +0000 | [diff] [blame] | 1681 | |
Chris Allegretta | 2b4ead9 | 2003-02-20 01:56:02 +0000 | [diff] [blame] | 1682 | GNU nano 1.2.0 - 2003.02.19 |
Jordi Mallach | 07e2000 | 2003-02-14 22:10:14 +0000 | [diff] [blame] | 1683 | - General: |
| 1684 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 33ac7b9 | 2003-02-16 03:13:47 +0000 | [diff] [blame] | 1685 | - files.c: |
| 1686 | read_file() |
| 1687 | - If the file we're loading has already been detected as a DOS |
| 1688 | or Mac formatted file, don't turn on NOCONVERT if we find |
| 1689 | binary chars in it. This is because if it's detected as |
| 1690 | DOS/Mac format, at least one line has already been converted, |
| 1691 | so setting NOCONVERT (which is supposed to signal that none |
| 1692 | of the file should be converted) makes no sense. (DLR) |
Chris Allegretta | a7a78de | 2003-02-19 22:27:53 +0000 | [diff] [blame] | 1693 | - nano.c: |
| 1694 | justify_format() |
| 1695 | - Fix ugly behavior when wrapping spaces at the end of long |
| 1696 | words (David Benbennick). |
Jordi Mallach | 07e2000 | 2003-02-14 22:10:14 +0000 | [diff] [blame] | 1697 | - nanorc.5: |
| 1698 | - Fix formatting error and update copyright year (Jordi). |
Jordi Mallach | fc71eb5 | 2003-02-15 13:34:03 +0000 | [diff] [blame] | 1699 | - Several enhancements (David Benbennick). |
Chris Allegretta | 3d33251 | 2003-02-14 03:10:12 +0000 | [diff] [blame] | 1700 | |
Chris Allegretta | 7ba3279 | 2003-02-14 03:09:35 +0000 | [diff] [blame] | 1701 | GNU nano 1.1.99pre3 - 2003.02.13 |
Jordi Mallach | a577d5a | 2003-02-04 14:13:36 +0000 | [diff] [blame] | 1702 | - General: |
| 1703 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 201f1d9 | 2003-02-05 02:51:19 +0000 | [diff] [blame] | 1704 | - Fix globals and externs such that nano will compile with |
| 1705 | DISABLE_SPELLER (David Benbennick). |
Chris Allegretta | f8f2d58 | 2003-02-10 02:43:48 +0000 | [diff] [blame] | 1706 | - Fix unreasonable fill values by wrapping at length 0 instead |
| 1707 | of erroring out, and don't start up if the window size is too |
| 1708 | small but fill is set reasonably. Changes to |
| 1709 | nano.c:global_init(), window_init(), and handle_sigwinch(). |
| 1710 | New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH |
| 1711 | (David Benbennick). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1712 | - Change ngettext macro to P_(), to avoid a clash with the |
| 1713 | reserved C __ identifier (Jordi). |
Chris Allegretta | fdcb9e9 | 2003-02-12 02:52:04 +0000 | [diff] [blame] | 1714 | - Memory leak fixes for files.c:do_insertfile(),do_browser(), |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1715 | nano.c:do_spell(), and search.c:do_replace() (David |
| 1716 | Benbennick). |
Chris Allegretta | bcc8688 | 2003-02-13 01:54:41 +0000 | [diff] [blame] | 1717 | - Remove do_preserve_msg, as using -p still gives Pico-style |
| 1718 | string behavior, so an annoying message every invocation is |
| 1719 | probably unneeded (all cheer). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1720 | - Change resetpos function to be global (now called |
Chris Allegretta | 65f075d | 2003-02-13 03:03:49 +0000 | [diff] [blame] | 1721 | resetstatuspos. Fixes annoying but small odd problem with |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1722 | cursor placement when inserting a file. This needs to be done |
| 1723 | better in 1.3 (originally by David Lawrence Ramsey). Added |
| 1724 | this issue to TODO. |
Chris Allegretta | 3cdf6ff | 2003-02-08 02:02:02 +0000 | [diff] [blame] | 1725 | - files.c: |
Chris Allegretta | bcaeeb4 | 2003-02-08 02:03:26 +0000 | [diff] [blame] | 1726 | cwd_tab_completion() |
| 1727 | - Memory leak fix (David Benbennick). |
David Lawrence Ramsey | 9591ee5 | 2004-01-14 16:51:06 +0000 | [diff] [blame] | 1728 | input_tab() |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1729 | - Fix assumption that matches is null terminated (David |
Chris Allegretta | 3cdf6ff | 2003-02-08 02:02:02 +0000 | [diff] [blame] | 1730 | Benbennick). |
Chris Allegretta | a0449d9 | 2003-02-12 23:58:01 +0000 | [diff] [blame] | 1731 | load_history() |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1732 | - Fix segfault on loading huge strings from history file |
Chris Allegretta | a0449d9 | 2003-02-12 23:58:01 +0000 | [diff] [blame] | 1733 | (David Benbennick). |
Chris Allegretta | 1debce2 | 2003-02-13 22:00:19 +0000 | [diff] [blame] | 1734 | load_history(), save_history() |
| 1735 | - Changed to look at $HOME before getpwuid(geteuid()), see |
| 1736 | details in comment for rcfile.c:do_rcfile(). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1737 | real_dir_from_tilde() |
Chris Allegretta | 1debce2 | 2003-02-13 22:00:19 +0000 | [diff] [blame] | 1738 | - Change check for the running user's home dir to use |
| 1739 | getpwuid(geteuid()) rather than a getpwent() loop |
| 1740 | (suggested by Jordi). |
Chris Allegretta | 5ec6862 | 2003-02-05 02:39:34 +0000 | [diff] [blame] | 1741 | - nano.c: |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 1742 | breakable() |
| 1743 | - Fix incorrect return value on short lines (David Benbennick). |
Chris Allegretta | 4640fe3 | 2003-02-10 03:10:03 +0000 | [diff] [blame] | 1744 | do_help() |
| 1745 | - Fix line lengths not being computed properly, causes display |
| 1746 | glitches most noticeable with < 20 rows. New function |
| 1747 | nano.c:line_len(). (David Benbennick). |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 1748 | do_justify() |
| 1749 | - Add regfree() to quote regex (David Benbennick). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 1750 | - Only copy previous indent if AUTOINDENT is set (David |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 1751 | Benbennick). |
Chris Allegretta | 7641708 | 2003-02-12 23:54:34 +0000 | [diff] [blame] | 1752 | do_suspend() |
| 1753 | - Fix untranslated message (David Benbennick). |
Chris Allegretta | d127c71 | 2003-02-12 23:20:45 +0000 | [diff] [blame] | 1754 | do_wrap() |
| 1755 | - Fix isspace() call to operate on int. |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 1756 | help_init() |
| 1757 | - Fix crashing in do_help when COLS < 23 (David Benbennick). |
| 1758 | main() |
| 1759 | - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP |
| 1760 | (David Benbennick). |
Chris Allegretta | fe1d072 | 2003-02-13 00:52:49 +0000 | [diff] [blame] | 1761 | - Silence annoying compiler messages about clobbering and |
| 1762 | uninitialized variables by moving variable inits to the top |
| 1763 | of main() and re-initializing them after the sigsetjmp(). |
Chris Allegretta | d6e8436 | 2003-02-07 00:02:00 +0000 | [diff] [blame] | 1764 | - rcfile.c: |
| 1765 | colortoint() |
| 1766 | - Don't bomb after invalid color and print bad color name |
| 1767 | (David Benbennick). |
Chris Allegretta | 17ec14b | 2003-02-07 00:19:05 +0000 | [diff] [blame] | 1768 | colortoint, parse_colors() |
| 1769 | - Don't add strings with invalid fg colors at all. |
Chris Allegretta | 2e39c1c | 2003-02-13 03:36:15 +0000 | [diff] [blame] | 1770 | do_rcfile() |
| 1771 | - Revert (somewhat) previous behavior of looking at |
| 1772 | $HOME, and only run getpw* if it is NULL. Most *nix programs |
| 1773 | seem to only care about $HOME, and at the user-level |
| 1774 | getpw* may not be reliable (and its slower). |
Chris Allegretta | a90d0cf | 2003-02-10 02:55:03 +0000 | [diff] [blame] | 1775 | - search.c: |
| 1776 | do_gotoline() |
| 1777 | - Only goto_abort() if we *didnt* abort the command, making |
| 1778 | the function seem horribly misnamed ;-) (David Benbennick). |
Chris Allegretta | bfc8b2a | 2003-02-08 21:49:13 +0000 | [diff] [blame] | 1779 | - winio.c: |
Chris Allegretta | e9b5c6f | 2003-02-12 23:49:56 +0000 | [diff] [blame] | 1780 | browser_init(), striponedir(), do_browse_from() |
| 1781 | - Various memory leak fixes (David Benbennick). |
Chris Allegretta | b2cd248 | 2003-02-12 23:18:19 +0000 | [diff] [blame] | 1782 | do_yesno(), do_help() |
| 1783 | - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that |
| 1784 | don't understand MEVENT will compile. |
Chris Allegretta | bfc8b2a | 2003-02-08 21:49:13 +0000 | [diff] [blame] | 1785 | nanogetstr() |
| 1786 | - Remove unnecessary reset of x since it is now handled |
| 1787 | elsewhere (David Lawrence Ramsey). |
Chris Allegretta | a90d0cf | 2003-02-10 02:55:03 +0000 | [diff] [blame] | 1788 | statusq() |
| 1789 | - Always blank the statusbar on exit (David Benbennick). |
Chris Allegretta | 5ea694e | 2003-02-04 14:24:54 +0000 | [diff] [blame] | 1790 | - nano.1, nano.1.html: |
| 1791 | - Add initialization file comments, change some options from |
| 1792 | bracketed to underlined to emphasize that they are not |
| 1793 | optional. |
Jordi Mallach | a66a8f7 | 2003-02-09 01:28:40 +0000 | [diff] [blame] | 1794 | - Add SEE ALSO section (Jordi). |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 1795 | - Moved nano.1 color and syntax sections to nanorc, pointed |
| 1796 | nano.1 to nanorc.5 for initialization file. Changed |
| 1797 | nanorc.5 variables to be italics to match nano.1. Added |
| 1798 | nanorc.5.html to CVS tree. |
Jordi Mallach | a66a8f7 | 2003-02-09 01:28:40 +0000 | [diff] [blame] | 1799 | - nanorc.5: |
| 1800 | - Add nanorc manpage, with descriptions of all available commands |
| 1801 | (Jordi). |
Chris Allegretta | a3daf3a | 2003-02-07 00:11:55 +0000 | [diff] [blame] | 1802 | - nanorc.sample: |
| 1803 | - Make nanorc entry less tolerant of invalid colors. |
Chris Allegretta | 97e10b5 | 2003-02-08 22:05:50 +0000 | [diff] [blame] | 1804 | - nano.spec.in: |
| 1805 | - Change default flags to --enable-all. |
Jordi Mallach | 2ddd75e | 2003-02-09 23:51:17 +0000 | [diff] [blame] | 1806 | - THANKS: |
| 1807 | - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi). |
Jordi Mallach | aebfac8 | 2003-02-13 12:50:53 +0000 | [diff] [blame] | 1808 | - UPGRADE: |
| 1809 | - Add upgrading information document for 1.0 users (Jordi). |
Chris Allegretta | cddbfd0 | 2003-02-03 15:29:56 +0000 | [diff] [blame] | 1810 | |
Chris Allegretta | 5c8c276 | 2003-02-03 15:21:27 +0000 | [diff] [blame] | 1811 | GNU nano 1.1.99pre2 - 2003.02.03 |
Jordi Mallach | a577d5a | 2003-02-04 14:13:36 +0000 | [diff] [blame] | 1812 | - General: |
Chris Allegretta | 0e86e60 | 2003-01-23 04:27:23 +0000 | [diff] [blame] | 1813 | - Changed some translatable debug messages to use %s |
| 1814 | instead of the function name, and removed gettext from |
| 1815 | two strings that had no actual words in them that |
| 1816 | should be translated. Suggested originally by |
| 1817 | Christian Rose. |
Chris Allegretta | 9090f2e | 2003-01-26 04:45:05 +0000 | [diff] [blame] | 1818 | - Fix subexpression replacement to work consistently. |
| 1819 | Affects search.c:replace_regexp() and |
| 1820 | utils.c:strstrwrapper() (David Benbennick). |
Chris Allegretta | 47fcfe5 | 2003-01-26 21:01:16 +0000 | [diff] [blame] | 1821 | - Fix cursor position being saved when escaping out |
| 1822 | of nanogetstr with keys like ^Y and ^V. New arg |
| 1823 | resetpos to nanogetstr(), added static int |
| 1824 | resetpos in statusq() (bug found by DLR). |
Chris Allegretta | d26ab91 | 2003-01-28 01:16:47 +0000 | [diff] [blame] | 1825 | - Fix constant curos updates from obliterating other |
| 1826 | system messages, and fix statusbar message length. |
| 1827 | Affects files.c:load_open_file(), nano.c:main(), |
| 1828 | search.c:findnextstr(), winio.c:statusbar() and |
| 1829 | do_cursorpos() (David Benbennick). |
Chris Allegretta | 5d71514 | 2003-01-29 04:18:37 +0000 | [diff] [blame] | 1830 | - Fix nano crashing when searching/replacing an invalid |
| 1831 | regex (try "^*"). Changed regexp_init() to return |
| 1832 | 1 or 0 based on regcomp()'s return value and search_init |
Chris Allegretta | d89eb91 | 2003-02-03 07:07:40 +0000 | [diff] [blame] | 1833 | to exit with an error message (sorry Jordi!). Added |
| 1834 | another check when using last_search instead of answer. |
Chris Allegretta | ce452fb | 2003-02-03 02:56:44 +0000 | [diff] [blame] | 1835 | - Move regcomp into rcfile.c rather than each display refresh |
| 1836 | of winio.c. New function rcfile.c:nregcomp(). |
| 1837 | This fixes much of nano's resource hogging behavior |
| 1838 | in syntax higlighting. (David Benbennick). |
Chris Allegretta | cff6e6f | 2003-02-03 03:22:02 +0000 | [diff] [blame] | 1839 | - Fix justify failing for certain lines, new function |
| 1840 | nano.c:breakable() (David Benbennick). |
Chris Allegretta | a0d8997 | 2003-02-03 03:32:08 +0000 | [diff] [blame] | 1841 | - Fix screen getting trashed on signals nano can catch |
| 1842 | (TERM and HUP). New global variable curses_ended, |
Chris Allegretta | dbfc56c | 2003-02-03 03:33:04 +0000 | [diff] [blame] | 1843 | changes to winio.c:statubar() and nano.c:die() |
| 1844 | (David Benbennick). |
Chris Allegretta | 149781d | 2003-01-26 03:54:00 +0000 | [diff] [blame] | 1845 | - cut.c: |
| 1846 | do_cut_text() |
| 1847 | - Fix incorrect cursor location when cutting long lines |
| 1848 | (David Benbennick). |
Chris Allegretta | 54c1f79 | 2003-01-26 04:11:09 +0000 | [diff] [blame] | 1849 | - files.c: |
Chris Allegretta | 858d9d9 | 2003-01-30 00:53:32 +0000 | [diff] [blame] | 1850 | - Set a default PATH_MAX for getcwd() etc calls (David |
| 1851 | Benbennick). |
| 1852 | do_browse_from() |
| 1853 | - Fix path checking to fix bad paths, escaping |
| 1854 | the operating directory, new function readable_dir() (David |
| 1855 | Benbennick). |
Chris Allegretta | b698c35 | 2003-01-26 22:05:07 +0000 | [diff] [blame] | 1856 | do_browser() |
| 1857 | - Fix incorrect path check for check_operating_dir() |
| 1858 | (David Benbennick). |
Chris Allegretta | f80a59c | 2003-01-30 00:57:33 +0000 | [diff] [blame] | 1859 | - Fix goto directory operating dir check and tilde expansion |
| 1860 | (David Benbennick). |
Chris Allegretta | 0eab236 | 2003-02-03 03:39:05 +0000 | [diff] [blame] | 1861 | - Even more checks and operating dir fixes (David Benbennick). |
Chris Allegretta | 434d686 | 2003-02-03 04:55:17 +0000 | [diff] [blame] | 1862 | do_insertfile() |
| 1863 | - Add some more checks and fix recursion when toggling |
| 1864 | multibuffer (David Benbennick). |
Chris Allegretta | 54c1f79 | 2003-01-26 04:11:09 +0000 | [diff] [blame] | 1865 | open_file() |
| 1866 | - Fix FD leak with file load error (David Benbennick). |
Chris Allegretta | 5c63f27 | 2003-02-02 04:26:54 +0000 | [diff] [blame] | 1867 | add_open_file() |
| 1868 | - Revert the fix for the supposed minor logic error from before; |
| 1869 | it was keeping some updates from happening when they should, |
| 1870 | which was leading to segfaults with both multibuffer and view |
| 1871 | mode on. (DLR; found by David Benbennick) |
Chris Allegretta | 77e726d | 2003-01-26 19:36:08 +0000 | [diff] [blame] | 1872 | save_history() |
| 1873 | - Fix nrealloc return value being ignored (David Benbennick). |
Chris Allegretta | c453357 | 2003-02-03 05:04:09 +0000 | [diff] [blame] | 1874 | - Fix off-by-one bug causing write to unallocated memory |
| 1875 | (David Benbennick). |
Chris Allegretta | ce452fb | 2003-02-03 02:56:44 +0000 | [diff] [blame] | 1876 | - global.c: |
| 1877 | thanks_for_all_the_fish() |
| 1878 | - Fix compiling with DEBUG and multibuffer (David Benbennick). |
Jordi Mallach | eeb5004 | 2003-01-18 22:42:34 +0000 | [diff] [blame] | 1879 | - nano.c: |
Chris Allegretta | a340766 | 2003-01-26 21:13:03 +0000 | [diff] [blame] | 1880 | do_char() |
| 1881 | - Remove unneeded check_statblank() (David Benbennick). |
Chris Allegretta | 64fc78c | 2003-01-26 19:57:44 +0000 | [diff] [blame] | 1882 | do_int_spell_fix(), do_int_speller() |
| 1883 | - Fix crashes with mark position, current_x position, |
| 1884 | and edit_update args (David Benbennick). |
Chris Allegretta | 2a7b8b2 | 2003-01-30 00:42:20 +0000 | [diff] [blame] | 1885 | do_justify() |
| 1886 | - Unset KEEP_CUTBUFFER so nano won't crash with subsequent |
| 1887 | ^K cuts and justifies (David Benbennick). |
Chris Allegretta | e92a7bc | 2003-01-28 01:36:38 +0000 | [diff] [blame] | 1888 | do_mouse() |
| 1889 | - Fix the mouse code to work with lines longer than COLS and |
| 1890 | with the proper positioning, including special characters |
| 1891 | (David Benbennick). |
| 1892 | do_preserve_msg(): |
| 1893 | - Unsplit error message into a single fprintf call (Jordi). |
Chris Allegretta | 3d459ad | 2003-01-22 01:09:40 +0000 | [diff] [blame] | 1894 | main() |
| 1895 | - Call load_file with arg 0 for insert, as we aren't really |
| 1896 | doing an insert, allows new_file() to run if we open a |
| 1897 | non-file at startup. |
| 1898 | usage() |
Jordi Mallach | eeb5004 | 2003-01-18 22:42:34 +0000 | [diff] [blame] | 1899 | - Remove gettext markings from -p/--preserve (Jordi). |
Chris Allegretta | 36fec72 | 2003-01-22 01:13:25 +0000 | [diff] [blame] | 1900 | - Revamp -H option message to fit in 80 column terminal. |
Chris Allegretta | 1a128af | 2003-01-26 04:15:56 +0000 | [diff] [blame] | 1901 | window_init() |
| 1902 | - Fix leaking *WINDOWs (no pun intended) (David Benbennick). |
Chris Allegretta | 1939c35 | 2003-01-26 04:26:25 +0000 | [diff] [blame] | 1903 | - search.c: |
Chris Allegretta | 8a85aa0 | 2003-01-26 20:02:15 +0000 | [diff] [blame] | 1904 | do_search(), do_replace_loop() |
| 1905 | - Fix edit_update call to use CENTER instead of current_x |
| 1906 | (related to David Benbennick's fixes for spelling). |
Chris Allegretta | 1939c35 | 2003-01-26 04:26:25 +0000 | [diff] [blame] | 1907 | do_replace_loop() |
| 1908 | - Fix various bugs having to do with replace string length |
| 1909 | and positioning (David Benbennick). |
Chris Allegretta | 63d0b48 | 2003-01-26 19:47:10 +0000 | [diff] [blame] | 1910 | edit_refresh() |
| 1911 | - Fix cursor being above as well as below the current screen |
| 1912 | (David Benbennick). |
Chris Allegretta | 3bbc416 | 2003-01-23 00:46:12 +0000 | [diff] [blame] | 1913 | - winio.c: |
| 1914 | bottombars() |
| 1915 | - Change strcpy of gettext() "Up" string to strncpy of max |
| 1916 | width 8, to stop stupid strcpy crash. |
Chris Allegretta | db28e96 | 2003-01-28 01:23:40 +0000 | [diff] [blame] | 1917 | do_yesno() |
| 1918 | - Fix mouse interaction bugs with yes/no prompt (David Benbennick). |
Chris Allegretta | f22e8bf | 2003-01-23 01:21:26 +0000 | [diff] [blame] | 1919 | - nanorc.sample: |
| 1920 | - Change comment to say magenta instead of purple. |
| 1921 | |
Chris Allegretta | d46f544 | 2003-01-17 21:47:33 +0000 | [diff] [blame] | 1922 | GNU nano 1.1.99pre1 - 2003.01.17 |
David Lawrence Ramsey | dc60b72 | 2002-10-25 16:08:53 +0000 | [diff] [blame] | 1923 | - General: |
Chris Allegretta | d46f544 | 2003-01-17 21:47:33 +0000 | [diff] [blame] | 1924 | - New date format for NEWS and ChangeLog. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 1925 | - Completely removed PICO_MODE, as with the search/replace |
| 1926 | history patch we should have the extended functionality we can |
| 1927 | without being incompatible with Pico. Removed all code for |
| 1928 | different search/replace string editing and alternate shortcut |
| 1929 | list. I'm sure I won't even have to ask for feedback on this |
| 1930 | one :-) |
| 1931 | - Add in Pico's -p flag, (-p, --preserve). To preserve the XON |
| 1932 | and XOFF keys (^Q and ^S). Add warning if we invoke -p and |
| 1933 | add checks for using --preserve (to skip warning) and --pico |
| 1934 | (to force showing it). New flag PRESERVE, function |
| 1935 | do_preserve_msg(), changes to main(), signal_init(). |
| 1936 | - Search history and replace history up/down cursor arrows, |
| 1937 | w/history tab completion, not available w/NANO_SMALL. Changes |
| 1938 | to statusq(), others (Ken Tyler). Added shortcut to |
| 1939 | search/replace shortcuts so people will know it's there, |
| 1940 | forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case |
| 1941 | blame needs to be placed later). Minor fixes by DLR: allow ^P |
| 1942 | and ^N as alternatives to the up and down arrows, make sure |
| 1943 | the "Up" shortcut is displayed properly in the help menu, |
| 1944 | remove a few bits of unneeded and/or warning-generating code, |
| 1945 | and fix some missing statusq() prompts with --enable-tiny. |
Chris Allegretta | f3de8b5 | 2003-01-16 23:44:46 +0000 | [diff] [blame] | 1946 | - Added search/replace history log. Flag -H, --historylog. |
| 1947 | Flags HISTORY_CHANGED and HISTORYLOG (only room for one more |
| 1948 | flag!), added entries in nanorc.sample, new functions |
| 1949 | log_history and save_history (Ken Tyler). |
Jordi Mallach | 5e4b8cf | 2002-10-26 15:02:14 +0000 | [diff] [blame] | 1950 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | dc60b72 | 2002-10-25 16:08:53 +0000 | [diff] [blame] | 1951 | - Forward-ported Chris' --disable-wrapping-as-root option from |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 1952 | 1.0.9. Per Jordi's suggestions, have it override |
| 1953 | $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR) |
| 1954 | - Change all references to /etc/nanorc in the documentation to |
| 1955 | $SYSCONFDIR/nanorc. (DLR) |
David Lawrence Ramsey | 99519ae | 2002-11-04 16:12:19 +0000 | [diff] [blame] | 1956 | - Minor cosmetic tweaks to the ngettext() macro, and fix to |
| 1957 | properly detect systems lacking ngettext() and correctly |
| 1958 | compile on them; the previous fix didn't work. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 1959 | - Fix problems with some code sections' not being #ifdef'ed out |
| 1960 | when they should be, or being #ifdef'ed out improperly. (David |
| 1961 | Benbennick and DLR) |
| 1962 | - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the |
| 1963 | associated logic accordingly, throughout the code. (David |
| 1964 | Benbennick) |
| 1965 | - Rework #ifdefs to not include mouse_init() at all if |
| 1966 | DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR) |
| 1967 | - For consistency, change many references of (!x) to (x == NULL) |
| 1968 | and (x) to (x != NULL). (DLR) |
| 1969 | - Define KEY_IC properly (and KEY_DC more portably) when slang |
| 1970 | support is enabled, and remove the hack to work around the |
| 1971 | former's not being defined. (David Benbennick and DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 1972 | - Miscellaneous tweaks to update_color() calls, to make sure |
| 1973 | they're called at the right times and that refreshes are done |
| 1974 | afterwards only when needed. (David Benbennick) |
| 1975 | - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR) |
| 1976 | - Add the "preserve" option to the nanorc file, to match |
| 1977 | nanorc.sample. (DLR) |
Chris Allegretta | 0e7a3f5 | 2003-01-15 03:06:25 +0000 | [diff] [blame] | 1978 | - Fixed awful scrolling in do_int_speller. Problem was |
| 1979 | findnextstr() calling edit_update(), though screen updating |
| 1980 | is not its business. Added checks in do_search() and |
| 1981 | do_replace_loop() to do the checks. It really should not be |
| 1982 | done here, as some function in winio.c should handle this, |
| 1983 | but I can't seem to find a good place to put this check. |
Chris Allegretta | d757e25 | 2003-01-15 19:33:27 +0000 | [diff] [blame] | 1984 | - Updated all copyright notices to say 2003 rather than 2002, as |
| 1985 | nearly all the source files have been worked on this year |
| 1986 | (DLR). |
Jordi Mallach | 3e5ad63 | 2002-12-14 22:15:35 +0000 | [diff] [blame] | 1987 | - configure.ac: |
Jordi Mallach | a0e829c | 2003-01-15 17:43:59 +0000 | [diff] [blame] | 1988 | - Added tr and eu to ALL_LINGUAS (Jordi). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 1989 | - Fix now inaccurate description of --enable-tiny's effects; it |
| 1990 | no longer disables NLS support. (DLR) |
| 1991 | - Fix typo. (David Benbennick) |
| 1992 | - Check for strcasecmp() and strncasecmp(), since they are |
| 1993 | apparently only standard under BSD. (DLR) |
Jordi Mallach | 631ee1f | 2003-01-15 17:40:35 +0000 | [diff] [blame] | 1994 | - Small cleanups. Add copyright header, add autopoint support and |
| 1995 | define bug report address and full package name in AC_INIT. Move |
| 1996 | ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11. |
Chris Allegretta | d957f59 | 2003-01-17 00:17:45 +0000 | [diff] [blame] | 1997 | - Added --enable-all option to compile in all the extra stuff |
| 1998 | we'd normally need extra flags for. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 1999 | - color.c: |
| 2000 | update_color(): |
| 2001 | - Remove an unneeded edit_refresh() call after do_colorinit(). |
| 2002 | (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2003 | - cut.c: |
| 2004 | do_cut_text() |
| 2005 | - Fix a memory corruption problem caused by accessing edittop |
| 2006 | after it was freed but before it was reset to a sane value |
| 2007 | from current. (David Benbennick) |
| 2008 | do_uncut_text() |
| 2009 | - If uncutting more than one line of unmarked text at editbot, |
| 2010 | don't center the screen, since Pico doesn't. (DLR) |
Chris Allegretta | 688c8eb | 2003-01-14 23:36:11 +0000 | [diff] [blame] | 2011 | - If uncutting previously unmarked text, uncut to end if we're |
| 2012 | not at the beginning of the line, and set placewewant to 0 if |
| 2013 | we are. This matches Pico's behavior. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2014 | - files.c: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2015 | load_file() |
| 2016 | - Remove unneeded wmove() call. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2017 | read_line() |
| 2018 | - Miscellaneous cleanups. (David Benbennick) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2019 | open_file() |
| 2020 | - If we're in multibuffer mode and there's an error opening the |
| 2021 | file in read-only mode, display the error message on the |
| 2022 | statusbar regardless of the value of quiet. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2023 | read_file() |
| 2024 | - Miscellaneous cleanups. (David Benbennick) |
| 2025 | - Fix len's being off by one when reading in Mac-format files, |
| 2026 | exposed by one of David Benbennick's cleanups. (DLR) |
| 2027 | - If NO_CONVERT isn't set when we first enter, and it gets set |
| 2028 | while reading in the file, unset it again afterwards. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2029 | do_insertfile() |
| 2030 | - If we're in multibuffer mode and there's an error opening the |
| 2031 | file that we're trying to insert, close the new buffer that we |
| 2032 | made to hold it and reload the buffer we had open before. |
| 2033 | (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2034 | add_open_file() |
| 2035 | - Fix minor logic error when determining when to resave fileage |
| 2036 | and filebot. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2037 | load_open_file() |
| 2038 | - If switching between files when CONSTUPDATE is set, only force |
| 2039 | a cursor position display update if DISABLE_CURPOS isn't set. |
| 2040 | This will ensure that the "Switching to [file]" messages are |
| 2041 | shown. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2042 | write_file() |
| 2043 | - Change lineswritten from a long to an int, to match |
| 2044 | filestruct->lineno. (DLR; mismatch found by David Benbennick) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2045 | real_dir_from_tilde() |
| 2046 | - Since this is needed for proper interpretation of paths |
| 2047 | containing tildes and not just for tab completion, include and |
| 2048 | use it regardless of whether tab completion is disabled. |
| 2049 | (David Benbennick and DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2050 | input_tab() |
| 2051 | - Variable name change: matchBuf -> matchbuf. (DLR) |
| 2052 | diralphasort() |
| 2053 | - Remove the HAVE_STRCASECMP #ifdef block; see the changes to |
| 2054 | configure.ac and nano.h for why. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2055 | - global.c: |
| 2056 | thanks_for_all_the_fish() |
| 2057 | - Miscellaneous cleanups. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2058 | - move.c: |
| 2059 | do_page_down() |
| 2060 | - If there's a page or less of text, do an edit_update() if the |
| 2061 | mark is on; otherwise, the highlight won't be displayed. (DLR) |
David Lawrence Ramsey | 9e050ad | 2002-11-04 16:18:52 +0000 | [diff] [blame] | 2062 | - nano.c: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2063 | - Added free_history() list calls clean up, added init of list |
| 2064 | headers, and modified statusq() calls (Ken Tyler). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2065 | do_prev_word() |
| 2066 | - Make the assert match that in do_next_word(). (DLR) |
| 2067 | do_enter() |
| 2068 | - If smooth scrolling is on, and Enter is pressed on the |
| 2069 | magicline, don't center the screen. (DLR) |
| 2070 | do_justify() |
| 2071 | - Fix memory corruption problem triggered when edittop and |
| 2072 | current->next pointed to the same value and current->next was |
| 2073 | destroyed during justification. (DLR) |
| 2074 | - Center the screen when justification moves the cursor entirely |
| 2075 | off the bottom of the screen, instead of when it moves the |
| 2076 | cursor near the bottom of the screen, to more closely match |
| 2077 | Pico's behavior. (DLR) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2078 | version() |
| 2079 | - Remove obsolete reference to --enable-undo. (David Benbennick) |
Chris Allegretta | e660037 | 2003-01-17 03:39:41 +0000 | [diff] [blame] | 2080 | - Move up check for --disable-nls as it's independent of |
| 2081 | --enable-tiny now (DLR). |
Chris Allegretta | 5ad92ac | 2002-12-09 00:58:51 +0000 | [diff] [blame] | 2082 | do_int_speller() |
Chris Allegretta | 5af5889 | 2003-01-17 21:07:38 +0000 | [diff] [blame] | 2083 | - Make internal spell program use sort -f and uniq to create a |
| 2084 | less redundant word list. [The only reason this is going in |
| 2085 | during feature freeze is because the int speller is useless as |
| 2086 | is and should either be improved or removed. I chose |
| 2087 | improved]. |
Chris Allegretta | 3f1b685 | 2003-01-12 23:54:05 +0000 | [diff] [blame] | 2088 | - Change all child error checks to use one goto (gasp!) called |
| 2089 | close_pipes_and_exit, so we don't leak FDs. |
Chris Allegretta | 2d5fc3a | 2003-01-16 03:11:23 +0000 | [diff] [blame] | 2090 | - Fix FD leaks which occur outside of errors (David Benbennick). |
Chris Allegretta | 334a940 | 2002-12-16 04:25:53 +0000 | [diff] [blame] | 2091 | do_int_speller(), do_alt_speller() |
| 2092 | - Programs now return char *, NULL for successful completion, |
| 2093 | otherwise the error string to display. This allows us to give |
| 2094 | more useful feedback to the user when spell checking fails. |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2095 | ABCD() |
| 2096 | - Renamed abcd(). (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2097 | main() |
| 2098 | - Remove an unneeded do_colorinit() call, do major cleanups, and |
| 2099 | allow loading of multiple files on the command line when |
| 2100 | multibuffers are used. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2101 | - nano.h: |
| 2102 | - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same |
| 2103 | value. (DLR; discovered by Ken Tyler) |
| 2104 | - If strcasecmp() and/or strncasecmp() aren't available, use |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2105 | strcmp() and/or strncmp() instead. (DLR) |
| 2106 | - proto.h: |
| 2107 | - Fix the #ifdef block for DISABLE_TABCOMP's being undefined |
| 2108 | so that functions only used with tab completion are properly |
| 2109 | #ifdef'ed out. (DLR) |
| 2110 | - search.c: |
Chris Allegretta | 2ad0f6c | 2003-01-16 03:51:02 +0000 | [diff] [blame] | 2111 | do_gotoline() |
| 2112 | - Don't call blank_statusbar_refresh() so if there's an error |
| 2113 | returned in multibuffer mode, we can actually see it. |
Chris Allegretta | 688c8eb | 2003-01-14 23:36:11 +0000 | [diff] [blame] | 2114 | do_search() |
| 2115 | - Remove erroneously introduced near-duplicate call to |
| 2116 | update_history(). (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2117 | print_replaced() |
| 2118 | - Remove and replace with an equivalent ngettext() call. (DLR) |
| 2119 | do_replace_loop() |
| 2120 | - Fix bug where if text on the magicline was replaced (which can |
| 2121 | be done via a regexp replace of "^$" with something other than |
| 2122 | ""), a new magicline wouldn't be created. (DLR) |
Chris Allegretta | ca7113a | 2003-01-14 23:35:24 +0000 | [diff] [blame] | 2123 | - Remove check for answer being a blank string, presumed to be |
| 2124 | a PICO_MODE holdover, but it stops us from doing a blank |
| 2125 | spelling replacement. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2126 | do_replace() |
| 2127 | - For greater Pico compatibility, when an attempt to replace a |
| 2128 | string results in 0 replacements due to the string's not being |
| 2129 | found, display "[string] not found" instead of "Replaced 0 |
| 2130 | occurrences". (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2131 | - utils.c: |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 2132 | is_cntrl_char() |
| 2133 | - Rework to fix a problem with displaying certain high-bit |
| 2134 | characters. (David Benbennick; reported by Andrzej Marecki) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2135 | align() |
| 2136 | - Don't just assert that the string passed in isn't NULL; check |
| 2137 | that it isn't and only do the alignment when it isn't. (David |
| 2138 | Benbennick) |
| 2139 | nmalloc(), nrealloc() |
| 2140 | - If the size passed to nmalloc() or nrealloc() is zero, don't |
| 2141 | die with an erroneous out-of-memory error. Also, change |
| 2142 | their dying messages to "nano is out of memory!". (David |
| 2143 | Benbennick) |
| 2144 | charalloc() |
| 2145 | - Removed and redefined as a macro that calls nmalloc(). (David |
| 2146 | Benbennick) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2147 | - winio.c: |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 2148 | nanogetstr() |
| 2149 | - Tweak to make the cursor stay in the same place if we hit a |
| 2150 | prompt-changing toggle while it's in the middle of the string. |
Chris Allegretta | 5af5889 | 2003-01-17 21:07:38 +0000 | [diff] [blame] | 2151 | Reset it to -1 (so next time we come here, it'll be set to the |
| 2152 | end of the string) if we leave the prompt via Enter or Cancel. |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 2153 | Also fix minor problem with search history where the current |
| 2154 | search item could be at the bottom of the history twice in a |
| 2155 | row under certain conditions. (DLR) |
Chris Allegretta | 327abda | 2003-01-17 05:04:17 +0000 | [diff] [blame] | 2156 | - Remove parens in NANO_CONTROL_I check so nano won't complain if |
| 2157 | just NANO_SMALL is defined (David Benbennick). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2158 | edit_refresh() |
| 2159 | - Miscellaneous cleanups that fix a bug where the screen |
| 2160 | isn't updated after uncutting chunks of upwardly marked cut |
| 2161 | text that are over a page in length. (David Benbennick) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2162 | do_credits() |
| 2163 | - Add David Benbennick to credits. (DLR) |
| 2164 | - nanorc.sample: |
| 2165 | - Added comment to explain the non-escaping of quotes in |
| 2166 | color regexes, based on info provided by David Benbennick. |
| 2167 | (DLR) |
Chris Allegretta | ed4fb2c | 2003-01-11 01:14:07 +0000 | [diff] [blame] | 2168 | - Added some examples for groff and the nanorc courtesy of |
| 2169 | Robert D. Goulding. |
| 2170 | - Added double hash marks to comment lines, so people who |
| 2171 | uncomment the beginning of every line won't get syntax errors. |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2172 | - faq.html: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2173 | - Miscellaneous fixes and updates for typos, broken links, and |
| 2174 | slashes at the end of directories. It is now fully compliant |
| 2175 | with HTML 4.01 Transitional. (DLR and David Benbennick) |
Chris Allegretta | 3f8a63c | 2003-01-17 02:49:23 +0000 | [diff] [blame] | 2176 | - Added docs about the new unified search string interface and |
| 2177 | search histories, and added --enable-all into configure docs. |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2178 | - nano.texi: |
| 2179 | - Typo fixes and updates. (David Benbennick) |
Chris Allegretta | 9fa5fbd | 2003-01-13 02:56:29 +0000 | [diff] [blame] | 2180 | - Updates for the most recent and not so recent changes. |
Chris Allegretta | f9ab3f7 | 2003-01-17 03:06:28 +0000 | [diff] [blame] | 2181 | - nano.1, nano.1.html |
| 2182 | - Updated for the --preserve and --historylog options. |
Chris Allegretta | 916a8ec | 2003-01-05 21:51:16 +0000 | [diff] [blame] | 2183 | - TODO |
| 2184 | - Added some wishlist stuff. |
Jordi Mallach | 3e5ad63 | 2002-12-14 22:15:35 +0000 | [diff] [blame] | 2185 | - THANKS: |
Jordi Mallach | a0e829c | 2003-01-15 17:43:59 +0000 | [diff] [blame] | 2186 | - Added Doruk Fisek and Peio Ziarsolo (Jordi). |
Chris Allegretta | e8ad5ed | 2002-10-25 03:15:48 +0000 | [diff] [blame] | 2187 | |
Chris Allegretta | 2257893 | 2002-10-25 03:14:11 +0000 | [diff] [blame] | 2188 | GNU nano 1.1.12 - 10/24/2002 |
Jordi Mallach | dab0299 | 2002-10-06 23:35:19 +0000 | [diff] [blame] | 2189 | - General: |
| 2190 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 1dd0bc9 | 2002-10-13 18:43:45 +0000 | [diff] [blame] | 2191 | - Remove malloc.h, as it's unneeded and just causes annoyances on |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2192 | *BSD systems. Added stdlib.h to global.c. |
Chris Allegretta | 1dd0bc9 | 2002-10-13 18:43:45 +0000 | [diff] [blame] | 2193 | - Added Meta-Y toggle to disable/enable color syntax highlighting |
| 2194 | completely. This may eventually be per-buffer, but that's too |
| 2195 | complicated for a feature freeze. |
Chris Allegretta | e42df73 | 2002-10-15 00:27:55 +0000 | [diff] [blame] | 2196 | - Disable VSTOP keystroke. Stops people accidentally locking up |
| 2197 | nano (suggested by David Benbennick). |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 2198 | - Pluralize messages with ngettext() where needed. (David |
Chris Allegretta | d45c599 | 2002-10-25 01:41:31 +0000 | [diff] [blame] | 2199 | Benbennick) Tweaked to compile on systems lacking ngettext() |
| 2200 | by DLR (problem found by Ken Tyler). |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 2201 | - Update nano.1 and nano.1.html to show that nano now does an |
| 2202 | emergency save on receiving SIGHUP or SIGTERM. (DLR) |
| 2203 | - Don't include "nowrap" in the long options if |
| 2204 | DISABLE_WRAPPING is defined. (DLR) |
| 2205 | - files.c: |
| 2206 | read_file() |
| 2207 | - Minor efficiency fixes, some of which fit in with the change |
| 2208 | to ngettext() usage mentioned above. (David Benbennick) |
| 2209 | do_browser() |
| 2210 | - Make sure the value of path is mallocstrcpy()ed into retval |
| 2211 | and not just assigned to it, to avoid memory corruption |
| 2212 | problems. (DLR) |
| 2213 | - nano.c: |
Chris Allegretta | 2a15c58 | 2002-10-25 01:51:13 +0000 | [diff] [blame] | 2214 | version() |
| 2215 | - If ENABLE_NLS isn't defined, display "--disable-nls" |
| 2216 | (suggested by Ken Tyler). (DLR) |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 2217 | justify_format() |
| 2218 | - Make sure the double space maintained after sentence-ending |
| 2219 | punctuation is done when that punctuation is immediately |
| 2220 | followed by a bracket-type character, so justifying e.g. |
| 2221 | sentences in parentheses works properly. (David Benbennick) |
| 2222 | handle_hup() |
| 2223 | - Renamed handle_hupterm() to show that it now handles SIGTERM |
| 2224 | as well as SIGHUP. (DLR) |
| 2225 | signal_init() |
| 2226 | - Do an emergency save on receiving either SIGHUP or SIGTERM, |
| 2227 | not just SIGHUP. (David Benbennick) |
| 2228 | main() |
| 2229 | - Fix a problem where control key commands were printed |
| 2230 | literally instead of interpreted after a failed search of a |
| 2231 | one-line file. (David Benbennick) |
| 2232 | - proto.h: |
| 2233 | handle_hup() |
| 2234 | - Renamed handle_hupterm(); see above for why. (DLR) |
| 2235 | - winio.c: |
| 2236 | edit_add() |
| 2237 | - Fix a potential infinite loop occurring with certain |
| 2238 | zero-length regexes. (David Benbennick) |
Chris Allegretta | 71fb1f5 | 2002-10-02 00:21:31 +0000 | [diff] [blame] | 2239 | |
Chris Allegretta | 136a38a | 2002-10-02 00:05:40 +0000 | [diff] [blame] | 2240 | GNU nano 1.1.11 - 10/01/2002 |
Jordi Mallach | 25daa05 | 2002-07-29 00:16:38 +0000 | [diff] [blame] | 2241 | - General: |
| 2242 | - Translation updates (see po/ChangeLog for details). |
Jordi Mallach | 1f1022f | 2002-08-21 18:19:53 +0000 | [diff] [blame] | 2243 | - Upgraded to gettext 0.11.5 (Jordi). |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2244 | - Updated nano.1, nano.1.html, and nano.texi to fix an |
| 2245 | inaccuracy in the description of -Q/--quotestr. (DLR) |
| 2246 | - Set REG_EXTENDED in all regcomp() calls. (DLR) |
| 2247 | - Minor cosmetic code cleanups. (DLR) |
Chris Allegretta | f7c6811 | 2002-09-03 22:58:40 +0000 | [diff] [blame] | 2248 | - Changed do_insertfile to (a) report multibuffer status at the |
| 2249 | prompt and allowing it to be toggled, taking into account the |
| 2250 | need to keep the translatable strings, and (b) added a |
| 2251 | variable inspath to keep track of what the string was before |
| 2252 | toggling. I'm sure there's bugs, have at it. |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2253 | - Make sure all functions have prototypes in proto.h, and swap |
| 2254 | some functions around to put similar functions closer |
| 2255 | together (for this, rename clear_bottombars() to |
| 2256 | blank_bottombars()). (DLR; suggested by David Benbennick) |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2257 | - More changes of char *'s to const char *'s when possible. |
| 2258 | (David Benbennick) |
| 2259 | - Fix various minor memory leaks in files.c. (David Benbennick) |
| 2260 | - Fix minor problems with the operating directory code: set the |
| 2261 | operating directory properly if it's specified only in a |
| 2262 | nanorc file, and handle an operating directory of "/" |
| 2263 | properly. New function init_operating_dir() to handle |
| 2264 | setting it both on the command line and in the nanorc file. |
| 2265 | (David Benbennick) |
David Lawrence Ramsey | 1f28b8f | 2002-09-27 14:21:59 +0000 | [diff] [blame] | 2266 | - Major rewrite of color and screen update routines to fix |
| 2267 | minor bugs and increase efficiency. New function |
| 2268 | set_colorpairs() for the former. (David Benbennick) |
Jordi Mallach | cb7c8d8 | 2002-07-27 02:49:46 +0000 | [diff] [blame] | 2269 | - configure.ac: |
| 2270 | - Added pt_BR to ALL_LINGUAS (Jordi). |
Chris Allegretta | 82559b3 | 2002-08-22 01:12:41 +0000 | [diff] [blame] | 2271 | - Changed --enable-color warning to be slightly less severe. |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2272 | - Put the configure options in more or less alphabetical order, |
| 2273 | and remove --enable-undo, since it doesn't do anything. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2274 | - files.c: |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2275 | open_file() |
| 2276 | - String change: "File "x" is a directory" -> ""x" is a |
| 2277 | directory". (Jordi) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2278 | do_insertfile() |
| 2279 | - Disallow multibuffer toggling at the "Insert File" prompt if |
| 2280 | we're in both view and multibuffer mode, so as to keep proper |
| 2281 | integration between the two, and make sure the toggle |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2282 | actually works all the time otherwise. Also, make sure |
| 2283 | TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and |
| 2284 | ENABLE_MULTIBUFFER are both defined. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2285 | open_prevfile_void(), open_nextfile_void() |
| 2286 | - Return the return values of open_prevfile() and |
| 2287 | open_nextfile(), respectively, instead of (incorrectly) |
| 2288 | calling them and returning 0. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2289 | real_dir_from_tilde() |
| 2290 | - Rework to use getpwent() exclusively and end reliance on |
| 2291 | $HOME. Adapted from equivalent code in do_rcfile(). (DLR) |
| 2292 | input_tab() |
| 2293 | - Most likely fixed the check marked with FIXME, so that tab |
| 2294 | completion works properly when we're trying to tab-complete a |
| 2295 | username and the string already contains data. (DLR) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2296 | - global.c: |
| 2297 | shortcut_init() |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2298 | - Disable the new multibuffer toggle at the file insertion |
| 2299 | prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both |
| 2300 | defined. (DLR) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2301 | thanks_for_all_the_fish() |
| 2302 | - Make sure the reference to help_text is #ifdefed out when |
| 2303 | --disable-help is used. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2304 | - move.c: |
| 2305 | page_up() |
| 2306 | - Fix bug where current is moved up two lines when the up arrow |
| 2307 | is pressed on the top line of the edit window; this causes a |
| 2308 | segfault is the top line in the edit window is the second |
| 2309 | line of the file, as the line current ends up on doesn't |
David Lawrence Ramsey | 768e8f0 | 2002-08-22 04:03:45 +0000 | [diff] [blame] | 2310 | exist. (Jeff DeFouw) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2311 | do_down() |
| 2312 | - Fix bug where, if the last line in the edit window is the |
| 2313 | line before the magicline, and smooth scrolling is turned |
| 2314 | off, pressing the down arrow on that last line centers the |
| 2315 | cursor without updating the edit window. (Jeff DeFouw) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2316 | - nano.c: |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2317 | version() |
| 2318 | - Put the listed configure options in more or less alphabetical |
| 2319 | order. (DLR) |
| 2320 | open_pipe() |
| 2321 | - If we're in view mode here (in which case we're also in |
| 2322 | multibuffer mode), don't set the modification flag. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2323 | do_next_word(), do_prev_word() |
| 2324 | - If we're on the last/first line of the file, don't center the |
| 2325 | screen; Pico doesn't in the former case. (DLR) |
| 2326 | do_backspace() |
| 2327 | - Rework to call edit_refresh() regardless of the value of |
| 2328 | current_x if ENABLE_COLOR is defined, so that multiple-line |
| 2329 | color regexes are properly updated onscreen as they are in |
| 2330 | do_delete(). (DLR) |
| 2331 | do_delete() |
| 2332 | - Rework to only call edit_refresh() unconditionally if |
| 2333 | ENABLE_COLOR is defined; if it isn't, and we're not deleting |
| 2334 | the end of the line, only call update_line(). (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2335 | do_wrap() |
| 2336 | - Make sure wrapping is done properly when the number of |
| 2337 | characters on the line is exactly one over the limit. (David |
| 2338 | Benbennick) |
Chris Allegretta | 0ae5c72 | 2002-09-19 23:20:26 +0000 | [diff] [blame] | 2339 | - Restore the previous wrapping point behavior (pre 1.1.10) |
Chris Allegretta | 4300092 | 2002-09-21 15:41:33 +0000 | [diff] [blame] | 2340 | (David Benbennick). Minor fix by DLR to prevent spaces from |
| 2341 | being added to the ends of lines ending in spaces or lines |
| 2342 | ending in tabs (the latter case found by David Benbennick). |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2343 | do_alt_speller() |
| 2344 | - Readd DLR's fix to preserve marking when using the alternate |
| 2345 | spell checker; it was accidentally dropped. (David |
| 2346 | Benbennick) |
| 2347 | do_justify() |
| 2348 | - Fix cosmetic problems caused when justifying on the |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2349 | magicline, and a minor problem where the cursor would |
| 2350 | sometimes be moved to the wrong line after justification. |
| 2351 | (David Benbennick) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2352 | main() |
| 2353 | - When searching through the main shortcut list looking for a |
| 2354 | shortcut key, stop searching after finding one; this avoids a |
| 2355 | rare segfault. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2356 | - nano.h: |
| 2357 | - Change search toggles for case sensitive searching and regexp |
| 2358 | searching to M-C and M-R, respectively. (DLR; suggested by |
| 2359 | Chris) |
Chris Allegretta | 515ba32 | 2002-09-14 21:16:40 +0000 | [diff] [blame] | 2360 | - Add support for HP-UX's curses, which doesn't seem to support |
| 2361 | KEY_HOME and KEY_END. |
Chris Allegretta | 79cdfdc | 2002-08-22 02:58:55 +0000 | [diff] [blame] | 2362 | - nanorc.sample: |
| 2363 | - Fix the c-file regex for all caps words to be extended regex |
| 2364 | format ({} instead of \{\}) (found by DLR). |
Chris Allegretta | 3f9c3bf | 2002-09-18 00:00:12 +0000 | [diff] [blame] | 2365 | - Add a better string matching sequence that includes escaped |
| 2366 | quotes (thanks to Carl E. Lindberg, who doesn't even know he |
David Lawrence Ramsey | 1f28b8f | 2002-09-27 14:21:59 +0000 | [diff] [blame] | 2367 | helped ;-). Some unneeded \'s in that sequence removed, and |
| 2368 | a new sequence to handle multi-line quotes added, by David |
| 2369 | Benbennick. |
Chris Allegretta | 136a38a | 2002-10-02 00:05:40 +0000 | [diff] [blame] | 2370 | - Add some examples for HTML and TeX files (David Benbennick). |
Chris Allegretta | de85262 | 2002-09-18 00:28:57 +0000 | [diff] [blame] | 2371 | - rcfile.c: |
| 2372 | parse_colors() |
| 2373 | - Stop infinite loop when syntax doesn't begin with " char. |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2374 | - utils.c: |
| 2375 | charalloc() |
| 2376 | - Switch from using calloc() to using malloc(). (David |
| 2377 | Benbennick) |
David Lawrence Ramsey | 605165e | 2002-09-11 01:48:14 +0000 | [diff] [blame] | 2378 | - faq.html: |
| 2379 | - Typo fix. (DLR) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2380 | - AUTHORS: |
| 2381 | - Add David Benbennick. (Jordi and Chris) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2382 | - TODO: |
| 2383 | - Add entry in the 1.4 section for Pico's paragraph searching |
| 2384 | ability (at the search prompt, ^W goes to the paragraph's |
| 2385 | beginning, and ^O goes to the paragraph's end). (DLR) |
Chris Allegretta | 52069c6 | 2002-07-25 22:27:50 +0000 | [diff] [blame] | 2386 | |
Chris Allegretta | 720a9e0 | 2002-07-25 22:26:33 +0000 | [diff] [blame] | 2387 | GNU nano 1.1.10 - 07/25/2002 |
Jordi Mallach | cb7c8d8 | 2002-07-27 02:49:46 +0000 | [diff] [blame] | 2388 | - General: |
Jordi Mallach | 1f22687 | 2002-05-13 15:05:38 +0000 | [diff] [blame] | 2389 | - Translation updates (see po/ChangeLog for details). |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 2390 | - Upgraded to gettext 0.11.2 (Jordi). |
Jordi Mallach | bd33865 | 2002-06-03 12:32:28 +0000 | [diff] [blame] | 2391 | Removed intl/ entirely, and a few more tweaks by gettextize. |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2392 | - i18nized a few strings used in DEBUG mode. (DLR) |
| 2393 | - Some chars being assigned 0 are now assigned '\0'. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 2394 | - Put header file #includes in a more consistent order. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2395 | - Remove some unneeded blank lines and spaces, and make some |
| 2396 | spacing more consistent. (DLR) |
| 2397 | - When possible, use iscntrl() to determine whether a character |
| 2398 | is a control character or not. (DLR) |
| 2399 | - Miscellaneous typo fixes. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 2400 | - Many fixes to the help browser and shortcut lists: efficiency |
| 2401 | updates, consistency fixes, help text fixes and improvements, |
| 2402 | and spacing improvements. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2403 | - Make some functions use const variables when possible, and |
| 2404 | also make them static when necessary. (David Benbennick, |
| 2405 | necessary redefined by Chris ;-) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2406 | - Add Carl Drinkwater's backup file option (-B or --backup on the |
| 2407 | command line, M-B in nano's global shortcuts). If the original |
| 2408 | file is unchanged from when it was loaded, it is backed up to |
| 2409 | filename~; if the original file has been changed or deleted |
| 2410 | since it was originally loaded, it isn't backed up. The backup |
| 2411 | file retains the permissions, owner/group, and |
| 2412 | access/modification times of the original file. This option is |
| 2413 | disabled when --enable-tiny is used. It will not back up |
| 2414 | temporary files. Minor fixes to it by David Benbennick and |
| 2415 | DLR. Changes to open_file(), add_open_file(), |
| 2416 | load_open_file(), write_file(), and do_writeout(). |
| 2417 | - Add \n's to the ends of "filename is %s" debugging strings. |
| 2418 | (Carl Drinkwater) |
| 2419 | - Add the long option --quotestr as an alternative for -Q, and |
| 2420 | --regexp as an alternative for -R; they were listed in nano's |
| 2421 | usage information, but weren't actually in nano. Also, display |
| 2422 | "-?" as an alternative for "-h" in nano's usage information, |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2423 | put the command line options in a more consistent (i.e. mostly |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2424 | alphabetical) order in nano, put the long options in a more |
| 2425 | consistent order in rcfile.c and nanorc.sample, don't include |
| 2426 | rcfile options if their equivalent command line options are |
| 2427 | disabled, and remove obsolete relative option from |
| 2428 | nanorc.sample. (DLR) |
| 2429 | - Change "File Name to Append/Prepend" to "File Name to |
| 2430 | Append/Prepend to". The original prompt could confusingly |
| 2431 | imply that we are appending/prepending another file to the |
| 2432 | current file, when we are actually appending/prepending the |
| 2433 | current file to another file. (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2434 | - Put nano.1, nano.1.html, and nano.texi up to date, and fix a |
| 2435 | few inconsistencies in them. (DLR) |
| 2436 | - Typo fixes for the ChangeLog. (David Benbennick and DLR) |
| 2437 | - Complete rewrite of justification code to fix some bugs and |
| 2438 | improve its functionality. (David Benbennick) |
| 2439 | - If a variable isn't going to be used in tiny mode, #define it |
| 2440 | out when possible. (David Benbennick) |
| 2441 | - Major reworking of the cutting/screen-updating code in cut.c, |
| 2442 | some functions in utils.c, the cursor placement code in |
| 2443 | winio.c, and many, many other areas to increase efficiency. |
| 2444 | (David Benbennick) |
| 2445 | - Rework handling of prompts when there's a list of partial |
| 2446 | filename matches on the screen: remove kludgy case-by-case |
| 2447 | handling (which didn't even handle every case), and have |
| 2448 | statusq() handle it directly for all cases. (David Benbennick |
| 2449 | and DLR) |
| 2450 | - Fix some warnings and errors that show up when using gcc's |
| 2451 | -pedantic option. (DLR) |
| 2452 | - Add a comment to nanorc.sample warning that an out-of-range |
| 2453 | negative value for fill can make nano die complaining that |
| 2454 | the screen is too small (which may not be immediately |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2455 | obvious). (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2456 | - There were some opendir() calls in files.c without |
| 2457 | corresponding closedir() calls; add them. (DLR) |
| 2458 | - Move align() and null_at() from nano.c to utils.c, and move |
| 2459 | the openfilestruct handling functions from nano.c to files.c. |
| 2460 | (DLR) |
| 2461 | - In color.c, start the "#ifdef ENABLE_COLOR" block after |
| 2462 | including all the header files, as rcfile.c does; this fixes |
| 2463 | a warning about ANSI C'S inability to handle blank files. |
| 2464 | (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 2465 | - Add new function is_cntrl_char() as a wrapper for iscntrl(); |
| 2466 | this is needed to treat ASCII 0x80-0x9f as control characters |
| 2467 | consistently. (Without this, they will only be treated as |
| 2468 | such when gettext is used; when it isn't used, they will be |
| 2469 | printed as-is and be interpreted as commands by xterm, which |
| 2470 | will corrupt the display.) (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2471 | - Add command line option -I/--ignorercfiles to ignore |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2472 | $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to |
| 2473 | parsing getopt args (DLR). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2474 | - Fix minor bugs with importing certain text files in Mac |
| 2475 | format. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2476 | - files.c: |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2477 | append_slash_if_dir(), input_tab() |
| 2478 | - Changed variable names: lastWasTab -> lastwastab, matchBuf -> |
| 2479 | matchbuf. (DLR) |
| 2480 | check_operating_dir() |
| 2481 | - Memory leak fix. (David Benbennick) |
| 2482 | check_writable_directory() |
| 2483 | - Optimizations (David Benbennick). |
| 2484 | cwd_tab_completion() |
| 2485 | - Changed a variable name: dirName -> dirname. (DLR) |
| 2486 | do_browser() |
| 2487 | - Optimizations and mouse selection fixes (David Benbennick). |
| 2488 | do_writeout() |
| 2489 | - Fix problem with formatstr's being defined as NULL when |
| 2490 | --enable-tiny is used. Since formatstr isn't ever used in tiny |
| 2491 | mode, don't bother even creating the variable. (David |
| 2492 | Benbennick and DLR) |
| 2493 | do_insertfile() |
| 2494 | - Memory leak fix (accidentally dropped 1st time). |
| 2495 | (David Benbennick). |
| 2496 | get_full_path() |
| 2497 | - Memory leak fix. Also, make it properly interpret ~/ notation |
| 2498 | so, among other things, the option "--operatingdir ~" works. |
| 2499 | (David Benbennick) |
| 2500 | - More optimizations (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2501 | new_file() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2502 | - Make sure current_x is zero; this fixes a problem where the |
| 2503 | current cursor position wasn't reset when reading in a file in |
| 2504 | multibuffer mode. (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2505 | - Use make_new_node rather than setting up fileage by hand |
| 2506 | (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2507 | read_file(), read_line() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2508 | - Rework to properly handle nulls in the input file, fix |
| 2509 | detection of binary files to properly mark a file as binary if |
| 2510 | the only binary characters it contains are ASCII 127's, and |
| 2511 | after reading the last line of a file that doesn't end in a |
| 2512 | newline, increment totsize. Remove previous kludge to set |
| 2513 | totsize properly. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2514 | write_file() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2515 | - Rework to properly handle nulls in the input file. When |
| 2516 | appending/prepending, don't change the current file's name to |
| 2517 | the name of the file it's being appended/prepended to. When |
| 2518 | writing a marked selection to a file, save and restore totsize |
| 2519 | so it isn't decreased by the size of the selection afterward. |
| 2520 | (DLR) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2521 | - Optimizations (David Benbennick). |
Chris Allegretta | 6fe98d7 | 2002-05-16 23:30:14 +0000 | [diff] [blame] | 2522 | - global.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2523 | free_toggles() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2524 | - Only include if we're not using tiny mode. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2525 | toggle_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2526 | - Remove global entries for search toggles, as they aren't really |
| 2527 | global. (DLR) |
| 2528 | - Don't reinititialize the toggles if they've already been |
| 2529 | initialized; it's unnecessary and even causes a segfault in |
| 2530 | do_toggle() if Pico emulation mode is the toggle in question. |
| 2531 | Don't free the toggles here, either; it's unnecessary after the |
| 2532 | above change. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2533 | - If wrapping is disabled, don't include the toggle for it. |
| 2534 | (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2535 | shortcut_init() |
Chris Allegretta | 6fe98d7 | 2002-05-16 23:30:14 +0000 | [diff] [blame] | 2536 | - Rework IFHELP macro (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2537 | - move.c |
| 2538 | page_down(), page_up() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2539 | - Put sanity checks for current_x back in, to avoid rare |
| 2540 | segfaults (oops). Now, however, they are only called when |
| 2541 | placewewant is zero instead of being called unconditionally; |
| 2542 | see changes to winio.c:actual_x_from_start() below. (DLR) |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 2543 | - nanorc.sample: |
Chris Allegretta | 5c6379d | 2002-05-18 03:13:03 +0000 | [diff] [blame] | 2544 | - Put in much less crappy example regex rules for c-file. |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2545 | - nano.c: |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2546 | clear_filename() |
| 2547 | - Remove this function, as it has unneeded functionality, is |
| 2548 | short enough to be inlined, and is only called in two spots |
| 2549 | anyway. (DLR) |
| 2550 | die() |
| 2551 | - Rework slightly to remove redundant printing of last message |
| 2552 | and print all messages after resetting the terminal. (DLR) |
| 2553 | do_backspace() |
| 2554 | - Make sure placewewant is set properly, and that the mark is |
| 2555 | moved backwards. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2556 | do_char() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2557 | - Fix a problem where, if ENABLE_COLOR wasn't used, typing |
| 2558 | characters on a marked line before the beginning of the mark |
| 2559 | would make the highlight short by one. (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2560 | do_cont() |
| 2561 | - Handle the case where the window was resized while we were |
| 2562 | stopped. (David Benbennick) |
| 2563 | do_delete() |
| 2564 | - Make sure placewewant is set properly, to match Pico's |
| 2565 | behavior. (DLR) |
| 2566 | do_int_spell(), do_alt_spell() |
| 2567 | - Rework to save the marked selection before doing spell checking |
| 2568 | and restore it afterward. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2569 | do_next_word(), do_prev_word() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2570 | - Fix a problem where highlighting isn't done properly after |
| 2571 | calling either of these, and another problem where the cursor |
| 2572 | would move back too far in certain cases with do_prev_word(). |
| 2573 | (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2574 | do_toggle() |
| 2575 | - Since the search mode toggles aren't global anymore, we don't |
| 2576 | need to explicitly block them here anymore (which will end up |
| 2577 | blocking the global backup mode toggle, which is the same as |
| 2578 | the backwards search toggle). (DLR) |
| 2579 | do_wrap() |
| 2580 | - fill fixes and 'two short word wrap' bug (David Benbennick). |
| 2581 | global_init() |
| 2582 | - Call die_too_small() when fill is 0. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2583 | handle_sigwinch() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2584 | - Make sure we adjust fill when the window is resized. (David |
| 2585 | Benbennick) |
| 2586 | - Call die_too_small() when fill is 0. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2587 | help_init() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2588 | - Since the return value of snprintf() isn't well defined, use |
| 2589 | sprintf() instead. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2590 | main() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2591 | - Rework to blank out filename manually before doing anything |
| 2592 | with it, instead of calling clear_filename() in two places. |
| 2593 | Make startline an int instead of a long, since it's supposed to |
| 2594 | hold a line number. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 2595 | - Properly handle multiple -r settings on the command line. (Carl |
| 2596 | Drinkwater) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2597 | - Fix a bug that prevented file insertion via the Insert key |
| 2598 | from working at all when --enable-multibuffer wasn't used |
| 2599 | (oops). (DLR) |
| 2600 | - Adapt David Benbennick's fix to get fill to accept negative |
| 2601 | numbers properly in parse_rcfile() (see below) to the |
| 2602 | handlers for the -r and -T options as well, so that -r/-T 0 |
| 2603 | can be treated separately from -r/-T string. (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 2604 | - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space. |
| 2605 | (DLR) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 2606 | usage() |
| 2607 | - List the options that are ignored for the purpose of Pico |
| 2608 | compatibility, and make some minor consistency fixes. (DLR) |
Chris Allegretta | c46337b | 2002-07-23 00:34:48 +0000 | [diff] [blame] | 2609 | - nano.h: |
| 2610 | - Fix some space/tab formatting for flags (DLR). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2611 | - proto.h: |
| 2612 | - Remove external declaration of the global int fill, since |
| 2613 | it's now static. (DLR) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2614 | - rcfile.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2615 | parse_rcfile() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2616 | - Add David Benbennick's fix that allows fill to accept |
| 2617 | negative numbers properly. Specifically, use strtol() there |
| 2618 | instead of atoi() so that errors can be detected. Also |
| 2619 | adapted for tabsize by DLR. |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2620 | parse_next_regex(), colortoint() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2621 | - Only include if ENABLE_COLOR is defined. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2622 | - search.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2623 | search_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2624 | - Since the search mode toggles aren't global anymore, rework the |
| 2625 | part of this function referencing them so that they still work. |
| 2626 | (DLR) |
| 2627 | - Remove unneeded toggles variable. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2628 | - Fix a problem where the first character of buf was overwritten |
| 2629 | if the last search string was one third the number of columns |
| 2630 | plus one. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2631 | findnextstr() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2632 | - Update the current line at current_x if we don't find a match. |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 2633 | Also, pass current_x_find to strstrwrapper() so we know whether |
| 2634 | we're at the beginning of a string or not (see changes to |
| 2635 | strstrwrapper() below), and reset it between lines. (DLR) |
| 2636 | do_gotoline(): |
| 2637 | - Make sure placewewant is zero after we go to a line. (David |
| 2638 | Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2639 | do_gotopos() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2640 | - Simplify the sanity check to only put x within the range of the |
| 2641 | current line; don't call actual_x() anymore. (DLR) |
| 2642 | - utils.c: |
| 2643 | - Add sunder() and unsunder(). These functions convert nulls |
| 2644 | other than the terminating null in strings to newlines and |
| 2645 | back; they're used to handle null characters in files properly. |
| 2646 | (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2647 | lowercase() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2648 | - Remove, since it isn't actually used anywhere. (David |
| 2649 | Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2650 | strstrwrapper() |
| 2651 | - Set REG_NOTBOL when we're not at the beginning of a |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 2652 | string, to avoid false positives when searching for regular |
| 2653 | expressions prefixed with ^. Make it take a new parameter, |
| 2654 | line_pos, to determine where we are in the string. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2655 | check_wildcard_match() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2656 | - Changed variable names: retryPat -> retrypat, retryText -> |
| 2657 | retrytext. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2658 | - winio.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2659 | actual_x_from_start() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2660 | - Overhaul to make cursor placement more like that of Pico: add |
| 2661 | sanity check for i, and then place i as close to the value of |
| 2662 | xplus column as possible. This change is most noticeable when |
| 2663 | moving down through binary files. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2664 | do_credits() |
| 2665 | - Fix for the i18ned credits so it will compile with -pedantic |
| 2666 | (DLR & Chris). |
Chris Allegretta | 079b549 | 2002-09-19 23:54:53 +0000 | [diff] [blame] | 2667 | do_help() |
| 2668 | - Add support for the handled keyboard escape sequences in the |
| 2669 | help menu, as they are needed with some terminals (e.g. xterm |
| 2670 | with TERM=ansi). (DLR) |
| 2671 | edit_refresh() |
| 2672 | - Turn on leaveok() so the cursor doesn't bounce around the |
| 2673 | screen while we're updating it (most noticeable when using |
| 2674 | color syntax over a very slow connection). |
| 2675 | do_replace_highlight() |
| 2676 | - When using regexps, make sure the highlight is the length of |
| 2677 | the search result and not the regexp string. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2678 | nanogetstr() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2679 | - After the user presses Enter at the prompt, refresh the edit |
| 2680 | window in case there's a list of possible filename matches |
| 2681 | (left over from attempted tab completion) on it. (DLR) |
Chris Allegretta | 079b549 | 2002-09-19 23:54:53 +0000 | [diff] [blame] | 2682 | statusbar() |
| 2683 | - Limit statusbar display to the number of columns less four, and |
| 2684 | don't allow it to go over its original row. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2685 | titlebar() |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 2686 | - Tweak text spacing and printing so that the titlebar text looks |
| 2687 | better on smaller terminals. (Carl Drinkwater) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2688 | update_line() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2689 | - When marking control characters, make sure the mark moves |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2690 | forward by two characters instead of one. Rework control |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2691 | character display routine to display newlines within the line |
| 2692 | (which should never occur under normal circumstances; they will |
| 2693 | only be there if the line had nulls in it and was unsunder()ed |
| 2694 | beforehand) as ^@'s. (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 2695 | - Fix to properly treat ASCII 128-159 as control characters. |
| 2696 | (DLR) |
Jordi Mallach | 7d40134 | 2002-07-05 23:46:31 +0000 | [diff] [blame] | 2697 | - configure.ac: |
| 2698 | - Added ms to ALL_LINGUAS (Jordi). |
| 2699 | - Merged acconfig.h in (Jordi). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2700 | - Fixed so that --enable-debug defines DEBUG and undefines |
| 2701 | NDEBUG. (Carl Drinkwater) |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 2702 | - THANKS: |
| 2703 | - Completed a bit (Jordi). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 2704 | - Fixed David Benbennick's email address. (David Benbennick) |
| 2705 | - Typo fix. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 2706 | |
Chris Allegretta | 8b75a78 | 2002-05-13 00:09:30 +0000 | [diff] [blame] | 2707 | GNU nano 1.1.9 - 05/12/2002 |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 2708 | - General: |
| 2709 | - Typos n misspellings all over the place (David Benbennick). |
| 2710 | - Allow --tiny and --multibuffer to cooperate (who the heck |
| 2711 | would want this is beyond me but ;-). Changes to |
| 2712 | configure.ac, global.c, , (David Benbennick). |
Chris Allegretta | f2387fb | 2002-04-10 02:31:20 +0000 | [diff] [blame] | 2713 | - Change to openfilestruct for multibuffer mode by DLR. |
| 2714 | New functions nano.c:make_new_opennode(), free_openfilestruct(), |
| 2715 | delete_opennode(), unlink_opennode(), splice_opennode(), |
| 2716 | new struct openfilestruct in nano.h. |
Chris Allegretta | 0e9b7aa | 2002-04-16 03:15:47 +0000 | [diff] [blame] | 2717 | - Preliminary prepend code. This may be a bad idea, but I've |
| 2718 | been wanting it for awhile now and we'll see how bad it messes |
| 2719 | everything up. Changes to files.c:do_writeout(), write_file(). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2720 | Fixes for O_CREAT & append compatibility by David Benbennick. |
Chris Allegretta | 0547eb3 | 2002-04-22 23:52:34 +0000 | [diff] [blame] | 2721 | - Change from read() and write() to file streams by Jay Carlson. |
| 2722 | Allows OS to implement read and write ahead rather than making |
| 2723 | us do it. Hopefully merged properly. |
Chris Allegretta | dab017e | 2002-04-23 10:56:06 +0000 | [diff] [blame] | 2724 | - More cleanups with DISABLE flags, better free_shortcutage and |
| 2725 | free_toggle, and get rid of unnecessary variable decls with |
| 2726 | NANO_SMALL in shortcut_init() by David Benbennick. |
Chris Allegretta | b6c5dc2 | 2002-05-04 03:47:33 +0000 | [diff] [blame] | 2727 | - Added "syntax" command to .nanorc file, to allow multiple |
| 2728 | syntaxes. New function color.c:update_color(), calls in various |
| 2729 | files.c places, syntaxtype struct, global variables syntaxes, |
Chris Allegretta | 21c433d | 2002-05-04 04:24:29 +0000 | [diff] [blame] | 2730 | syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax |
Chris Allegretta | 09900ff | 2002-05-04 04:23:30 +0000 | [diff] [blame] | 2731 | to specify the type on the command line, if there's no good |
| 2732 | filename regex to use. Global variable syntaxstr. |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 2733 | - Changed many strcmp()s and strcpy()s to their equivalent |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2734 | '\0' counterparts (David Lawrence Ramsey). |
| 2735 | - Many changes to allow marked cutting to work with multiple |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 2736 | file buffers: changes to openfilestruct type in nano.h and |
| 2737 | files.c (David Lawrence Ramsey). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 2738 | - Changed NANO_SMALL to ENABLE_NLS for gettext disabling |
| 2739 | (David Benbennick). |
| 2740 | - Move next_key and pev_key definitions out of main() and into |
| 2741 | global.c where they belong (David Benbennick). |
Chris Allegretta | 5e76fe9 | 2002-05-12 20:54:16 +0000 | [diff] [blame] | 2742 | - color.c: |
| 2743 | update_color() |
| 2744 | - Add regfree call here to avoid memory leaks. |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 2745 | - configure.ac: |
| 2746 | - Define NDEBUG to silence asserts (David Benbennick). |
| 2747 | - files.c: |
| 2748 | get_next_filename() |
| 2749 | - Optimizations (David Benbennick). |
| 2750 | - global.c: |
| 2751 | shortcut_init() |
| 2752 | - Add missing free_shortcutage()s (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 2753 | thanks_for_all_the_fish() |
| 2754 | - Only defined when using DEBUG, makes sense (David Benbennick). |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 2755 | - nano.c: |
| 2756 | die_save_file() |
| 2757 | - Add missing free (David Benbennick). |
| 2758 | do_justify() |
| 2759 | - Optimizations (David Benbennick). |
| 2760 | do_wrap() |
| 2761 | - Complete rewrite (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 2762 | help_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2763 | - A little less readable, a lot shorter :-) (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 2764 | - Fix Meta-A not getting capitalized, and convert the ASCII |
| 2765 | #s to their character equivalent. |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 2766 | main() |
| 2767 | - Changed charalloc(), strcpy()s to mallocstrcpy()s. |
Chris Allegretta | 66f373f | 2002-04-05 23:33:09 +0000 | [diff] [blame] | 2768 | - nano.h: |
| 2769 | - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol) |
| 2770 | (David Benbennick). |
Chris Allegretta | 8902eba | 2002-03-30 18:02:54 +0000 | [diff] [blame] | 2771 | - nano.spec.in: |
| 2772 | - Don't put Chris' name as the Packager in the distribution |
| 2773 | by default (Im an idiot). |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 2774 | - Fixed Source line (David Lawrence Ramsey). |
Jordi Mallach | 42c6405 | 2002-04-30 02:33:14 +0000 | [diff] [blame] | 2775 | - nano.1: |
| 2776 | - Changed references to Debian GNU/Linux to Debian GNU (Jordi). |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 2777 | - nano.1.html: |
| 2778 | - Updated for -Y option (David Lawrence Ramsey). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 2779 | - rcfile.c: |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 2780 | - Made some rc file errors less fatal. |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 2781 | - Added in my patch for getpwent instead of relying on $HOME |
| 2782 | (David Lawrence Ramsey). |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 2783 | - winio.c: |
| 2784 | edit_add() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 2785 | - Changed some syntax highlight computations for the sake of COLS. |
Chris Allegretta | 3674c1d | 2002-05-12 20:43:49 +0000 | [diff] [blame] | 2786 | - Add in the necessary regfree() calls to stop nano from leaking |
| 2787 | memory like a sieve when using color syntax highlighting :-) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2788 | bottombars(), onekey() |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 2789 | - Cleanups (David Benbennick). |
Jordi Mallach | 0ab011f | 2002-04-05 11:25:00 +0000 | [diff] [blame] | 2790 | - po/gl.po: |
| 2791 | - Galician translation updates (Jacobo Tarrio). |
| 2792 | - po/de.po: |
| 2793 | - German translation updates (Michael Piefel). |
| 2794 | - po/fr.po: |
| 2795 | - French translation updates (Jean-Philippe Guérard). |
| 2796 | - po/ca.po, po/es.po: |
| 2797 | - Catalan and Spanish translation updates (Jordi). |
Jordi Mallach | b18bc69 | 2002-04-10 16:26:17 +0000 | [diff] [blame] | 2798 | - po/sv.po: |
| 2799 | - Swedish translation updates (Christian Rose). |
Jordi Mallach | d301e10 | 2002-04-13 14:46:26 +0000 | [diff] [blame] | 2800 | - po/nl.po: |
| 2801 | - Dutch translation updates (Guus Sliepen). |
Jordi Mallach | 7f80e66 | 2002-04-13 16:31:03 +0000 | [diff] [blame] | 2802 | - po/it.po: |
| 2803 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 0417a7b | 2002-04-19 21:59:35 +0000 | [diff] [blame] | 2804 | - po/ru.po, po/uk.po: |
| 2805 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | 934b76b | 2002-04-25 22:24:48 +0000 | [diff] [blame] | 2806 | - po/id.po: |
| 2807 | - Indonesian translation updates (Tedi Heriyanto). |
Jordi Mallach | ca76fa9 | 2002-05-05 15:04:26 +0000 | [diff] [blame] | 2808 | - po/sv.po: |
| 2809 | - Swedish translation updates (Christian Rose). |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 2810 | GNU nano 1.1.8 - 03/30/2002 |
Chris Allegretta | bef1297 | 2002-03-06 03:30:40 +0000 | [diff] [blame] | 2811 | - General |
| 2812 | - Type misalignments and mem leaks in renumber_all, do_justify |
| 2813 | and do_spell (Rocco & Steven Kneizys). |
Chris Allegretta | bb88ece | 2002-03-25 13:40:39 +0000 | [diff] [blame] | 2814 | - New "External Command" code, originally by Dwayne Rightler, |
Chris Allegretta | 77777d4 | 2002-03-29 16:31:29 +0000 | [diff] [blame] | 2815 | various fixes and changes by Chris, Rocco and David Benbennick. |
| 2816 | New function nano.c:open_pipe() and signal handler cancel_fork(), |
| 2817 | changes to do_insertfile(), new list extcmd_list, cmd is |
| 2818 | ^X after ^R. |
Chris Allegretta | 3533a34 | 2002-03-24 23:19:32 +0000 | [diff] [blame] | 2819 | - Added separate regex variable (color_regex and colormatches) |
| 2820 | so that color syntax and regex search/replace can coexist. |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 2821 | - Added new nano.spec file from Brett <brett@bad-sports.com>, |
| 2822 | added because maintaining the spec file is getting to be a large |
| 2823 | hassle ;) |
Chris Allegretta | 564535a | 2002-03-06 15:32:17 +0000 | [diff] [blame] | 2824 | - files.c: |
| 2825 | check_writable_directory() |
| 2826 | - Stat full_path, not path (Steven Kneizys). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 2827 | open_pipe() |
| 2828 | - I18nize the pipe error (DLR). |
Chris Allegretta | e373909 | 2002-03-29 15:06:05 +0000 | [diff] [blame] | 2829 | do_insertfile() |
| 2830 | - Handle cancel from ExtCmd properly (David Benbennick). |
Chris Allegretta | 52c5a6e | 2002-03-21 05:07:28 +0000 | [diff] [blame] | 2831 | read_file() |
| 2832 | - Abort if we read a file of 0 lines (num_lines == 0), fixes BUG #70. |
Chris Allegretta | f6cba64 | 2002-03-26 13:05:54 +0000 | [diff] [blame] | 2833 | - Reverse tests to stop segfault on editing a new file of 0 |
| 2834 | lines (David Benbennick) |
| 2835 | - Change input var to one char instead of array (David Benbennick). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 2836 | - Move NO_CONVERT check up so chars get read in properly (DLR). |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 2837 | - nano.c: |
Chris Allegretta | cf1d812 | 2002-03-21 19:53:36 +0000 | [diff] [blame] | 2838 | do_justify() |
| 2839 | - More fixes for indented justify (David Benbennick). |
Chris Allegretta | f21f3fc | 2002-03-25 03:26:27 +0000 | [diff] [blame] | 2840 | do_int_speller() |
| 2841 | - Fix zombie processes and spelling buffer issues (Rocco Corsi). |
Chris Allegretta | 5902f96 | 2002-03-07 12:40:39 +0000 | [diff] [blame] | 2842 | help_init() |
| 2843 | - Capitalize Meta altkeys. |
Chris Allegretta | b479c89 | 2002-03-09 20:03:10 +0000 | [diff] [blame] | 2844 | - Various fixes and string changes. |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 2845 | main() |
| 2846 | - Put NANO_SMALL defines around toggle pointer (noticed by Jordi); |
Chris Allegretta | 97e6fe6 | 2002-03-09 17:38:47 +0000 | [diff] [blame] | 2847 | usage() |
Chris Allegretta | 3fc5d57 | 2002-03-09 18:51:58 +0000 | [diff] [blame] | 2848 | - Rewritten to encompass systems with and without GETOPT_LONG. |
| 2849 | New function print1opt does most of the dirty work, stops |
| 2850 | duplication of effort and eases translator's jobs. Also |
| 2851 | breaks all the current translations ;-) |
Chris Allegretta | 45329a1 | 2002-03-10 01:22:21 +0000 | [diff] [blame] | 2852 | - proto.h: |
| 2853 | - Missing externs (Rocco). |
Chris Allegretta | 1596d38 | 2002-03-07 00:46:17 +0000 | [diff] [blame] | 2854 | - rcfile.c: |
Chris Allegretta | 78f0fc6 | 2002-03-29 19:41:57 +0000 | [diff] [blame] | 2855 | do_rcfile() |
| 2856 | - Reset lineno between system and local .nanorc file. |
| 2857 | - Fix errno->strerror(errno) mismatch. |
Chris Allegretta | e8e1034 | 2002-03-07 00:47:22 +0000 | [diff] [blame] | 2858 | parse_rcfile() |
| 2859 | - Don't use i for both for loop and atoi(), fixes lots of |
Jordi Mallach | 4951c66 | 2002-03-07 14:12:53 +0000 | [diff] [blame] | 2860 | potential crashes, 1st reported by Jean-Philippe Guérard. |
Chris Allegretta | 78f0fc6 | 2002-03-29 19:41:57 +0000 | [diff] [blame] | 2861 | rcfile_error() |
| 2862 | - Don't print out the file name if we haven't opened the file |
| 2863 | yet (lineno == 0). |
Chris Allegretta | 45329a1 | 2002-03-10 01:22:21 +0000 | [diff] [blame] | 2864 | - search.c: |
| 2865 | search_init() |
| 2866 | - Fix a missing free (Rocco). |
Chris Allegretta | d1c2c1c | 2002-03-26 17:58:42 +0000 | [diff] [blame] | 2867 | do_gotoline() |
| 2868 | - Set placewewant if we actually move to a different line. |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 2869 | - utils.c: |
Chris Allegretta | dce44ab | 2002-03-16 01:03:41 +0000 | [diff] [blame] | 2870 | stristr() |
| 2871 | - Defined regardless of NANO_SMALL (noticed by Jordi). |
Chris Allegretta | 77777d4 | 2002-03-29 16:31:29 +0000 | [diff] [blame] | 2872 | nperror() |
| 2873 | - New wrapper for perror (David Benbennick). |
Chris Allegretta | dce44ab | 2002-03-16 01:03:41 +0000 | [diff] [blame] | 2874 | - winio.c: |
| 2875 | do_credits() |
| 2876 | - Add Thomas Dickey. |
Chris Allegretta | f3a07b2 | 2002-03-29 15:15:38 +0000 | [diff] [blame] | 2877 | do_cursorpos() |
| 2878 | - Make col numbering start from 1 (suggested by Andrew Ho). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 2879 | update_line(), xpt() |
| 2880 | - Add check for 127 (DLR). |
Jordi Mallach | 4951c66 | 2002-03-07 14:12:53 +0000 | [diff] [blame] | 2881 | - po/sv.po: |
| 2882 | - Swedish translation updates (Christian Rose). |
| 2883 | - po/de.po: |
| 2884 | - German translation updates (Michael Piefel). |
Jordi Mallach | 4e803aa | 2002-03-09 18:05:53 +0000 | [diff] [blame] | 2885 | - po/id.po: |
| 2886 | - Indonesian translation updates (Tedi Heriyanto). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 2887 | - po/it.po: |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 2888 | - Serious typo. |
Jordi Mallach | 4e803aa | 2002-03-09 18:05:53 +0000 | [diff] [blame] | 2889 | - po/ca.po, po/es.po: |
| 2890 | - Catalan and Spanish translation updates (Jordi). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 2891 | - Typo (DLR). |
Jordi Mallach | 558b5d8 | 2002-03-11 13:23:33 +0000 | [diff] [blame] | 2892 | - po/fr.po: |
| 2893 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 5477e10 | 2002-03-12 16:15:50 +0000 | [diff] [blame] | 2894 | - po/gl.po: |
| 2895 | - Galician translation updates (Jacobo Tarrio). |
Jordi Mallach | 057c3c4 | 2002-03-14 11:00:56 +0000 | [diff] [blame] | 2896 | - po/uk.po, po/ru.po: |
| 2897 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | b83e61a | 2002-03-15 15:15:13 +0000 | [diff] [blame] | 2898 | - po/pl.po: |
| 2899 | - Polish translation updates (Wojciech Kotwica). |
Jordi Mallach | 7fa082d | 2002-03-17 00:35:41 +0000 | [diff] [blame] | 2900 | - po/fr.po: |
| 2901 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 7afc6d9 | 2002-03-27 16:34:46 +0000 | [diff] [blame] | 2902 | - po/it.po: |
| 2903 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 465a0ff | 2002-03-29 00:46:05 +0000 | [diff] [blame] | 2904 | - po/da.po: |
| 2905 | - Danish translation updates (Keld Simonsen). |
Chris Allegretta | bef1297 | 2002-03-06 03:30:40 +0000 | [diff] [blame] | 2906 | |
Chris Allegretta | 97489d2 | 2002-03-05 23:47:44 +0000 | [diff] [blame] | 2907 | GNU nano 1.1.7 - 03/05/2002 |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2908 | - General |
| 2909 | - malloc->calloc, etc cleanups (DLR). |
| 2910 | - New option, noconvert (-N, --noconvert) to completely stop |
| 2911 | the translation of files from DOS or Mac format (DLR). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2912 | - New functions check_writable_directory() and safe_tempnam() |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 2913 | to get around the tempnam warning. More improvements (DLR) |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 2914 | Still needs testing. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2915 | - Added DOS and Mac format options to write file routine. |
| 2916 | Changes to shortcut_init() and do_writeout(). |
| 2917 | - Removed stupid static definitions of toggles and shortcut |
| 2918 | lists. Many changes to shortcut_init(), toggle_init(), |
| 2919 | statusq(), nanogetstr(), main(), and many other places. |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 2920 | - Multibuffer mode now allows multiple empty filenames. |
| 2921 | Changes to add_open_files(), removed open_file_dup_search(), |
| 2922 | open_file_dup_fix(), etc (DLR). |
| 2923 | - New code to handle multiple .save files. Changes to |
| 2924 | die_save_file(), new function files.c:get_next_filename() |
| 2925 | and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris) |
Chris Allegretta | f5de33a | 2002-02-27 04:14:16 +0000 | [diff] [blame] | 2926 | - Many malloc() cleanups and files.c tweaks by Steven Kneizys, |
| 2927 | new functions utils.c:free_shortcutage() (got to love that |
| 2928 | name!) & free_toggles(), and big cleanup program |
| 2929 | thanks_for_all_the_fish() (originally |
| 2930 | thanks_for_the_memories()). Mods to shortcut_init() by Chris. |
Chris Allegretta | e4f940d | 2002-03-03 22:36:36 +0000 | [diff] [blame] | 2931 | - Preliminary quoting support for justify. New arg -Q, --quotestr, |
| 2932 | changes to do_justify(), global variable quotestr(). |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 2933 | - Makefile.am: |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2934 | - Add SYSCONFDIR to DEFS, so we can have an $SYSCONFDIR/nanorc. |
Chris Allegretta | 40b85e7 | 2002-02-09 21:56:09 +0000 | [diff] [blame] | 2935 | - Change localedir line to 1.0's version. |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 2936 | - Moved m4/ stuff to its own m4/Makefile.am. |
Jordi Mallach | 87435d9 | 2002-03-05 17:58:34 +0000 | [diff] [blame] | 2937 | - m4/aclocal_inc.m4: |
| 2938 | - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look for |
| 2939 | macros (Gergely Nagy). |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 2940 | - configure.in: |
| 2941 | - Renamed to configure.ac. |
| 2942 | - configure.ac: |
| 2943 | - Moved to autoconf 2.52 (Jeff Bailey). |
Jordi Mallach | 87435d9 | 2002-03-05 17:58:34 +0000 | [diff] [blame] | 2944 | - Added call to AM_ACLOCAL_INCLUDE. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2945 | - files.c: |
| 2946 | read_byte() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2947 | - Added check for control characters (indicative of a binary |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 2948 | file), set NO_CONVERT if found (fixes by DLR). |
Chris Allegretta | f5de33a | 2002-02-27 04:14:16 +0000 | [diff] [blame] | 2949 | do_insertfile() |
| 2950 | - Added support for -o in prompt (Steven Kneizys). |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2951 | - global.c: |
| 2952 | - Move openprev and opennext functions to shortcuts, they really |
| 2953 | aren't toggles (DLR). |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 2954 | - rcfile.c: |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2955 | parse_next_regex() |
Chris Allegretta | 3d8e759 | 2002-02-02 07:13:02 +0000 | [diff] [blame] | 2956 | - Allow " symbol to be in regex without leading \ by checking |
| 2957 | for *ptr+1 is not the end of the regex. |
Chris Allegretta | ff8a68c | 2002-02-16 20:34:57 +0000 | [diff] [blame] | 2958 | do_rcfile() |
| 2959 | - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler). |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 2960 | - nano.1: |
| 2961 | - Added Noconvert option to man page (DLR). |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2962 | - nano.c: |
Chris Allegretta | d4fa0d3 | 2002-03-05 19:55:55 +0000 | [diff] [blame] | 2963 | justify_format(), do_justify() |
| 2964 | - Various fixes for starting blank spaces, spaces after |
| 2965 | punctuation, & segfault with quoting strings (David Benbennick). |
Chris Allegretta | 46c1b9e | 2002-03-05 19:58:45 +0000 | [diff] [blame] | 2966 | do_justify() |
| 2967 | - Don't continue to justify string if it's indented more |
| 2968 | (quoting wise) than the beginning of the justification. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2969 | help_init() |
| 2970 | - Added message re: having multiple blank buffers (DLR). |
Chris Allegretta | 9caa193 | 2002-02-15 20:08:05 +0000 | [diff] [blame] | 2971 | main() |
| 2972 | - Add 407 as equiv of 26, this seems to be sent when using |
| 2973 | ^Z in linux console with keypad() enabled. |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 2974 | - rcfile.c: |
| 2975 | - Get rid of unneeded relativechars from rcopts (DLR). |
| 2976 | - search.c |
| 2977 | do_replace(), findnextstr() |
| 2978 | - Fixes for various search issues (Ken Tyler) |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 2979 | - winio.c: |
| 2980 | do_cursorpos() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 2981 | - Rewritten to show col place as well as character place, without |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 2982 | needing an entirely separate flag. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 2983 | bottombars(), onekey() |
| 2984 | - Make bottom list dynamic with screen size (Guus Sliepen & Chris). |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 2985 | - More cleanups w/width of shortcut. |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 2986 | - utils.c: |
Chris Allegretta | 99ed9dc | 2002-02-28 00:57:18 +0000 | [diff] [blame] | 2987 | strcasestr(),revstrcasestr() |
| 2988 | - Renamed to stristr and revstristr since strcasestr has not |
| 2989 | been confirmed to be detected properly on various Linux |
| 2990 | systems. |
Chris Allegretta | d4fa0d3 | 2002-03-05 19:55:55 +0000 | [diff] [blame] | 2991 | strstrwrapper() |
| 2992 | - NANO_SMALL test was backwards (Ken Tyler). |
| 2993 | - winio.c: |
| 2994 | strlenpt() |
| 2995 | - Changed main function to strnlenpt() for new justify changes, |
| 2996 | original function now just a stub. |
Chris Allegretta | 3c597d0 | 2002-01-26 03:42:14 +0000 | [diff] [blame] | 2997 | - nanorc.sample |
| 2998 | - Mention unset in the sample nanorc. |
Jordi Mallach | 83ffefb | 2002-01-25 21:00:18 +0000 | [diff] [blame] | 2999 | - po/ca.po, po/es.po: |
| 3000 | - Catalan and Spanish translation updates (Jordi). |
Jordi Mallach | 9c34a16 | 2002-01-26 00:46:47 +0000 | [diff] [blame] | 3001 | - po/sv.po: |
| 3002 | - Swedish translation updates (Christian Rose). |
| 3003 | - po/fr.po: |
| 3004 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 8636f7b | 2002-01-26 19:23:37 +0000 | [diff] [blame] | 3005 | - po/nn.po: |
| 3006 | - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). |
| 3007 | - po/de.po: |
| 3008 | - German translation updates (Michael Piefel). |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 3009 | - po/it.po: |
| 3010 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 94def06 | 2002-02-06 12:14:25 +0000 | [diff] [blame] | 3011 | - po/cs.po: |
| 3012 | - Partial Czech translation updates (Vaclav Haisman). |
Jordi Mallach | 8bfd311 | 2002-02-06 20:53:04 +0000 | [diff] [blame] | 3013 | - po/hu.po: |
| 3014 | - Hungarian translation updates, or to be precise, rewrite |
| 3015 | (Gergely Nagy). |
Jordi Mallach | b3b28c1 | 2002-02-07 13:51:00 +0000 | [diff] [blame] | 3016 | - po/uk.po, po/ru.po: |
Jordi Mallach | 507c361 | 2002-02-14 18:57:23 +0000 | [diff] [blame] | 3017 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
| 3018 | - po/da.po: |
| 3019 | - Danish translation updates (Keld Simonsen). |
Jordi Mallach | e46d43d | 2002-02-15 17:13:11 +0000 | [diff] [blame] | 3020 | - po/nb.po: |
| 3021 | - Norwegian bokmĂĄl translation updates (Stig E Sandoe). |
Jordi Mallach | 62d2171 | 2002-02-20 16:21:27 +0000 | [diff] [blame] | 3022 | - po/nl.po: |
| 3023 | - Dutch translation updates (Guus Sliepen). |
Jordi Mallach | a3322fd | 2002-03-05 11:23:17 +0000 | [diff] [blame] | 3024 | - po/pl.po: |
| 3025 | - Polish translation updates (Wojciech Kotwica). |
Jordi Mallach | 83ffefb | 2002-01-25 21:00:18 +0000 | [diff] [blame] | 3026 | |
Chris Allegretta | 491029e | 2002-01-25 17:02:32 +0000 | [diff] [blame] | 3027 | nano-1.1.6 - 01/25/2002 |
Chris Allegretta | 044d1b1 | 2002-01-08 00:33:32 +0000 | [diff] [blame] | 3028 | - General |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3029 | - Add Meta-A as alternate keystroke for ^^ for people with |
Chris Allegretta | 044d1b1 | 2002-01-08 00:33:32 +0000 | [diff] [blame] | 3030 | non-US keyboards. |
Chris Allegretta | 967a1e2 | 2002-01-10 00:50:38 +0000 | [diff] [blame] | 3031 | - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in |
| 3032 | browser. |
Chris Allegretta | 1bc0c7e | 2002-01-08 15:00:24 +0000 | [diff] [blame] | 3033 | - Better partial word checking code. New function |
| 3034 | search.c:is_whole_word(), changes to findnextstr(), |
| 3035 | and nano.c:do_int_spell_fix() (Rocco Corsi). |
Chris Allegretta | 6c1e661 | 2002-01-19 16:52:34 +0000 | [diff] [blame] | 3036 | - Added multiple-line regex support. Format in .nanorc is |
| 3037 | start="regex" end="regex". Cleaned up nanorc:parse_colors(), |
| 3038 | added parse_next_regex(), changes to edit_add in winio.c(), |
| 3039 | changes to colortype, cleaning up some old cruft. |
Chris Allegretta | 15b23f4 | 2002-01-19 19:15:18 +0000 | [diff] [blame] | 3040 | - Upgrade to gettext 0.10.40, probably broke everything again :) |
Chris Allegretta | 24e48d8 | 2002-01-23 01:06:20 +0000 | [diff] [blame] | 3041 | - Upgraded to and then downgraded from automake 1.5, as there |
| 3042 | are severe security implications. |
Chris Allegretta | ea250e8 | 2002-01-16 01:09:11 +0000 | [diff] [blame] | 3043 | - color.c: |
| 3044 | do_colorinit() |
| 3045 | - Moved some comments and braces around so color can work |
| 3046 | w/slang (DLR). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3047 | - global.c: |
| 3048 | shorcut_init() |
| 3049 | - Replace hard coded ALT_G and ALT_H values in the replace |
| 3050 | and goto shortcuts with their macro counterparts NANO_ALT_*_KEY. |
Jordi Mallach | 345a846 | 2002-01-07 11:35:16 +0000 | [diff] [blame] | 3051 | - nano.c: |
| 3052 | usage() |
| 3053 | - Remove extra \n in --keypad description (Jordi). |
Chris Allegretta | f7dee92 | 2002-01-07 16:43:25 +0000 | [diff] [blame] | 3054 | main() |
| 3055 | - Check that alt value is an alpha char before comparing to |
| 3056 | val - 32, fixes Alt-R calling doprev instead of replace. |
Chris Allegretta | b2cd10d | 2002-01-20 00:54:42 +0000 | [diff] [blame] | 3057 | do_char() |
| 3058 | - Run edit_refresh() if ENABLE_COLOR is defined so adding |
| 3059 | multi-liners will update (e.g. /* in C). |
Chris Allegretta | 23b74b2 | 2002-01-21 20:32:22 +0000 | [diff] [blame] | 3060 | do_int_spell_fix() |
| 3061 | - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi). |
Chris Allegretta | 7b0667f | 2002-01-10 12:44:21 +0000 | [diff] [blame] | 3062 | do_suspend() |
| 3063 | - Call tcsetattr() to restore the old terminal settings, so |
Chris Allegretta | 5bbce6a | 2002-01-10 12:48:16 +0000 | [diff] [blame] | 3064 | tcsh can use ^C after suspend for example (fixes BUG #68). |
Chris Allegretta | 438f713 | 2002-01-16 00:54:47 +0000 | [diff] [blame] | 3065 | do_wrap() |
| 3066 | - Move "right" increment to part where new line is created, |
| 3067 | should change (fix?) some wrapping problems with autoindent. |
Jordi Mallach | 5285ca9 | 2002-01-17 12:40:33 +0000 | [diff] [blame] | 3068 | version() |
| 3069 | - Show --enable-multibuffer independently of --enable-extra being |
| 3070 | compiled in (Jordi). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3071 | - nano.h: |
| 3072 | - Changed color struct slightly, because of previous issue with |
| 3073 | applying color painting in order, the "str" portion was |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3074 | useless. Renamed "val" in colortype to "start", added "end" |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3075 | for multi-line color strings. |
| 3076 | - rcfile.c: |
| 3077 | General |
| 3078 | - Took silly variables being passed everywhere like lineno and |
| 3079 | filename and made them static variables. |
Chris Allegretta | 6c1e661 | 2002-01-19 16:52:34 +0000 | [diff] [blame] | 3080 | - Re-indented. |
Chris Allegretta | 34f8098 | 2002-01-22 20:09:20 +0000 | [diff] [blame] | 3081 | - Added stdarg.h to includes. |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3082 | rcfile_error() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3083 | - Now automatically prepends the "error in line blah at foo" |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3084 | message to error messages. |
| 3085 | parse_colors() |
| 3086 | - Added section for computing "end" section. |
| 3087 | parse_next_word() |
| 3088 | - Added support for "\ ", in word parsing. |
Chris Allegretta | e29697d | 2002-01-14 03:31:10 +0000 | [diff] [blame] | 3089 | - search.c: |
Chris Allegretta | 1c2fddc | 2002-01-21 20:40:14 +0000 | [diff] [blame] | 3090 | do_search() |
| 3091 | - Check position of cursor and return value of findnextstr and |
| 3092 | tell user if search string only occurs once (Rocco & Chris). |
Chris Allegretta | e29697d | 2002-01-14 03:31:10 +0000 | [diff] [blame] | 3093 | findnextstr() |
| 3094 | - Fix off by one in check for wrap around (Rocco Corsi). |
Chris Allegretta | 3d0739c | 2002-01-07 14:41:32 +0000 | [diff] [blame] | 3095 | - winio.c: |
| 3096 | edit_refresh() |
| 3097 | - Rename lines to nlines to fix AIX breakage (reported by |
| 3098 | Dennis Cranston, re-reported by arh14@cornell.edu). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3099 | edit_add() |
| 3100 | - Refuse to honor regex matches of 0 characters when applying |
| 3101 | color highlighting, and say so on the statusbar. Otherwise |
| 3102 | we go into an infinite loop, the error message should clue |
| 3103 | users into the fact that their regex is doing something bad. |
Jordi Mallach | d6481e4 | 2002-01-17 12:14:23 +0000 | [diff] [blame] | 3104 | - THANKS: |
| 3105 | - Oops, correct Eivind's entry. His translation was Norwegian nynorsk, |
Jordi Mallach | 83d5ced | 2002-01-17 12:06:49 +0000 | [diff] [blame] | 3106 | not bokmĂĄl as we claimed (Jordi). |
Chris Allegretta | 9963b0e | 2002-01-19 19:35:12 +0000 | [diff] [blame] | 3107 | - .cvsignore |
| 3108 | - Added config.guess config.sub install-sh missing & mkinstalldirs |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3109 | - po/ca.po, po/es.po: |
Jordi Mallach | e36a152 | 2002-01-07 15:12:48 +0000 | [diff] [blame] | 3110 | - Catalan and Spanish translation updates (Jordi). |
| 3111 | - po/sv.po: |
| 3112 | - Swedish translation update (Christian Rose). |
Jordi Mallach | d39698f | 2002-01-07 15:16:26 +0000 | [diff] [blame] | 3113 | - po/de.po: |
| 3114 | - German translation update (Michael Piefel). |
Jordi Mallach | bf1a1e8 | 2002-01-08 14:07:39 +0000 | [diff] [blame] | 3115 | - po/fr.po: |
| 3116 | - French translation update (Jean-Philippe Guérard). |
| 3117 | - po/ru.po, po/uk.po: |
| 3118 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | 83d5ced | 2002-01-17 12:06:49 +0000 | [diff] [blame] | 3119 | - po/no.po: |
| 3120 | - Moved to po/nn.po, which is the correct name for Norwegian nynorsk. |
| 3121 | - po/nn.po: |
| 3122 | - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). |
| 3123 | - po/nb.po: |
| 3124 | - New Norwegian bokmĂĄl translation (Stig E Sandoe <stig@ii.uib.no>). |
Jordi Mallach | 3a23a55 | 2002-01-18 23:04:16 +0000 | [diff] [blame] | 3125 | - po/da.po: |
| 3126 | - Danish translation update (Keld Simonsen). |
Chris Allegretta | d175193 | 2002-01-05 20:01:53 +0000 | [diff] [blame] | 3127 | |
Chris Allegretta | 110927b | 2002-01-05 19:49:06 +0000 | [diff] [blame] | 3128 | nano-1.1.5 - 01/05/2002 |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 3129 | - General |
| 3130 | - Better integration of View mode (-v) and multibuffer. |
| 3131 | Fixes to new_file(), do_insertfile_void(), shortcut_init() |
| 3132 | (David Lawrence Ramsey). |
Chris Allegretta | 48bd378 | 2002-01-03 21:26:34 +0000 | [diff] [blame] | 3133 | - The keypad handling has changed (again). We now use |
| 3134 | the keypad() function by default. New flag -K, --keypad |
| 3135 | allows the old behavior for those using the keypad arrow keys |
| 3136 | and rxvt-based terminals. |
Jordi Mallach | 8ae5789 | 2002-01-04 17:57:40 +0000 | [diff] [blame] | 3137 | - Updated copyright notices to 2002 (Jordi). |
Chris Allegretta | 0bb70dc | 2001-12-17 04:34:23 +0000 | [diff] [blame] | 3138 | - nano.c: |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 3139 | die() |
| 3140 | - Only save files that were modified (David Lawrence Ramsey). |
Chris Allegretta | 0bb70dc | 2001-12-17 04:34:23 +0000 | [diff] [blame] | 3141 | do_cont() |
| 3142 | - Run signal_init() after doupdate() so ^Y wont suddenly |
| 3143 | start suspending after returning from ^Z suspend in Hurd. |
| 3144 | signal_init() |
| 3145 | - Unconditionally disable VDSUSP if it exists, stops ^Y |
| 3146 | suspending nano on the Hurd. |
Jordi Mallach | 11f39e7 | 2001-12-25 19:17:32 +0000 | [diff] [blame] | 3147 | help_init() |
Chris Allegretta | 64dd95d | 2001-12-27 20:53:54 +0000 | [diff] [blame] | 3148 | - Typo fixes in help strings (Jordi). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3149 | - New variable helplen needed cause currslen is not always |
Chris Allegretta | 13fd44b | 2002-01-02 13:59:11 +0000 | [diff] [blame] | 3150 | the length we want (bug found by David Lawrence Ramsey). |
Chris Allegretta | 180a569 | 2002-01-02 14:30:33 +0000 | [diff] [blame] | 3151 | - Typo in file switch string (found by David Lawrence Ramsey). |
| 3152 | main() |
| 3153 | - Handle Alt prev/next file keys (,.), as well as normal ones (<>). |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 3154 | - Handle OS-specific insert keys by jump to do_insertkey (David |
| 3155 | Lawrence Ramsey). |
Chris Allegretta | 64dd95d | 2001-12-27 20:53:54 +0000 | [diff] [blame] | 3156 | - files.c: |
| 3157 | read_file() |
| 3158 | - Make conversion message less confusing (suggested by Jordi). |
Chris Allegretta | 13fd44b | 2002-01-02 13:59:11 +0000 | [diff] [blame] | 3159 | - rcfile.c: |
| 3160 | parse_next_word() |
| 3161 | - Get rid of ptr == \n check to abort, screws up option |
| 3162 | parsing (bug found by David Lawrence Ramsey) |
Chris Allegretta | 52db7a2 | 2001-12-17 23:39:36 +0000 | [diff] [blame] | 3163 | - winio.c: |
| 3164 | update_line() |
Chris Allegretta | 3c57e50 | 2001-12-19 16:20:43 +0000 | [diff] [blame] | 3165 | - set realdata check to >= 1 && <= 31, lack of > 0 check screwed |
| 3166 | high ascii characters. |
Jordi Mallach | 9335f91 | 2001-12-23 00:03:18 +0000 | [diff] [blame] | 3167 | titlebar() |
| 3168 | - gettextized a pair of strings. |
Chris Allegretta | e5b9eac | 2002-01-05 01:52:02 +0000 | [diff] [blame] | 3169 | bottombars() |
| 3170 | - Get rid of that annoying reversed line when color is on! :) |
Chris Allegretta | 1bf8f5e | 2002-01-05 03:30:10 +0000 | [diff] [blame] | 3171 | edit_add() |
| 3172 | - Little fixes to let color highlights not bleed onto the next line. |
Chris Allegretta | a16e4e9 | 2002-01-05 18:59:54 +0000 | [diff] [blame] | 3173 | statusq() |
| 3174 | - Initialize "list". |
Chris Allegretta | cf68071 | 2001-12-18 14:59:20 +0000 | [diff] [blame] | 3175 | - m4/gettext.m4: |
| 3176 | - Back down to 1.1.3 version. |
Jordi Mallach | cf9f783 | 2001-12-26 12:33:01 +0000 | [diff] [blame] | 3177 | - faq.html: |
| 3178 | - Various link updates and other fixes (Aaron S. Hawley). |
| 3179 | - Typo fixes (David Lawrence Ramsey). |
Chris Allegretta | fae0dce | 2002-01-04 13:30:42 +0000 | [diff] [blame] | 3180 | - AUTHORS |
| 3181 | - Add DLR. |
Jordi Mallach | 77b1232 | 2001-12-22 23:23:40 +0000 | [diff] [blame] | 3182 | - po/sv.po: |
| 3183 | - Swedish translation update (Christian Rose). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3184 | - po/ru.po, po/uk.po: |
Jordi Mallach | 3279398 | 2001-12-28 16:35:28 +0000 | [diff] [blame] | 3185 | - Russian and Ukrainian translations updates (Sergey A. Ribalchenko). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3186 | - po/ca.po, po/es.po: |
Jordi Mallach | 414acab | 2001-12-26 00:15:16 +0000 | [diff] [blame] | 3187 | - Catalan and Spanish translations updates (Jordi). |
Jordi Mallach | a4ffccb | 2001-12-26 00:31:17 +0000 | [diff] [blame] | 3188 | - po/pl.po: |
| 3189 | - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>. |
Jordi Mallach | 65f3e42 | 2002-01-04 17:48:58 +0000 | [diff] [blame] | 3190 | - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new |
| 3191 | official maintainer. |
Jordi Mallach | 1a58fb4 | 2001-12-27 16:00:23 +0000 | [diff] [blame] | 3192 | - po/fr.po: |
| 3193 | - French translation update (Michel Robitaille). |
Jordi Mallach | 05d8ce9 | 2001-12-27 20:34:42 +0000 | [diff] [blame] | 3194 | - po/gl.po: |
| 3195 | - Galician translation update (Jacobo TarrĂo). |
Jordi Mallach | 78e2c9d | 2001-12-27 22:06:38 +0000 | [diff] [blame] | 3196 | - po/it.po: |
| 3197 | - Italian translation update (Marco Colombo). |
Jordi Mallach | 3279398 | 2001-12-28 16:35:28 +0000 | [diff] [blame] | 3198 | - po/de.po: |
| 3199 | - German translation update (Michael Piefel). |
Jordi Mallach | 13f3017 | 2002-01-02 18:45:58 +0000 | [diff] [blame] | 3200 | - po/fr.po: |
| 3201 | - French translation update (Jean-Philippe Guérard). |
Chris Allegretta | 5fd6cac | 2001-12-12 13:55:19 +0000 | [diff] [blame] | 3202 | |
Chris Allegretta | 7bf2509 | 2001-12-12 02:44:40 +0000 | [diff] [blame] | 3203 | nano-1.1.4 - 12/11/2001 |
Chris Allegretta | 08893e0 | 2001-11-29 02:42:27 +0000 | [diff] [blame] | 3204 | - General |
| 3205 | - Preliminary syntax highlighting support. New functions |
| 3206 | colortoint() and parse_color() in rcfile.c, new code in |
| 3207 | edit_add() in winio.c to actually do the highlighting. It's |
| 3208 | not even close to pretty yet :P |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3209 | - Many int/long alignments (David Lawrence Ramsey). |
Chris Allegretta | 0567bfe | 2001-10-28 14:42:18 +0000 | [diff] [blame] | 3210 | - files.c: |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3211 | - Fixes for tab completion and screen refresh (David Lawrence |
| 3212 | Ramsey). |
Chris Allegretta | 0567bfe | 2001-10-28 14:42:18 +0000 | [diff] [blame] | 3213 | add_open_file() |
| 3214 | - Get rid of unsetting MARK_ISSET because otherwise writing |
| 3215 | marked text will automatically unset the marker with |
| 3216 | multibuffer enabled. |
Chris Allegretta | 22ec59a | 2001-10-28 04:56:08 +0000 | [diff] [blame] | 3217 | - global.c: |
| 3218 | - Define currshortcut and currslen when either DISABLE_MOUSE |
Chris Allegretta | 8c8d370 | 2001-10-28 05:00:39 +0000 | [diff] [blame] | 3219 | or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan |
| 3220 | Minghetti). |
Chris Allegretta | 7bf7274 | 2001-10-28 04:29:55 +0000 | [diff] [blame] | 3221 | - nano.c: |
| 3222 | main() |
Chris Allegretta | f3e80ad | 2001-10-28 04:49:10 +0000 | [diff] [blame] | 3223 | - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert). |
Chris Allegretta | 9b8b370 | 2001-11-19 05:09:15 +0000 | [diff] [blame] | 3224 | - Added better Hurd support for function keys (Alt-V,U,9,@,F). |
| 3225 | signal_init() |
| 3226 | - do SIG_IGN for the SIGTSTP sigaction regardless of whether |
| 3227 | we have _POSIX_VDISABLE or not (more Hurd fixes) |
Jordi Mallach | 773623c | 2001-10-28 21:00:49 +0000 | [diff] [blame] | 3228 | help_init() |
| 3229 | - Typo fixes and additions to the new help texts. |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3230 | do_curpos() |
| 3231 | - Now takes arg for constant updating to always show the cursor |
| 3232 | position (David Lawrence Ramsey). |
| 3233 | do_wrap() |
| 3234 | - Many fixes (David Lawrence Ramsey). |
Chris Allegretta | 8083827 | 2001-12-02 06:03:22 +0000 | [diff] [blame] | 3235 | do_spell() |
| 3236 | - Dont prompt for replace if we don't change the word in |
| 3237 | question (Rocco Corsi). |
Jordi Mallach | 8c9c572 | 2001-10-31 13:02:12 +0000 | [diff] [blame] | 3238 | - po/de.po: |
| 3239 | - German translation updates (Karl Eichwalder). |
| 3240 | - po/ru.po: |
| 3241 | - Russian translation updates (Sergey A. Ribalchenko). |
| 3242 | - po/sv.po: |
| 3243 | - Swedish translation updates (Christian Rose). |
Jordi Mallach | feebeb9 | 2001-11-19 12:09:51 +0000 | [diff] [blame] | 3244 | - po/da.po: |
| 3245 | - Danish translation updates (Keld Simonse). |
| 3246 | - po/es.po: |
| 3247 | - Spanish translation updates (Jordi). |
Jordi Mallach | df59ae6 | 2001-12-07 14:00:56 +0000 | [diff] [blame] | 3248 | - po/fr.po: |
| 3249 | - French translation updates (Michel Robitaille). |
Chris Allegretta | 9c23a44 | 2001-12-12 01:45:01 +0000 | [diff] [blame] | 3250 | - m4/gettext.m4: |
| 3251 | - diff against mutt 1.2.5's gettext.m4. |
Chris Allegretta | 7b409bd | 2001-10-26 16:15:58 +0000 | [diff] [blame] | 3252 | |
Chris Allegretta | dc57bba | 2001-10-26 16:14:45 +0000 | [diff] [blame] | 3253 | nano-1.1.3 - 10/26/2001 |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3254 | - General |
| 3255 | - Finally wrote function-specific help mode. Changes to |
| 3256 | nano.c:help_init() and winio.c:do_help(). Changed |
| 3257 | currshortcut and currslen #ifdefs to depend on both |
| 3258 | DISABLE_HELP and DISABLE_MOUSE being defined to not |
| 3259 | include. Changed all the shortcuts and lengths. |
Chris Allegretta | fa0c696 | 2001-10-22 23:22:19 +0000 | [diff] [blame] | 3260 | - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again, |
| 3261 | this was causing nasty errors if the call to nrealloc moved |
| 3262 | where the data was located. |
Chris Allegretta | 3a24f3f | 2001-10-24 11:33:54 +0000 | [diff] [blame] | 3263 | - Changed header comments to say "version 2" instead of "version |
| 3264 | 1" as the COPYING file is actually version 2 of the GPL (bug |
| 3265 | noticed by Jordi Mallach). |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3266 | - cut.c: |
| 3267 | do_cut_text() |
| 3268 | - Check to see whether marked text is contained within edit |
| 3269 | window and if so only do an edit_refresh (variable dontupdate |
| 3270 | replaces cuttingpartialline). |
| 3271 | do_uncut_text() |
| 3272 | - Similar display fixes (David Lawrence Ramsey). |
Chris Allegretta | beead28 | 2001-10-18 14:15:28 +0000 | [diff] [blame] | 3273 | - faq.html |
| 3274 | - Removed nano-editor.org FTP site address [deprecated] and added |
| 3275 | the GNU one. |
Chris Allegretta | 76e291b | 2001-10-14 19:05:10 +0000 | [diff] [blame] | 3276 | - files.c: |
| 3277 | - Added status messages for converted DOS and Mac files. |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3278 | People should know that their file wasnt normally formatted. |
| 3279 | load_file() |
| 3280 | - Status message when trying to load an already loaded file with multiple |
| 3281 | buffers (David Lawrence Ramsey). |
| 3282 | read_file() |
| 3283 | - Get rid of useless linetemp variable and name num_lines int |
| 3284 | (David Lawrence Ramsey). |
Chris Allegretta | 76e291b | 2001-10-14 19:05:10 +0000 | [diff] [blame] | 3285 | - nano.c: |
| 3286 | - New function do_prev_word, similar to do_next_word. Hard coded as |
Chris Allegretta | 878ced3 | 2001-10-22 20:05:34 +0000 | [diff] [blame] | 3287 | Alt-space, as next word is hard coded as control-space. Fixed |
| 3288 | goofy logic setting x pos to value of last line when hitting the |
Chris Allegretta | abf22a8 | 2001-10-24 00:58:19 +0000 | [diff] [blame] | 3289 | beginning of first line, prog should simply abort. Added |
| 3290 | the #ifdefs around the code in main(). |
Chris Allegretta | 1078640 | 2001-10-24 17:27:46 +0000 | [diff] [blame] | 3291 | - nano.h: |
| 3292 | - Additional #define, SMALL_TOO to determine how long |
| 3293 | MAIN_LIST_LEN is. We need this because of the find matching |
| 3294 | bracket code. |
Chris Allegretta | 48ebb81 | 2001-10-24 01:34:15 +0000 | [diff] [blame] | 3295 | main() |
Chris Allegretta | 347c184 | 2001-10-24 01:37:13 +0000 | [diff] [blame] | 3296 | - Moved #ifndef NANO_SMALL down past the case 0: line so |
| 3297 | control-space doesn't insert a \0 (ack!) |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3298 | - rcfile.c: |
| 3299 | - Fix incorrect number of rc options (David Lawrence Ramsey). |
Jordi Mallach | 482d165 | 2001-10-06 02:36:25 +0000 | [diff] [blame] | 3300 | - po/sv.po: |
| 3301 | - Updated Swedish translation (Christian Rose). |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3302 | - po/da.po: |
Jordi Mallach | 2476ebd | 2001-10-07 00:26:26 +0000 | [diff] [blame] | 3303 | - Updated Danish translation (Keld Simonsen). |
Jordi Mallach | 26f4603 | 2001-10-07 15:53:27 +0000 | [diff] [blame] | 3304 | - po/es.po: |
| 3305 | - Style updates to Spanish translation (Santiago Vila). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3306 | - po/ru.po, po/uk.po: |
Jordi Mallach | eb94b9e | 2001-10-15 14:26:48 +0000 | [diff] [blame] | 3307 | - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko). |
Chris Allegretta | 9a39789 | 2001-10-04 01:25:43 +0000 | [diff] [blame] | 3308 | |
Chris Allegretta | 03260b4 | 2001-10-04 01:24:07 +0000 | [diff] [blame] | 3309 | nano-1.1.2 - 10/03/2001 |
Chris Allegretta | c1049ac | 2001-08-17 00:03:46 +0000 | [diff] [blame] | 3310 | - General |
| 3311 | - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(), |
| 3312 | new flag CLEAR_BACKUPSTRING because there's no easy way to |
| 3313 | clear the backupstring without making it global (messy), so we |
| 3314 | use a flag instead (just as messy?) |
Chris Allegretta | ff98983 | 2001-09-17 13:48:00 +0000 | [diff] [blame] | 3315 | - --enable-tiny now leaves out the Auto Indent code, do you really |
| 3316 | need that on a bootdisk? =-) |
Chris Allegretta | e1f1452 | 2001-09-19 03:19:43 +0000 | [diff] [blame] | 3317 | - New flag -o, --operatingdir, similar to Pico's -o mode. New |
| 3318 | function check_operating_dir(), changes to load_file (arg), |
Chris Allegretta | e09cd1d | 2001-09-19 03:22:52 +0000 | [diff] [blame] | 3319 | open_file_dup_search (arg), new function do_gotopos for -F |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 3320 | (David Lawrence Ramsey). |
Chris Allegretta | 9184189 | 2001-09-21 02:37:01 +0000 | [diff] [blame] | 3321 | - Code to read/write dos formatted files. Massive amounts of |
Chris Allegretta | 7004c28 | 2001-09-22 00:42:10 +0000 | [diff] [blame] | 3322 | new code in read_line and write_file. New cmdline flag |
| 3323 | (-D --dos) to automatically write the file in DOS format, |
| 3324 | regardless of the original format. |
Chris Allegretta | 995177f | 2001-09-22 04:34:23 +0000 | [diff] [blame] | 3325 | - Mac file writing supported too. Flag -M, --mac. Toggle |
| 3326 | Meta-O (MacOS? OS-X? =-) |
Chris Allegretta | 3e3ae94 | 2001-09-22 19:02:04 +0000 | [diff] [blame] | 3327 | - New smooth scroll code by Ken Tyler. New flag -S, --smooth, |
Chris Allegretta | d948edc | 2001-10-02 00:38:56 +0000 | [diff] [blame] | 3328 | changes to page_up() and page_down(). Many fixes to paging by |
Chris Allegretta | 5050d35 | 2001-09-27 00:44:58 +0000 | [diff] [blame] | 3329 | David Lawrence Ramsey. |
Chris Allegretta | 8d990b5 | 2001-09-22 22:14:25 +0000 | [diff] [blame] | 3330 | - Bracket (brace, parens, etc) matching code by Ken Tyler. |
| 3331 | New functions do_find_bracket(), changes to findnextstr(), |
| 3332 | command is Meta-] (hope you dont mind since I already sold off |
Chris Allegretta | 2bef182 | 2001-09-28 19:53:11 +0000 | [diff] [blame] | 3333 | Meta-O to the MacOS file code Ken...) Fixes to bracket_msg |
| 3334 | by DLR. |
Chris Allegretta | 1b3381b | 2001-09-28 21:59:01 +0000 | [diff] [blame] | 3335 | - Call do_gotopos from do_alt_spell() to keep position |
| 3336 | consistent when invoking alt speller (DLR). |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 3337 | - Readded DISABLE_CURPOS because in certain instances (like |
Chris Allegretta | 03260b4 | 2001-10-04 01:24:07 +0000 | [diff] [blame] | 3338 | all the "Search Wrapped" lines) the cursor position will |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 3339 | be different yet we don't want the cursor position displayed. |
Chris Allegretta | e10f389 | 2001-10-02 03:54:40 +0000 | [diff] [blame] | 3340 | - Take control-space out of -tiny build, unneeded. |
Chris Allegretta | 222a086 | 2001-10-02 00:24:37 +0000 | [diff] [blame] | 3341 | - cut.c: |
| 3342 | cut_marked_segment() |
| 3343 | - Add magic line when cutting a selection including filebot |
Chris Allegretta | 31b2b81 | 2001-10-03 01:51:33 +0000 | [diff] [blame] | 3344 | (discovered by DLR, fixed by DLR & Chris, fixes BUG #66). |
Chris Allegretta | dc2ca88 | 2001-10-02 23:55:09 +0000 | [diff] [blame] | 3345 | do_cut_text() |
Chris Allegretta | 5e4b108 | 2001-10-03 00:45:06 +0000 | [diff] [blame] | 3346 | - Don't recenter the line when cutting one line (DLR) (Bug #65). |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 3347 | - faq.html: |
| 3348 | - Notes about the Free Translation Project. |
| 3349 | - Debian additions. |
Chris Allegretta | 9519eb0 | 2001-09-27 20:46:25 +0000 | [diff] [blame] | 3350 | - files.c: |
| 3351 | do_writeout() |
| 3352 | - Expanded strings to not use %s and ?: to determine |
| 3353 | write/append string to be nice to translators. |
Chris Allegretta | 1b3381b | 2001-09-28 21:59:01 +0000 | [diff] [blame] | 3354 | new_file() |
| 3355 | - Initialize totsize (DLR). |
Chris Allegretta | 0357c4d | 2001-09-19 02:59:25 +0000 | [diff] [blame] | 3356 | - nano.c: |
| 3357 | main() |
Chris Allegretta | b516d8e | 2001-10-03 00:01:36 +0000 | [diff] [blame] | 3358 | - Added var constcheck as a CRC-like check of whether cursor |
Chris Allegretta | 0357c4d | 2001-09-19 02:59:25 +0000 | [diff] [blame] | 3359 | pos has changed and if so update the pos with -c. |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 3360 | - Many tweaks and changes from numerics to char equivs |
| 3361 | (David Lawrence Ramsey). |
Chris Allegretta | 92f5fdc | 2001-10-02 02:58:07 +0000 | [diff] [blame] | 3362 | - Fix the KEY_IC being undefined when using slang. |
Chris Allegretta | 6414b40 | 2001-09-21 03:21:11 +0000 | [diff] [blame] | 3363 | do_mouse() |
| 3364 | - Send 27 when the menu item clicked is an alt key seq... The |
| 3365 | lines aren't lined up since the menu width changed though, |
| 3366 | this breakage depends on whether the new widths will be kept |
| 3367 | or not (FEEDBACK!!) |
Chris Allegretta | a951f21 | 2001-09-27 21:07:39 +0000 | [diff] [blame] | 3368 | - Change k based on currslen to allow the new widths in |
| 3369 | bottombars(). |
Chris Allegretta | 56214c6 | 2001-09-27 02:46:53 +0000 | [diff] [blame] | 3370 | do_wrap() |
| 3371 | - Fixes for Pico incompatibility in cases 2b and 2c. |
| 3372 | (David Lawrence Ramsey). |
| 3373 | global_init() |
| 3374 | - New arg save_cutbuffer, allows cutbuffer to not be lost when |
| 3375 | using multibuffer. |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 3376 | - nano.1: |
| 3377 | - Added new features, fixed some typos (Jordi). |
Jordi Mallach | 372b1a0 | 2001-08-08 19:35:23 +0000 | [diff] [blame] | 3378 | - nano.texi: |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 3379 | - Corrected the Mouse Toggle section, noticed by Daniel Bonniot. |
| 3380 | - Added many command line options, toggles and other additions |
| 3381 | (Jordi). |
Chris Allegretta | beb5497 | 2001-09-22 23:54:45 +0000 | [diff] [blame] | 3382 | - rcfile.c: |
| 3383 | - NUM_RCOPTS fix (DLR). |
Chris Allegretta | 66c33b8 | 2001-10-02 23:57:31 +0000 | [diff] [blame] | 3384 | - Add tabsize support to rc file (Nathan Heagy). |
Chris Allegretta | ca1a82e | 2001-10-03 15:18:41 +0000 | [diff] [blame] | 3385 | - Fix incorrect argument in fill and tabsize error message |
| 3386 | (Nathan Heagy) |
Chris Allegretta | 759d352 | 2001-09-27 13:04:10 +0000 | [diff] [blame] | 3387 | - search.c: |
| 3388 | - Changed search prompt to "Search" followed by a list of |
| 3389 | bracketed, free-standing modifiers that do not imply a grammar, |
| 3390 | and the (to replace) string separately. Hopefully this resolves |
| 3391 | the i18n problems that this provoked. |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 3392 | findnextstr() |
| 3393 | - Various fixes that need testing (Ken Tyler). |
Chris Allegretta | 9b3c7e8 | 2001-08-25 16:00:53 +0000 | [diff] [blame] | 3394 | - winio.c: |
| 3395 | - Add David Lawrence Ramsey to credits. |
Chris Allegretta | 96eef73 | 2001-08-25 16:41:37 +0000 | [diff] [blame] | 3396 | bottombars() |
| 3397 | - Spread out the menu items, feedback definitely needed on this. |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 3398 | nanogetstr() |
| 3399 | - More key fixes (David Lawrence Ramsey) |
Chris Allegretta | 92f5fdc | 2001-10-02 02:58:07 +0000 | [diff] [blame] | 3400 | - Don't be clever and wasteful, just repaint every iteration. |
Jordi Mallach | 2cde0a2 | 2001-09-05 13:23:53 +0000 | [diff] [blame] | 3401 | - po/nl.po: |
Jordi Mallach | c6c35ea | 2001-09-09 11:04:43 +0000 | [diff] [blame] | 3402 | - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>. |
Jordi Mallach | c1917e7 | 2001-09-28 13:06:29 +0000 | [diff] [blame] | 3403 | - po/ca.po, po/es.po: |
| 3404 | - Updated Catalan and Spanish translation (Jordi). |
Jordi Mallach | d1625cd | 2001-09-10 11:36:45 +0000 | [diff] [blame] | 3405 | - po/gl.po: |
| 3406 | - Updated Galician translation (Jacobo TarrĂo). |
Jordi Mallach | 90bbdd3 | 2001-09-12 19:06:59 +0000 | [diff] [blame] | 3407 | - po/da.po: |
| 3408 | - New Danish translation, by Keld Simonsen <keld@dkuug.dk>. |
Jordi Mallach | 6c49b3f | 2001-09-15 22:47:05 +0000 | [diff] [blame] | 3409 | - po/sv.po: |
| 3410 | - Updated Swedish translation (Christian Rose). |
Jordi Mallach | 1e36fd8 | 2001-10-01 17:24:24 +0000 | [diff] [blame] | 3411 | - po/it.po: |
| 3412 | - Updated Italian translation (Marco Colombo). |
Jordi Mallach | 780f320 | 2001-10-03 20:47:47 +0000 | [diff] [blame] | 3413 | - po/fi.po: |
| 3414 | - Updated Finnish translation (Pauli Virtanen). |
Chris Allegretta | 47a2686 | 2001-07-29 01:17:38 +0000 | [diff] [blame] | 3415 | |
Chris Allegretta | 0e8c8d8 | 2001-07-29 01:16:27 +0000 | [diff] [blame] | 3416 | nano-1.1.1 - 07/28/2001 |
Chris Allegretta | ef8f98d | 2001-07-19 12:24:17 +0000 | [diff] [blame] | 3417 | - General |
| 3418 | - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir. |
| 3419 | - Added m4/ directory to allow rebuilding using only the internal |
| 3420 | version of gettext.m4 (Albert Chin). |
Chris Allegretta | 307d4c8 | 2001-07-15 20:25:33 +0000 | [diff] [blame] | 3421 | - nano.c: |
| 3422 | main() |
Chris Allegretta | 0e8c8d8 | 2001-07-29 01:16:27 +0000 | [diff] [blame] | 3423 | - Change the multibuffer getopt option to 'F' (David Lawrence |
| 3424 | Ramsey) |
Chris Allegretta | 41ed016 | 2001-07-24 00:21:03 +0000 | [diff] [blame] | 3425 | do_mark() |
| 3426 | - Temporarily disable cursorpos when enabled to be able to see |
| 3427 | the mark (un)set message (Ken Tyler). |
Chris Allegretta | 4839d23 | 2001-07-19 22:03:51 +0000 | [diff] [blame] | 3428 | - nanorc.sample |
| 3429 | - Typo fixes and updates (David Lawrence Ramsey) |
Chris Allegretta | 5cce53b | 2001-07-17 10:42:50 +0000 | [diff] [blame] | 3430 | - files.c: |
Chris Allegretta | e642197 | 2001-07-18 01:03:36 +0000 | [diff] [blame] | 3431 | new_file() |
| 3432 | - Do add_open_files if there aren't any open yet (David Lawrence |
| 3433 | Ramsey). |
| 3434 | close_open_file() |
| 3435 | - Try to open the next file first, then the previous one |
| 3436 | (David Lawrence Ramsey). |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 3437 | - global.c: |
| 3438 | shortcut_init() |
| 3439 | - Rewrote the whereis and replace lists to put CANCEL at the end |
| 3440 | of the list, and not include the toggle functions when using |
| 3441 | NANO_SMALL. |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 3442 | - nano.h: |
| 3443 | - Fix type in INSERTFILE_LIST_LEN. |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 3444 | - Rewrote all the macro definitions to be a little less messy, |
| 3445 | for the #ifdefs anyway. |
Chris Allegretta | 307d4c8 | 2001-07-15 20:25:33 +0000 | [diff] [blame] | 3446 | - rcfile.c: |
| 3447 | - Update for the multibuffer option (oops) (David Lawrence Ramsey). |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 3448 | - search.c: |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 3449 | - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code. |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 3450 | search_init() |
| 3451 | - add #ifdef NANO_SMALL around toggles code. |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 3452 | - winio.c: |
| 3453 | bottombars() |
| 3454 | - Fixed an off by one that wasn't letting lines with odd # |
| 3455 | shortcuts work in certain cases. |
Chris Allegretta | 47f77b4 | 2001-07-15 16:13:18 +0000 | [diff] [blame] | 3456 | |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 3457 | nano-1.1.0 - 07/15/2001 |
Chris Allegretta | 6b58acd | 2001-04-12 03:01:53 +0000 | [diff] [blame] | 3458 | - General |
| 3459 | - New global variables currshortcut and currslen to support using |
Chris Allegretta | 051fc6e | 2001-05-05 23:17:36 +0000 | [diff] [blame] | 3460 | the mouse with the shortcuts. Also supports clicking on files |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 3461 | in browser. Added #ifdef DISABLE_MOUSE around this code also. |
Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 3462 | - Changed mouse disabling code from depending on --enable-tiny |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3463 | to its own flag, --disable-mouse. The --tiny option defines |
Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 3464 | this automatically, but now just mouse support can be disabled |
| 3465 | if desired. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 3466 | - File Browser supports the "Goto Directory" |
Chris Allegretta | 8d8e012 | 2001-04-18 04:28:54 +0000 | [diff] [blame] | 3467 | - Added rcfile.c source file. Only includes much of anything when |
| 3468 | --enable-nanorc is used. Tons of new funcs, most notably |
| 3469 | do_rcfile() called from nano.c:main(). Added much needed |
| 3470 | function ncalloc(), will have to go through source code later |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3471 | and change the appropriate calls which used nmalloc for lack of |
| 3472 | an appropriate calloc function *** FIXME *** |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 3473 | - After "Alternate" spell checker is called, cursor is repositioned on |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3474 | the same line as before ^T was pressed. |
Chris Allegretta | 6efda54 | 2001-04-28 18:03:52 +0000 | [diff] [blame] | 3475 | - Moved config.h up in all .c files #include list (Albert Chin). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3476 | - Added config.guess and config.sub to distribution because, |
| 3477 | apparently, newer autoconf/automakes can't live without them. |
| 3478 | - Various spelling updates by David Lawrence Ramsey. |
Chris Allegretta | 88b0915 | 2001-05-17 11:35:43 +0000 | [diff] [blame] | 3479 | - Changed all string allocations to charalloc(), new function |
| 3480 | designed to take nmalloc argument but call calloc based on |
| 3481 | (char *) size. |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 3482 | - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping |
| 3483 | and justify being disabled. This allows us to compile out the |
| 3484 | -r flag if neither are set, and will also allow us to comment |
| 3485 | out -W when it is written. |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3486 | - Allow fill to take a negative value to signify a "from right side" |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 3487 | value. This allows the value to vary with the screen size yet |
| 3488 | still be correct. New static value wrap_at to minimize code |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3489 | impact. Updated man page and info file. |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 3490 | - Allow file appending. New shortcut list nano_insertfile_list (since |
| 3491 | insert and write routines can't share shortcut lists anymore), |
| 3492 | new args to do_writeout and write_file called append, and of source |
| 3493 | code changes to those functions. |
Chris Allegretta | e4933a3 | 2001-06-13 02:35:44 +0000 | [diff] [blame] | 3494 | - Allow backwards searching. Drastic rewrite of the search prompt |
| 3495 | string by Chris. All other code by Ken Tyler. New globals |
| 3496 | nano_reverse_msg, new functions revstrstr and revstrcasestr, |
| 3497 | many changes to search functions. Not too big a code size |
| 3498 | increase! |
Chris Allegretta | 658399a | 2001-06-14 02:54:22 +0000 | [diff] [blame] | 3499 | - Moved extension functions (Case Sensitive, Regexp, and Backwards |
| 3500 | Search, Append key in write file function) to Meta keys, as |
| 3501 | people are complaining loudly about nano not being control-key |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3502 | compatible with Pico, which is a Bad Thing (TM). Changes to |
Chris Allegretta | 658399a | 2001-06-14 02:54:22 +0000 | [diff] [blame] | 3503 | shortcut_init, toggle_init, new toggles for backwards and regexp |
| 3504 | (and you can now toggle all search options including regexp at |
| 3505 | the Search: prompt!) Changes to nanogetstr to enable Meta |
| 3506 | keys to be grabbed, changes to onekey to print M-style shortcuts. |
| 3507 | - New macro TOGGLE which just toggles, no more silly checking |
| 3508 | ISSET and then using SET or UNSET when we want a simple toggle |
| 3509 | for a flag. |
Chris Allegretta | 2d7893d | 2001-07-11 02:08:33 +0000 | [diff] [blame] | 3510 | - Added multiple buffer capability (God help us). New configure |
Chris Allegretta | 355fbe5 | 2001-07-14 19:32:47 +0000 | [diff] [blame] | 3511 | option --enable-multibuffer (-F), changes to do_insertfile(), |
Chris Allegretta | 2d7893d | 2001-07-11 02:08:33 +0000 | [diff] [blame] | 3512 | do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(), |
| 3513 | and write_file(), new functions add_open_file(), |
| 3514 | open_file_change_name(), load_open_file(), open_file_dup_search(), |
| 3515 | open_file_dup_fix(), open_prevfile(), open_nextfile(), |
| 3516 | close_open_file(), get_full_path(), die_save_file(), etc. |
| 3517 | (David Lawrence Ramsey). |
Chris Allegretta | 355fbe5 | 2001-07-14 19:32:47 +0000 | [diff] [blame] | 3518 | - Using --enable-extra automatically defines --enable-multibuffer |
| 3519 | changes to version() and configure.in. |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 3520 | - Moved to gettext 0.10.38 at the last second, sure to break |
| 3521 | something, but at least I can run make distcheck! |
Jordi Mallach | 7fde37f | 2001-06-22 23:26:19 +0000 | [diff] [blame] | 3522 | - Makefile.am: |
| 3523 | - Include ABOUT-NLS and the new THANKS files to the distributed list. |
| 3524 | - THANKS: |
| 3525 | - Initial, incomplete list of people to thank. |
Chris Allegretta | 049149f | 2001-07-02 01:57:44 +0000 | [diff] [blame] | 3526 | - Added some more people. |
Chris Allegretta | ea066c8 | 2001-04-13 02:32:06 +0000 | [diff] [blame] | 3527 | - configure.in: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3528 | - New option, --enable-nanorc, which allows people to have a .nanorc |
Chris Allegretta | 18d70f1 | 2001-04-28 15:53:28 +0000 | [diff] [blame] | 3529 | initialization file and set options normally used on the command |
| 3530 | line, and color later on. |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 3531 | - Added --enable-color option to allow color and syntax highlighting |
Chris Allegretta | 18d70f1 | 2001-04-28 15:53:28 +0000 | [diff] [blame] | 3532 | (stub as of now). |
Chris Allegretta | 4cb991d | 2001-05-10 22:55:16 +0000 | [diff] [blame] | 3533 | - cut.c: |
| 3534 | add_to_cutbuffer() |
| 3535 | - Remove useless statements (Rocco). |
Chris Allegretta | 9fe015c | 2001-05-17 03:41:00 +0000 | [diff] [blame] | 3536 | cut_marked_segment() |
Chris Allegretta | 53ea9d1 | 2001-05-18 19:58:33 +0000 | [diff] [blame] | 3537 | - Add bizarre copy of bot node, else *BSD goes ballistic (fixes |
| 3538 | BUG #60). |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 3539 | - Added 'destructive' argument. Allows the selected text to be |
| 3540 | added to the cutbuffer without changing the contents of the |
| 3541 | file. This allows writing selection to separate files. |
Chris Allegretta | 3ba2953 | 2001-06-10 20:41:20 +0000 | [diff] [blame] | 3542 | do_cut_text() |
Chris Allegretta | a75bc41 | 2001-06-12 23:22:26 +0000 | [diff] [blame] | 3543 | - If the line is empty when using -k and wasn't already added, |
| 3544 | create a dummy line and add it to the cutbuffer (fixes bug #61) |
Chris Allegretta | 40f45c8 | 2001-06-21 15:07:40 +0000 | [diff] [blame] | 3545 | - Reset marked_cut if we blow away the cutbuffer. |
Chris Allegretta | 500b5e3 | 2001-06-21 23:58:47 +0000 | [diff] [blame] | 3546 | - Moved the case of current == mark_beginbuf into cut_marked |
| 3547 | segment, so do_writeout could call it when writing selection to |
| 3548 | file. |
Chris Allegretta | 40f45c8 | 2001-06-21 15:07:40 +0000 | [diff] [blame] | 3549 | do_uncut_text() |
| 3550 | - Reset cutbuffer even if we're uncutting marked or cut to end text! |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 3551 | - faq.html: |
| 3552 | - Brought the FAQ up to date, many little changes (Jordi). |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 3553 | - Added sections 3.7 and 3.8 for the multibuffer and nanorc support. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 3554 | - files.c: |
| 3555 | do_browser() |
| 3556 | - Minor fixes to the processing of SELECT function (Rocco) |
| 3557 | - Added the "Goto Directory" code (Rocco) |
Chris Allegretta | d461562 | 2001-05-23 21:54:47 +0000 | [diff] [blame] | 3558 | - Don't shift the size of the file is it's less than 1K. Fixed |
| 3559 | files less than 1K being displayed as 0B (Rocco). |
Chris Allegretta | a2c02e9 | 2001-07-02 01:31:44 +0000 | [diff] [blame] | 3560 | - More Picoish keystrokes for the browser, ^P, ^N, etc, for up, |
| 3561 | down, etc, and add the consistent ^C to exit (Jim Knoble). |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 3562 | do_writeout() |
| 3563 | - New code to allow writing selected text to a separate file. |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3564 | When this is done, the current state is preserved. |
Chris Allegretta | ecc3d7f | 2001-06-05 23:24:55 +0000 | [diff] [blame] | 3565 | write_file() |
| 3566 | - New arg, nonamechange, means whether or not to update the |
| 3567 | current filename after writing the file out. |
Chris Allegretta | 1a8b296 | 2001-06-30 18:41:08 +0000 | [diff] [blame] | 3568 | - Increment lineswritten when the very last line isn't null. |
| 3569 | Fixes off by one count when writing selection to file. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 3570 | - global.c: |
| 3571 | - Updated some of the lists for the "Goto Directory" code (Rocco) |
Chris Allegretta | 6cb4e88 | 2001-04-29 02:26:17 +0000 | [diff] [blame] | 3572 | - move.c: |
| 3573 | page_up() |
| 3574 | - Rewritten with a loop to make screen updates work when |
| 3575 | mark is set (fixes bug #59). |
Chris Allegretta | 1cde322 | 2001-06-11 06:56:10 +0000 | [diff] [blame] | 3576 | do_home(), do_end() |
| 3577 | - Don't keep cutbuffer. |
Jordi Mallach | 3f8db49 | 2001-04-30 10:30:43 +0000 | [diff] [blame] | 3578 | - nano.1: |
| 3579 | - Added the missing -r flag (Jordi). |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 3580 | - nano.c: |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 3581 | do_alt_speller() |
| 3582 | - Reposition cursor on same line as before ^T was called (Rocco) |
Chris Allegretta | 316e4d9 | 2001-04-28 16:31:19 +0000 | [diff] [blame] | 3583 | ABCD(), main() |
| 3584 | - Add Alt-whatever-[a-d] support as well as Alt-whatever-[A-D]. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 3585 | main() |
| 3586 | - Code to silently process "-g" and "-j" (Rocco) |
Chris Allegretta | b26ecb5 | 2001-07-04 16:27:05 +0000 | [diff] [blame] | 3587 | - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen). |
Chris Allegretta | 521e00d | 2001-06-28 16:52:52 +0000 | [diff] [blame] | 3588 | signal_init() |
| 3589 | - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and |
| 3590 | SIGCONT from being interrupted, allows suspending nano |
| 3591 | to work more reliably, esp. with mutt, etc. |
| 3592 | do_suspend() |
| 3593 | - Don't try to play with the handler inside the handler. Just |
| 3594 | raise a SIGSTOP. We also now write the "use "fg"" message to |
| 3595 | stdout instead of stderr. |
Chris Allegretta | ac899e5 | 2001-06-30 04:09:09 +0000 | [diff] [blame] | 3596 | - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke. |
| 3597 | Eliminates the possibility that nano can be suspended when |
| 3598 | it's not supposed to be. Many many many thanks to Jordi and |
| 3599 | Tom Lear for helping out finding and fixing this bug! |
Chris Allegretta | 521e00d | 2001-06-28 16:52:52 +0000 | [diff] [blame] | 3600 | do_cont() |
| 3601 | - Now just does a refresh call instead of playing with the SIGTSTP |
| 3602 | handler. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 3603 | - nano.h: |
| 3604 | - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco) |
| 3605 | - proto.h: |
| 3606 | - New shortcut list added: gotodir_list (Rocco). |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 3607 | - search.c: |
| 3608 | do_gotoline() |
| 3609 | - Optimizations, remove "$" goes-to-last-line, less messages (Rocco) |
Chris Allegretta | 5050aa6 | 2001-04-22 07:10:21 +0000 | [diff] [blame] | 3610 | do_replace() |
| 3611 | - If we manage to make it in somehow with VIEW_MODE on, abort |
| 3612 | nicely (fixes BUG #59). |
Chris Allegretta | 99afb85 | 2001-05-16 04:20:57 +0000 | [diff] [blame] | 3613 | - utils.c |
| 3614 | strcasestr() |
| 3615 | - Replaced by mutt's mutt_stristr function, because the thought |
| 3616 | of dynamically allocating memory and copying each line in a file |
| 3617 | to do a search or replace was causing me to lose sleep. |
Chris Allegretta | 6efda54 | 2001-04-28 18:03:52 +0000 | [diff] [blame] | 3618 | - winio.c: |
| 3619 | actual_x() |
| 3620 | - Remove inline from function decl (Albert Chin). |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 3621 | - po/POTFILES.in: |
| 3622 | - Added utils.c to the list. |
| 3623 | - po/es.po, po/ca.po: |
| 3624 | - Updated (Jordi). |
Jordi Mallach | 9634571 | 2001-04-29 10:38:07 +0000 | [diff] [blame] | 3625 | - po/gl.po: |
Jordi Mallach | 64bacd2 | 2001-05-14 13:55:30 +0000 | [diff] [blame] | 3626 | - Galician translation by Jacobo TarrĂo. |
Jordi Mallach | 92b3bd2 | 2001-05-16 09:10:31 +0000 | [diff] [blame] | 3627 | - po/uk.po, po/ru.po: |
| 3628 | - New Ukrainian and Russian translations by Sergey A. Ribalchenko |
Jordi Mallach | 3bf6bf4 | 2001-05-14 13:11:56 +0000 | [diff] [blame] | 3629 | <fisher@obu.ck.ua>, thanks! |
Jordi Mallach | efd2236 | 2001-06-22 16:59:29 +0000 | [diff] [blame] | 3630 | - po/id.po: |
| 3631 | - Updated Indonesian translation by Tedi Heriyanto. |
Chris Allegretta | 63ba2d6 | 2001-05-16 12:16:28 +0000 | [diff] [blame] | 3632 | - po/it.po |
| 3633 | - Updated Italian translation by Marco Colombo. |
Jordi Mallach | df7d8b2 | 2001-07-05 23:16:05 +0000 | [diff] [blame] | 3634 | - po/no.po: |
| 3635 | - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>. |
| 3636 | - po/sv.po: |
| 3637 | - New Swedish translation by Christian Rose <menthos@menthos.com>. |
Chris Allegretta | ac840eb | 2001-04-07 18:21:47 +0000 | [diff] [blame] | 3638 | |
| 3639 | nano 1.1 tree forked here 04/07/2001 |
| 3640 | |
Chris Allegretta | 38068cd | 2001-04-06 20:04:23 +0000 | [diff] [blame] | 3641 | nano 1.0.1 - 04/06/2001 |
Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 3642 | - General: |
| 3643 | - added configure option --disable-wrapping. Does what it says, |
| 3644 | no wrapping or checks are done. Separate from --enable-tiny, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3645 | some may want a bare-bones Pico clone that does wrap text. |
Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 3646 | Affects configure, nano.c:do_char() and check_wrap() obviously, |
| 3647 | version(), and do_char(). |
Chris Allegretta | 3948bae | 2001-03-25 00:46:40 +0000 | [diff] [blame] | 3648 | - aclocal.m4: |
| 3649 | - Minor patch for intl check (really this time) (Albert Chin) |
Chris Allegretta | 4bf831f | 2001-03-26 15:35:34 +0000 | [diff] [blame] | 3650 | - faq.html: |
| 3651 | - Fixed typo in section 6.1 (discovered by Bob Farmer). |
Chris Allegretta | 4980517 | 2001-03-28 02:14:28 +0000 | [diff] [blame] | 3652 | - files.c: |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 3653 | - fix two typos in comments, one in ChangeLog (Matthias Andree) |
Chris Allegretta | 4980517 | 2001-03-28 02:14:28 +0000 | [diff] [blame] | 3654 | diralphasort() |
Chris Allegretta | 0876dc9 | 2001-03-28 13:04:08 +0000 | [diff] [blame] | 3655 | - Stop abort on symlinks (Matthias Andree) |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 3656 | - use strcasecmp to sort directory if available, pilot does that |
| 3657 | as well (Matthias Andree) |
| 3658 | filestat(), do_browse() |
Chris Allegretta | 0876dc9 | 2001-03-28 13:04:08 +0000 | [diff] [blame] | 3659 | - Changed lstat calls to stat, which fixes the browser not |
| 3660 | following links to directories. We only use lstat() when |
| 3661 | printing the details of the file, and if it is a link, then |
| 3662 | check via lstat() for link to a directory. If it is |
Jordi Mallach | b2c4cbe | 2001-04-02 13:47:17 +0000 | [diff] [blame] | 3663 | a directory, display (dir), else use the normal "--". |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 3664 | do_browser() |
| 3665 | - Fix broken size suffix off-by-one errors (Matthias Andree) |
| 3666 | cwd_tab_completion(), do_browse_from() |
| 3667 | - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree). |
| 3668 | - Changed above to use PATH_MAX only when defined on the |
| 3669 | system, as the HURD e.g. does not support it. |
Jordi Mallach | b2c4cbe | 2001-04-02 13:47:17 +0000 | [diff] [blame] | 3670 | - intl/Makefile.in: |
| 3671 | distclean |
| 3672 | - added intl/libintl.h to the rm -f rule, should fix the unresolved |
| 3673 | gettext symbols problem (Jordi). |
Chris Allegretta | 2071207 | 2001-03-23 03:51:48 +0000 | [diff] [blame] | 3674 | |
Chris Allegretta | 2bfbda0 | 2001-03-23 03:50:44 +0000 | [diff] [blame] | 3675 | nano-1.0.0 - 03/22/2001 |
Chris Allegretta | e316773 | 2001-03-18 16:59:34 +0000 | [diff] [blame] | 3676 | - General |
| 3677 | - Added void to functions declared as () args, nano.c:do_mark() |
| 3678 | and search.c:regexp_cleanup(). (Christian Weisgerber). |
| 3679 | - Changed internal variables called "new" to "newnode" to avoid |
| 3680 | the "new" C++ reserved word, even though there is likely no way |
| 3681 | nano will EVER be compilable with a C++ compiler. (suggested by |
| 3682 | Rocco Corsi). |
Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 3683 | - ca.po, es.po: |
| 3684 | - Final tweaks for Nano 1.0. |
Chris Allegretta | 10ae4f1 | 2001-03-20 15:51:43 +0000 | [diff] [blame] | 3685 | - cs.po: |
| 3686 | - Czech translation from Vaclav Haisman. |
Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 3687 | - nano.info: |
| 3688 | - Added dir entry (Albert Chin). |
Chris Allegretta | 35dac58 | 2001-03-21 15:07:20 +0000 | [diff] [blame] | 3689 | - winio.c: |
| 3690 | statusq() |
| 3691 | - Added NANO_BACK_KEY and NANO_FORWARD_KEY cases for left and right. |
Chris Allegretta | e316773 | 2001-03-18 16:59:34 +0000 | [diff] [blame] | 3692 | |
| 3693 | 1.0-test prerelease - 03/17/2001 |
Chris Allegretta | 94a78b8 | 2001-03-14 08:28:48 +0000 | [diff] [blame] | 3694 | - nano.c: |
| 3695 | do_wrap() |
| 3696 | - Added case for autoindenting text causing new line (Adam). |
| 3697 | - Added SAMELINE case to above. Added checks to cases 1b and |
| 3698 | 2b for placement of cursor. |
Chris Allegretta | 565f7d5 | 2001-03-15 02:02:20 +0000 | [diff] [blame] | 3699 | - move.c: |
| 3700 | page_down() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3701 | - Check for totlines < editwinrows in check for superfluous |
Chris Allegretta | 565f7d5 | 2001-03-15 02:02:20 +0000 | [diff] [blame] | 3702 | edit update (fixed BUG #57). |
Jordi Mallach | 5b387d7 | 2001-02-20 12:45:47 +0000 | [diff] [blame] | 3703 | - search.c: |
Chris Allegretta | 74bb31b | 2001-03-14 09:08:14 +0000 | [diff] [blame] | 3704 | print_replaced() |
Jordi Mallach | 5b387d7 | 2001-02-20 12:45:47 +0000 | [diff] [blame] | 3705 | - s/occurence/occurrence typos (Jordi). |
Chris Allegretta | 74bb31b | 2001-03-14 09:08:14 +0000 | [diff] [blame] | 3706 | search_init() |
| 3707 | - If using Pico mode and regex and same answer is entered, use |
| 3708 | last_search string instead of answer (fixes BUG #56). |
Chris Allegretta | 203ce15 | 2001-02-23 03:05:38 +0000 | [diff] [blame] | 3709 | - nano.texi: |
| 3710 | - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks). |
Chris Allegretta | 9c9c5da | 2001-02-20 03:53:31 +0000 | [diff] [blame] | 3711 | |
Chris Allegretta | a4a222d | 2001-02-20 03:52:13 +0000 | [diff] [blame] | 3712 | nano-0.9.99pre3 - 02/19/2001 |
Chris Allegretta | af6414a | 2001-02-11 19:05:05 +0000 | [diff] [blame] | 3713 | - General |
Chris Allegretta | 1bf501c | 2001-02-12 03:24:46 +0000 | [diff] [blame] | 3714 | GNU compliance issues: |
Jordi Mallach | a7b2ed0 | 2001-02-20 02:04:43 +0000 | [diff] [blame] | 3715 | - Reworked shortcut list, put "Get Help" into default list, |
Chris Allegretta | 1bf501c | 2001-02-12 03:24:46 +0000 | [diff] [blame] | 3716 | removed "Goto Line", aligned "Read File" with "Write Out" and |
| 3717 | "Replace" with "Where is" for consistency. |
| 3718 | - Added texinfo manual nano.texi. Added texi options to |
Chris Allegretta | c46dd81 | 2001-02-14 14:28:27 +0000 | [diff] [blame] | 3719 | Makefile.am. |
Chris Allegretta | de48b41 | 2001-02-01 22:56:44 +0000 | [diff] [blame] | 3720 | - configure.in: |
| 3721 | - Autoconf compatibility fixes (Pavel Roskin) |
Chris Allegretta | 618f5d7 | 2001-02-16 04:48:30 +0000 | [diff] [blame] | 3722 | - Added separate check for resizeterm(). |
Jordi Mallach | 82b1829 | 2001-02-17 01:31:32 +0000 | [diff] [blame] | 3723 | - ALL_LINGUAS: added hu and ca. |
Chris Allegretta | 09f39cb | 2001-02-05 13:43:23 +0000 | [diff] [blame] | 3724 | - cut.c: |
| 3725 | do_cut_text() |
| 3726 | - marked text cut fixes (Rocco) (Fixes bug #54). |
Chris Allegretta | 00ae5df | 2001-02-05 18:24:33 +0000 | [diff] [blame] | 3727 | - nano.c: |
Chris Allegretta | 4ed1315 | 2001-02-10 17:50:50 +0000 | [diff] [blame] | 3728 | do_delete() |
| 3729 | - Added check for current->next == fileptr, as we have a magic |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3730 | line code again, fixes silliness at the end of the last line |
Chris Allegretta | 4ed1315 | 2001-02-10 17:50:50 +0000 | [diff] [blame] | 3731 | before the magic line (reported by J.A. Neitzel). |
Chris Allegretta | 00ae5df | 2001-02-05 18:24:33 +0000 | [diff] [blame] | 3732 | do_justify() |
| 3733 | - If the keystroke after the justify is not the unjustify key, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3734 | blank the statusbar (bug reported by Neil Parks). |
Chris Allegretta | 8bc03b6 | 2001-02-09 02:57:52 +0000 | [diff] [blame] | 3735 | main() |
| 3736 | - Added ENABLE_NLS check around gettext stuff. |
Chris Allegretta | 4ce8e3b | 2001-02-16 01:49:31 +0000 | [diff] [blame] | 3737 | - winio.c: |
| 3738 | do_yesno() |
| 3739 | - Added localized yes, no and all strings to function and rewrote |
| 3740 | handler for the new format. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 3741 | - de.po: |
Jordi Mallach | 8119765 | 2001-02-16 20:00:03 +0000 | [diff] [blame] | 3742 | - Translation updates by Florian König. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 3743 | - fi.po: |
| 3744 | - Translation updates by Pauli Virtanen. |
Chris Allegretta | d096f68 | 2001-02-05 13:51:31 +0000 | [diff] [blame] | 3745 | - hu.po: |
| 3746 | - Hungarian translation by Horvath Szabolcs. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 3747 | - id.po: |
| 3748 | - Translation updates by Tedi Heriyanto. |
Jordi Mallach | 8119765 | 2001-02-16 20:00:03 +0000 | [diff] [blame] | 3749 | - es.po: |
Jordi Mallach | 6aec0d6 | 2001-02-17 01:32:58 +0000 | [diff] [blame] | 3750 | - Translation updates and grammatical/typo fixes (Jordi). |
Jordi Mallach | 82b1829 | 2001-02-17 01:31:32 +0000 | [diff] [blame] | 3751 | - ca.po: |
| 3752 | - Catalan translation by Jordi Mallach :) |
Jordi Mallach | a7b2ed0 | 2001-02-20 02:04:43 +0000 | [diff] [blame] | 3753 | - Miquel Vidal <miquel@sindominio.net> went over it and corrected |
| 3754 | many typos and completed bits that remained untranslated by error. |
Chris Allegretta | 7c1fee7 | 2001-01-31 23:24:54 +0000 | [diff] [blame] | 3755 | |
Chris Allegretta | 34318ed | 2001-01-31 23:22:36 +0000 | [diff] [blame] | 3756 | nano-0.9.99pre2 - 01/31/2001 |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 3757 | General |
Chris Allegretta | d4ddd01 | 2001-01-23 01:17:07 +0000 | [diff] [blame] | 3758 | - Removed center_x and center_y globals. center_y was |
| 3759 | completely unused and center_x was only used a few places, |
Chris Allegretta | 17276e5 | 2001-01-23 01:22:32 +0000 | [diff] [blame] | 3760 | easily replaced with COLS / 2 (oops, not current_x & y (Rob)). |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 3761 | - Deleted free_node, duplicate of delete_node, and changed all |
| 3762 | free_node calls to delete_node. |
Chris Allegretta | 0802088 | 2001-01-29 23:37:54 +0000 | [diff] [blame] | 3763 | - Fix for resizing the window in modes other than normal edit mode |
| 3764 | Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco). |
Chris Allegretta | 0fc2b81 | 2001-01-18 15:04:20 +0000 | [diff] [blame] | 3765 | - files.c: |
| 3766 | write_file() |
| 3767 | - Don't free() realname on error, if it needs to be free()d later |
| 3768 | it will be (fixes crash on successful write after failed write, |
| 3769 | discovered by David Sobon). |
Chris Allegretta | 8d9b11a | 2001-01-19 04:17:24 +0000 | [diff] [blame] | 3770 | username_tab_completion() |
| 3771 | - Optimization and removal of useless vars (Rocco). |
Chris Allegretta | 2c2c5f2 | 2001-01-23 03:27:31 +0000 | [diff] [blame] | 3772 | - Rewritten using getpwent (suggested by Rocco). |
Chris Allegretta | a711f7e | 2001-01-23 04:16:31 +0000 | [diff] [blame] | 3773 | - Removed redundant conditional (Rocco). |
Chris Allegretta | ee733e6 | 2001-01-22 22:17:08 +0000 | [diff] [blame] | 3774 | real_dir_from_tilde() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3775 | - Rewritten using getpwent (suggested by Adam, much optimized by |
| 3776 | Rocco). |
Chris Allegretta | f0b26df | 2001-01-20 22:18:18 +0000 | [diff] [blame] | 3777 | - global.c: |
| 3778 | - Don't define toggles global or toggle_init_one if using --tiny. |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 3779 | - nano.c: |
| 3780 | do_justify() |
| 3781 | - Added restoration of totsize after unjustify command. |
Chris Allegretta | 7f7ce56 | 2001-01-21 16:35:49 +0000 | [diff] [blame] | 3782 | usage() |
Chris Allegretta | e9a2d03 | 2001-01-21 16:08:21 +0000 | [diff] [blame] | 3783 | - Add arg to -T help (Rocco). |
Chris Allegretta | 0a06e07 | 2001-01-23 02:35:04 +0000 | [diff] [blame] | 3784 | global_init(), handle_sigwinch() |
| 3785 | - Messy loops replaced with memset calls (Rocco). |
Chris Allegretta | 169ee84 | 2001-01-26 01:57:32 +0000 | [diff] [blame] | 3786 | do_alt_speller() |
| 3787 | - Added code to parse multi-word alt_speller strings. |
Chris Allegretta | e434b45 | 2001-01-27 19:25:00 +0000 | [diff] [blame] | 3788 | - Fix initialization before fork() (Rocco). |
Chris Allegretta | 34318ed | 2001-01-31 23:22:36 +0000 | [diff] [blame] | 3789 | - proto.h: |
| 3790 | - Fix do_credits() proto (oops!) |
Chris Allegretta | e434b45 | 2001-01-27 19:25:00 +0000 | [diff] [blame] | 3791 | - winio.c: |
| 3792 | nanogetstr() |
| 3793 | - Sanity check for x overrunning the string buffer len. |
Chris Allegretta | 76745fb | 2001-01-18 04:40:06 +0000 | [diff] [blame] | 3794 | |
Chris Allegretta | 9d6f3f3 | 2001-01-21 02:35:03 +0000 | [diff] [blame] | 3795 | nano 0.9.99pre1 - 01/17/2001 |
Chris Allegretta | a4d6d1d | 2001-01-10 23:44:10 +0000 | [diff] [blame] | 3796 | General |
| 3797 | - Changed #ifdefs to check for both DISABLE_TABCOMP and |
| 3798 | NANO_SMALL, makes tiny option leave out tab completion, which |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 3799 | should be left out in that circumstance. Saves at least 5k. |
Rocco Corsi | 06aca1c | 2001-01-11 05:30:31 +0000 | [diff] [blame] | 3800 | - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 3801 | back. (Rocco) |
| 3802 | - Various #ifdef & #ifndef cleanups. (Rocco) |
Chris Allegretta | 201d9bf | 2001-01-14 03:17:53 +0000 | [diff] [blame] | 3803 | - Added message for when keypad goes awry. Added code in main and |
| 3804 | function print_numlock_warning() to notify user, and added an |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3805 | appropriate section in the faq to refer to this brokenness. |
Chris Allegretta | e61e830 | 2001-01-14 05:18:27 +0000 | [diff] [blame] | 3806 | - Added macros in nano.h for magic values that might be unclear in |
Chris Allegretta | 2be96d0 | 2001-01-14 05:22:43 +0000 | [diff] [blame] | 3807 | nano.c:global_init(). (Rocco) |
Chris Allegretta | bbebec6 | 2001-01-09 00:37:32 +0000 | [diff] [blame] | 3808 | - configure.in: |
| 3809 | - Fix for _use_keypad check breaking slang support (Christian |
| 3810 | Weisgerber). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3811 | - Changed to automatically define the 5 DISABLE variables when |
Chris Allegretta | 4ee0b41 | 2001-01-11 15:11:00 +0000 | [diff] [blame] | 3812 | NANO_SMALL (enable-tiny) is requested at configure. |
Chris Allegretta | 2c4feca | 2001-01-09 17:40:56 +0000 | [diff] [blame] | 3813 | - faq.html: |
| 3814 | - Added some info on making the binary smaller with the configure |
| 3815 | script. |
Chris Allegretta | 201d9bf | 2001-01-14 03:17:53 +0000 | [diff] [blame] | 3816 | - Added section on keypad bugginess. |
Chris Allegretta | bf69261 | 2001-01-08 16:59:19 +0000 | [diff] [blame] | 3817 | - files.c: |
| 3818 | real_dir_from_tilde() |
| 3819 | - Oops, fix case where buf ="~", silly crash (bug discovered by |
| 3820 | Neil Parks). |
Chris Allegretta | 8eac3b5 | 2001-01-08 21:14:04 +0000 | [diff] [blame] | 3821 | do_browser() |
| 3822 | - Added space and - keys to do page up and down. |
Chris Allegretta | a35ec04 | 2001-01-15 02:26:12 +0000 | [diff] [blame] | 3823 | cwd_tab_completion(), input_tab() |
| 3824 | - Changed bare malloc/calloc calls to nmalloc (found by Rocco). |
Chris Allegretta | 4058709 | 2001-01-16 04:45:38 +0000 | [diff] [blame] | 3825 | - Added memset() to matchBuf to ensure sanity (Rocco, Adam). |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 3826 | - nano.c: |
Chris Allegretta | 1748cd1 | 2001-01-13 17:22:54 +0000 | [diff] [blame] | 3827 | ABCD() |
| 3828 | - New function, figures out what kbinput to return given |
| 3829 | input common to several switch statements, allows us to |
| 3830 | support the default Konsole key settings. |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 3831 | main() |
| 3832 | - Alternate speller option no longer valid if DISABLE_SPELLER is |
| 3833 | active. (Rocco) |
Chris Allegretta | ae4318d | 2001-01-16 04:18:26 +0000 | [diff] [blame] | 3834 | - Removed direct calls to usage() (#else) for -k (cut) or -s (speller) |
| 3835 | options when these have been disabled. (Rocco) |
Chris Allegretta | 3693944 | 2001-01-15 20:26:38 +0000 | [diff] [blame] | 3836 | - Initialized kbinput to get around stupid compiler warning. |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 3837 | nano_small_msg() |
| 3838 | - This function has been removed. All references now call |
| 3839 | nano_disabled_msg. (Rocco) |
| 3840 | version() |
| 3841 | - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE |
| 3842 | variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not |
| 3843 | reported as enabled when Nano is called with -V (--version) |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3844 | command line option. (Rocco) |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 3845 | usage() |
| 3846 | - Alternate speller option no longer valid if DISABLE_SPELLER is |
| 3847 | active. (Rocco) |
Chris Allegretta | e61e830 | 2001-01-14 05:18:27 +0000 | [diff] [blame] | 3848 | window_init(), handle_sigwinch() |
| 3849 | - Added check for not having enough LINES to do anything useful, |
| 3850 | if so die with an error. (Rocco) |
| 3851 | die_too_small() |
| 3852 | - Function to print the window too small error message, avoids |
| 3853 | repeated string defs and globals. |
Robert Siemborski | c2eeb4e | 2001-01-17 03:29:02 +0000 | [diff] [blame] | 3854 | do_justify() |
| 3855 | - Small fix for totsize calculation (Rob) |
| 3856 | |
Chris Allegretta | d9742c6 | 2001-01-12 15:51:53 +0000 | [diff] [blame] | 3857 | - fi.po: |
| 3858 | - Update by Pauli Virtanen. |
Chris Allegretta | 7e08082 | 2001-01-08 02:31:03 +0000 | [diff] [blame] | 3859 | |
Chris Allegretta | 1699144 | 2001-01-07 22:06:11 +0000 | [diff] [blame] | 3860 | nano 0.9.25 - 01/07/2001 |
Chris Allegretta | f4b9601 | 2001-01-03 07:11:47 +0000 | [diff] [blame] | 3861 | General - |
| 3862 | - New file browser code. New functions in files.c:do_browser(), |
| 3863 | helper functions browser_init(), tail(), striponedir(), |
| 3864 | filestat(). New shortcut list browser_list. Some new |
Chris Allegretta | 150469a | 2001-01-05 21:13:14 +0000 | [diff] [blame] | 3865 | strings to translate. Added function do_browse_from(). |
Chris Allegretta | c08f50d | 2001-01-06 18:12:43 +0000 | [diff] [blame] | 3866 | - Keypad code has been changed slightly. Now checks for |
| 3867 | _use_keypad flag in window to see whether or not to turn |
| 3868 | the keypad() back off when finished (taken from aumix). Moved |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3869 | to winio.c where it should probably be anyway. New configure |
| 3870 | check for _use_keypad in window struct. This will have to do |
Chris Allegretta | c08f50d | 2001-01-06 18:12:43 +0000 | [diff] [blame] | 3871 | for now. |
Chris Allegretta | 155d620 | 2001-01-08 01:50:37 +0000 | [diff] [blame] | 3872 | - Moved keypad() calls for PDCURSES from main() to window_init() |
| 3873 | so the keypad continues to work after a Meta-X, for example. |
| 3874 | Fixed bug #51. |
Jordi Mallach | 56e6d72 | 2000-12-19 22:59:55 +0000 | [diff] [blame] | 3875 | - faq.html: |
| 3876 | - Fix typos and small mistakes (Jordi). |
Chris Allegretta | ee289d7 | 2000-12-27 16:12:47 +0000 | [diff] [blame] | 3877 | - files.c: |
Rocco Corsi | 8b6cccc | 2001-01-02 06:21:07 +0000 | [diff] [blame] | 3878 | username_tab_completion() |
| 3879 | - Added the (char *) sizeof when allocating memory for the filename |
| 3880 | array (Rocco). |
Chris Allegretta | ee289d7 | 2000-12-27 16:12:47 +0000 | [diff] [blame] | 3881 | cwd_tab_completion() |
| 3882 | - removed skipping . and .. when tabulating matches. |
Rocco Corsi | 8b6cccc | 2001-01-02 06:21:07 +0000 | [diff] [blame] | 3883 | - Added the (char *) sizeof when allocating memory for the filename |
| 3884 | array (Rocco). |
Chris Allegretta | e1ebaf3 | 2001-01-07 05:50:36 +0000 | [diff] [blame] | 3885 | do_writeout() |
| 3886 | - Now takes an argument so the string typed in can be retained |
| 3887 | when calling the browser. |
Chris Allegretta | 816a165 | 2001-01-06 17:43:56 +0000 | [diff] [blame] | 3888 | do_browser() |
| 3889 | - Don't decrement longest by the length of path. Fixes crashes |
| 3890 | on entering various dirs (Rocco). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3891 | - Don't ungetch() the exit key, unneeded, fixes inserting a file |
Chris Allegretta | 816a165 | 2001-01-06 17:43:56 +0000 | [diff] [blame] | 3892 | causes exit code. |
Chris Allegretta | 155d620 | 2001-01-08 01:50:37 +0000 | [diff] [blame] | 3893 | - move.c: |
| 3894 | page_down() |
| 3895 | - Don't do an edit_update when there is only one page of text |
| 3896 | (fileage == edittop && filebot == editbot). Fixes Bug #50. |
Chris Allegretta | d55655f | 2000-12-27 03:36:47 +0000 | [diff] [blame] | 3897 | - nano.c: |
| 3898 | main() |
| 3899 | - Reorder the getopt options to be more or less alphabetical |
| 3900 | (suggested by Sven Guckes). |
Chris Allegretta | 66795ec | 2000-12-27 04:47:28 +0000 | [diff] [blame] | 3901 | - winio.c: |
| 3902 | do_cursorpos() |
| 3903 | - Optimizations and cleanups by Rocco Corsi. |
Chris Allegretta | 827b15f | 2001-01-03 02:09:04 +0000 | [diff] [blame] | 3904 | do_credits() |
| 3905 | - Spell Erik Andersen's name right. |
Chris Allegretta | f4b9601 | 2001-01-03 07:11:47 +0000 | [diff] [blame] | 3906 | titlebar() |
| 3907 | - Now takes an arg, needed for browser function. |
Chris Allegretta | 7044489 | 2001-01-07 23:02:02 +0000 | [diff] [blame] | 3908 | do_help() |
| 3909 | - Changed way of temporarily bringing up shortcuts at the |
| 3910 | bottom in the help screen (actually works). |
Chris Allegretta | 150469a | 2001-01-05 21:13:14 +0000 | [diff] [blame] | 3911 | - utils.c: |
| 3912 | mallocstrcpy() |
| 3913 | - Takes char pointers now instead of void (makes debugging a |
| 3914 | helluva lot easier) |
Chris Allegretta | e1ebaf3 | 2001-01-07 05:50:36 +0000 | [diff] [blame] | 3915 | - Duh, don't do anything if src == dest! |
Jordi Mallach | 75ef81b | 2001-01-04 16:48:59 +0000 | [diff] [blame] | 3916 | - es.po: |
| 3917 | - Updates for file browser (Jordi). |
Chris Allegretta | 827b15f | 2001-01-03 02:09:04 +0000 | [diff] [blame] | 3918 | |
Chris Allegretta | 66149e7 | 2000-12-19 02:51:06 +0000 | [diff] [blame] | 3919 | nano 0.9.24 - 12/18/2000 |
Chris Allegretta | 3bc8c72 | 2000-12-10 17:03:25 +0000 | [diff] [blame] | 3920 | General |
| 3921 | - Added --disable-help option, affects acconfig.h, configure(.in), |
Chris Allegretta | b7d00ef | 2000-12-18 05:36:51 +0000 | [diff] [blame] | 3922 | winio.c:do_help, nano.c:help_init,help_text_init,version. |
Chris Allegretta | 1a6e904 | 2000-12-14 13:56:28 +0000 | [diff] [blame] | 3923 | - Changed filename to no longer use PATH_MAX, so it can work on the |
| 3924 | HURD. Changes in files.c:write_file(), new function |
| 3925 | nano.c:clear_filename(), many changed in main(), a few other |
| 3926 | places. Please test this! |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 3927 | - Added -b, -e, and -f flags, which we ignore as nano provides |
| 3928 | their functionality already. |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 3929 | - cut.c: |
| 3930 | do_uncut_text() |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 3931 | - Fix renumbering bug when uncutting marked text at filebot. |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 3932 | - Fix screen not being displayed when we are uncutting marked |
| 3933 | text at editbot (Bug discovered by Ken Tyler). |
Chris Allegretta | e51c95f | 2000-12-10 05:54:27 +0000 | [diff] [blame] | 3934 | - Fix magic line not getting created when (you guessed it) |
| 3935 | uncutting marked text at filebot (Ryan Krebs). |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 3936 | - files.c: |
Chris Allegretta | 3a7c0be | 2000-12-18 01:09:07 +0000 | [diff] [blame] | 3937 | read_file() |
| 3938 | - If we encounter an error and insert is not set, run new_file(). |
| 3939 | (bug discovered by Ben Roberts). |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 3940 | write_file() |
| 3941 | - Change open call flags, basically copy joe's way of doing it so |
| 3942 | a more recent version will actually be included in (un)stable. |
Chris Allegretta | 1cd5066 | 2000-12-11 02:47:12 +0000 | [diff] [blame] | 3943 | - Remove useless fstat call. |
Chris Allegretta | 7960dcf | 2000-12-13 15:01:29 +0000 | [diff] [blame] | 3944 | open_file() |
| 3945 | - Added check for S_ISBLK and S_ISCHR, don't open device files! |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 3946 | - nano.c: |
| 3947 | renumber() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3948 | - Don't stupidly assign the value of prev->lineno if prev == NULL! |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 3949 | main() |
| 3950 | - Added code to check for Alt-Alt (27-27) keystrokes and set the |
| 3951 | next keystroke as a control sequence. New variable |
| 3952 | modify_control_key. Removed #ifdef _POSIX_VDISABLE check |
| 3953 | around Control-S,Q,Z handlers because we need it now for |
| 3954 | the Alt-Alt-x code. |
Chris Allegretta | 7492cec | 2000-12-18 04:55:21 +0000 | [diff] [blame] | 3955 | - Added --view option to getopt_long()call . Bug discovered |
| 3956 | by Rocco Corsi. |
Chris Allegretta | 220ba69 | 2000-12-18 03:40:00 +0000 | [diff] [blame] | 3957 | help_init() |
| 3958 | - Fix off by one error that was making ^G help in normal mode and |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3959 | ^_ in Pico mode not be displayed in the help (bug discovered by |
Chris Allegretta | 92325e7 | 2000-12-18 03:44:22 +0000 | [diff] [blame] | 3960 | Rocco Corsi). |
Chris Allegretta | affeda8 | 2000-12-18 04:03:48 +0000 | [diff] [blame] | 3961 | do_toggle() |
| 3962 | - Added fix_editbot() call to fix improper redisplay of edit |
| 3963 | window when using nohelp toggle (bug discovered by Rocco Corsi). |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 3964 | - nano.1, nano.1.html: |
| 3965 | - Updated man page for -b, -e, -f and expanded explanation for -p. |
Chris Allegretta | d1627cf | 2000-12-18 05:03:16 +0000 | [diff] [blame] | 3966 | - winio.c |
| 3967 | do_help() |
| 3968 | - Force keypad on so F-keys and PageUp/Down will work properly. |
| 3969 | Added check for NANO_EXIT_FKEY to loop. |
Chris Allegretta | e51c95f | 2000-12-10 05:54:27 +0000 | [diff] [blame] | 3970 | - utils.c: |
| 3971 | new_magicline() |
Chris Allegretta | 321590a | 2000-12-10 06:03:40 +0000 | [diff] [blame] | 3972 | - Increment totsize!! We decrement it when we've read a file, |
| 3973 | everywhere else it should automatically be incremented |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 3974 | |
Chris Allegretta | b29550e | 2000-12-09 03:34:12 +0000 | [diff] [blame] | 3975 | nano 0.9.23 - 12/08/2000 |
Chris Allegretta | 7b36c52 | 2000-12-06 01:08:10 +0000 | [diff] [blame] | 3976 | General |
| 3977 | - Changed --disable-spell to --disable speller. The term is |
| 3978 | "speller" for -s, so it should be --disable-speller. |
Chris Allegretta | 5982849 | 2000-12-04 03:31:39 +0000 | [diff] [blame] | 3979 | - files.c: |
| 3980 | write_file() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3981 | - Added tmp check to TMP_OPT section (how appropriate). |
Chris Allegretta | 07f9ee0 | 2000-12-04 05:15:39 +0000 | [diff] [blame] | 3982 | - Added new consistency checking code from securityfocus |
Chris Allegretta | fb2226a | 2000-12-04 05:25:47 +0000 | [diff] [blame] | 3983 | article by Oliver Friedrichs, and use O_EXCL if tmp == 1. |
Chris Allegretta | 928a7f5 | 2000-12-04 05:31:34 +0000 | [diff] [blame] | 3984 | - We now run check on result of lstat(), not stat(), to be |
| 3985 | safer. New variable anyexists, we use still use realexists |
| 3986 | later in the program. |
Chris Allegretta | 71e4640 | 2000-12-06 00:40:26 +0000 | [diff] [blame] | 3987 | - OOPS, line up link/unlink/rename check if conditional with |
| 3988 | top if conditional. Option -l has been broken for 9 versions, |
| 3989 | no one noticed?! |
Chris Allegretta | 1bd0ce2 | 2000-12-06 05:56:08 +0000 | [diff] [blame] | 3990 | - Added saving perms at end of link so we can apply them to the |
| 3991 | new file if --nofollow is used. |
Chris Allegretta | 908805a | 2000-12-04 04:42:56 +0000 | [diff] [blame] | 3992 | - winio.c: |
| 3993 | edit_add() |
| 3994 | - Off by one display error (fix by Rocco Corsi). |
Chris Allegretta | fb62f73 | 2000-12-05 11:36:41 +0000 | [diff] [blame] | 3995 | do_replace_highlight() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 3996 | - New code to handle being past COLS (Rocco Corsi). |
Chris Allegretta | fb62f73 | 2000-12-05 11:36:41 +0000 | [diff] [blame] | 3997 | - Moved from search.c, as it's definitely a winio function now =) |
| 3998 | update_line() |
| 3999 | - More '$' display fixes (Rocco Corsi). |
Chris Allegretta | 5982849 | 2000-12-04 03:31:39 +0000 | [diff] [blame] | 4000 | |
Chris Allegretta | fedd724 | 2000-12-03 03:15:38 +0000 | [diff] [blame] | 4001 | nano 0.9.22 - 12/02/2000 |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 4002 | - General |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 4003 | - Username tab completion code, and cleaned up existing tabcomp |
| 4004 | code. New functions real_dir_from_tide(), append_slash_if_dir(), |
| 4005 | username_tab_completion is more than a stub now =-). |
Chris Allegretta | 7262358 | 2000-11-29 23:43:28 +0000 | [diff] [blame] | 4006 | - Ignore key sequence 543 & 545, right control and alt keys in |
| 4007 | windows. Affects main() and winio.c:nanogetstr(). |
Chris Allegretta | 56b24b5 | 2000-11-29 23:57:20 +0000 | [diff] [blame] | 4008 | - Took out help from spell_list and changed SPELL_LIST_LEN to 1. |
| 4009 | Is using a spell checker THAT difficult? =-) |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4010 | - New function nano_disabled_msg(), to alert that certain |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4011 | functions have been disabled, similar to nano_tiny feature. |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4012 | - New configure options: |
| 4013 | - Added configure argument --disable-tabcomp. Affects |
| 4014 | bottom of files.c and write_file, utils.c:check_wildcard_match() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4015 | and winio.c:nanogetstr(). |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4016 | - New options --enable-extra. New code in nano.c:version() to |
| 4017 | print out various options from ./configure, function do_credits(). |
| 4018 | - Added --disable-spell option for those who want to just disable |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4019 | the spell check feature. Affects the spelling functions |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4020 | do_spell, do_int_speller and do_alt_speller. |
| 4021 | - Added --disable-justify to get rid of the justify function. |
| 4022 | Affects do_justify() (not surprisingly). |
Chris Allegretta | 650e8a4 | 2000-11-24 14:15:17 +0000 | [diff] [blame] | 4023 | - files.c: |
| 4024 | write_file() |
| 4025 | - Unsetting modified on temp files bug fixed (Rocco Corsi). |
Chris Allegretta | 581bc60 | 2000-12-03 03:01:12 +0000 | [diff] [blame] | 4026 | - Okay, if tmp == 1 and the file exists, we abort. |
Chris Allegretta | 25f4e58 | 2000-11-25 05:03:20 +0000 | [diff] [blame] | 4027 | do_insertfile() |
Chris Allegretta | 09a8084 | 2000-11-30 02:31:13 +0000 | [diff] [blame] | 4028 | - Added call to real_name_from tilde, oops. Added check for |
| 4029 | DISABLE_TABCOMP. |
Chris Allegretta | 24946bd | 2000-11-26 21:34:47 +0000 | [diff] [blame] | 4030 | read_file() |
| 4031 | - Added check for fileptr == NULL. |
Chris Allegretta | 0779835 | 2000-11-27 22:58:23 +0000 | [diff] [blame] | 4032 | - global.c: |
| 4033 | shortcut_init() |
| 4034 | - Now takes an argument as to whether to display the unjustify |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4035 | shortcut or the normal uncut text one. Needed to accommodate |
| 4036 | the kludgey unjustify code. |
Chris Allegretta | 8be8ce2 | 2000-11-28 02:15:30 +0000 | [diff] [blame] | 4037 | - nano.1, nano.1.html: |
| 4038 | - Updated date on pages because of -p changes. |
Jordi Mallach | d7ad75a | 2000-12-03 02:46:02 +0000 | [diff] [blame] | 4039 | - Added "NOTES" section, where I explain what nano.save & friends |
| 4040 | are. |
| 4041 | - Added a copyright notice for the manpage, under the GPL. |
| 4042 | - Other minor changes. |
Chris Allegretta | 9149e61 | 2000-11-27 00:23:41 +0000 | [diff] [blame] | 4043 | - nano.c: |
| 4044 | do_justify() |
Chris Allegretta | 8be8ce2 | 2000-11-28 02:15:30 +0000 | [diff] [blame] | 4045 | - Wrote unjustify code. Borrows cutbuffer and stores the unjustified |
| 4046 | text there, then grabs the next keystroke and, if the unjustify |
| 4047 | key, gets rid of the justified text and calls do_uncut_text. |
| 4048 | Added macro NANO_UNJUSTIFY_KEY. |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 4049 | do_int_spell* |
| 4050 | - Various fixes (Rocco Corsi). |
| 4051 | - Changed abort of program to aborting based on value of "edit a |
| 4052 | replacement" question, and not caring about the replace loop |
| 4053 | return value. That way the user can get out of the replace loop |
| 4054 | and continue spell checking (very important to me anyway). |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4055 | version() |
| 4056 | - Took out huge check for the various --disabled macros, |
| 4057 | eventually there will be too many to reasonably check for. |
Chris Allegretta | 4eb7aa0 | 2000-12-01 18:57:11 +0000 | [diff] [blame] | 4058 | nano_small_msg(), nano_disabled_msg() |
| 4059 | - Added checks for disabled functions to see whether or not to |
| 4060 | declare them. |
Chris Allegretta | 9e2934f | 2000-12-01 23:49:48 +0000 | [diff] [blame] | 4061 | do_next_word() |
| 4062 | - Update the previous line as well as the current one in case we |
| 4063 | have moved beyond COLS or back from COLS, patch submitted |
| 4064 | by Ryan Krebs. |
Chris Allegretta | e7a5893 | 2000-12-02 02:36:22 +0000 | [diff] [blame] | 4065 | die() |
| 4066 | - Now creates .save file using variable-length strings. Also |
| 4067 | calls write_file with tmp == 1, which happens to do exactly what |
Chris Allegretta | 581bc60 | 2000-12-03 03:01:12 +0000 | [diff] [blame] | 4068 | we want (abort on save file exists and use mode 0600). |
Chris Allegretta | e7a5893 | 2000-12-02 02:36:22 +0000 | [diff] [blame] | 4069 | handle_sighup() |
| 4070 | - Now calls die instead of writing on its own and exiting normally. |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 4071 | - search.c: |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 4072 | do_replace_highlight() |
| 4073 | - New function, displays the currently selected word as highlighted |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 4074 | in the spell check. Called from do_replace_loop (Rocco Corsi). |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 4075 | - Added calls to curs_set(0) and (1) to disable the cursor when |
| 4076 | highlighting, looks much better. |
Jordi Mallach | d819a4c | 2000-11-25 04:50:25 +0000 | [diff] [blame] | 4077 | - es.po: |
| 4078 | - Traditional Spanish strings updates. |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 4079 | |
Chris Allegretta | ca7a21d | 2000-11-24 01:35:40 +0000 | [diff] [blame] | 4080 | nano 0.9.21 - 11/23/2000 |
Chris Allegretta | f26bca7 | 2000-11-21 03:04:45 +0000 | [diff] [blame] | 4081 | - AUTHORS |
| 4082 | - Added Rocco Corsi. |
Chris Allegretta | 31c7666 | 2000-11-21 06:20:20 +0000 | [diff] [blame] | 4083 | - nano.c: |
| 4084 | main() |
| 4085 | - Changed check for argc == 1 to argv[optind] == NULL to decide |
| 4086 | whether or not to display "New File" in the statusbar. |
Chris Allegretta | aaabe1f | 2000-11-19 18:20:07 +0000 | [diff] [blame] | 4087 | - search.c: |
| 4088 | findnextstr() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4089 | - Fix current_x increment bug by using another variable (Rocco Corsi). |
Chris Allegretta | ef601bb | 2000-11-19 19:15:03 +0000 | [diff] [blame] | 4090 | search_init() |
| 4091 | - Silly typo in our "one simple call" of statusq. Stopped |
| 4092 | previous search string from being displayed. |
Chris Allegretta | c793c43 | 2000-11-21 12:52:55 +0000 | [diff] [blame] | 4093 | do_replace() |
| 4094 | - Copy back the previous value of last_replace into answer if |
| 4095 | using PICO_MODE and answer == "" |
Chris Allegretta | 6c5781b | 2000-11-23 01:19:58 +0000 | [diff] [blame] | 4096 | - winio.c: |
| 4097 | do_up() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4098 | - Deleted first update_line() call, screws up display when marker is |
| 4099 | set. |
Chris Allegretta | d466ab7 | 2000-11-19 20:36:41 +0000 | [diff] [blame] | 4100 | - nano.1, nano.1.html |
| 4101 | - Updated man page for new -p definition. |
Chris Allegretta | ac0e63a | 2000-11-19 02:25:43 +0000 | [diff] [blame] | 4102 | |
Chris Allegretta | 6da149a | 2000-11-19 02:23:03 +0000 | [diff] [blame] | 4103 | nano 0.9.20 - 11/18/2000 |
Chris Allegretta | 67574f4 | 2000-11-03 03:35:29 +0000 | [diff] [blame] | 4104 | - General |
| 4105 | - Ran source through indent -kr again. Make everything pretty. |
| 4106 | - Changed behavior of "search" and "replace" prompts to make all |
| 4107 | previous values editable. This change was made so that you can |
| 4108 | replace with the null string without needing a special key for it. |
| 4109 | changed code in search_init(), do_replace(), nanogetstr (see |
| 4110 | below). |
| 4111 | - Added some missing gettext calls here and there (Jordi). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4112 | - Revamped nanogetstr() and calls to it to use variable length |
| 4113 | strings. |
Chris Allegretta | 67574f4 | 2000-11-03 03:35:29 +0000 | [diff] [blame] | 4114 | MANY changes in nanogetstr(), many chances in search.c, new |
| 4115 | function mallocstrcpy which is sure to be a programmatic |
| 4116 | nightmare, changed last_search, last_replace, answer to |
| 4117 | pointers. New function not_found_msg in search.c for displaying |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4118 | truncated strings in statusbar when the string is not found |
Chris Allegretta | cbb0f8b | 2000-11-15 03:50:02 +0000 | [diff] [blame] | 4119 | (-pedantic fixes by Rocco Corsi). We disable this feature when |
Chris Allegretta | bf9a8cc | 2000-11-17 01:37:39 +0000 | [diff] [blame] | 4120 | using PICO_MODE (-p). |
Chris Allegretta | 27eb13f | 2000-11-05 16:52:21 +0000 | [diff] [blame] | 4121 | - New spelling code by Rocco Corsi. New functions |
| 4122 | do_int_speller, do_alt_speller, changes to do_spell in nano.c, |
| 4123 | New functions search_init_globals and do_replace_loop, changes |
| 4124 | to search_init(), do_replace, findnextstr, moved last_search and |
| 4125 | last_replace back to nano.c (*shrug*). |
Chris Allegretta | 04d848e | 2000-11-05 17:54:41 +0000 | [diff] [blame] | 4126 | - New tab completion code. Used check_wildcard_match, input_tab, |
| 4127 | cwd_tab_completion, username_tab_completion from busybox, |
Chris Allegretta | 7da4e9f | 2000-11-06 02:57:22 +0000 | [diff] [blame] | 4128 | hacked them a lot, changes to nanogetstr(). nanogetstr() and |
| 4129 | statusq() now take an arg for whether or not to allow tab |
| 4130 | completion. |
Chris Allegretta | 5bf51d3 | 2000-11-16 06:01:10 +0000 | [diff] [blame] | 4131 | - Fixed value being input in statusbar during a search or replace |
| 4132 | and CASE_SENSITIVE or the other search is called and the |
| 4133 | string being typed in is blown away. Reported by Ken Tyler. |
Chris Allegretta | bf9a8cc | 2000-11-17 01:37:39 +0000 | [diff] [blame] | 4134 | - Changed PICO_MSGS flag to PICO_MODE, changed help strings |
| 4135 | accordingly. |
Chris Allegretta | 92d2bab | 2000-11-02 14:53:46 +0000 | [diff] [blame] | 4136 | - files.c: |
| 4137 | do_writeout() |
| 4138 | - Change strcpy to answer to mallocstrcpy. |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 4139 | - global.c |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 4140 | - New global replace_list_2, for 2nd half of the replace dialog |
| 4141 | ("Replace with:"), has fewer options than first half because |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4142 | they were inappropriate. |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 4143 | toggle_init() |
| 4144 | - Added #ifdef around toggle_regex_msg to get rid of compiler |
| 4145 | warning. |
Chris Allegretta | 1cc0b7f | 2000-11-03 01:29:04 +0000 | [diff] [blame] | 4146 | |
| 4147 | - nano.c: |
| 4148 | keypad_on() |
| 4149 | - New function, toggles turning the keypad on and off in edit and |
| 4150 | bottomwin(). Added call to this in finish(), fixes bug #45. |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 4151 | - search.c |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4152 | findnextstr() |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 4153 | - New arg for begin_x variable, basically a rewrite that |
| 4154 | makes a little more sense and isn't quite as messy (Rocco Corsi). |
| 4155 | - Update the line we're checking if not the whole screen, because |
| 4156 | it's quite possible the search team could exist somewhere way |
| 4157 | to the right on the same line, for example. |
| 4158 | replace_abort() |
| 4159 | - Add reset of placewewant, stops cursor from jumping when moving |
| 4160 | cursor after a replace. |
Chris Allegretta | 810632d | 2000-10-27 04:36:01 +0000 | [diff] [blame] | 4161 | do_replace() |
| 4162 | - Added code for Gotoline key after entering the search term. |
| 4163 | Fixes bug #46. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4164 | - Removed redundant code involving processing replacement string. |
Chris Allegretta | 9c371a2 | 2000-10-27 05:48:05 +0000 | [diff] [blame] | 4165 | Converted if statements to switch statements. |
| 4166 | - Optimizations by Rocco Corsi. |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 4167 | - Removed code for deleted shortcuts from in replace_list_2. |
Chris Allegretta | 9c371a2 | 2000-10-27 05:48:05 +0000 | [diff] [blame] | 4168 | do_search() |
| 4169 | - Converted if statements to one switch statement. |
Chris Allegretta | f9b6c9b | 2000-10-18 19:35:59 +0000 | [diff] [blame] | 4170 | - winio.c |
| 4171 | nanogetstr() |
| 4172 | - Added check for 343 in while loop to get rid of getting "locked" |
| 4173 | into statusbar" bug in odd $TERMs like iris-ansi. |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 4174 | - Changed check to return -2 on "enter" from answer == "" |
| 4175 | to answer == def. |
Chris Allegretta | 04d848e | 2000-11-05 17:54:41 +0000 | [diff] [blame] | 4176 | - Fixed fallthrough code because there was no break. Make much |
| 4177 | more sense now. |
Chris Allegretta | 5b1faac | 2000-11-16 19:55:30 +0000 | [diff] [blame] | 4178 | - Added check for ASCII 54[124] when using PDCURSES, ignore them |
| 4179 | if noticed. |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 4180 | nanoget_repaint() |
| 4181 | - New function, removes about 30 lines of duplicate code in |
| 4182 | nanogetstr(). |
Chris Allegretta | 90594e2 | 2000-11-02 15:53:40 +0000 | [diff] [blame] | 4183 | - Black magic code to make $ appear in prompt if we're past |
| 4184 | COLS. |
Chris Allegretta | 2c97522 | 2000-11-15 01:25:42 +0000 | [diff] [blame] | 4185 | blank_edit() |
| 4186 | - Removed wrefresh() call, much less choppy now. If there's a need |
| 4187 | for a wrefresh after a specific call, let me know. |
Jordi Mallach | 0ae0dcd | 2000-10-28 12:38:02 +0000 | [diff] [blame] | 4188 | - es.po: |
Jordi Mallach | d25385b | 2000-11-18 03:31:21 +0000 | [diff] [blame] | 4189 | - Updated translation for 0.9.20 (Jordi). |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 4190 | |
Chris Allegretta | 07e97d6 | 2000-10-03 01:52:50 +0000 | [diff] [blame] | 4191 | nano 0.9.19 - 10/02/2000 |
Chris Allegretta | ad1dacc | 2000-09-21 04:25:45 +0000 | [diff] [blame] | 4192 | - General |
| 4193 | - Added PDCurses support under cygwin, which allows building |
| 4194 | a nice stand-alone nano.exe for those poor Windows users. |
| 4195 | Extra check in configure.in for initscr() in -lcurses (as |
| 4196 | PDcurses has no tgetent), some #ifdef PDCURSES statements |
| 4197 | in main(). |
Chris Allegretta | 66989d6 | 2000-09-27 03:16:11 +0000 | [diff] [blame] | 4198 | - Changed web site and email to new nano-editor.org domain. |
Chris Allegretta | 7c44b68 | 2000-09-21 04:27:01 +0000 | [diff] [blame] | 4199 | - nano.c |
Chris Allegretta | 9e7efa3 | 2000-10-02 03:42:55 +0000 | [diff] [blame] | 4200 | - Added (int) casts to remove compile warnings with -Wall. |
Chris Allegretta | 7c44b68 | 2000-09-21 04:27:01 +0000 | [diff] [blame] | 4201 | main() |
| 4202 | - Added check for _POSIX_VDISABLE around term variable definition. |
Chris Allegretta | df3afdc | 2000-10-01 17:50:29 +0000 | [diff] [blame] | 4203 | - search.c |
| 4204 | - Added initializations for last_search and last_replace (Rocco Corsi) |
| 4205 | |
Chris Allegretta | 629edad | 2000-09-19 00:27:19 +0000 | [diff] [blame] | 4206 | nano 0.9.18 - 09/18/2000 |
Chris Allegretta | 805c26d | 2000-09-06 13:39:17 +0000 | [diff] [blame] | 4207 | - General |
| 4208 | - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H, |
| 4209 | added check for regex.h in configure.in. |
Chris Allegretta | 90bd712 | 2000-09-13 18:12:05 +0000 | [diff] [blame] | 4210 | - configure.in: |
| 4211 | - Added default case for cross-compiling to get rid of annoying |
| 4212 | AC_TRY_RUN warning. |
Chris Allegretta | 429a551 | 2000-09-05 13:09:56 +0000 | [diff] [blame] | 4213 | - cut.c: |
| 4214 | do_cut_text() |
| 4215 | - Don't immediately abort if we're on filebot and the marker is |
Chris Allegretta | d746d90 | 2000-09-05 13:15:44 +0000 | [diff] [blame] | 4216 | set (fixes bug #42). |
Chris Allegretta | f45c18d | 2000-09-16 05:25:06 +0000 | [diff] [blame] | 4217 | - files.c: |
| 4218 | open_file() |
| 4219 | - Fix for bug #44 (Rocco Corsi). |
Chris Allegretta | 16e4168 | 2000-09-11 22:33:54 +0000 | [diff] [blame] | 4220 | - global.c: |
| 4221 | shortcut_init() |
| 4222 | - Added in FKEYs that for some reason were left out. *boggle* |
Chris Allegretta | 9239d74 | 2000-09-06 15:19:18 +0000 | [diff] [blame] | 4223 | - nano.c: |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4224 | main() |
Chris Allegretta | 9239d74 | 2000-09-06 15:19:18 +0000 | [diff] [blame] | 4225 | - Added check for _POSIX_VDISABLE and use raw mode if not |
| 4226 | available, allows nano to work with cygwin. |
Jordi Mallach | 2dc0f6b | 2000-09-07 10:48:00 +0000 | [diff] [blame] | 4227 | - Added gettext calls to enable/disable strings (Jordi). |
Chris Allegretta | 16e4168 | 2000-09-11 22:33:54 +0000 | [diff] [blame] | 4228 | - Revamped a great deal of the F-key and keypad key handling, |
| 4229 | because we not longer use keypad() (see below). |
| 4230 | - Removed keypad() call because nano was not working with the |
| 4231 | keypad in many terms, which is very bad. |
Chris Allegretta | 9c35eb0 | 2000-09-13 14:24:52 +0000 | [diff] [blame] | 4232 | - Made insert key call do_insertfile(). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4233 | do_toggle() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4234 | - Rewrote function to allow NOHELP toggle to work on systems |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4235 | without a working resizewin(). New function window_init(). |
Chris Allegretta | 0b88ce0 | 2000-09-15 15:46:32 +0000 | [diff] [blame] | 4236 | mouse_init() |
| 4237 | - Add keypad only if mouse support is on, otherwise mouse doesn't |
| 4238 | work. I guess you have to choose between having the mouse and |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4239 | having a working keypad for the time being (thank god for Meta-M). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4240 | - winio.c: |
| 4241 | total_refresh() |
| 4242 | - Added titlebar() call. |
Chris Allegretta | e7034c6 | 2000-09-15 03:31:09 +0000 | [diff] [blame] | 4243 | onekey() |
| 4244 | - Off by one error fix fix ;-) (Rocco Corsi). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4245 | |
Chris Allegretta | b9bfc9b | 2000-09-10 05:06:09 +0000 | [diff] [blame] | 4246 | - search.c: |
| 4247 | findnextstr() |
| 4248 | - Reset starting at current for search instead of begin. |
Jordi Mallach | 2dc0f6b | 2000-09-07 10:48:00 +0000 | [diff] [blame] | 4249 | - es.po: |
| 4250 | - Translated new strings and minor updates (Jordi). |
Chris Allegretta | 834a69d | 2000-09-18 17:11:33 +0000 | [diff] [blame] | 4251 | - de.po |
| 4252 | - Revised translations by floki@bigfoot.com |
Chris Allegretta | 429a551 | 2000-09-05 13:09:56 +0000 | [diff] [blame] | 4253 | |
Chris Allegretta | 423cbfd | 2000-09-04 16:21:29 +0000 | [diff] [blame] | 4254 | nano-0.9.17 - 09/04/2000 |
Chris Allegretta | 756f220 | 2000-09-01 13:32:47 +0000 | [diff] [blame] | 4255 | - General |
| 4256 | - New shortcuts to toggle certain options that are normally only |
| 4257 | flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called |
| 4258 | toggles in nano.h, toggle_init(), toggle_init_one() in global.c |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 4259 | called from shortcut_init(), and do_toggle in nano.c. Also |
| 4260 | moved the signal code into a separate function in nano.c called |
Chris Allegretta | 18f8be0 | 2000-09-04 03:20:38 +0000 | [diff] [blame] | 4261 | signal_init(). Moved "struct sigaction act"into a static in |
| 4262 | nano.c. |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 4263 | - Changed from Alt-key symbol (@) which is completely nonstandard |
| 4264 | to the *nix "Meta" symbol (M-). Changed help_init to show |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4265 | the M-key usage and the help text to explain keys which generate |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 4266 | Meta. Moved the toggle Meta keystrokes to the first column |
| 4267 | instead of the third as they are the primary keystrokes for the |
Chris Allegretta | 9541f2a | 2000-09-02 07:31:32 +0000 | [diff] [blame] | 4268 | functions. Thanks Mini editor team :-> |
Chris Allegretta | 756f220 | 2000-09-01 13:32:47 +0000 | [diff] [blame] | 4269 | - Changed last_search and last_replace vars to statically |
| 4270 | allocated (hence nulled) and moved to search.c (Matt Kraai). |
Chris Allegretta | f0f63a8 | 2000-09-02 18:44:21 +0000 | [diff] [blame] | 4271 | - global.c: |
| 4272 | toggle_init() |
| 4273 | - Changed "No auto wrap" and "No help mode" to "Auto wrap" and |
| 4274 | "Help mode". See the change to do_toggle() below. |
Chris Allegretta | e10debd | 2000-08-22 01:26:42 +0000 | [diff] [blame] | 4275 | - nano.c: |
| 4276 | do_mouse() |
| 4277 | - Patch for handling lines w/tabs and mouse better (Ben Roberts). |
Chris Allegretta | 340d6e5 | 2000-08-29 03:55:29 +0000 | [diff] [blame] | 4278 | do_wrap() |
| 4279 | - Made wrapping code less ambitious. |
Chris Allegretta | f0f63a8 | 2000-09-02 18:44:21 +0000 | [diff] [blame] | 4280 | do_toggle() |
| 4281 | - Added checks for no help and no wrap mode, and print opposite |
| 4282 | enable/disable message. |
Chris Allegretta | 18f8be0 | 2000-09-04 03:20:38 +0000 | [diff] [blame] | 4283 | do_suspend(), do_cont(): |
| 4284 | - New functions, handle suspend signal in a Pico-like manner and |
| 4285 | work with Meta-Z. |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 4286 | - winio.c: |
| 4287 | total_refresh() |
| 4288 | - Added edit_refresh() call to actually update the screen if messy. |
| 4289 | edit_refresh_clearok() |
| 4290 | - New function, does a total update for edit refresh, needed to fix |
| 4291 | lack of reversed text on searching with MARK_ISSET. |
Chris Allegretta | dabc3cb | 2000-08-25 01:44:12 +0000 | [diff] [blame] | 4292 | onekey() |
| 4293 | - Off by one error fix (Rocco Corsi). |
Chris Allegretta | e7034c6 | 2000-09-15 03:31:09 +0000 | [diff] [blame] | 4294 | |
Chris Allegretta | 6306a11 | 2000-09-02 07:55:41 +0000 | [diff] [blame] | 4295 | update_line() |
| 4296 | - Added check for binary data >= 1 and <= 26, and use ^+letter |
| 4297 | to display it. Should fix editing text files with binary |
| 4298 | data in them. Placing of the cursor seems to be a bit screwed |
| 4299 | though... |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 4300 | - search.c: |
| 4301 | search_abort() |
| 4302 | - Now calls edit_refresh_clearok when MARK_ISSET to handle screen |
| 4303 | ugliness bug (reported by Ken Tyler). |
Chris Allegretta | e10debd | 2000-08-22 01:26:42 +0000 | [diff] [blame] | 4304 | findnextstr(): |
| 4305 | - Added reset for placewewant (Ben Roberts). |
Chris Allegretta | 9babaf3 | 2000-08-30 13:49:33 +0000 | [diff] [blame] | 4306 | - Fixed check for string that only occurs on the same line failing |
| 4307 | (discovered by Ken Tyler). |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 4308 | |
Chris Allegretta | ba96f7a | 2000-08-09 21:38:28 +0000 | [diff] [blame] | 4309 | nano-0.9.16 - 08/09/2000 |
Chris Allegretta | 7dc14e8 | 2000-08-05 16:03:19 +0000 | [diff] [blame] | 4310 | - cut.c: |
| 4311 | do_cut_text() |
| 4312 | - Fixed getting locked into cutbuffer on cutting first line of file. |
Chris Allegretta | c86f714 | 2000-08-07 14:39:32 +0000 | [diff] [blame] | 4313 | - Added check_statblank(). |
| 4314 | - Check for fileptr == filebot, if so return, we shouldn't bother |
| 4315 | cutting the magic line. |
| 4316 | do_uncut_text() |
| 4317 | - Added check_statblank(). |
Chris Allegretta | 4dbcc3c | 2000-08-04 15:44:29 +0000 | [diff] [blame] | 4318 | - nano.c: |
| 4319 | main() |
| 4320 | - Changed tabsize long arg to actually accept an argument *sigh*. |
Chris Allegretta | 81b1eea | 2000-08-05 16:09:07 +0000 | [diff] [blame] | 4321 | - po/Makefile.in.in: |
| 4322 | - Patch to handle $DESTDIR (orig by Dan Harnett contributed by |
| 4323 | Christian Weisgerber) |
Chris Allegretta | b4dc9e0 | 2000-08-05 22:49:30 +0000 | [diff] [blame] | 4324 | - configure.in: |
Chris Allegretta | a2efc36 | 2000-08-09 03:26:33 +0000 | [diff] [blame] | 4325 | - New (and severally revised =) slang test code (Albert Chin-A-Young) |
Chris Allegretta | 4dbcc3c | 2000-08-04 15:44:29 +0000 | [diff] [blame] | 4326 | |
Chris Allegretta | 0bf4e14 | 2000-08-04 02:42:04 +0000 | [diff] [blame] | 4327 | nano-0.9.15 - 08/03/2000 |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 4328 | - Changed edit_update call to take arguments TOP, CENTER or BOTTOM. |
| 4329 | Affects many many functions. Removed functions edit_update_top and |
| 4330 | edit_update_bot. |
Chris Allegretta | 6d690a3 | 2000-08-03 22:51:21 +0000 | [diff] [blame] | 4331 | - Added global variable tabsize, we no longer screw with the curses |
| 4332 | library in order to implement -T (suggested by Christian Weisgerber). |
Chris Allegretta | 7a6f0d9 | 2000-07-31 13:00:24 +0000 | [diff] [blame] | 4333 | - configure.in: |
| 4334 | - Finally fixed check for slang to report "no" if not called |
| 4335 | with --with-slang or --without-slang |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 4336 | - nano.c: |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 4337 | splice_node() |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 4338 | - New function, abstracts linking in nodes. Fixes bug #36. |
Chris Allegretta | 6925bbd | 2000-07-28 01:41:29 +0000 | [diff] [blame] | 4339 | null_at() |
| 4340 | - New function, nulls a string at a given index and realigns it. |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 4341 | delete_buffer() |
| 4342 | - Removed, same as free_filestruct(). |
Chris Allegretta | da721be | 2000-07-31 01:26:42 +0000 | [diff] [blame] | 4343 | do_backspace() |
| 4344 | - Now calls page_up_center instead of page_up (as it should?) |
| 4345 | do_enter() |
| 4346 | - Fixed typo (?) in check for inptr->next. Caused lots of |
| 4347 | grief for editing lines at filebot. |
Chris Allegretta | 99bf73f | 2000-08-04 00:22:08 +0000 | [diff] [blame] | 4348 | main() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4349 | - Removed now useless usertabsize variable (Christian Weisgerber). |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 4350 | - search.c: |
| 4351 | replace_abort() |
| 4352 | - redundant, now just calls search abort until it does something |
| 4353 | different. |
Chris Allegretta | 95b0b52 | 2000-07-28 02:58:06 +0000 | [diff] [blame] | 4354 | - winio.c: |
| 4355 | edit_refresh() |
| 4356 | - Added check for current line "running" off the screen. |
| 4357 | Hopefully this will not cause any recursive lockups. |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 4358 | (Who am I kidding, of course it will!) |
Chris Allegretta | ed02216 | 2000-08-03 16:54:11 +0000 | [diff] [blame] | 4359 | - Added check to stop infinite loop calling edit_update. |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 4360 | edit_update() |
| 4361 | - Rewritten, hopefully this will remove a lot of the |
| 4362 | scrolling the cursor back and forth needlessly. |
Chris Allegretta | 1a47139 | 2000-07-28 14:08:01 +0000 | [diff] [blame] | 4363 | - move.c: |
| 4364 | page_down() |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 4365 | - do an edit_update() at last case. Made function more like |
| 4366 | Pico's version, only move down to two lines before editbot. |
| 4367 | page_up() |
| 4368 | - Made function more like Pico's version, only move down to two |
| 4369 | lines after edittop. |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 4370 | |
Chris Allegretta | a1a55c7 | 2000-07-28 00:36:03 +0000 | [diff] [blame] | 4371 | nano-0.9.14 - 07/27/2000 |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 4372 | - nano.h: |
| 4373 | - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32. |
| 4374 | - cut.c: |
Chris Allegretta | 962c3c9 | 2000-07-24 21:52:17 +0000 | [diff] [blame] | 4375 | do_cut_text() |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 4376 | - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31. |
Chris Allegretta | 0e5faca | 2000-07-27 13:32:46 +0000 | [diff] [blame] | 4377 | - Simplified check for freeing cutbuffer. Added checks for doing |
| 4378 | multiple cuts with -k, now sets marked_cut to 2 for later |
| 4379 | processing by do_uncut_text(). |
| 4380 | do_uncut_text() |
| 4381 | - Added handler for uncutting with -k cuts. |
Chris Allegretta | 962c3c9 | 2000-07-24 21:52:17 +0000 | [diff] [blame] | 4382 | - files.c: |
| 4383 | write_file() |
| 4384 | - Removed (redundant) check for writing out files with -t. |
| 4385 | do_writeout() |
| 4386 | - Changed check for filename to filename[0]. Added some code, |
| 4387 | overall fixes bug #30 =-) |
Robert Siemborski | a417ddc | 2000-07-24 23:18:48 +0000 | [diff] [blame] | 4388 | - nano.c: |
| 4389 | do_justify() & do_wrap(): |
| 4390 | - totsize-related fixes (Rob) |
Chris Allegretta | 2ece167 | 2000-07-27 15:25:52 +0000 | [diff] [blame] | 4391 | - de.po |
| 4392 | - Revised translations by floki@bigfoot.com |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 4393 | |
Chris Allegretta | 1d7110d | 2000-07-23 16:59:07 +0000 | [diff] [blame] | 4394 | nano-0.9.13 - 07/23/2000 |
Chris Allegretta | 627de19 | 2000-07-12 02:09:17 +0000 | [diff] [blame] | 4395 | - Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut), |
Chris Allegretta | d19e991 | 2000-07-12 18:14:51 +0000 | [diff] [blame] | 4396 | affects do_cut_text in cut.c. Not available with SMALL_NANO because it |
| 4397 | depends on the marker code which is not available with that setting. |
Chris Allegretta | 3088555 | 2000-07-14 01:20:12 +0000 | [diff] [blame] | 4398 | - Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using |
| 4399 | -t with an unwritable file causes users to get locked into editor). |
Adam Rogoyski | ed0cb89 | 2000-07-12 04:02:45 +0000 | [diff] [blame] | 4400 | - move.c |
| 4401 | page_down() |
| 4402 | - Don't edit_refresh() if the bottom of the file is in the edit |
| 4403 | buffer. (Adam) |
Robert Siemborski | 6967eec | 2000-07-08 14:23:32 +0000 | [diff] [blame] | 4404 | - nano.c: |
| 4405 | main(): |
| 4406 | - TABSIZE now set before first call to edit_refresh (Bill Soudan) |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 4407 | - Different ^C kill code (patch by Christian Weisgerber). |
Robert Siemborski | fcf32bf | 2000-07-17 03:04:54 +0000 | [diff] [blame] | 4408 | die(): |
| 4409 | - More intelligent emergency-save filename selection (Rob) |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 4410 | do_spell(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4411 | - Changed exit semantics a bit so that aspell wouldn't get |
| 4412 | all screwy (bug discovered by Joshua Jensen. |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 4413 | - files.c: |
| 4414 | read_file(): |
| 4415 | - Added init of buf variable, hopefully this will stop the |
| 4416 | "bleeding" of text seen with mutt and using i18n. |
Chris Allegretta | acb6234 | 2000-07-21 22:42:46 +0000 | [diff] [blame] | 4417 | write_file(): |
| 4418 | - Added code to check to see if using -l and the file is not |
| 4419 | in fact a link. This should fix the behavior where a file |
| 4420 | that does not have write permission but could be removed and |
| 4421 | rewritten is saved without error. Please test this feature |
| 4422 | and give feedback. |
Chris Allegretta | a4d2162 | 2000-07-08 23:57:03 +0000 | [diff] [blame] | 4423 | - search.c: |
| 4424 | search_init(): |
| 4425 | - Added " (to replace)" statement to end of search string if |
| 4426 | we are doing a replace. Manually converted all the translations |
| 4427 | from '%s' to '%s%s' to ensure they still work with the new code. |
| 4428 | Also put in the translation for " (replace)" in the .po's. Hope |
| 4429 | I didn't step on your toes doing this Jordi. (Chris) |
Chris Allegretta | 635fae3 | 2000-07-09 03:26:34 +0000 | [diff] [blame] | 4430 | do_search(), do_replace(): |
| 4431 | - Removed call to search_abort()/replace_abort() before call to |
| 4432 | the opposite function. |
Chris Allegretta | fa8f7bf | 2000-07-12 02:41:13 +0000 | [diff] [blame] | 4433 | - Fixed bug #28. |
Adam Rogoyski | ed0cb89 | 2000-07-12 04:02:45 +0000 | [diff] [blame] | 4434 | findnextstr() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4435 | - do not center string found if it is currently visible. (Adam) |
Chris Allegretta | 7539a82 | 2000-07-09 23:55:13 +0000 | [diff] [blame] | 4436 | - fr.po: |
| 4437 | - French update by Clement Laforet <clem_laf@wanadoo.fr>. |
Jordi Mallach | 8d7ac1b | 2000-07-13 03:10:01 +0000 | [diff] [blame] | 4438 | - es.po: |
| 4439 | - Updated strings to 0.9.13 (Jordi). |
Robert Siemborski | 6967eec | 2000-07-08 14:23:32 +0000 | [diff] [blame] | 4440 | |
Chris Allegretta | e955dae | 2000-07-07 22:24:59 +0000 | [diff] [blame] | 4441 | nano-0.9.12 - 07/07/2000 |
Robert Siemborski | 6d0e9cd | 2000-07-01 21:43:16 +0000 | [diff] [blame] | 4442 | - all: |
Chris Allegretta | 9fc8d43 | 2000-07-07 01:49:52 +0000 | [diff] [blame] | 4443 | - New regexp search feature by Bill Soudan. New flags USE_REGEXP |
| 4444 | and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup |
| 4445 | replace_line, replace_regexp in search.c, changes to |
Chris Allegretta | 4780561 | 2000-07-07 02:35:34 +0000 | [diff] [blame] | 4446 | search_init() and do_replace() and strstrwrapper(). |
| 4447 | - Added _POSIX_VERSION check to regexp code. Better than nothing |
| 4448 | for non-POSIX systems... |
Robert Siemborski | 6d0e9cd | 2000-07-01 21:43:16 +0000 | [diff] [blame] | 4449 | - Made search functions & keys more like Pico. Added goto line from |
| 4450 | search and replace function, changed wording to "No Replace" instead |
| 4451 | of "To Search", "To Replace" to simply "Replace", and changed to |
| 4452 | Pico's keystroke by default, ^R. Affects search_init(), |
| 4453 | do_search() in search.c, globals in nano.h and |
| 4454 | shortcut_init() in global.c. |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 4455 | - changed 'sprintf' calls to safer 'snprintf' (Rob) |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 4456 | - cut.c |
| 4457 | - further totsize update corrections |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 4458 | - files.c: |
| 4459 | - changed do_insertfile to call fix_editbot (Rob) |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 4460 | - Magic Line code in read_file (Rob) |
Chris Allegretta | 8a9fe7e | 2000-06-21 22:29:38 +0000 | [diff] [blame] | 4461 | - nano.c: |
| 4462 | - Removed dual alt_speller variables, oops! (Rocco Corsi) |
Chris Allegretta | dbc12b2 | 2000-07-03 03:10:14 +0000 | [diff] [blame] | 4463 | - Removed unnecessary do_oldspell function (Rocco Corsi). Added |
| 4464 | SMALL_NANO #ifdef around actual spell function. |
Chris Allegretta | 1e57e68 | 2000-07-03 04:24:39 +0000 | [diff] [blame] | 4465 | - Moved page_up() to move.c where is belongs. |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 4466 | - Corrected FIXME in do_enter with explanation. (Rob) |
| 4467 | - Fixed FIXME in do_justify, resulted in creation of |
| 4468 | fix_editbot [also fixed in do_enter] (winio.c) (Rob) |
Robert Siemborski | cdff015 | 2000-07-07 01:58:52 +0000 | [diff] [blame] | 4469 | help_init(): |
| 4470 | - Moved newline out of if statement (Rocco Corsi) |
Chris Allegretta | 28a0f89 | 2000-07-05 22:47:54 +0000 | [diff] [blame] | 4471 | do_char(): |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 4472 | - Magic Line related code in do_char (Rob) |
Chris Allegretta | 28a0f89 | 2000-07-05 22:47:54 +0000 | [diff] [blame] | 4473 | do_backspace(), do_delete(): |
| 4474 | - Added magic line code here too. |
| 4475 | |
Chris Allegretta | f7eba0b | 2000-06-24 01:33:27 +0000 | [diff] [blame] | 4476 | - de.po: |
Chris Allegretta | 6e80585 | 2000-06-22 01:53:29 +0000 | [diff] [blame] | 4477 | - Revised translations by floki@bigfoot.com. |
Chris Allegretta | f7eba0b | 2000-06-24 01:33:27 +0000 | [diff] [blame] | 4478 | - fi.po: |
| 4479 | - Finnish translation by pauli.virtanen@saunalahti.fi. |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 4480 | - utils.c: |
| 4481 | - Added new_magicline() |
Chris Allegretta | 8c2b40f | 2000-06-29 01:30:04 +0000 | [diff] [blame] | 4482 | - winio.c: |
Chris Allegretta | dba37ae | 2000-07-07 05:13:09 +0000 | [diff] [blame] | 4483 | - Added stdlib.h to includes, found by OpenBSD gcc. |
Robert Siemborski | 20d61d5 | 2000-07-08 00:43:35 +0000 | [diff] [blame] | 4484 | - lots of new commenting around display functions |
Chris Allegretta | 5204ea9 | 2000-06-22 01:56:23 +0000 | [diff] [blame] | 4485 | do_yesno(), nanogetstr(): |
| 4486 | - Removed now unnecessary raw/cbreak combos. |
Jordi Mallach | 0b0fc49 | 2000-06-23 01:00:13 +0000 | [diff] [blame] | 4487 | - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till |
| 4488 | we decide if those keybindings should be translated. (Jordi) |
Chris Allegretta | 8c2b40f | 2000-06-29 01:30:04 +0000 | [diff] [blame] | 4489 | clear_bottomwin(): |
| 4490 | - Removed wrefresh(edit) call. |
Chris Allegretta | 48fd2cb | 2000-07-03 04:31:13 +0000 | [diff] [blame] | 4491 | edit_update_top(): |
| 4492 | - Fixed a bug that caused nano to not update when |
| 4493 | current->next == NULL (e.g. paging down to the very bottom of |
| 4494 | ABOUT NLS wouldn't work). |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 4495 | fix_editbot: |
| 4496 | - Added (should rebuild editbot from a valid edittop) (Rob) |
Robert Siemborski | 20d61d5 | 2000-07-08 00:43:35 +0000 | [diff] [blame] | 4497 | edit_add: |
| 4498 | - removal of redundant call to mvwaddnstr |
Chris Allegretta | 8a9fe7e | 2000-06-21 22:29:38 +0000 | [diff] [blame] | 4499 | |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 4500 | nano-0.9.11 - 06/20/2000 |
Chris Allegretta | 790198d | 2000-06-20 00:40:01 +0000 | [diff] [blame] | 4501 | - New flag "-T" or "--tabsize" to specify how to display tab widths. |
| 4502 | Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4503 | winio.c, and nano.h. Many hardcoded "8"s have been changed to the |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 4504 | TABSIZE int. Added changes to nano.1 and nano.1.html. |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 4505 | - id.po: |
| 4506 | - Indonesian translation by Tedi Heriyanto. |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 4507 | - es.po: |
| 4508 | - Updated translation (Jordi Mallach). |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 4509 | - winio.c |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4510 | - Rewrite of display functions to correct the display problems |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 4511 | we had been seeing. Affects: add_marked_sameline, edit_add, |
| 4512 | and many others. (Rob Siemborski) |
Chris Allegretta | b0ae393 | 2000-06-15 23:39:14 +0000 | [diff] [blame] | 4513 | - totsize fixes (Rob Siemborski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 4514 | total_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4515 | - Cut display_main_list call, as this function is only supposed to |
| 4516 | refresh what's already on the screen, not go through the process |
| 4517 | of adding the text again. |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 4518 | - cut.c: |
Robert Siemborski | b0df953 | 2000-06-09 00:55:16 +0000 | [diff] [blame] | 4519 | - totsize fixes (Rob Siemborski) |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 4520 | - nano.c: |
Robert Siemborski | b0df953 | 2000-06-09 00:55:16 +0000 | [diff] [blame] | 4521 | - experimental do_wrap and check_wrap (Adam Rogoyski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 4522 | - Removed editwineob, as it was redundant for (editwinrows - 1). |
| 4523 | Changed all calls to editwinrows - 1 in nano.c and move.c. |
| 4524 | - Removed all functions that were split into other files. |
| 4525 | Affects LOTS of funcs. |
Chris Allegretta | b0ae393 | 2000-06-15 23:39:14 +0000 | [diff] [blame] | 4526 | do_enter(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4527 | - Added reset of placewewant to end. |
Robert Siemborski | 10eab1d | 2000-06-18 01:05:00 +0000 | [diff] [blame] | 4528 | do_insertfile(): |
| 4529 | - Fix display problem when using ctrl-r to load a file |
| 4530 | into the buffer (Rob Siemborski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 4531 | handle_sigwinch(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4532 | - Added titlebar(), edit_refresh() and display_main_list() calls |
| 4533 | because a resize wasn't picking up on possible different width |
| 4534 | correctly. |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 4535 | - utils.c: |
| 4536 | - Moved nmalloc() and nrealloc() here. |
| 4537 | - move.c: |
| 4538 | - New file, contains movement functions (like do_home(), do_up(), |
| 4539 | do_down(), page_up(), etc...). |
| 4540 | - files.c: |
| 4541 | - Contains functions for files (read_file, insert_file, |
| 4542 | do_writeout(), etc). |
| 4543 | - search.c: |
| 4544 | - Contains all our searching and related functions, (do_search(), |
| 4545 | findnextstr(), do_replace(), do_gotoline()). |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 4546 | |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4547 | nano-0.9.10 - 06/04/2000 |
| 4548 | - es.po: |
| 4549 | - Translation updates (Jordi). |
| 4550 | - AUTHORS, nano.1.html, TODO, README: |
| 4551 | - Documentation and email address updates (Jordi). |
| 4552 | - nano.c: |
| 4553 | main(): |
| 4554 | - Moved Adam's termio code down to after getopt() and before initscr() |
| 4555 | to stop people losing their SIGINT character when using args that |
| 4556 | exit nano before it runs (--version, --help, etc). |
| 4557 | |
| 4558 | nano-0.9.9 - 05/31/2000 |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4559 | - Makefile.am: |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4560 | - Added proper lines for defining LOCALEDIR. |
| 4561 | - configure.in: |
| 4562 | - Spelling fixes (Jordi Mallach) |
| 4563 | - Removed CFLAGS changes for gcc, reduces portability according to |
| 4564 | some, and it certainly doesn't seem to decrease exe size. |
| 4565 | - es.po: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4566 | - Spanish translation updates (Jordi Mallach) |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4567 | - POTFILES.in: |
| 4568 | - Added global.c file, was screwing up translations (i.e. they |
| 4569 | weren't getting done). |
| 4570 | - cut.c: |
| 4571 | add_to_cutbuffer(): |
| 4572 | - Added totsize increment. |
| 4573 | - Cut fixes and optimizations (Rob Siemborski). |
| 4574 | do_uncut_text(): |
| 4575 | - Added totsize increment in several places. |
| 4576 | - nano.c: |
| 4577 | headers: |
| 4578 | - Removed LOCALEDIR define. |
| 4579 | do_justify(): |
| 4580 | - Added edit_refresh() call (bug discovered by Adam). |
| 4581 | page_down_center(): |
| 4582 | - Added call to edit_update(current) for last case. Removed |
| 4583 | increment of current_y since it's now just wasteful. |
| 4584 | do_enter(): |
| 4585 | - Added totsize increment. |
| 4586 | renumber(), renumber_all(): |
| 4587 | - Removed totsize-- and totsize init in renumber_all. |
| 4588 | do_mouse(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4589 | - Added edit_refresh() call to show highlight updates. Removed |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4590 | unnecessary wrefresh(edit). |
| 4591 | main(): |
| 4592 | - Moved up locale calls so that translated --help messages would |
| 4593 | actually get translated. |
| 4594 | do_backspace(), do_delete(): |
| 4595 | - Added decrement of totsize. |
| 4596 | init_help_msg(): |
| 4597 | - New function, initializes help text if NANO_SMALL isn't set (fixes |
| 4598 | broken i18n). |
| 4599 | read_file(): |
| 4600 | - malloc call changed to nmalloc (Rob Siemborski). |
| 4601 | - winio.c: |
| 4602 | total_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4603 | - Completely rewrote function, not quite so brain-damaged now. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4604 | |
| 4605 | nano-0.9.8 - 05/18/2000 |
| 4606 | - nano.c: |
| 4607 | main(): |
| 4608 | - Added awesome code that disables the CINTR and CQUIT |
| 4609 | character (Adam Rogoyski). Removed raw()/noraw() calls so that |
| 4610 | nano gets input in 'normal' mode, which is the Right Way(tm) to |
| 4611 | do it. ^S, ^Z and ^Q now work properly as a result, as well as |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4612 | ^C. New variable term, global variable oldterm to save previous |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4613 | term settings, and changes to finish() and die(). |
| 4614 | - Added extra #ifdefs in getopt code, so that above code and |
| 4615 | flag init is run even if GETOPT_LONG is not #defined. |
| 4616 | - Added memset line before sigactions. (Adam Rogoyski) |
| 4617 | do_suspend(): |
| 4618 | Removed function, see above for why. |
| 4619 | - winio.c: |
| 4620 | update_line(), center_cursor(): |
| 4621 | - Removed wrefresh(edit) from bottom of functions. wrefresh |
| 4622 | should now only be called once, at the bottom of the main() |
| 4623 | loop. |
| 4624 | - global.c: |
| 4625 | shortcut_init(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4626 | - Removed suspend sc_init call and suspend message because suspend |
| 4627 | is no longer needed in the shortcut list to work properly. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4628 | |
| 4629 | nano-0.9.7 - 05/14/2000 |
| 4630 | - nano.c: |
| 4631 | do_home(), do_end(): |
| 4632 | - Added calls to update_line for the current line, fixes |
| 4633 | lack of update (bug discovered by Alberto GarcĂa). |
| 4634 | main(): |
| 4635 | - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not |
| 4636 | following symlinks even when -l isn't set, and "no changes" |
| 4637 | error when nano is called from crontab -e (Adam Rogoyski). |
| 4638 | - cut.c: |
| 4639 | do_cut_text(): |
| 4640 | - Added edit_update_top to cut when mark is set, fixes lack of |
| 4641 | display update (bug discovered by Ken Tyler). |
| 4642 | |
| 4643 | nano-0.9.6 - 05/08/2000 |
| 4644 | - New Italian translation (it.po), by Daniele Medri. |
| 4645 | - nano.c: |
| 4646 | page_up(), page_down(): |
| 4647 | - Added reset of placewewant to 0, as it should be. |
| 4648 | do_up(), do_down(): |
| 4649 | - Added call to update_line() for line we move from and line we |
| 4650 | move to, in order to keep the highlighting correct. |
| 4651 | do_wrap(): |
| 4652 | - Added var chop, new code to wrap lines more like Pico, mostly. |
| 4653 | THIS STILL DEFINITELY NEEDS TO BE REWRITTEN! |
| 4654 | - winio.c: |
| 4655 | do_help(): |
| 4656 | - Added edit_refresh() before exit. |
| 4657 | update_cursor(): |
| 4658 | - Removed cursor updating which really wasn't needed anyway. |
| 4659 | edit_update(): |
| 4660 | - Removed yucky code that didn't work, this function now just |
| 4661 | computes edittop and editbot and calls edit_refresh() to do the |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4662 | rest, which removes a lot of duplicate code.. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4663 | |
| 4664 | nano-0.9.5 - 05/01/2000 |
| 4665 | - Removed bytes from file struct because it was computationally wasteful. |
| 4666 | - cut.c: |
| 4667 | do_uncut_text(): |
| 4668 | - Added call to edit_refresh(). |
| 4669 | - nano.c: |
| 4670 | do_backspace(): |
| 4671 | - Added reset of editbot when deleting the last line of the file |
| 4672 | (bug discovered by Adam). |
| 4673 | do_char(): |
| 4674 | - Removed call to reset_cursor(). |
| 4675 | do_delete(): |
| 4676 | - Added similar check as to do_backspace(). |
| 4677 | do_enter(): |
| 4678 | - Added call to edit_refresh(). |
| 4679 | do_left(), right(): |
| 4680 | - Added call to update_line(), still redundant but better... |
| 4681 | do_up(), do_down(): |
| 4682 | - Added refresh calls both for current line and line to which |
| 4683 | we are moving. |
| 4684 | main(): |
| 4685 | - Removed inefficient call to edit_refresh() after every keystroke. |
| 4686 | It is now up each function to leave the screen in a good state. |
| 4687 | - winio.c: |
| 4688 | do_cursorpos() |
| 4689 | - Rewritten to not use bytes from filestruct by an incremental sum. |
| 4690 | update_line(), reset_cursor(): |
| 4691 | - Optimized calls to xplustabs() through a single variable. |
| 4692 | - update_line() now takes a new arg, an index into the string |
| 4693 | for where to update the line from. Needed for new update |
| 4694 | code. |
| 4695 | - configure.in: |
| 4696 | - Better checks for slang, allows argument to --with-slang. |
| 4697 | (Albert Chin-A-Young) |
| 4698 | - Removed -Iintl from CFLAGS in gcc check. |
| 4699 | - Makefile.am: |
| 4700 | - Addition of -Iintl for gettext (Albert Chin-A-Young) |
| 4701 | |
| 4702 | nano-0.9.4 - 04/25/2000 |
| 4703 | - Fixed calls to no_help and changed them to the more consistent |
| 4704 | ISSET(NO_HELP). Fixed return val of no_help to be what it should (2, |
| 4705 | not 1. Code to temporarily disable NO_HELP when in the |
| 4706 | help system. (Adam Rogoyski) |
| 4707 | - cut.c: |
| 4708 | do_marked_cut(), do_cut(), do_uncut(): |
| 4709 | - Commented out unnecessary bits when NANO_SMALL is being used. |
| 4710 | - winio.c: |
| 4711 | xpt(), strlenpt(), actual_x(): |
| 4712 | - Added check for value of data[i] & 0x80, if so do not make |
| 4713 | character 2 chars wide (orig. by Chris, 0x80 check by Adam). |
| 4714 | edit_refresh(): |
| 4715 | - New check for temp == NULL (bad thing), if so go back to the |
| 4716 | previous line. New filestruct var hold points to prev line. |
| 4717 | Fixes segfault when paging down to the end of a file. |
| 4718 | - nano.c: |
| 4719 | write_file(): |
| 4720 | - Added check for if file exists and is not equal to the current |
| 4721 | filename, prompt for overwrite (Adam Rogoyski). |
| 4722 | do_down(): |
| 4723 | - Removed check for current->next == NULL, now checks return value |
| 4724 | of do_down before setting current_x = 0 (discovered by Adam). |
| 4725 | do_justify(): |
| 4726 | - Fixed segfault when reaching the last line (tried to assign |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4727 | current->next->data when current->next == NULL) (discovered |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4728 | by Adam). |
| 4729 | - utils.c: |
| 4730 | - Removed extra macro defs that are now in nano.h. |
| 4731 | - nano.h: |
| 4732 | - Changed macro SET() to use |= instead of ^=. Fixes bug in |
| 4733 | cut code when cutting more than one line, and cutbuffer gets |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4734 | blown away when it shouldn't. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4735 | |
| 4736 | nano-0.9.3 - 04/29/2000 |
| 4737 | - cut.c: |
| 4738 | do_marked_cut(): |
| 4739 | - Fixed off by one error in cut code for marked text. |
| 4740 | do_cut_text(): |
| 4741 | - Removed check for being on the last line, part of |
| 4742 | magic line code. |
| 4743 | add_to_cutbuffer(): |
| 4744 | - Moved tmp->prev = inptr line to part where cutbuffer != NULL. |
| 4745 | - Added inptr->prev = NULL for case where cutbuffer == NULL. |
| 4746 | - nano.c: |
| 4747 | do_backspace(), do_char(): |
| 4748 | - Removed "magic line" code. It was basically causing more bugs |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4749 | than it was helping for the sake of compatibility. This fixes |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4750 | at least one known segfault condition. |
| 4751 | do_enter(): |
| 4752 | - Added setting editbot to new node if the new node is the last |
| 4753 | node in the file. |
| 4754 | write_file(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4755 | - Changed writing file behavior. Now, if last line of the file |
| 4756 | has any data on it, we write a newline on it, else we don't. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4757 | - winio.c: |
| 4758 | add_marked_sameline(): |
| 4759 | - New code that checks for whether the begin and end of the marker |
| 4760 | are on different lines. Missing previously. |
| 4761 | edit_add(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4762 | - added some more checks for text length. Cleaned up some |
| 4763 | mvwaddnstrs that could be written more simply as waddnstrs. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4764 | edit_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4765 | - Removed check for temp == filebot, it is now treated like any other |
| 4766 | line. Fixes a bug where selected text on the last line shows |
| 4767 | normally. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4768 | xpt(): |
| 4769 | - Removed an extra computation for tabs variable that was incorrect. |
| 4770 | xplustabs(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4771 | - Since xpt now actually works, this func is now just a wrapper for |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4772 | xpt(current, current_x) |
| 4773 | - nano.1, nano.1.html: |
| 4774 | - Added -l option to man pages. |
| 4775 | - configure.in: |
| 4776 | - New option --enable-tiny, #defines NANO_SMALL in config.h. |
| 4777 | Disables call to gettext in functions and other i18n stuff in |
| 4778 | nano.c, the detailed help mode, the resize functions, and the |
| 4779 | justify code which no one ever uses. |
| 4780 | - New option --with-slang. Enables slang libraries instead of |
| 4781 | ncurses, requires slcurses.h for wrapper functions. (Based |
| 4782 | on patches for 0.8.7 by Glenn McGrath). |
| 4783 | |
| 4784 | nano-0.9.2 - 04/15/2000 |
| 4785 | - This release just fixes the serious segfault problem if nano is |
| 4786 | invoked any way other than using the absolute path. The bug was |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4787 | in the new code for checking whether nano is invoked as 'pico'. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4788 | |
| 4789 | nano-0.9.1 - 04/14/2000 |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4790 | - Added Pico compatibility for ^T when in search or switch to switch |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4791 | to the opposite function. Added one to REPLACE_LIST_LEN and |
| 4792 | WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4793 | new strings that will have to be gettext()ed. New argument 'replacing' |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4794 | to search_init(). Handlers in do_replace and do_search(). |
| 4795 | - New write code, now follows symbolic links instead of replacing them |
| 4796 | with the new file. New option (-l, --nofollow) to enable the old |
| 4797 | (incorrect, but secure) behavior (Adam Rogoyski). |
| 4798 | - nano.c: |
| 4799 | do_wrap(): |
| 4800 | - Fixed another bug relating to wrapping, and which would cause |
| 4801 | a segfault *sigh*. |
| 4802 | do_replace(): |
| 4803 | - Incremented current_x by the length of the replacement |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4804 | text inside the main replace loop. Fixes bug #15. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4805 | add_marked_sameline(): |
| 4806 | - New function, handles marked text when start & end of marker is |
| 4807 | on one line, also supports most marked text when cursor > COLS. |
| 4808 | main(): |
| 4809 | - Code to check if nano is invoked as 'pico', and if so |
| 4810 | automatically set pico_msgs (Robert Jones). |
| 4811 | |
| 4812 | nano-0.9.0 - 04/07/2000 |
| 4813 | - nano.1, nano.1.html: Updated man page with my email address and homepage. |
| 4814 | - winio.c: |
| 4815 | reset_cursor(), update_line(): |
| 4816 | - Changed update algorithm for x value to (COLS - 7) multiple when x |
| 4817 | value > (COLS - 2). |
| 4818 | - edit_refresh(): |
| 4819 | - Removed inner loop code, now calls update_line() for each line |
| 4820 | in question, MUCH nicer. |
| 4821 | - xplustabs(), xpt(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4822 | - Removed redundant increment of tabs when column no % 8 == 0. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4823 | - Added check for data[i] < 32, most of such bits are 2 chars wide. |
| 4824 | - update_line(): |
| 4825 | - Fixed a stupid call to strlenpt with col when we should have |
| 4826 | been using actual_col. Ugh. |
| 4827 | |
| 4828 | nano-0.8.9 - 03/22/2000 |
| 4829 | - nano.c: |
| 4830 | empty_line(), no_spaces(), justify_format(), do_justify(): |
| 4831 | Actually added these (screwup applying patch). |
| 4832 | do_justify(): Added call to set_modified(). |
| 4833 | |
| 4834 | nano-0.8.8 - 03/12/2000 |
| 4835 | - Preliminary internationalization support. Many many functions modified |
| 4836 | to use gettext (via _() macro). es.po file included. (Jordi Mallach) |
| 4837 | New dirs po/ and intl/, changes to configure.in and Automake.am to |
| 4838 | support i18n. |
| 4839 | - nano.c: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4840 | includes: Added sys/param.h and limits.h. (Adam Rogoyski). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4841 | statics: Changed some things that were not necessarily static |
| 4842 | (Adam Rogoyski). |
| 4843 | nrealloc(): New function, similar to nmalloc(). Changed calls from |
| 4844 | realloc() to nrealloc (Adam Rogoyski). |
| 4845 | empty_line(), no_spaces(), justify_format(), do_justify(): |
| 4846 | New functions for justify function (Adam Rogoyski). |
| 4847 | - winio.c: |
| 4848 | blank_edit(): Added wrefresh call to edit so that screen updates (like |
| 4849 | on ^L) actually work. |
| 4850 | xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski). |
| 4851 | |
| 4852 | nano-0.8.7 - 03/01/2000 |
| 4853 | - main.c: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4854 | do_wrap(): Better fix for segfaults, and fix for lines being wrapped |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4855 | to a single character on one line when no good place to |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4856 | break the line exists, and for wrapping lines longer than |
| 4857 | COLS. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4858 | - nano.1.html: |
| 4859 | Html version of man page, now included in dist. For |
| 4860 | the benefit of nano packages in Linux distributions. |
| 4861 | |
| 4862 | nano-0.8.6 - 02/24/2000 |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4863 | - global.c: |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4864 | shortcut_init(): |
| 4865 | Added shortcuts for goto_line and do_replace when using |
| 4866 | pico_msgs. Oops. |
| 4867 | - nano.c: |
| 4868 | statics: Changed fill back to 0 from 71 by default (Adam Rogoyski). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4869 | do_wrap(): Added check for backing up past tabs, which we shouldn't do. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4870 | Removed check for backing up past spaces first. |
| 4871 | main(): Added for loop to check for alt keys instead of hard list. |
| 4872 | do_enter(): Fix for bug #14, added call to reset_cursor and messed |
| 4873 | up do_char quite a bit. |
| 4874 | version(): Added time and date stamp for compile on version message. |
| 4875 | Added mail and web page info. |
| 4876 | - README: Updated mailing list info. |
| 4877 | |
| 4878 | nano-0.8.5 - 02/18/2000 |
| 4879 | - nano.c: |
| 4880 | main(): Finally fixed tilde being input on page up/down keys in |
| 4881 | certain terminal types. Fix was input 26->91->5[34] check |
| 4882 | for 126, if so make the kbinput PAGE UP/DOWN, else unget |
| 4883 | the keystroke and continue. Added #include <ioctl.h> for |
| 4884 | ioctl call. |
| 4885 | handle_hup(): |
| 4886 | Handler for hangup signal. Belated include of patch from |
| 4887 | Tim Sherwood. |
| 4888 | - winio.c: |
| 4889 | edit_refresh(): |
| 4890 | Temporary fix for selecting text when temp == current. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4891 | edit_refresh() is now unmanageably complex, and must be |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4892 | revamped. |
| 4893 | check_statblank(): |
| 4894 | Added check for constupdate, makes things less choppy |
| 4895 | (Adam Rogoyski) |
| 4896 | |
| 4897 | nano-0.8.4 - 02/11/2000 |
| 4898 | - Moved global variables that were only (or mostly) used in one file into |
| 4899 | its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn). |
| 4900 | - global.c: |
| 4901 | shortcut_init(): |
| 4902 | Removed redundant NANO_CONTROL_H from backspace shortcut, |
| 4903 | added char 127 which should have been there. |
| 4904 | - nano.c: |
| 4905 | main(): Fix for loops looping until MAIN_LEN, added -1 to stop |
| 4906 | segfaults (Adam Rogoyski). |
| 4907 | - Makefile.am: Added all source filenames (Adam Rogoyski). |
| 4908 | - nano.1: Fixed mail addressed and added mailing list address. |
| 4909 | - README: Updated my email address and the nano web page. |
| 4910 | |
| 4911 | nano-0.8.3 - 02/08/2000 |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4912 | - New Pico mode (-p, --pico), toggles (more) compatibility with the |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4913 | Pico messages displayed in the shortcut list. Note that there are still |
| 4914 | small differences in this mode. |
| 4915 | - nano.h: New shortcut struct format, for the benefit of i18n and |
| 4916 | our help menu. Removed shortcut message macros, they are |
| 4917 | now all in shortcut_init in global.c. |
| 4918 | - nano.c: |
| 4919 | do_wrap(): Removed resetting of current_x when we are in fact |
| 4920 | wrapping to the next line, fixes a bug in -i mode. |
| 4921 | do_enter(): |
| 4922 | Rewrote the autoindent mode code to be a lot less pretty, |
| 4923 | but a lot more magical. |
| 4924 | main(): |
| 4925 | Removed case for ignoring char 126 (~). That's kind of |
| 4926 | important, we'll have to fix handling that sequence when |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4927 | paging up/down on a terminal some other way... Revamped |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4928 | main switch loop in much snazzier fashion based on the |
| 4929 | shortcut list. |
| 4930 | - winio.c: |
| 4931 | New function display_main_list. Affects all functions |
| 4932 | that used to call bottombars() with main_list. Added |
| 4933 | because we now only call bottombars with the macro |
| 4934 | MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the |
| 4935 | changes to the main_list shortcut list (see global.c below). |
| 4936 | New function do_help, our preliminary dynamic help system. |
| 4937 | - Many many funcs: |
| 4938 | Changed from int to void to allow one uniform type to call |
| 4939 | from the shortcut struct. Also a few functions that do |
| 4940 | not simple have void argument have new functions called |
| 4941 | funcname_void(void) to be called from the shortcut list. |
| 4942 | do_cut_text and do_uncut_text were changed to void |
| 4943 | arguments because they were never called with a filestruct |
| 4944 | other than *current anyway. |
| 4945 | - global.c: |
| 4946 | Shortcut list main_list was expanded to cover all |
| 4947 | shortcuts that could be caught in the main loop. |
| 4948 | Consequently there is a new macro MAIN_VISIBLE which tells |
| 4949 | how many items in the main list to actually show. |
| 4950 | |
| 4951 | nano-0.8.2 - 02/02/2000 |
| 4952 | - Added initial mouse (-m, --mouse) support. New global variable |
| 4953 | use_mouse. (Adam Rogoyski) |
| 4954 | |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4955 | - nano.c: Set initial value of fill to COLS - 8 rather than just 72 |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4956 | regardless. (Adam Rogoyski). |
| 4957 | do_delete(): |
| 4958 | Deleted call to do_backspace() when on the end of a line, |
| 4959 | because it won't update the line properly. |
| 4960 | do_backspace(): |
| 4961 | Removed unnecessary pointer manipulation that was being |
| 4962 | handled by unlink_node(). |
| 4963 | open_file(): |
| 4964 | Added check for trying to open a directory (currently we |
| 4965 | segfault on this). Bug pointed out by Chad Ziccardi. |
| 4966 | |
| 4967 | nano-0.8.1 - 01/28/2000 |
| 4968 | - Implemented Pico's -r (fill) mode, command line flag -r or --fill. New |
| 4969 | global variable fill, affects check_wrap(), do_wrap(), main(), usage(), |
| 4970 | global.c and proto.h. |
| 4971 | - nano.c: |
| 4972 | write_file(): Added (incredibly) necessary check for EPERM when |
| 4973 | link() fails. This allows us to actually save |
| 4974 | files via rename() on filesystems that dont |
| 4975 | support hard links (AIEEEEEE). |
| 4976 | do_goto(): |
| 4977 | Fixed a stupid mistake where we were calling |
| 4978 | bottombars() with replace_list instead of goto_list. |
| 4979 | - nano.h: |
| 4980 | New char *help in shortcut structure for help |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4981 | feature. Added NANO_*_MSG and NANO_*_HELP #defines |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 4982 | for help function and i18n. |
| 4983 | - global.c: |
| 4984 | New functions shortcut_init (called in nano.c) and |
| 4985 | sc_init_one() to initialize the shortcuts without |
| 4986 | using {}s (for i18n). |
| 4987 | |
| 4988 | nano-0.8.0 - 01/25/2000 |
| 4989 | - View flag (-v, --view) implemented. Global variable view_mode, affects |
| 4990 | main loop of nano.c and new_file(). (me) |
| 4991 | - nano.c: |
| 4992 | split checks for TERMIOS_H and TERMIO_H up so we |
| 4993 | can (theoretically) include them both, which is good. |
| 4994 | handle_sigwinch(): |
| 4995 | Added check for ncurses.h. (Andy Kahn) |
| 4996 | do_spell(): |
| 4997 | We now only try ispell because we don't as of yet |
| 4998 | handle the 'spell' program the right way, now that |
| 4999 | I finally know what the right way is =-). Added |
| 5000 | call to edit_update(fileage) to stop segfaults. |
| 5001 | global_init(): |
| 5002 | Added initialization of edit* filestruct pointers |
| 5003 | to stop segfaults on spell check. |
| 5004 | usage(): |
| 5005 | Check for getopt_long, and if no leave out the |
| 5006 | GNU options everyone seems to love so much (Andy Kahn) |
| 5007 | main(): |
| 5008 | Added checks for getopt_long (Andy Kahn) |
| 5009 | We ignore character 126 because it gets put into |
| 5010 | the buffer when we page up/down on a vt terminal. |
| 5011 | write_file(): |
| 5012 | Fixes for umask (Adam Rogoyski). Renamed tmpfile |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5013 | variable to tmp. Documented the tmp option |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5014 | better in the function comments. Fixed my |
| 5015 | stupidly commented out check for tmp on setting |
| 5016 | umask which I really like => |
| 5017 | - nano.h: |
| 5018 | Made desc variable in shortcut struct a pointer |
| 5019 | instead of a fixed-length string. |
| 5020 | - utils.c: |
| 5021 | Fixed check for config.h before nano.h. |
| 5022 | - configure.in: |
| 5023 | New checks for getopt_long, getopt.h, removed |
| 5024 | CFLAGS and LDFLAGS changes. Gonna have to run |
| 5025 | strip manually now =-) (Andy Kahn) |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5026 | Added check for HAVE_WRESIZE, new file acconfig.h |
| 5027 | (me). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5028 | |
| 5029 | nano-0.7.9 - 01/24/2000 |
| 5030 | - New autoindent feature. Command flag 'i' or '--autoindent'. New |
| 5031 | function do_char() to clean up character output, global |
| 5032 | variable autoindent in global.c. (Graham Mainwaring) |
| 5033 | - New flag 't' or '--tempfile', like Pico's -t mode, automatically saves |
| 5034 | files on exit without prompting. Affects do_writeout(). Also |
| 5035 | do_writeout() now takes a parameter for if exiting. |
| 5036 | Global variable temp_opt in global.c (Graham Mainwaring) |
| 5037 | - Preliminary spell program support. Added command flag '-s' or |
| 5038 | '--speller' for alternative speller command. Added function do_spell() |
| 5039 | and exit_spell() to nano.c. New global variable alt_speller. |
| 5040 | - nano.c: |
| 5041 | main(): We now ignore input of decimal 410 because these get entered |
| 5042 | when we resize the screen. Sorted options in getopt() |
| 5043 | switch statement. |
| 5044 | usage(): Sorted options and changed tabs to make room for -s option. |
| 5045 | write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and |
| 5046 | doesn't print the number of lines written on the statusbar. |
| 5047 | global_init(): |
| 5048 | Added more initializations to globals to support do_spell(). |
| 5049 | |
| 5050 | nano-0.7.8 - 01/23/2000 |
| 5051 | - Stubbed justify function. Affects main() in nano.c and nano.h defines. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5052 | - Added Fkey equivalents for Pico compatibility. Affects nano.h defines |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5053 | and main() in nano.c |
| 5054 | - Removed redundant reset_cursor() calls from the blank() routines. |
| 5055 | - nano.c: |
| 5056 | main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY. |
| 5057 | Removed check for isprint() characters in main while loop |
| 5058 | for people with odd character sets *shrug*. Added some X |
| 5059 | window F-key combos. |
| 5060 | read_line(): New function, consolidates of most of the special |
| 5061 | sections of the file reading code. (Rob Siemborski) |
| 5062 | do_replace(): Many scattered fixes. (Rob Siemborski) |
| 5063 | write_file(): Added check for empty filename. |
| 5064 | - winio.c: |
| 5065 | nanogetstr(): Fixes for deleting at places other than the end of the |
| 5066 | buffer, cut support. (Adam Rogoyski) |
| 5067 | blank_edit(): New function, blanks edit buffer. Added call to it in |
| 5068 | total_refresh(). |
| 5069 | - configure: Checks for glib if snprintf of vsnprintf aren't available |
| 5070 | (Andy Kahn). Changed warning message when no termcap lib |
| 5071 | is found. |
| 5072 | |
| 5073 | nano-0.7.7 - 01/19/2000 |
| 5074 | - Option '-v' for version moved to '-V', because -v is Pico's "read only" |
| 5075 | mode (affects getopt() in main() and usage() function in nano.c |
| 5076 | - New flag -c, always show cursor position. Affects main() in nano.c and |
| 5077 | statusbar() in winio.c |
| 5078 | - Option '-x' doesn't show help window at the bottom of the editor. |
| 5079 | New variable no_help in nano.h and proto.h, affects main(), usage(), |
| 5080 | and global_init() in nano.c, blank_bottombars(), clear_bottomwin(), |
| 5081 | bottombars(), and do_yesno() in winio.c (I had to apply this patch by |
| 5082 | hand =P) (Adam Rogoyski) |
| 5083 | - nano.c: |
| 5084 | handle_sigwinch(): New function (Adam Rogoyski), handles resizing. |
| 5085 | page_up(), page_down(): |
| 5086 | - New functions. We now set the cursor at the top right corner, |
| 5087 | not at the center line, and page up and down a full screen |
| 5088 | rather than a half screen. Original functions renamed to |
| 5089 | page_up_center() and page_down_center(). |
| 5090 | main(): |
| 5091 | - Added check for keystroke key sequence 407 or NANO_CONTROL_Z |
| 5092 | in main while loop because suspend mode was broken. This should |
| 5093 | fix it, at least for now. |
| 5094 | - Added long option support (By popular harassment ;-) - Added |
| 5095 | #include for getopt.h, changed getopt() to getopt_long(). |
| 5096 | Options added so far: --version (-V), --nowrap (-w), --suspend |
| 5097 | (-z), --help (-h), --nohelp (-x). |
| 5098 | - Rewrote signal statements (Adam Rogoyski) |
| 5099 | |
| 5100 | nano 0.7.6 - 01/15/2000 |
| 5101 | - New ChangeLog format |
| 5102 | - nano.c: |
| 5103 | main(): Bound CONTROL_H to backspace (oops) |
| 5104 | Added more Alt-[-key combinations, for page up & down. |
| 5105 | read_bytes(): New function (Adam Rogoyski) |
| 5106 | read_file(): Optimizations - malloc()s *buf a little at a time rather |
| 5107 | than one huge buffer, and replaced the strcat at the end |
| 5108 | with an index variable. Added call to read_bytes(). |
| 5109 | do_next_word(): New function, binding is control-space (0) (me) |
| 5110 | |
| 5111 | - winio.c: |
| 5112 | bottombars(): Fixed non-expanding shortcut keys at bottom of screen. |
| 5113 | (formula is extra space needed = COLS / 6 - 13). |
| 5114 | actual_x() & strlenpt(): |
| 5115 | Added bug#9 fix - when tabs % 8 == 0, we should only |
| 5116 | increment tabs by 1. |
| 5117 | titlebar(): Fixed overrun in titlebar on very long filenames. |
| 5118 | |
| 5119 | 0.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated |
| 5120 | writing a newline at EOF. do_cursorpos and do_replace are now not |
| 5121 | directly bound to signals but picked up as their control sequences |
| 5122 | in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!) |
| 5123 | 0.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for |
| 5124 | available memory, align bug fixed (Big Gaute). |
| 5125 | |
| 5126 | --- As of version 0.7.4 TIP is renamed to nano. |
| 5127 | |
| 5128 | 0.7.3 Fixed a double blank_statusbar() when jumping to first and last |
| 5129 | lines. Took out unnecessary updates in load_file. Bug fix in |
| 5130 | do_left. Missing updates to totlines, fixed bug #7 (last line not |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5131 | having a newline at the end doesn't get read, bugfix in do_replace |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5132 | with replace all, more/better comments (Robert Siemborski) |
| 5133 | 0.7.2 Our first patch accepted into the source! configure fixes |
| 5134 | and optimizations (Erik Anderson). Added missing stdarg.h to winio.c. |
| 5135 | Bug fix in update_line for editing long lines. Fixed arguments |
| 5136 | being put into the filename when none is specified. Preliminary |
| 5137 | +line command argument function. |
| 5138 | 0.7.1 configure tweak for better FreeBSD support. Removed refresh() from |
| 5139 | edit_refresh to stop cursor "jumping" during screen updates. This |
| 5140 | will probably cause a bug or two. Replace is now Alt-R (@R) and |
| 5141 | Goto line is Alt-G (@G), but they have control key aliases of ^\ and |
| 5142 | ^_ respectively. Made Control-F,B,N,P work like they do in Pico. |
| 5143 | Control-G will become the Help key, but for now is stubbed out. |
| 5144 | 0.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in |
| 5145 | findnextstr. Bound Control-D to Delete. Refixed segfault on zero |
| 5146 | length file. Added Esc-[-A,B,C,D cursor key sequences. |
| 5147 | 0.6.9 Preliminary cursor position function. Split up tip.c more, made |
| 5148 | new files cut.c and winio.c. Fixed a bug in cut_marked_segment |
| 5149 | that was leaving out a character. |
| 5150 | 0.6.8 By request, optchr in main() is now an int. Removed unneeded |
| 5151 | globals. Bound functions for next/prev page, and wrote functions |
| 5152 | do_home and do_end. |
| 5153 | 0.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and |
| 5154 | created read_file. Implemented Insert File. Fixes in tipgetstr |
| 5155 | for erroneous keystrokes. Added leave_cursor arg to do_yesno(). |
| 5156 | 0.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for |
| 5157 | aborted searches and more Pico-compatible messages. statusq() now |
| 5158 | returns -2 on a blank entry instead of -1. Bug fix in actual_x(). |
| 5159 | 0.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text |
| 5160 | regarding buffers with filebot in them. Fixins in do_backspace |
| 5161 | and do_enter. Removed unused variables. Removed strip_newline. |
| 5162 | 0.6.4 Took out the awful newlines from each string buffers. This will |
| 5163 | certainly cause more bugs. Fixes in do_exit(). Better empty file |
| 5164 | handling (I hope). |
| 5165 | 0.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct. |
| 5166 | do_enter() rewritten. |
| 5167 | 0.6.2 Better default file permissions. Complete rewrite of do_wrap(). |
| 5168 | Better handling of editing with cursor near COLS - 1. |
| 5169 | 0.6.1 Starting to implement wrapping toggle. Fix for unhandled control |
| 5170 | codes being entered into the buffer. Bug fix in actual_x; more |
| 5171 | > COLS - 1 functionality, especially on lines with TABs. Fixed being |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5172 | locked into cutbuffer when cutting more than one marked screen of |
| 5173 | text. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5174 | 0.6.0 We have TABs!!! To do this, placewewant is now set to the actual |
| 5175 | width on the screen we want to be, not an index of current->data. |
| 5176 | New functions xplustabs and actual_x convert the actual place |
| 5177 | the cursor should be on the screen to and from the place in the |
| 5178 | string. |
| 5179 | 0.5.5 Changed do_right to test do_down before setting current_x to 0, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5180 | eliminating the "looping" on the last line when holding the right |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5181 | arrow. Preliminary support for longer than COLS - 1 lines. |
| 5182 | Wrote do_delete. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5183 | 0.5.4 Fixed a bug in total_update that wasn't repainting the screen |
| 5184 | properly. tipgetstr is much more messy but text is now more |
| 5185 | editable ;) Fixed crash on entering a new file, hopefully. Awful |
| 5186 | stub for tab handling, only in do_right() to save me some sanity. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5187 | 0.5.3 Added check for malloc.h. Implementing uncut from marker slowly. |
| 5188 | Fixed a few bugs in do_uncut when not uncutting from marked text. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5189 | I would not trust your data with the mark code right now, but then |
| 5190 | we're not at version 1.0 yet so dont trust anything ;) |
| 5191 | 0.5.2 Added reset_cursor() before end of update_line so cursor doesn't |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5192 | jump after each keystroke entered. Select text stubbed. Fixed |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5193 | a bug in total_refresh(). Setting a mark will highlight properly, |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5194 | but does not actually affect what gets put in the cutbuffer (yet). |
| 5195 | 0.5.1 Writing a file out causes modified to be set back to 0. Good. |
| 5196 | Set_modified function written. Cut and uncut text now set |
| 5197 | modified when called. |
| 5198 | 0.5.0 Half way there! Implemented write out, save function seems |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5199 | stable. Changed statusbar blank routing to not refresh, a separate |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5200 | program calls it and then refreshes. Made the program not clear |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5201 | the screen on exit, just the bottom two lines (like Pico). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5202 | 0.4.2 Implemented replace all in replace function. Crude exit function |
| 5203 | (asks yes or no if modified but does not write to file). |
| 5204 | 0.4.1 Implementing search & replace. Fixed crash on deleting at top of |
| 5205 | edit buffer. Implemented "timeout" of statusbar messages. |
| 5206 | Implemented ^A and ^E (beginning and end of line). |
| 5207 | 0.4.0 Split code into global.c and proto.h to allow for better multiple |
| 5208 | file handling. Added #defines for the majority of the shortcut |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5209 | keys in tip.h for easy modification. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5210 | 0.3.1 Write edit_refresh which doesn't move the screen around, just |
| 5211 | updates what's there already. do_wrap() and do_enter() added. |
| 5212 | 0.3.0 Preliminary cutbuffer (cut and uncut) support. |
| 5213 | 0.2.7 Check for Modification added. do_search() works. |
| 5214 | 0.2.5 Rewrite of file data struct. |
| 5215 | 0.2 Read in data to buffer, bound keystrokes to stub functions, |
| 5216 | initial cursor movement on screen. Initial autoconf support. |
| 5217 | 0.1 Initial program setup w/ncurses |
Chris Allegretta | c87a411 | 2000-08-07 02:16:24 +0000 | [diff] [blame] | 5218 | |
| 5219 | $Id$ |