David Lawrence Ramsey | 3dfc879 | 2005-03-20 20:04:59 +0000 | [diff] [blame] | 1 | CVS code - |
David Lawrence Ramsey | 2d825ba | 2005-03-20 21:20:47 +0000 | [diff] [blame] | 2 | - General: |
| 3 | - After (re)initializing the terminal, make sure the cursor is |
| 4 | always turned on. Changes to do_alt_speller(), |
| 5 | handle_sigwinch(), and main(). (DLR) |
David Lawrence Ramsey | 263b447 | 2005-03-23 05:56:11 +0000 | [diff] [blame] | 6 | - chars.c: |
| 7 | move_mbleft() |
| 8 | - Fix assert to reference the proper variable, so that nano |
| 9 | builds with DEBUG defined again. (Mike Frysinger, found by |
| 10 | Dmitri Vassilenko) |
David Lawrence Ramsey | b9dec21 | 2005-03-21 06:14:45 +0000 | [diff] [blame] | 11 | - files.c: |
| 12 | do_browser() |
| 13 | - Rename variable lineno to fileline to avoid confusion. (DLR) |
David Lawrence Ramsey | 39e8ce6 | 2005-03-21 07:24:47 +0000 | [diff] [blame] | 14 | - nano.c: |
David Lawrence Ramsey | c4daf5d | 2005-03-22 02:51:01 +0000 | [diff] [blame] | 15 | help_init() |
| 16 | - When calculating allocsize, take multibyte characters into |
| 17 | account, and keep the column number limits consistent. (DLR) |
David Lawrence Ramsey | 39e8ce6 | 2005-03-21 07:24:47 +0000 | [diff] [blame] | 18 | print1opt() |
| 19 | - Don't include longflag if HAVE_GETOPT_LONG isn't defined. |
| 20 | Rename this function to print1opt_full(), leave out the |
| 21 | longflag parameter if HAVE_GETOPT_LONG isn't defined, and make |
| 22 | print1opt() a macro for print1opt_full() that does that |
| 23 | without the need for a lot of extra #ifdefs. (David |
| 24 | Benbennick) DLR: Rename print1opt_f() to print1opt_full(). |
| 25 | - Rework the special case of options that are ignored for Pico |
| 26 | compatibility so that they display more neatly when |
| 27 | HAVE_GETOPT_LONG isn't defined. (DLR) |
| 28 | usage() |
| 29 | - Fix erroneous #ifdef that resulted in the -d/--rebinddelete |
| 30 | and -k/--cut options' not being printed when NANO_SMALL was |
| 31 | defined. (DLR) |
David Lawrence Ramsey | 6b94e95 | 2005-03-22 01:53:57 +0000 | [diff] [blame] | 32 | find_paragraph() |
| 33 | - Fix problem where a search for the next paragraph would skip |
| 34 | over certain cases of one-line paragraphs. (DLR) |
David Lawrence Ramsey | aad8515 | 2005-03-22 01:25:34 +0000 | [diff] [blame] | 35 | do_justify() |
| 36 | - Instead of breaking a line at a space and readding the space |
| 37 | afterwards, just break the line after the space, as it's more |
| 38 | efficient. (DLR) |
David Lawrence Ramsey | afbcf68 | 2005-03-21 06:33:41 +0000 | [diff] [blame] | 39 | - utils.c: |
| 40 | regexec_safe() |
| 41 | - Rename to safe_regexec() for consistency. (DLR) |
David Lawrence Ramsey | cf4db89 | 2005-03-22 03:59:32 +0000 | [diff] [blame] | 42 | - winio.c: |
David Lawrence Ramsey | 297851a | 2005-03-25 05:00:32 +0000 | [diff] [blame^] | 43 | titlebar() |
| 44 | - Make sure that the (mv)?waddnstr() calls take the proper |
| 45 | number of bytes when using multibyte characters, so that |
| 46 | multibyte strings aren't prematurely cut off. (DLR, found by |
| 47 | Jordi) |
| 48 | - Allow the "View" state to be displayed when a filename is |
| 49 | passed in, in case we're in multibuffer mode and inside the |
| 50 | file browser. (DLR) |
David Lawrence Ramsey | cf4db89 | 2005-03-22 03:59:32 +0000 | [diff] [blame] | 51 | help_line_len() |
| 52 | - Make the text display more flexible, and closer to what nano |
| 53 | 1.2.x does. (DLR) |
David Lawrence Ramsey | 3dfc879 | 2005-03-20 20:04:59 +0000 | [diff] [blame] | 54 | |
David Lawrence Ramsey | bec01bd | 2005-03-20 20:02:51 +0000 | [diff] [blame] | 55 | GNU nano 1.3.6 - 2005.03.20 |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 56 | - General: |
David Lawrence Ramsey | 1b9d3f9 | 2005-02-11 20:09:11 +0000 | [diff] [blame] | 57 | - More int -> bool conversions. (DLR and David Benbennick) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 58 | - Overhaul the cutting and uncutting routines to use the |
| 59 | partitioning code, as it greatly simplifies how they work. |
| 60 | New functions move_to_filestruct(), copy_from_filestruct(), |
| 61 | cut_line(), cut_marked(), and cut_to_eol(); changes to |
| 62 | add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.; |
| 63 | removal of functions get_cutbottom(), add_to_cutbuffer(), and |
| 64 | cut_marked_segment(). (DLR) |
| 65 | - Overhaul the justify-related routines to back up and restore |
| 66 | unjustified text to use the partitioning code, as it greatly |
| 67 | simplifies how they work, and to store such text in its own |
| 68 | buffer rather than the cutbuffer. Changes to backup_lines(), |
| 69 | do_justify(), etc. (DLR) |
David Lawrence Ramsey | 5b3dd0f | 2004-11-25 04:39:07 +0000 | [diff] [blame] | 70 | - Overhaul the multibuffer routines to increase efficiency, most |
| 71 | importantly making them use a doubly linked list for the open |
| 72 | files so that switching between them is no longer O(N), and |
| 73 | only including free_openfilestruct() when --enable-debug is |
| 74 | used. Also use some of the same efficiency tweaks when |
| 75 | dealing with filestruct nodes. New function |
| 76 | open_prevnext_file(); changes to make_new_opennode(), |
| 77 | splice_opennode(), unlink_opennode(), delete_opennode(), |
| 78 | free_openfilestruct(), add_open_file(), load_open_file(), |
| 79 | close_open_file(), shortcut_init(), die(), make_new_node(), |
| 80 | copy_node(), splice_node(), delete_node(), and |
| 81 | free_filestruct(); removal of open_prevfile() and |
| 82 | open_nextfile(). (David Benbennick, minor tweaks and additions |
| 83 | by DLR) |
David Lawrence Ramsey | 3ece0b9 | 2004-12-01 15:11:27 +0000 | [diff] [blame] | 84 | - Change references to "open files" to "open file buffers", for |
| 85 | consistency. (DLR) |
David Lawrence Ramsey | 9ec76e5 | 2004-12-23 19:55:57 +0000 | [diff] [blame] | 86 | - Add flag to disable UTF-8 sequence interpretation, so that |
| 87 | people using single-byte encodings such as KOI8-R can type |
| 88 | properly again. (DLR, found by Arthur Ivanov) |
David Lawrence Ramsey | 7483571 | 2004-12-04 17:41:52 +0000 | [diff] [blame] | 89 | - Massively overhaul the input and output routines to support |
David Lawrence Ramsey | 78ea5e4 | 2004-12-12 19:04:56 +0000 | [diff] [blame] | 90 | buffered input and output, the first steps toward |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 91 | wide/multibyte character input and output, and verbatim input |
| 92 | of double-byte Unicode characters instead of single-byte ASCII |
David Lawrence Ramsey | 9b95ca8 | 2005-01-14 06:02:10 +0000 | [diff] [blame] | 93 | characters. New functions is_byte(), get_buffer(), |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 94 | get_buffer_len(), buffer_to_keys(), unget_input(), |
| 95 | get_input(), parse_kbinput(), and parse_verbatim_kbinput(); |
| 96 | new macro charcpy(); changes to do_char() (renamed to |
| 97 | do_output()), get_edit_input() (renamed to do_input() and |
| 98 | moved to nano.c), get_edit_mouse() (renamed do_mouse() and |
| 99 | moved to nano.c), do_verbatim_input(), do_tab(), main(), and |
David Lawrence Ramsey | f647c48 | 2005-01-03 20:07:26 +0000 | [diff] [blame] | 100 | get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 101 | version of ncurses is required in order for wide/multibyte |
| 102 | input and output to work properly. (DLR; buffered input/output |
| 103 | based on ideas from mutt 1.4.2.1; input of Unicode characters |
| 104 | in hexadecimal suggested by Michael Piefel) |
David Lawrence Ramsey | fc69321 | 2004-12-23 17:43:27 +0000 | [diff] [blame] | 105 | - More steps toward wide character/multibyte character support. |
David Lawrence Ramsey | 40e211b | 2005-03-19 21:15:30 +0000 | [diff] [blame] | 106 | New functions control_rep(), parse_char(), move_left(), and |
| 107 | move_right(); changes to do_left(), do_right(), do_delete(), |
| 108 | breakable(), break_line(), do_output(), get_buffer(), |
| 109 | unget_input(), actual_x(), strnlenpt(), display_string(), |
| 110 | titlebar(), statusbar(), onekey(), edit_add(), |
| 111 | do_replace_highlight(), and do_credits(). (David Benbennick |
| 112 | and DLR) |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 113 | - Overhaul the high-level input routines for the statusbar to |
| 114 | make them read the shortcut lists for functions instead of |
| 115 | manually running them, to make nanogetstr() less complex, and |
| 116 | to increase flexibility. Note that currshortcut is now used |
David Lawrence Ramsey | b3aeb13 | 2005-01-14 21:19:06 +0000 | [diff] [blame] | 117 | regardless of #ifdefs, and that cutting text at the statusbar |
| 118 | now respects the CUT_TO_END flag. Changes to shortcut_init() |
| 119 | and nanogetstr(); new functions do_statusbar_input(), |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 120 | do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(), |
| 121 | do_statusbar_right(), do_statusbar_left(), |
| 122 | do_statusbar_backspace(), do_statusbar_delete(), |
| 123 | do_statusbar_cut_text(), and do_statusbar_output(). (DLR) |
| 124 | - Even more steps toward wide character/multibyte character |
David Lawrence Ramsey | 08cd7ef | 2005-01-02 20:30:15 +0000 | [diff] [blame] | 125 | support. Movement and cursor display at the statusbar prompt |
David Lawrence Ramsey | 68e3016 | 2005-01-03 22:23:00 +0000 | [diff] [blame] | 126 | should now (mostly) work properly with a string containing |
| 127 | multibyte characters, and text display of such strings should |
| 128 | now (mostly) work properly as well. Changes to search_init(), |
David Lawrence Ramsey | 08cd7ef | 2005-01-02 20:30:15 +0000 | [diff] [blame] | 129 | nanoget_repaint(), do_statusbar_right(), do_statusbar_left(), |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 130 | do_statusbar_backspace(), and do_statusbar_delete(). (David |
| 131 | Benbennick and DLR) |
David Lawrence Ramsey | 295d172 | 2005-01-01 07:43:32 +0000 | [diff] [blame] | 132 | - Implement cutting from the current position to the end of the |
| 133 | file, using Ctrl-X from the search prompt and Meta-T from the |
| 134 | edit window. New function do_cut_till_end(). Note that this |
| 135 | is disabled when NANO_SMALL is defined. (DLR, based on ideas |
| 136 | from a patch for Pico by Eduardo Chappa, suggested by Ryan |
| 137 | Dlugosz and Paul Adams) |
David Lawrence Ramsey | 11c83d3 | 2005-01-02 21:26:53 +0000 | [diff] [blame] | 138 | - Implement verbatim input for the statusbar prompt. Changes to |
David Lawrence Ramsey | d9ad76b | 2005-01-02 22:35:31 +0000 | [diff] [blame] | 139 | do_statusbar_input() and do_statusbar_output(); new functions |
| 140 | keys_to_buffer(), unparse_kbinput(), and |
David Lawrence Ramsey | 11c83d3 | 2005-01-02 21:26:53 +0000 | [diff] [blame] | 141 | do_statusbar_verbatim_input(). (DLR) |
David Lawrence Ramsey | b54155c | 2005-01-12 03:25:57 +0000 | [diff] [blame] | 142 | - Yet more steps toward full wide character/multibyte character |
| 143 | support. Overhaul the functions that already have support for |
| 144 | them to work with multibyte strings as much as possible, add |
| 145 | support to a few more functions as well, and move multibyte |
| 146 | character-specific functions to their own source file. New |
David Lawrence Ramsey | 1fe2eeb | 2005-01-14 21:33:47 +0000 | [diff] [blame] | 147 | file chars.c; new functions is_alnum_char(), |
David Lawrence Ramsey | efec641 | 2005-03-17 03:52:08 +0000 | [diff] [blame] | 148 | is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(), |
| 149 | is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(), |
| 150 | control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(), |
| 151 | make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(), |
| 152 | mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr(); |
David Lawrence Ramsey | 40e211b | 2005-03-19 21:15:30 +0000 | [diff] [blame] | 153 | changes to help_init(), do_wrap(), break_line(), is_byte() |
| 154 | (moved to chars.c), is_blank_char() (moved to chars.c), |
| 155 | is_cntrl_char() (moved to chars.c), nstricmp() (renamed |
| 156 | nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed |
| 157 | nstrncasecmp() and moved to chars.c), nstristr() (renamed |
| 158 | nstrcasestr() and moved to chars.c), revstrstr() (moved to |
| 159 | chars.c), revstristr() (renamed revstrcasestr() and moved to |
| 160 | chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed |
| 161 | parse_mbchar() and moved to chars.c), move_left() (renamed |
| 162 | move_mbleft() and moved to chars.c), move_right() (renamed |
| 163 | move_mbright() and moved to chars.c), do_home(), |
| 164 | do_verbatim_input(), do_delete(), do_tab(), do_enter(), |
| 165 | indent_length(), do_next_word(), do_prev_word(), do_wrap(), |
| 166 | do_input(), do_output(), is_whole_word(), strstrwrapper(), |
| 167 | get_buffer(), unget_input(), unget_kbinput(), get_input(), |
| 168 | parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(), |
David Lawrence Ramsey | 5f9acfe | 2005-03-04 17:09:41 +0000 | [diff] [blame] | 169 | do_statusbar_input(), do_statusbar_home(), |
David Lawrence Ramsey | 9bd5620 | 2005-03-18 21:29:33 +0000 | [diff] [blame] | 170 | do_statusbar_verbatim_kbinput(), do_statusbar_output(), |
| 171 | do_help(), help_line_len(), and display_string(); removal of |
| 172 | buffer_to_keys() and keys_to_buffer(). (DLR) |
David Lawrence Ramsey | 637b8bb | 2005-01-17 05:06:55 +0000 | [diff] [blame] | 173 | - Add -O/--morespace command line option, plus a corresponding |
| 174 | Meta-O toggle and a "morespace" rcfile option. When these are |
| 175 | used, the normally-unused blank line below the titlebar will |
| 176 | be treated as part of the edit window. New functions |
| 177 | no_more_space() and blank_topbar(); changes to global_init(), |
David Lawrence Ramsey | 7c60eab | 2005-01-27 06:35:56 +0000 | [diff] [blame] | 178 | window_init(), handle_sigwinch(), do_toggle(), do_mouse(), |
David Lawrence Ramsey | 798e67e | 2005-01-28 19:11:51 +0000 | [diff] [blame] | 179 | get_mouseinput(), etc. (DLR; suggested by Mike Frysinger, |
| 180 | Rocco, and Robert Schultz) |
David Lawrence Ramsey | b80077d | 2005-01-18 21:25:38 +0000 | [diff] [blame] | 181 | - Add support for moving to the next or previous word at the |
| 182 | statusbar prompt. New functions do_statusbar_next_word() and |
| 183 | do_statusbar_prev_word(); changes to do_statusbar_input(). |
| 184 | (DLR) |
David Lawrence Ramsey | 5040666 | 2005-01-19 19:52:42 +0000 | [diff] [blame] | 185 | - Make resizing more flexible. We now can work with as few as |
| 186 | one row, and with no limit on the number of columns (except of |
| 187 | course the curses-imposed limit that it be greater than zero). |
| 188 | New function resize_variables(); changes to die_too_small() |
| 189 | (renamed check_die_too_small()), global_init(), window_init(), |
David Lawrence Ramsey | 122ae84 | 2005-01-19 20:55:42 +0000 | [diff] [blame] | 190 | and handle_sigwinch(). (David Benbennick) |
David Lawrence Ramsey | 5040666 | 2005-01-19 19:52:42 +0000 | [diff] [blame] | 191 | - Use void instead of RETSIGTYPE, as signal handlers are |
| 192 | supposed to return void anyway. Also, the value of RETSIGTYPE |
| 193 | is sometimes misdetected as int, leading to compilation |
David Lawrence Ramsey | 42abfe0 | 2005-01-22 18:24:16 +0000 | [diff] [blame] | 194 | warnings or errors. Changes to cancel_fork(), |
David Lawrence Ramsey | b6e79fd | 2005-02-25 19:17:57 +0000 | [diff] [blame] | 195 | handle_hupterm(), do_suspend(), and do_cont(). (David |
David Lawrence Ramsey | 42abfe0 | 2005-01-22 18:24:16 +0000 | [diff] [blame] | 196 | Benbennick) |
David Lawrence Ramsey | 23c4450 | 2005-01-27 20:49:07 +0000 | [diff] [blame] | 197 | - Change flags to an unsigned long, and totsize to a size_t. |
| 198 | (DLR) |
| 199 | - Store the number of multibyte characters instead of the number |
| 200 | of single-byte characters in totsize, and use get_totals() to |
| 201 | get the value of totsize in a few more places. Changes to |
| 202 | read_line(), read_file(), do_delete(), do_input(), |
| 203 | get_totals(), and do_cursorpos(). (DLR) |
David Lawrence Ramsey | 7d36771 | 2005-02-14 05:00:15 +0000 | [diff] [blame] | 204 | - Overhaul the tab completion code, the file browser code, and |
| 205 | related functions to increase efficiency and support multibyte |
David Lawrence Ramsey | ad96aff | 2005-02-22 23:22:37 +0000 | [diff] [blame] | 206 | characters. New function is_dir(); changes to |
David Lawrence Ramsey | 7d36771 | 2005-02-14 05:00:15 +0000 | [diff] [blame] | 207 | get_full_path(), check_writable_directory(), safe_tempnam(), |
| 208 | diralphasort(), username_tab_completion(), |
| 209 | cwd_tab_completion(), input_tab(), tail(), striponedir(), |
| 210 | browser_init(), do_browser(), and do_browse_from(); removal of |
| 211 | append_slash_if_dir(), readable_dir(), and |
| 212 | check_wildcard_match(). (David Benbennick) DLR: Move the |
David Lawrence Ramsey | 65e6ecb | 2005-02-08 20:37:53 +0000 | [diff] [blame] | 213 | routine to get the current user's home directory into the new |
| 214 | function get_homedir(), and use it where necessary. Also add |
| 215 | a few miscellaneous tweaks. |
David Lawrence Ramsey | 202d3c2 | 2005-03-10 20:55:11 +0000 | [diff] [blame] | 216 | - Overhaul the rcfile parsing code to make it simpler and more |
| 217 | accurate, remove now-redundant checks from the color code, |
| 218 | change the COLOR_SYNTAX toggle to the NO_COLOR_SYMTAX toggle, |
| 219 | and improve various debugging messsages. Changes to |
| 220 | set_colorpairs(), do_colorinit(), parse_next_word(), |
| 221 | parse_argument(), colortoint(), parse_next_regex(), |
| 222 | parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(), |
| 223 | etc. (David Benbennick) DLR: Rename colortoint() to |
| 224 | color_to_int(), and add a few miscellaneous tweaks. |
David Lawrence Ramsey | ff4a487 | 2005-03-13 21:12:25 +0000 | [diff] [blame] | 225 | - Overhaul the paragraph-searching code to make it use the |
| 226 | paragraph-searching utility functions when possible instead of |
| 227 | duplicating code. Also overhaul the justify code to make it |
| 228 | leave the right number of spaces at the ends of the lines of a |
David Lawrence Ramsey | 38156d4 | 2005-03-15 05:44:03 +0000 | [diff] [blame] | 229 | paragraph, to make it support multibyte characters, and to |
| 230 | make it simpler. Also, don't remove a space after a duplicate |
| 231 | character in punct anymore, as it doesn't really make us more |
| 232 | compatible with Pico. New functions mbstrchr(), |
| 233 | do_para_begin_void(), and do_para_end_void(); changes to |
| 234 | justify_format(), do_para_begin(), inpar(), do_para_end(), |
David Lawrence Ramsey | 9389ca2 | 2005-03-14 06:14:02 +0000 | [diff] [blame] | 235 | break_line(), do_para_search() (renamed find_paragraph()), and |
| 236 | do_justify(); removal of breakable(). (DLR) |
David Lawrence Ramsey | 6e60db6 | 2005-03-10 22:52:21 +0000 | [diff] [blame] | 237 | - Still more steps toward full wide/multibyte character support. |
David Lawrence Ramsey | f0195a8 | 2005-03-14 18:47:21 +0000 | [diff] [blame] | 238 | Make sure all rcfile arguments are valid multibyte strings, |
| 239 | make whitespace display mode work with multibyte characters, |
David Lawrence Ramsey | e0fb4d5 | 2005-03-11 04:03:32 +0000 | [diff] [blame] | 240 | and add a few related documentation updates. New function |
David Lawrence Ramsey | f0195a8 | 2005-03-14 18:47:21 +0000 | [diff] [blame] | 241 | make_mbstring(); changes to make_mbchar(), make_mbstring(), |
David Lawrence Ramsey | 9bd5620 | 2005-03-18 21:29:33 +0000 | [diff] [blame] | 242 | main(), parse_rcfile(), display_string(), and do_help(). (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 243 | - cut.c: |
David Lawrence Ramsey | 4d6ec37 | 2004-11-23 17:59:32 +0000 | [diff] [blame] | 244 | do_cut_text() |
| 245 | - If keep_cutbuffer is FALSE, only blow away the text in the |
| 246 | cutbuffer if the cutbuffer isn't empty. (DLR) |
David Lawrence Ramsey | eeec999 | 2004-11-24 20:12:57 +0000 | [diff] [blame] | 247 | do_uncut_text() |
| 248 | - No longer duplicate Pico's adding an extra magicline to the |
| 249 | file if uncutting leaves the cursor on the current one. This |
| 250 | behavior appears to be a bug, as inserting a file in the same |
| 251 | manner doesn't add an extra magicline. (DLR) |
David Lawrence Ramsey | ca018c3 | 2004-11-26 20:14:19 +0000 | [diff] [blame] | 252 | - files.c: |
| 253 | get_full_path() |
| 254 | - Remove unneeded NANO_SMALL #ifdef, so that it's included |
| 255 | whenever its prototype is, and so it can compile when |
| 256 | DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR) |
David Lawrence Ramsey | b349c80 | 2005-03-17 19:10:29 +0000 | [diff] [blame] | 257 | do_browser() |
| 258 | - Refresh the screen when Ctrl-L is pressed in the file browser, |
| 259 | as Pico does. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 260 | - global.c: |
David Lawrence Ramsey | 3041293 | 2004-11-23 20:42:35 +0000 | [diff] [blame] | 261 | shortcut_init() |
| 262 | - Fix misplaced #endif keeping the "Full Justify" shortcut in |
| 263 | the search shortcut list from being included when NANO_SMALL |
| 264 | is defined but DISABLE_JUSTIFY isn't. (DLR) |
David Lawrence Ramsey | 35e9713 | 2005-01-08 06:04:19 +0000 | [diff] [blame] | 265 | - Use NULL instead of 0 when a shortcut has no associated |
| 266 | function. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 267 | thanks_for_all_the_fish() |
| 268 | - Free the justify buffer if it isn't empty. (DLR) |
David Lawrence Ramsey | b5a7a5a | 2004-11-23 03:42:43 +0000 | [diff] [blame] | 269 | - nano.c: |
David Lawrence Ramsey | f647c48 | 2005-01-03 20:07:26 +0000 | [diff] [blame] | 270 | help_init() |
| 271 | - Clarify the text describing double-escape character input. |
| 272 | Since ASCII is technically only seven bits wide, characters |
| 273 | 128-255 aren't ASCII. (DLR, suggested by Michael Piefel) |
David Lawrence Ramsey | 846658e | 2004-12-05 04:18:26 +0000 | [diff] [blame] | 274 | do_toggle() |
| 275 | - When we get the whitespace display toggle, update the titlebar |
| 276 | as well as the edit window, in case the filename displayed on |
| 277 | the titlebar contains spaces or tabs. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 278 | handle_sigwinch() |
| 279 | - If the justify buffer isn't empty, blow it away and don't |
| 280 | display "UnJustify" in the shortcut list anymore. (DLR) |
David Lawrence Ramsey | 45edf36 | 2005-02-14 05:38:06 +0000 | [diff] [blame] | 281 | usage() |
| 282 | - Typo fix. (DLR) |
David Lawrence Ramsey | b5a7a5a | 2004-11-23 03:42:43 +0000 | [diff] [blame] | 283 | do_wrap() |
| 284 | - Make wrap_loc and word_back ssize_t's, to match fill. (DLR) |
David Lawrence Ramsey | fc54d6e | 2004-12-02 17:37:09 +0000 | [diff] [blame] | 285 | break_line() |
| 286 | - Fix compilation problem caused by its returning int when it |
| 287 | should return ssize_t according to its prototype. (Jeremy |
| 288 | Huddleston) |
David Lawrence Ramsey | 22a3564 | 2005-03-18 05:26:54 +0000 | [diff] [blame] | 289 | indent_length() |
| 290 | - Make the #ifdef around it match that of its prototype to avoid |
| 291 | compilation problems when compiling with --enable-tiny and |
| 292 | without DISABLE_JUSTIFY's being defined. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 293 | do_justify() |
| 294 | - For consistency, preserve placewewant if we didn't unjustify |
| 295 | instead of setting it to 0. (DLR) |
David Lawrence Ramsey | 68ebb61 | 2004-12-04 17:36:14 +0000 | [diff] [blame] | 296 | - When justifying the entire file, properly break out of the |
David Lawrence Ramsey | 102d01d | 2005-03-17 04:48:14 +0000 | [diff] [blame] | 297 | loop if we've found at least one paragraph, there are no more |
| 298 | paragraphs after the current one, and the paragraph search |
| 299 | left us on the magicline. This avoids a segfault. (DLR) |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 300 | do_input() |
| 301 | - Add finished parameter, used to indicate when we run or try to |
| 302 | run a function associated with a shortcut. (DLR) |
David Lawrence Ramsey | fc69321 | 2004-12-23 17:43:27 +0000 | [diff] [blame] | 303 | main() |
| 304 | - Try to automatically detect whether UTF-8 support is needed by |
| 305 | setting the NO_UTF8 flag if setlocale() returns a string that |
David Lawrence Ramsey | d456bfa | 2005-03-18 19:07:25 +0000 | [diff] [blame] | 306 | doesn't contain "UTF8" or "UTF-8", case insensitively. When |
| 307 | using slang 2.x, enable UTF-8 support with SLutf8_enable(). |
| 308 | (DLR, string checks beyond case-sensitive "UTF-8" adapted from |
| 309 | Debian's UTF-8 patch for slang) |
David Lawrence Ramsey | 2bd2276 | 2005-01-18 16:43:18 +0000 | [diff] [blame] | 310 | - nano.h: |
| 311 | - Remove now-unneeded #defines for functions that now have |
| 312 | multibyte equivalents. (DLR) |
David Lawrence Ramsey | 5040666 | 2005-01-19 19:52:42 +0000 | [diff] [blame] | 313 | - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick) |
David Lawrence Ramsey | 1307aae | 2005-01-07 19:02:47 +0000 | [diff] [blame] | 314 | - utils.c: |
| 315 | regexec_safe() |
| 316 | - Remove redundant regexec #define, and move the regexec #undef |
| 317 | to nano.h. (DLR) |
| 318 | is_blank_char() |
| 319 | - Rewrite to use ctype functions instead of checking directly |
| 320 | for spaces and tabs. (DLR) |
David Lawrence Ramsey | 116c828 | 2005-01-14 03:22:54 +0000 | [diff] [blame] | 321 | revstrstr(), revstristr() |
| 322 | - Add asserts. (DLR) |
David Lawrence Ramsey | 698263c | 2004-11-25 05:05:41 +0000 | [diff] [blame] | 323 | - winio.c: |
David Lawrence Ramsey | c275dc5 | 2005-03-08 17:45:36 +0000 | [diff] [blame] | 324 | get_buffer() |
| 325 | - If we get ERR when using blocking input, it means that the |
| 326 | input source that we were using is gone. In this case, call |
| 327 | handle_hupterm(), so that nano dies gracefully instead of |
| 328 | going into an infinite loop. (DLR, found by Jim Uhl) |
David Lawrence Ramsey | f326ed7 | 2004-12-05 05:42:46 +0000 | [diff] [blame] | 329 | titlebar() |
David Lawrence Ramsey | 2c70a4e | 2004-12-05 06:03:46 +0000 | [diff] [blame] | 330 | - Rename some variables for consistency, make space an int |
| 331 | instead of a size_t, properly handle the case where the prefix |
| 332 | length plus the path length is greater than the amount of |
| 333 | space available, and fix a typo in an assert. (DLR) |
David Lawrence Ramsey | c109549 | 2004-11-27 15:18:34 +0000 | [diff] [blame] | 334 | unget_kbinput() |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 335 | - Remove the wide character handling, as it didn't work properly |
| 336 | with respect to function keys. (DLR) |
David Lawrence Ramsey | 698263c | 2004-11-25 05:05:41 +0000 | [diff] [blame] | 337 | get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(), |
| 338 | get_untranslated_kbinput() |
| 339 | - Make the ascii_digits variables ints instead of size_t's, |
| 340 | since they will only hold very small values. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 341 | get_kbinput() |
| 342 | - Remove the wide character handling, as it didn't work properly |
| 343 | with respect to adding multiple wide characters at once, and |
| 344 | ungetting them just caused other problems elsewhere. (DLR) |
| 345 | get_translated_kbinput() |
| 346 | - Remove the wide character handling, as it didn't work properly |
| 347 | with respect to adding multiple wide characters at once, and |
| 348 | ungetting them just caused other problems elsewhere. (DLR) |
| 349 | - Use if statements instead of switch/case statements to handle |
| 350 | ASCII character sequence mode, as they take up less room. |
| 351 | get_ascii_kbinput() |
| 352 | - Use if statements instead of switch/case statements to handle |
| 353 | ASCII character sequence mode, as they take up less room. |
David Lawrence Ramsey | c82997d | 2004-11-27 15:00:18 +0000 | [diff] [blame] | 354 | get_verbatim_kbinput() |
| 355 | - Don't pass v_kbinput in as a parameter, since we're |
| 356 | dynamically allocating it and then returning it. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 357 | - Remove v_first parameter, and go back to the old behavior of |
| 358 | putting back the first character of the escape sequence, as it |
| 359 | worked just as well and was less complicated. (DLR) |
David Lawrence Ramsey | f4a799a | 2005-01-08 06:16:19 +0000 | [diff] [blame] | 360 | get_mouseinput() |
| 361 | - Return TRUE instead of FALSE only when we have a control key, |
| 362 | a prinary meta key sequence, or both. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 363 | get_shortcut() |
David Lawrence Ramsey | bfcba16 | 2004-12-05 06:11:01 +0000 | [diff] [blame] | 364 | - Add a debug message. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 365 | - Take kbinput as a reference instead of a value, so that it's |
| 366 | translated when the key is translated to its equivalent |
| 367 | control key or meta key shortcut. (DLR) |
David Lawrence Ramsey | f4a799a | 2005-01-08 06:16:19 +0000 | [diff] [blame] | 368 | - Return s instead of NULL only when we have a control key, a |
| 369 | prinary meta key sequence, or both. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 370 | get_toggle() |
David Lawrence Ramsey | bfcba16 | 2004-12-05 06:11:01 +0000 | [diff] [blame] | 371 | - Add a debug message. (DLR) |
David Lawrence Ramsey | f4a799a | 2005-01-08 06:16:19 +0000 | [diff] [blame] | 372 | bottombars() |
| 373 | - Initialize foo, in case a keystroke meets none of the handled |
| 374 | cases. (DLR) |
David Lawrence Ramsey | 637b8bb | 2005-01-17 05:06:55 +0000 | [diff] [blame] | 375 | total_refresh() |
| 376 | - Refresh bottomwin using the value of currshortcut, and change |
| 377 | the code around do_refresh() calls to accommodate this. (DLR) |
David Lawrence Ramsey | 85616c4 | 2005-03-17 18:11:08 +0000 | [diff] [blame] | 378 | - Split out the code that updates the screen before refreshing |
| 379 | it into the new function total_update(). |
David Lawrence Ramsey | b9ddb80 | 2005-03-17 17:56:48 +0000 | [diff] [blame] | 380 | do_help() |
| 381 | - Refresh the screen when Ctrl-L is pressed in the help browser, |
| 382 | as Pico does. (DLR) |
David Lawrence Ramsey | 6ecbdd3 | 2004-11-27 21:39:01 +0000 | [diff] [blame] | 383 | - configure.ac: |
| 384 | - Remove specific references to control key shortcuts. (DLR) |
David Lawrence Ramsey | ba1ab86 | 2005-03-20 02:50:31 +0000 | [diff] [blame] | 385 | - Check for the wide versions of ncurses or slang, without which |
| 386 | multibyte strings don't seem to be displayed properly, and |
| 387 | associated multibyte/wide character functions. (DLR) |
David Lawrence Ramsey | 4fd76ba | 2004-12-24 18:11:53 +0000 | [diff] [blame] | 388 | - Check for wchar.h, for those systems that need it for the |
| 389 | wcwidth() prototype. (DLR) |
| 390 | - Remove checks for all include files that we include |
| 391 | unconditionally. (DLR) |
| 392 | - Remove references to termio.h here and elsewhere, since it's |
| 393 | obsolete and it defines a struct termio that we don't use |
| 394 | anywhere. (DLR) |
| 395 | - Typo fixes. (DLR) |
David Lawrence Ramsey | 496488c | 2005-03-16 15:34:22 +0000 | [diff] [blame] | 396 | - Add checks for isascii(), iswalnum(), iswblank() or |
| 397 | iswspace(), mblen(), and wctype.h. (DLR) |
David Lawrence Ramsey | 1fc55a2 | 2005-03-19 21:33:13 +0000 | [diff] [blame] | 398 | - README: |
| 399 | - Updated for the 1.3 branch. (DLR) |
| 400 | - README.CVS: |
| 401 | - Updated to mention the need for a wide character-supporting |
| 402 | version of curses or slang if UTF-8 support is desired. (DLR) |
David Lawrence Ramsey | 11c83d3 | 2005-01-02 21:26:53 +0000 | [diff] [blame] | 403 | - doc/faq.html: |
| 404 | - Remove now-inaccurate note about verbatim input's not working |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 405 | at prompts, and update its description to mention that it |
| 406 | handles hexadecimal values now. (DLR) |
David Lawrence Ramsey | 256a890 | 2005-03-09 22:53:11 +0000 | [diff] [blame] | 407 | - Add question about opening files with names beginning with |
| 408 | '+'s, and add a few more miscellaneous cosmetic fixes. |
David Lawrence Ramsey | 5cc14f2 | 2005-01-17 05:24:26 +0000 | [diff] [blame] | 409 | - nanorc.sample: |
David Lawrence Ramsey | 9c3edc0 | 2004-12-04 18:14:12 +0000 | [diff] [blame] | 410 | - Add return to the "c-file" regexes. (DLR) |
David Lawrence Ramsey | f647c48 | 2005-01-03 20:07:26 +0000 | [diff] [blame] | 411 | - Clarify the text describing good values for whitespace |
| 412 | display. Since ASCII is technically only seven bits wide, |
| 413 | characters 128-255 aren't ASCII. (DLR, suggested by Michael |
| 414 | Piefel) |
David Lawrence Ramsey | 5cc14f2 | 2005-01-17 05:24:26 +0000 | [diff] [blame] | 415 | - Add the "morespace" option. (DLR) |
David Lawrence Ramsey | 159bdfd | 2005-01-20 16:40:24 +0000 | [diff] [blame] | 416 | - Add support for characters to the "c-file" regexes. (DLR) |
David Lawrence Ramsey | 6e60db6 | 2005-03-10 22:52:21 +0000 | [diff] [blame] | 417 | - Add the hexadecimal equivalents of the decimal values |
| 418 | suggested for whitespace display, now that it can handle |
| 419 | multibyte characters. (DLR) |
David Lawrence Ramsey | bca59d6 | 2005-03-11 20:22:48 +0000 | [diff] [blame] | 420 | - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR) |
David Lawrence Ramsey | 5cc14f2 | 2005-01-17 05:24:26 +0000 | [diff] [blame] | 421 | - nano.1. nanorc.5, nano.texi: |
| 422 | - Add the "morespace" option, and sync with the descriptions in |
| 423 | nanorc.sample in a few places. (DLR) |
David Lawrence Ramsey | bca59d6 | 2005-03-11 20:22:48 +0000 | [diff] [blame] | 424 | - Miscellaneous wording tweaks. (DLR) |
David Lawrence Ramsey | b54155c | 2005-01-12 03:25:57 +0000 | [diff] [blame] | 425 | - src/Makefile.am: |
| 426 | - Add chars.c to nano_SOURCES. (DLR) |
David Lawrence Ramsey | e3013e3 | 2005-01-14 18:47:42 +0000 | [diff] [blame] | 427 | - If we're installing and the "rnano" symlink already exists, |
| 428 | remove it so that we can create it again without an error. |
| 429 | (DLR) |
David Lawrence Ramsey | 543ecf6 | 2005-03-19 21:20:20 +0000 | [diff] [blame] | 430 | - AUTHORS: |
| 431 | - Updated to mention UTF-8 support. |
David Lawrence Ramsey | 962202e | 2004-11-22 17:58:06 +0000 | [diff] [blame] | 432 | |
David Lawrence Ramsey | 2c86dc6 | 2004-11-22 17:55:17 +0000 | [diff] [blame] | 433 | GNU nano 1.3.5 - 2004.11.22 |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 434 | - General: |
| 435 | - Convert more ints that hold only TRUE and FALSE values to |
| 436 | bools. (DLR) |
David Lawrence Ramsey | c7ca28a | 2004-09-07 21:51:49 +0000 | [diff] [blame] | 437 | - Consolidate the code for finding and running a shortcut in a |
| 438 | shortcut list, the code for finding and toggling a toggle in a |
| 439 | toggle list, and the code for doing both of those and |
| 440 | interpreting mouse clicks in the edit window. Also move the |
| 441 | code for do_mouse() to get_edit_mouse() and tweak it to |
| 442 | properly handle cases where a shortcut isn't clicked. New |
| 443 | functions get_shortcut(), get_toggle(), get_edit_input(), and |
| 444 | get_edit_mouse(); changes to do_browser(), do_justify(), |
| 445 | do_help(), and main(). (DLR) |
David Lawrence Ramsey | d132210 | 2004-08-26 04:22:54 +0000 | [diff] [blame] | 446 | - Simplify a few more translated messages. (DLR) |
Jordi Mallach | cc79a9a | 2004-08-31 00:23:16 +0000 | [diff] [blame] | 447 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 8bf0809 | 2004-09-01 22:08:57 +0000 | [diff] [blame] | 448 | - Remove reference to @includedir@ in src/Makefile.am, as it's |
| 449 | unneeded and can break cross-compilation. (DLR, found by Mike |
| 450 | Frysinger) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 451 | - Overhaul the file opening, reading, and loading operations to |
| 452 | increase efficiency, avoid problems on invalid filenames |
| 453 | specified on the command line, and eliminate corner cases that |
| 454 | erroneously leave edittop or current NULL when they shouldn't |
| 455 | be. Also split out the code to execute a command into a |
| 456 | separate function, eliminate a workaround for one of the |
| 457 | aforementioned corner cases, handle files with a mix of DOS |
| 458 | and Mac format lines, and remove the code to turn on the |
| 459 | NO_CONVERT flag when opening a binary file, as it's not always |
| 460 | reliable and will cause problems with UTF-8 text files. New |
| 461 | functions open_file(), execute_command(), and mallocstrassn(); |
| 462 | changes to read_line(), load_file(), read_file(), open_file(), |
| 463 | get_next_filename(), do_insertfile(), do_insertfile_void(), |
| 464 | do_alt_speller(), and edit_refresh(). (David Benbennick) DLR: |
| 465 | Add a few minor fixes to make sure that current is set |
| 466 | properly in all cases, indicate on the statusbar when the file |
| 467 | has a mix of DOS and Mac format lines, move the test for DOS |
| 468 | line endings from read_line() to read_file() to avoid |
| 469 | inaccurate statusbar messages and to reduce fileformat to a |
| 470 | local variable in read_file(), eliminate another workaround in |
| 471 | edit_update(), rename open_the_file() to open_file() since the |
| 472 | latter has been removed, and rename load_a_file() to |
| 473 | load_buffer(). |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 474 | - Add alternative shortcuts to the main and search shortcut |
| 475 | lists for moving to the beginning and end of a paragraph and |
| 476 | justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0), |
| 477 | and Meta-J, respectively. Do this because Pico's practice of |
| 478 | putting these shortcuts only in the search shortcut list is |
| 479 | rather odd. (DLR) |
David Lawrence Ramsey | 013344c | 2004-09-22 22:45:08 +0000 | [diff] [blame] | 480 | - Turn off extended input processing (the IEXTEN termios flag) |
| 481 | as nano 1.2.x does. New function disable_extended_input(); |
| 482 | changes to terminal_init(). (DLR) |
David Lawrence Ramsey | f3ca80e | 2004-09-23 21:52:58 +0000 | [diff] [blame] | 483 | - Remove redundant include of limits.h from nano.c. nano.c |
| 484 | includes nano.h and nano.h includes limits.h. (DLR) |
David Lawrence Ramsey | eb16f43 | 2004-09-27 01:04:50 +0000 | [diff] [blame] | 485 | - Add a func_key flag to the low-level input functions and the |
| 486 | currently existing high-level input functions, to indicate |
| 487 | extended keypad values. This is needed for UTF-8 support. |
David Lawrence Ramsey | c59979f | 2004-10-23 02:47:39 +0000 | [diff] [blame] | 488 | Changes to unget_kbinput(), get_kbinput(), |
| 489 | get_translated_kbinput(), get_shortcut(), get_edit_input(), |
| 490 | etc. (DLR) |
David Lawrence Ramsey | 04a8d1c | 2004-09-28 22:14:58 +0000 | [diff] [blame] | 491 | - Add a multibuffer mode toggle to the "Execute Command" prompt, |
| 492 | for consistency with the "Read File" prompt. Changes to |
| 493 | do_insertfile() and shortcut_init(). (DLR) |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 494 | - Add an ^X toggle to the "Execute Command" prompt to go back to |
| 495 | the "Insert File" prompt, and add a ^T toggle to the "Go To |
| 496 | Line" prompt to go back to the "Where Is" prompt. Changes to |
| 497 | do_insertfile(), shortcut_init(), do_gotoline(), etc. |
| 498 | - Make sure a few uninitialized static variables are initialized |
| 499 | to sane values. (DLR) |
David Lawrence Ramsey | 7c1f17a | 2004-10-03 13:47:26 +0000 | [diff] [blame] | 500 | - After reading in a file and detecting the format it's in, set |
| 501 | the file format flags (DOS_FILE and MAC_FILE) to match, and |
| 502 | preserve them across multiple file buffers. Changes to |
| 503 | read_file(), add_open_file(), and load_open_file(). (DLR, |
| 504 | suggested by Bill Soudan) |
David Lawrence Ramsey | 28caf14 | 2004-10-07 20:54:52 +0000 | [diff] [blame] | 505 | - Remove the -D/--dos and -M/--mac command line options, as they |
David Lawrence Ramsey | cfa4a9c | 2004-10-24 17:20:31 +0000 | [diff] [blame] | 506 | aren't much use with the new file format autodetection. Also |
| 507 | remove the global versions of the toggles, so that they can |
| 508 | only be used at the "Write File" prompt as similar options |
| 509 | can. Finally, change the Mac format toggle to Meta-M, since |
| 510 | that no longer conflicts with the global -m/--mouse toggle. |
| 511 | (DLR) |
David Lawrence Ramsey | fc965a4 | 2004-10-15 01:51:36 +0000 | [diff] [blame] | 512 | - Add support for reading in UTF-8 sequences to the low-level |
| 513 | input routines. Changes to get_kbinput() and |
David Lawrence Ramsey | 4e8e495 | 2004-10-14 21:59:45 +0000 | [diff] [blame] | 514 | get_translated_kbinput(). (DLR) |
David Lawrence Ramsey | e5e88fd | 2004-10-31 13:20:30 +0000 | [diff] [blame] | 515 | - Reduce search_last_line to a static variable in search.c, and |
| 516 | allow it to be set to FALSE via a function. New function |
| 517 | findnextstr_wrap_reset(); changes to do_int_spell_fix(), |
| 518 | findnextstr(), do_search(), do_research(), do_replace_loop(), |
| 519 | do_replace(), and do_find_bracket(). (DLR, problem with making |
| 520 | search_last_line local to findnextstr() found by Rocco) |
David Lawrence Ramsey | 2eb7459 | 2004-10-21 16:25:44 +0000 | [diff] [blame] | 521 | - When saving or changing file positions, be sure not to ignore |
| 522 | placewewant. Changes to do_int_spell_fix(), findnextstr(), |
| 523 | do_replace_loop(), and do_replace(). (DLR) |
David Lawrence Ramsey | 687776b | 2004-10-30 01:16:08 +0000 | [diff] [blame] | 524 | - Convert current_x and mark_beginx to size_t's, and convert |
| 525 | some functions that use them as a parameter to use size_t as |
| 526 | well. Also change some related assertions to handle them. |
| 527 | (David Benbennick and DLR) |
David Lawrence Ramsey | 40bdb68 | 2004-11-03 22:03:41 +0000 | [diff] [blame] | 528 | - Add code to partition a filestruct between a set of arbitrary |
| 529 | coordinates. Given the coordinates of the beginning and end |
| 530 | of the mark, this allows proper and easier handling of saving |
| 531 | marked selections, replacing text only in marked selections |
| 532 | (suggested by Joseph Birthisel), and spell-checking marked |
| 533 | selections using either the internal or alternate spell |
| 534 | checker. Do all these using a global partition structure. |
| 535 | New functions partition_filestruct(), |
| 536 | unpartition_filestruct(), remove_magicline(), and |
| 537 | get_totals(); changes to write_marked(), do_int_spell_fix(), |
| 538 | do_alt_speller(), handle_sigwinch(), and do_replace_loop(). |
| 539 | (DLR) |
David Lawrence Ramsey | 84d0d59 | 2004-11-04 03:53:11 +0000 | [diff] [blame] | 540 | - Remove most redundant includes of sys/stat.h. It's included |
| 541 | in nano.h, so it doesn't need to be included in files that |
| 542 | include nano.h. (DLR) |
David Lawrence Ramsey | 3e0c8a6 | 2004-11-04 04:08:18 +0000 | [diff] [blame] | 543 | - Remove the DOS_FILE and MAC_FILE flags, as they're only used |
| 544 | in files.c, and replace them with a static file_format enum. |
| 545 | Change the openfilestruct structure accordingly in order to |
David Lawrence Ramsey | be246c0 | 2004-11-04 13:40:58 +0000 | [diff] [blame] | 546 | handle this. (DLR) |
David Lawrence Ramsey | 00cca05 | 2004-11-06 20:33:43 +0000 | [diff] [blame] | 547 | - Convert some ints with predefined boundaries to enums. (DLR) |
Jordi Mallach | 55381aa | 2004-11-17 23:17:05 +0000 | [diff] [blame] | 548 | - Include config.h only if HAVE_CONFIG_H. (Jordi) |
David Lawrence Ramsey | 07e2589 | 2004-11-04 13:47:28 +0000 | [diff] [blame] | 549 | - cut.c: |
David Lawrence Ramsey | 649b431 | 2004-11-13 01:32:17 +0000 | [diff] [blame] | 550 | cut_marked_segment() |
| 551 | - Respect concatenate_cut, as we need to use it if we do a |
| 552 | marked cut and immediately follow it with a cut-to-end (which |
| 553 | uses this function). (DLR) |
David Lawrence Ramsey | bfb98f8 | 2004-11-12 21:46:14 +0000 | [diff] [blame] | 554 | do_cut_text() |
| 555 | - Set concatenate_cut to TRUE unconditionally when doing a |
| 556 | marked cut. This fixes an incompatibility with Pico where an |
| 557 | extra line is uncut if we do a marked cut that includes the |
| 558 | magicline and immediately follow it with an unmarked cut. |
| 559 | (DLR) |
David Lawrence Ramsey | 00cca05 | 2004-11-06 20:33:43 +0000 | [diff] [blame] | 560 | do_uncut_text() |
| 561 | - Maintain current_y's value when uncutting blocks so that |
| 562 | smooth scrolling works correctly. (DLR) |
David Lawrence Ramsey | 146bb60 | 2004-08-27 21:02:38 +0000 | [diff] [blame] | 563 | - files.c: |
David Lawrence Ramsey | 3e0c8a6 | 2004-11-04 04:08:18 +0000 | [diff] [blame] | 564 | read_file() |
| 565 | - Rename variable fileformat to format, to avoid confusion with |
| 566 | the file_format enum type. (DLR) |
David Lawrence Ramsey | 78d644a | 2004-11-05 16:24:35 +0000 | [diff] [blame] | 567 | load_buffer() |
| 568 | - Don't change the file format when we insert another file into |
| 569 | the current one. (DLR) |
David Lawrence Ramsey | 146bb60 | 2004-08-27 21:02:38 +0000 | [diff] [blame] | 570 | do_insertfile() |
David Lawrence Ramsey | be908f6 | 2004-10-01 18:34:30 +0000 | [diff] [blame] | 571 | - Simplify by reusing variables whereever possible, and add a |
| 572 | parameter execute to indicate whether or not to be in "Execute |
| 573 | Command" mode. (DLR) |
David Lawrence Ramsey | 045883a | 2004-10-05 20:11:31 +0000 | [diff] [blame] | 574 | - Rework so that goto is no longer needed, using do_writeout() |
| 575 | as a model. (DLR) |
| 576 | - If file browsing succeeds, call statusq_abort() so that the |
| 577 | cursor position at the statusbar is reset. (DLR) |
David Lawrence Ramsey | 487149e | 2004-10-05 20:24:48 +0000 | [diff] [blame] | 578 | - Add missing #ifdefs around the wrap_reset() call so that nano |
| 579 | compiles with wrapping disabled again. (DLR) |
David Lawrence Ramsey | b73c0c0 | 2004-11-05 15:25:53 +0000 | [diff] [blame] | 580 | - If we're not inserting a file into a new buffer, partition the |
| 581 | current buffer so that it's effectively a new buffer just |
| 582 | before inserting the file, and only restore placewewant |
| 583 | afterwards. This is the same behavior we would get if we |
David Lawrence Ramsey | 3d67c11 | 2004-11-05 15:39:36 +0000 | [diff] [blame] | 584 | opened the file, added all of it to the cutbuffer, closed the |
| 585 | file, and uncut at the current cursor position. (DLR) |
David Lawrence Ramsey | 97b9046 | 2004-11-15 23:10:56 +0000 | [diff] [blame] | 586 | - Maintain current_y's value when inserting so that smooth |
| 587 | scrolling works correctly. (DLR) |
David Lawrence Ramsey | 045883a | 2004-10-05 20:11:31 +0000 | [diff] [blame] | 588 | do_writeout() |
| 589 | - Restructure if blocks for greater efficiency, using |
| 590 | do_insertfile() as a model. (DLR) |
| 591 | - Simplify where possible, and use an int retval to hold the |
| 592 | return value instead of i. (DLR) |
| 593 | - If file browsing succeeds, call statusq_abort() so that the |
| 594 | cursor position at the statusbar is reset. (DLR) |
| 595 | - Remove unneeded calls to display_main_list(). (DLR) |
| 596 | do_writeout_void() |
| 597 | - Call display_main_list(), for consistency with |
| 598 | do_insertfile_void(). (DLR) |
David Lawrence Ramsey | ca92bec | 2004-10-22 03:33:54 +0000 | [diff] [blame] | 599 | write_file() |
| 600 | - If we've tried to write to an unwritable file and we're not |
| 601 | prepending, tempname is NULL when it's passed to unlink(). |
| 602 | This can cause problems if unlink() can't handle NULL, so |
| 603 | don't call it in that case. (David Benbennick) |
David Lawrence Ramsey | 4b7e3c3 | 2004-10-15 16:25:56 +0000 | [diff] [blame] | 604 | write_marked() |
| 605 | - Remove check for MARK_ISSET's not being set. (DLR) |
David Lawrence Ramsey | f1c395d | 2004-10-03 19:26:13 +0000 | [diff] [blame] | 606 | open_prevfile(), open_nextfile() |
David Lawrence Ramsey | 3e189a8 | 2004-10-03 19:18:48 +0000 | [diff] [blame] | 607 | - Translate the "New Buffer" string when displaying "Switched |
| 608 | to" messages on the statusbar. (DLR) |
David Lawrence Ramsey | 8091d33 | 2004-11-16 02:23:10 +0000 | [diff] [blame] | 609 | input_tab() |
| 610 | - Fix snprintf() call so that we don't segfault when trying to |
David Lawrence Ramsey | a98fd75 | 2004-11-16 13:09:43 +0000 | [diff] [blame] | 611 | complete a filename containing %'s. (Ulf Härnhammar) |
David Lawrence Ramsey | a16b27f | 2004-08-26 01:29:25 +0000 | [diff] [blame] | 612 | - global.c: |
| 613 | shortcut_init() |
| 614 | - Remove redundant NANO_SMALL #ifdef. (DLR) |
David Lawrence Ramsey | 1e72971 | 2004-09-28 15:17:47 +0000 | [diff] [blame] | 615 | - Change an erroneous _() around the "New Buffer" string to |
| 616 | N_(). (DLR) |
David Lawrence Ramsey | 8381fdd | 2004-11-01 22:40:02 +0000 | [diff] [blame] | 617 | - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for |
| 618 | "Where Is Next" (Chris). |
David Lawrence Ramsey | 4b4b608 | 2004-11-01 22:54:40 +0000 | [diff] [blame] | 619 | - Leave "Mark Text" and "Where Is Next" out entirely when |
| 620 | NANO_SMALL is defined. Since they aren't in the visible main |
| 621 | list, there's no point in having them in but disabled. (DLR) |
David Lawrence Ramsey | 02085d7 | 2004-11-07 16:04:18 +0000 | [diff] [blame] | 622 | - In the search prompt shortcut list, move "Full Justify" to |
| 623 | after "History", so that the latter is visible onscreen |
| 624 | again. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 625 | - nano.c: |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 626 | die_save_file() |
| 627 | - Clarify the error message when there are too many backup files |
| 628 | and the current one can't be written. (DLR) |
David Lawrence Ramsey | db6015c | 2004-09-11 21:41:13 +0000 | [diff] [blame] | 629 | help_init() |
| 630 | - Rework to be a bit more flexible. Only add tabs for shortcut |
| 631 | key entries if those entries exist, and if there's only one |
| 632 | entry left but there's room for more than one, add enough tabs |
David Lawrence Ramsey | d402e71 | 2004-11-01 22:37:36 +0000 | [diff] [blame] | 633 | to put that entry at the end. Also, make sure a function key |
| 634 | is displayed in the middle if it's the first entry. These |
| 635 | changes allow e.g. the miscellaneous meta key sequence to be |
| 636 | displayed in a shortcut that has a control key, a primary meta |
| 637 | key sequence, and a miscellaneous meta key sequence, but no |
| 638 | function key. (DLR) |
David Lawrence Ramsey | 381d483 | 2004-10-18 01:51:43 +0000 | [diff] [blame] | 639 | - Update the help text to mention replacing and spell checking |
| 640 | only selected text, and also add a few cosmetic fixes to it. |
| 641 | (DLR) |
David Lawrence Ramsey | fdd3bec | 2004-11-07 21:30:55 +0000 | [diff] [blame] | 642 | - Update the help text to mention how to get a blank buffer at |
| 643 | the "Execute Command" prompt. (DLR) |
David Lawrence Ramsey | 7a97e18 | 2004-10-30 01:03:15 +0000 | [diff] [blame] | 644 | do_prev_word() |
| 645 | - Tweak to avoid an infinite loop, since current_x is now a |
| 646 | size_t and hence is unsigned. (DLR) |
David Lawrence Ramsey | d93ee68 | 2004-10-09 16:59:43 +0000 | [diff] [blame] | 647 | do_int_spell_fix() |
| 648 | - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL |
| 649 | #ifdef, since the tiny version of nano doesn't support reverse |
David Lawrence Ramsey | 49d5c1b | 2004-10-11 13:55:33 +0000 | [diff] [blame] | 650 | searching. Move the CASE_SENSITIVE flag toggling out in order |
David Lawrence Ramsey | 646bf91 | 2004-10-11 14:00:46 +0000 | [diff] [blame] | 651 | to allow the internal spell checker to work properly when |
| 652 | NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn |
| 653 | the USE_REGEXP flag off during spell checking in order to |
| 654 | avoid a potential segfault. (DLR) |
David Lawrence Ramsey | 410efe9 | 2004-10-26 16:54:19 +0000 | [diff] [blame] | 655 | - Fix a problem where if the cursor is in the middle of a file, |
| 656 | the spell checker will sometimes only correct the misspelled |
| 657 | word instances that appear before the cursor position and then |
| 658 | stop. (Rocco) |
David Lawrence Ramsey | 9bf486f | 2004-10-26 20:58:30 +0000 | [diff] [blame] | 659 | - Use do_replace_loop()'s canceled parameter in order to ensure |
| 660 | that the spell checking stops if we canceled at the replace |
| 661 | prompt. (DLR) |
David Lawrence Ramsey | 439fbe3 | 2004-10-16 04:56:34 +0000 | [diff] [blame] | 662 | do_alt_speller() |
| 663 | - Call terminal_init() unconditionally after running the |
| 664 | alternate spell checker, so that the terminal state is |
| 665 | properly restored in all cases. (DLR) |
David Lawrence Ramsey | fd73c46 | 2004-09-11 21:28:36 +0000 | [diff] [blame] | 666 | justify_format() |
| 667 | - For more compatibility with Pico, remove extra space after a |
| 668 | character in punct if that character is the same as the one |
| 669 | before it. For example, with the default values of punct and |
| 670 | brackets, only one space will be left after "...". (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 671 | do_para_begin(), do_para_end() |
David Lawrence Ramsey | c510042 | 2004-08-27 20:28:34 +0000 | [diff] [blame] | 672 | - Maintain current_y's value when moving up or down lines so |
| 673 | that smooth scrolling works correctly. (DLR) |
David Lawrence Ramsey | d08348b | 2004-09-18 22:02:21 +0000 | [diff] [blame] | 674 | breakable(), break_line() |
| 675 | - Make goal a ssize_t instead of an int, since fill is now a |
| 676 | ssize_t, and the position at which a line is broken can be |
| 677 | greater than COLS. (DLR) |
David Lawrence Ramsey | bf1346f | 2004-10-22 20:25:56 +0000 | [diff] [blame] | 678 | main() |
| 679 | - Tweak the command line parsing routine so that multiple +LINE |
| 680 | flags are properly interpreted in multibuffer mode. (DLR) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 681 | - nano.h: |
| 682 | - Add WIDTH_OF_TAB #define, containing the default width of a |
| 683 | tab. (DLR) |
David Lawrence Ramsey | be246c0 | 2004-11-04 13:40:58 +0000 | [diff] [blame] | 684 | - Move the PATH_MAX #define here from files.c. |
David Lawrence Ramsey | 3e0c8a6 | 2004-11-04 04:08:18 +0000 | [diff] [blame] | 685 | - Remove unused COPYFILEBLOCKSIZE #define. (DLR) |
David Lawrence Ramsey | 50af6ea | 2004-11-07 15:29:40 +0000 | [diff] [blame] | 686 | - proto.h: |
| 687 | - Add missing NANO_SMALL #ifdef around the cut_marked_segment() |
| 688 | prototype. (DLR) |
David Lawrence Ramsey | 19420aa | 2004-08-18 16:14:18 +0000 | [diff] [blame] | 689 | - rcfile.c: |
| 690 | parse_rcfile() |
| 691 | - Add missing brackets around an if statement block so that |
| 692 | parsing the numeric argument after "tabsize" works properly |
| 693 | again. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 694 | - Since flag values are longs, use "%ld" instead of "%d" in the |
| 695 | debugging messages indicating when a flag is set or unset. |
| 696 | (DLR) |
David Lawrence Ramsey | c510042 | 2004-08-27 20:28:34 +0000 | [diff] [blame] | 697 | - search.c: |
David Lawrence Ramsey | 49d5c1b | 2004-10-11 13:55:33 +0000 | [diff] [blame] | 698 | regexp_init() |
| 699 | - If NANO_SMALL is defined, don't bother checking the |
| 700 | CASE_SENSITIVE flag or using its value when compiling a list |
| 701 | of matching regular expressions. (DLR) |
David Lawrence Ramsey | d532f19 | 2004-10-04 22:37:56 +0000 | [diff] [blame] | 702 | search_init() |
| 703 | - Add parameter use_answer. When it's TRUE, only set |
| 704 | backupstring to answer. This is needed to preserve the text |
| 705 | of the statusbar when switching to the search prompt from |
| 706 | the "Go To Line" prompt. Also, set backupstring before doing |
| 707 | anything else, add one minor efficiency tweak, and preserve |
| 708 | the text of the statusbar no matter what when switching from |
| 709 | the search prompt to the "Go To Line" prompt, since the |
| 710 | toggling works both ways now and non-numeric text shouldn't be |
| 711 | lost when going only one of those ways. (DLR) |
David Lawrence Ramsey | e1ee22f | 2004-11-03 23:05:11 +0000 | [diff] [blame] | 712 | - When we're replacing and the mark is on, display a prompt |
| 713 | indicating that we're replacing text only in the selection |
| 714 | instead of the usual prompt. (DLR) |
David Lawrence Ramsey | 2eb7459 | 2004-10-21 16:25:44 +0000 | [diff] [blame] | 715 | findnextstr() |
| 716 | - Take the no_sameline parameter after can_display_wrap and |
| 717 | wholewords, not after all other parameters. (DLR) |
| 718 | - Maintain current_y's value when moving up or down lines so |
| 719 | that smooth scrolling works correctly. (DLR) |
| 720 | - Fix handling of the wholewords flag so that it works with |
| 721 | regular expressions and in conjunction with the no_sameline |
David Lawrence Ramsey | 85f8f46 | 2004-10-31 13:13:19 +0000 | [diff] [blame] | 722 | flag, and add new parameter needle_len (used to return the |
| 723 | length of the match). (DLR) |
David Lawrence Ramsey | 491cad3 | 2004-10-08 23:06:01 +0000 | [diff] [blame] | 724 | do_replace_loop() |
David Lawrence Ramsey | 3de81bc | 2004-11-22 17:08:41 +0000 | [diff] [blame] | 725 | - Miscellaneous cleanups: treat real_current as current and |
| 726 | real_current_x as current_x, only turn the mark off and call |
David Lawrence Ramsey | 491cad3 | 2004-10-08 23:06:01 +0000 | [diff] [blame] | 727 | edit_refresh() if the mark was originally on, and make |
| 728 | length_change a ssize_t. (DLR) |
David Lawrence Ramsey | 53752e8 | 2004-10-18 22:19:22 +0000 | [diff] [blame] | 729 | - Return ssize_t instead of int. (DLR) |
David Lawrence Ramsey | 9bf486f | 2004-10-26 20:58:30 +0000 | [diff] [blame] | 730 | - Add new parameter canceled, set to TRUE if we canceled at the |
| 731 | prompt and FALSE otherwise. (DLR) |
David Lawrence Ramsey | 381d483 | 2004-10-18 01:51:43 +0000 | [diff] [blame] | 732 | - utils.c: |
| 733 | regexp_bol_or_eol() |
| 734 | - Don't assume any longer that string will be found if |
| 735 | REG_NOTBOL and REG_NOTEOL are not set. (DLR) |
David Lawrence Ramsey | 4a1fc55 | 2004-11-02 15:18:30 +0000 | [diff] [blame] | 736 | mallocstrncpy() |
| 737 | - New function, used as a malloc()ing equivalent of strncpy(). |
| 738 | (DLR) |
| 739 | mallocstrcpy() |
| 740 | - Refactor to be a wrapper for mallocstrncpy(). (DLR) |
David Lawrence Ramsey | 90e59c1 | 2004-11-05 23:03:03 +0000 | [diff] [blame] | 741 | mark_order() |
| 742 | - Add new parameter right_side_up. Set it to TRUE If the mark |
| 743 | begins with (mark_beginbuf, mark_beginx) and ends with |
| 744 | (current, current_x), or FALSE otherwise. (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 745 | - winio.c: |
David Lawrence Ramsey | dfca1c4 | 2004-08-25 16:37:06 +0000 | [diff] [blame] | 746 | unget_kbinput() |
| 747 | - New function used as a wrapper for ungetch(). (DLR) |
David Lawrence Ramsey | 6da969e | 2004-08-28 15:51:07 +0000 | [diff] [blame] | 748 | get_kbinput() |
| 749 | - When reading an escape sequence, set get_verbatim_kbinput()'s |
| 750 | new first parameter to the first character of the sequence |
| 751 | instead of putting that character back and reading the entire |
| 752 | sequence afterwards. (DLR) |
David Lawrence Ramsey | 5780b24 | 2004-10-14 20:48:38 +0000 | [diff] [blame] | 753 | get_escape_seq_kbinput() |
| 754 | - Make the escape_seq parameter a const int*, since it's never |
| 755 | modified. (DLR) |
David Lawrence Ramsey | 8381fdd | 2004-11-01 22:40:02 +0000 | [diff] [blame] | 756 | - Support the escape sequences for F15 and F16. (DLR) |
David Lawrence Ramsey | 6da969e | 2004-08-28 15:51:07 +0000 | [diff] [blame] | 757 | get_verbatim_kbinput() |
| 758 | - Add new parameter first. If first isn't ERR, make it the |
| 759 | first character in the returned sequence instead of reading |
| 760 | the first character in via blocking input. (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 761 | get_mouseinput() |
| 762 | - Consolidate two if statements to increase efficiency. (DLR) |
David Lawrence Ramsey | fe0d366 | 2004-08-26 01:43:16 +0000 | [diff] [blame] | 763 | - Check kbinput against metaval instead of (erroneously) ctrlval |
| 764 | when putting back a meta sequence. (DLR) |
| 765 | - If there are more than MAIN_VISIBLE shortcuts available, only |
| 766 | register clicks on the first MAIN_VISIBLE shortcuts, since |
| 767 | bottombars() only shows that many shortcuts. (DLR) |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 768 | check_statblank() |
| 769 | - Rename to check_statusblank(), and rename its associated |
| 770 | global int statusblank too. (DLR) |
David Lawrence Ramsey | 72d8e54 | 2004-09-25 00:45:07 +0000 | [diff] [blame] | 771 | nanogetstr() |
| 772 | - Refresh the screen when Ctrl-L is pressed at the statusbar |
| 773 | prompt, as Pico does. (DLR) |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 774 | - Always return the key pressed by the user. (DLR) |
| 775 | statusq() |
| 776 | - Rework slightly to reset the cursor position when the user |
| 777 | hits Enter as well as Cancel. This means that resetstatuspos |
| 778 | no longer needs to be global. (DLR) |
David Lawrence Ramsey | 045883a | 2004-10-05 20:11:31 +0000 | [diff] [blame] | 779 | statusq_abort() |
| 780 | - New function to set resetstatuspos to FALSE when we don't |
| 781 | properly exit the statusbar prompt, e.g. when we get a file |
| 782 | from the file browser). (DLR) |
David Lawrence Ramsey | 0ff01a9 | 2004-10-25 15:00:38 +0000 | [diff] [blame] | 783 | bottombars() |
| 784 | - For efficiency, no longer dynamically allocate space for each |
| 785 | visible shortcut, as they're all of a constant short length. |
| 786 | (David Benbennick) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 787 | reset_cursor() |
| 788 | - If this is called before any files have been opened, as it can |
| 789 | be by statusbar(), put the cursor at the top left corner of |
| 790 | the edit window before getting out. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 791 | edit_refresh() |
| 792 | - Call edit_update() with NONE instead of CENTER when smooth |
| 793 | scrolling is on, for consistency with the movement routines. |
| 794 | (DLR) |
David Lawrence Ramsey | 20b8350 | 2004-08-26 18:07:58 +0000 | [diff] [blame] | 795 | edit_update() |
| 796 | - Simplify so as not to require the fileptr parameter anymore, |
| 797 | since it's set to current in all calls. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 798 | - Add comments better explaining what the update actually does, |
David Lawrence Ramsey | 4aece06 | 2004-08-28 16:34:28 +0000 | [diff] [blame] | 799 | and avoid an infinite loop when location is NONE and current_y |
| 800 | is greater than (editwinrows - 1). (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 801 | do_yesno() |
| 802 | - Don't bother assigning the value of get_mouseinput() to |
| 803 | anything. Since allow_shortcuts is FALSE, its return value |
| 804 | will always be FALSE. (DLR) |
David Lawrence Ramsey | 1a5c4c6 | 2004-09-07 00:48:49 +0000 | [diff] [blame] | 805 | - configure.ac: |
| 806 | - When calling AC_TRY_RUN() to test for a broken regexec() |
| 807 | function, set the fourth parameter to default to "no" (since |
| 808 | it apparently only occurs on glibc 2.2.3-based systems) so |
| 809 | that cross-compiling will work. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | a870ca2 | 2004-10-14 21:59:00 +0000 | [diff] [blame] | 810 | - Simplify the curses library tests by only checking for |
| 811 | initscr(), which ncurses, curses, and pdcurses should all |
| 812 | have, and not tgetent(), which is a termcap-specific function. |
| 813 | (DLR) |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 814 | - Check only for glib 2.x, as it's much more common than |
| 815 | glib 1.2.x now, and it has a better v?snprintf() |
| 816 | implementation. (DLR, suggested by Jordi) |
Jordi Mallach | 1fabded | 2004-08-31 18:26:28 +0000 | [diff] [blame] | 817 | - nanorc.sample: |
David Lawrence Ramsey | 2a60ea8 | 2004-08-29 14:42:03 +0000 | [diff] [blame] | 818 | - Remove specific references to control key shortcuts other than |
| 819 | XON and XOFF. (DLR) |
David Lawrence Ramsey | be908f6 | 2004-10-01 18:34:30 +0000 | [diff] [blame] | 820 | - Add continue and goto to the "c-file" regexes. (DLR) |
David Lawrence Ramsey | fe65657 | 2004-10-21 17:11:40 +0000 | [diff] [blame] | 821 | - Change the included speller value to "aspell -x -c". The -x |
| 822 | option makes aspell not create backup files, and this is |
| 823 | consistent with the internal spell checker's behavior. (DLR) |
Jordi Mallach | 1fabded | 2004-08-31 18:26:28 +0000 | [diff] [blame] | 824 | - doc/man/fr/nano.1, doc/man/fr/nanorc.1: |
| 825 | - Updated manpage translations by Jean-Philippe Guérard. |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 826 | - README.CVS: |
| 827 | - Mention the requirement for glib 2.x on systems lacking |
| 828 | v?snprintf(), and add minor formatting changes. |
David Lawrence Ramsey | 188f169 | 2004-11-20 16:16:47 +0000 | [diff] [blame] | 829 | - Mention the requirement for groff in order to create html |
| 830 | versions of the manpages. (DLR) |
David Lawrence Ramsey | 831c640 | 2004-11-21 18:44:23 +0000 | [diff] [blame] | 831 | - Update the given cvs commands so that they work again, and |
| 832 | mention the need for ssh to do cvs checkouts. (DLR) |
David Lawrence Ramsey | e56d936 | 2004-11-21 18:51:30 +0000 | [diff] [blame] | 833 | - List sh as an example of a Bourne shell. (DLR) |
David Lawrence Ramsey | 0432e70 | 2004-11-05 17:09:11 +0000 | [diff] [blame] | 834 | - faq.html: |
| 835 | - Fixed inaccuracy: Pico compatibility mode was made the default |
| 836 | in nano 1.1.99pre1, not 1.2.2. (DLR) |
David Lawrence Ramsey | 93eb293 | 2004-11-05 18:01:33 +0000 | [diff] [blame] | 837 | - Added question about how to type F13-F16 on terminals lacking |
| 838 | keys past F12 (suggested by Chris), question about how to |
| 839 | select text for the clipboard in X terminals with nano's mouse |
| 840 | support turned on (answer found by Joseph Birthisel), and |
| 841 | miscellaneous fixes and link updates. (DLR) |
David Lawrence Ramsey | cfa4a9c | 2004-10-24 17:20:31 +0000 | [diff] [blame] | 842 | - nano.1: |
David Lawrence Ramsey | e93e03e | 2004-10-24 16:47:54 +0000 | [diff] [blame] | 843 | - Eliminate references to the now removed -D/--dos and -M/--mac |
| 844 | command line options. (DLR) |
David Lawrence Ramsey | cfa4a9c | 2004-10-24 17:20:31 +0000 | [diff] [blame] | 845 | - nano.texi: |
| 846 | - Eliminate references to the now removed -D/--dos and -M/--mac |
| 847 | command line options, and their corresponding toggles. (DLR) |
David Lawrence Ramsey | e3016d9 | 2004-11-11 14:35:31 +0000 | [diff] [blame] | 848 | - m4/Makefile.am: |
| 849 | - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS |
| 850 | with automake 1.7.x again. For some reason, automake 1.9.x |
| 851 | didn't have a problem with its (erroneously) being left out. |
| 852 | (DLR, problem found by Chris) |
David Lawrence Ramsey | b802e70 | 2004-10-18 19:28:10 +0000 | [diff] [blame] | 853 | - m4/glib-2.0.m4: |
| 854 | - New file imported from glib 2.4.7. This is needed to detect |
| 855 | glib 2.x on systems that may not have it installed. (DLR, |
| 856 | suggested by Jordi) |
Jordi Mallach | d7b6325 | 2004-11-18 00:05:14 +0000 | [diff] [blame] | 857 | - src/Makefile.am: |
| 858 | - Don't use DEFS to define things. Use INCLUDES instead. (Jordi) |
David Lawrence Ramsey | 013e8d1 | 2004-08-17 20:44:31 +0000 | [diff] [blame] | 859 | |
David Lawrence Ramsey | c6718cf | 2004-08-17 20:38:44 +0000 | [diff] [blame] | 860 | GNU nano 1.3.4 - 2004.08.17 |
David Lawrence Ramsey | ebd0d7c | 2004-07-01 18:59:52 +0000 | [diff] [blame] | 861 | - General: |
| 862 | - More minor comment cleanups. (DLR) |
David Lawrence Ramsey | ce62e82 | 2004-08-05 22:10:22 +0000 | [diff] [blame] | 863 | - Convert more ints and functions using 0 and 1 to bools using |
| 864 | TRUE and FALSE. (David Benbennick and DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 865 | - Change more instances of ints that have large enough upper |
| 866 | bounds and which can never be negative to size_t's, and |
| 867 | convert nano to handle them properly. (DLR) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 868 | - Convert the shortcut list functions and most related functions |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 869 | 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] | 870 | those functions are essentially unused. Changes to |
| 871 | sc_init_one(), shortcut_init(), etc. (David Benbennick and |
| 872 | DLR) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 873 | - Make flags and all variables meant to store the value of flags |
| 874 | longs for consistency. (David Benbennick) |
| 875 | - Rename the TEMP_OPT flags to TEMP_FILE, as it's more |
| 876 | descriptive. (DLR) |
David Lawrence Ramsey | a5dda84 | 2004-07-08 15:27:04 +0000 | [diff] [blame] | 877 | - Remove unused global variable search_offscreen. (David |
| 878 | Benbennick) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 879 | - Add new N_() macro to mark strings that aren't translated |
| 880 | immediately, and convert nano to use it in cases where the |
David Lawrence Ramsey | 76f63ff | 2004-08-05 15:45:09 +0000 | [diff] [blame] | 881 | translated string is stored in a const char*. Changes |
| 882 | to sc_init_one(), print1opt(), help_init(), rcfile_error(), |
| 883 | do_credits(), etc. (David Benbennick) DLR: Do this for |
| 884 | toggle_init_one() too. |
| 885 | - Minor tweaks and clarifications to some option descriptions. |
| 886 | (DLR) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 887 | - Overhaul the shortcut list and toggle list initialization |
| 888 | code for efficiency. Changes to shortcut_init() and |
| 889 | toggle_init(). (David Benbennick) DLR: Move "Cancel" to just |
| 890 | after "Get Help" in the file browser list, for consistency |
| 891 | with all the other lists, have the replace list accept all the |
| 892 | same function keys as the search list, and clarify a few |
| 893 | shortcut descriptions. |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 894 | - Convert nano to use the new parse_num() function to read in |
| 895 | numeric values at the command line and in the rcfile, and |
| 896 | duplicate the messages used in the rcfile in the command line |
David Lawrence Ramsey | c53ab2a | 2004-08-04 18:24:53 +0000 | [diff] [blame] | 897 | for consistency. (David Benbennick) DLR: Tweak parse_num() to |
| 898 | parse ssize_t values instead of ints and to return a bool |
| 899 | indicating whether parsing succeeded. Convert tabsize, |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 900 | wrap_at, and fill to ssize_t in order to work with |
| 901 | parse_num() properly and also to increase their capacity |
| 902 | while keeping the ability to hold negative numbers in case of |
| 903 | errors. Also exit instead of calling usage() in the event of |
| 904 | an invalid fill value, for consistency with how an invalid |
David Lawrence Ramsey | 36dd87b | 2004-07-18 17:43:43 +0000 | [diff] [blame] | 905 | tabsize value is handled. Finally, handle invalid tabsize |
David Lawrence Ramsey | 04419b9 | 2004-07-18 18:13:54 +0000 | [diff] [blame] | 906 | entries in the rcfile the same way as on the command line, |
| 907 | and reset tabsize and wrap_at to their default values if |
| 908 | invalid rcfile entries are specified for them. |
David Lawrence Ramsey | aea4dab | 2004-07-13 17:09:24 +0000 | [diff] [blame] | 909 | - Remove several unnecessary reset_cursor() calls. (David |
| 910 | Benbennick) |
David Lawrence Ramsey | fd3039a | 2004-07-17 19:49:12 +0000 | [diff] [blame] | 911 | - Include <sys/types.h> in proto.h. (David Benbennick) DLR: |
| 912 | Remove some redundant inclusions of <sys/types.h> elsewhere. |
David Lawrence Ramsey | 8aaf030 | 2004-07-27 16:46:35 +0000 | [diff] [blame] | 913 | - Move the main terminal initialization functions, aside from |
| 914 | initscr(), into a new terminal_init() function, and convert |
| 915 | nano to use it. (DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 916 | - Convert placewewant to a size_t, and convert some functions |
| 917 | that use it as a parameter to use size_t as well. (David |
| 918 | Benbennick and DLR) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 919 | - Overhaul the paragraph searching code and some of the justify |
| 920 | code to clarify it and fix a bug where searches from the |
| 921 | previous paragraph would move up too far. Also make |
| 922 | quotestr-related variables global so that they only have to be |
| 923 | compiled once, and remove the no-longer-needed IFREG() macro. |
| 924 | New functions begpar() and inpar(); changes to quote_length(), |
| 925 | quotes_match(), do_para_search(), do_para_begin(), |
| 926 | do_para_end(), and do_justify(). (David Benbennick) |
David Lawrence Ramsey | a6d26d0 | 2004-07-30 22:52:44 +0000 | [diff] [blame] | 927 | - Readded the errors flag and moved the ending prompt from |
| 928 | rcfile_error() to parse_rcfile() so that we only get prompted |
| 929 | once for all errors instead of separately for each error. |
David Lawrence Ramsey | 7dfec43 | 2004-08-12 15:20:14 +0000 | [diff] [blame] | 930 | (DLR) David Benbennick: Make sure that no rcfile error |
| 931 | messages end in newlines, and show the ending prompt if we |
| 932 | can't read the .nano_history file while starting nano. |
David Lawrence Ramsey | b8c479a | 2004-07-31 14:10:23 +0000 | [diff] [blame] | 933 | - Don't treat the return value of strn?(case)?cmp() as boolean. |
| 934 | (DLR and David Benbennick) |
David Lawrence Ramsey | 76fb3ec | 2004-08-01 16:09:15 +0000 | [diff] [blame] | 935 | - Automatically install a symlink "rnano" pointing to nano. |
| 936 | Changes to src/Marefile.am. (DLR) |
David Lawrence Ramsey | 22fac78 | 2004-08-05 15:16:19 +0000 | [diff] [blame] | 937 | - Move the static int pid to the beginning of nano.c with all |
| 938 | the other static variables. (DLR) |
David Lawrence Ramsey | 00d7798 | 2004-08-07 21:27:37 +0000 | [diff] [blame] | 939 | - Consolidate some if blocks to remove some redundant code. |
| 940 | (David Benbennick) |
David Lawrence Ramsey | 73cd1a5 | 2004-08-05 21:57:48 +0000 | [diff] [blame] | 941 | - Fix warnings when compiling with ENABLE_NLS undefined and with |
David Lawrence Ramsey | be908f6 | 2004-10-01 18:34:30 +0000 | [diff] [blame] | 942 | the fwritable-strings option. (David Benbennick) |
David Lawrence Ramsey | 00d7798 | 2004-08-07 21:27:37 +0000 | [diff] [blame] | 943 | - Add various #ifdefs to fix warnings and compilation problems |
| 944 | when compiling with every option manually turned on, including |
| 945 | NANO_SMALL. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 946 | - Simplify some of the rcfile and statusbar error messages, and |
| 947 | make some of them more consistent. (David Benbennick and DLR) |
| 948 | - Change some functions to take const char*'s instead of char*'s |
| 949 | where possible. (David Benbennick) |
David Lawrence Ramsey | bb50b30 | 2004-08-12 21:43:00 +0000 | [diff] [blame] | 950 | - Tweak some #ifdefs around indent_length() and references to |
| 951 | fill_flag_used to avoid warnings when compiling with |
David Lawrence Ramsey | df13e3b | 2004-08-12 19:48:21 +0000 | [diff] [blame] | 952 | --disable-wrapping, --disable-justify, or a combination of the |
| 953 | two. (DLR) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 954 | - Overhaul the routines used to read the rcfiles and history |
| 955 | files for efficiency, make them work properly on lines over |
| 956 | 1023 characters long and on lines containing nulls, and make |
| 957 | them properly handle the case where the user's home directory |
| 958 | changes in the middle of a session. New functions |
| 959 | histfilename() and writehist(); changes to |
| 960 | thanks_for_all_the_fish(), load_history(), save_history(), and |
| 961 | do_rcfile(). (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 962 | - files.c: |
David Lawrence Ramsey | 049e4a5 | 2004-08-10 23:05:59 +0000 | [diff] [blame] | 963 | get_next_filename() |
| 964 | - Tweak for efficiency, and add the ".save" suffix to the file |
| 965 | here. (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 966 | close_open_file() |
| 967 | - Tweak to no longer rely on the return values of |
| 968 | open_(prev|next)file(). (DLR) |
David Lawrence Ramsey | c8c69d5 | 2004-07-03 03:22:23 +0000 | [diff] [blame] | 969 | write_file() |
| 970 | - For consistency with nano 1.2.x and with other editors, make |
| 971 | the mode of newly created files 666 instead of 600 before |
David Lawrence Ramsey | add6508 | 2004-10-31 14:40:40 +0000 | [diff] [blame] | 972 | it's modified by the umask. (DLR, found by Toni Suokas) |
David Lawrence Ramsey | f7b5d93 | 2004-07-05 14:27:29 +0000 | [diff] [blame] | 973 | do_writeout() |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 974 | - 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] | 975 | blank, we can't change it, so disable tab completion in that |
| 976 | case. (DLR) |
David Lawrence Ramsey | 1536f86 | 2004-07-24 16:50:20 +0000 | [diff] [blame] | 977 | - Fix spacing problem in the "Save Under Different Name" |
| 978 | prompt. (DLR) |
David Lawrence Ramsey | a539fce | 2004-06-29 00:43:56 +0000 | [diff] [blame] | 979 | - global.c: |
| 980 | shortcut_init() |
| 981 | - Fix erroneous #ifdef so that nano compiles with |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 982 | --disable-justify again. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 983 | - Change the Cancel shortcut in the file browser to an Exit |
| 984 | shortcut, to be more compatible with the current version of |
| 985 | Pico. (DLR) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 986 | thanks_for_all_the_fish() |
| 987 | - Delete topwin, edit, and bottomwin. (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 988 | - nano.c: |
David Lawrence Ramsey | 049e4a5 | 2004-08-10 23:05:59 +0000 | [diff] [blame] | 989 | die() |
| 990 | - Don't add the ".save" suffix to a saved file here anymore, |
| 991 | since get_next_filename() does that now. (David Benbennick) |
| 992 | die_save_file() |
| 993 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | ce62e82 | 2004-08-05 22:10:22 +0000 | [diff] [blame] | 994 | help_init() |
| 995 | - Fix the display of the translated key descriptions "Up" and |
| 996 | "Space" under all circumstances, and make the help browser |
| 997 | work properly when there are fewer than 24 columns available. |
| 998 | (David Benbennick) |
David Lawrence Ramsey | 22fac78 | 2004-08-05 15:16:19 +0000 | [diff] [blame] | 999 | usage() |
| 1000 | - Don't translate the option strings for -Z/--restricted. |
| 1001 | (David Benbennick) |
David Lawrence Ramsey | 9ef3adb | 2004-07-30 17:30:17 +0000 | [diff] [blame] | 1002 | do_enter() |
| 1003 | - Don't treat it as a special case when the user presses Enter |
| 1004 | on the last line of the screen and smooth scrolling is on, for |
| 1005 | consistency. (DLR) |
David Lawrence Ramsey | 8aaf030 | 2004-07-27 16:46:35 +0000 | [diff] [blame] | 1006 | do_alt_speller() |
| 1007 | - When reloading the newly spell-checked temporary file, call |
| 1008 | terminal_init() to make sure that all the original terminal |
| 1009 | settings are restored, as a curses-based alternative spell |
| 1010 | checker (e.g. aspell) can change them. (DLR) |
David Lawrence Ramsey | b8c479a | 2004-07-31 14:10:23 +0000 | [diff] [blame] | 1011 | quote_length() |
| 1012 | - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H |
| 1013 | wasn't set. (David Benbennick) |
David Lawrence Ramsey | 01a6bf4 | 2004-07-03 05:23:19 +0000 | [diff] [blame] | 1014 | do_justify() |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1015 | - 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] | 1016 | the next line after justifying the current line, and only run |
| 1017 | the respacing routine when it's true. This keeps the |
| 1018 | respacing routine from erroneously being run more than once on |
| 1019 | the same line. (DLR) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1020 | - Check for first_par_line's not being NULL and only run the |
| 1021 | renumbering and cutbuffer-splicing routines depending on that |
| 1022 | if that's the case. This fixes a segfault occurring when |
| 1023 | trying to do full justification on a file with no paragraphs |
| 1024 | (in which case there are no normal lines to renumber and no |
| 1025 | backed-up lines to be stored in the cutbuffer or spliced back |
| 1026 | in during unjustify). (DLR) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 1027 | do_exit() |
| 1028 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | aea4dab | 2004-07-13 17:09:24 +0000 | [diff] [blame] | 1029 | main() |
| 1030 | - Move the reset_cursor() call to the beginning of the main |
| 1031 | input loop, and remove the apparently unnecessary wrefresh() |
| 1032 | call. (David Benbennick) |
David Lawrence Ramsey | ad1fd0d | 2004-07-27 15:46:58 +0000 | [diff] [blame] | 1033 | - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8 |
| 1034 | support won't work properly if the locale isn't set, whether |
| 1035 | NLS is enabled or not. (Junichi Uekawa) |
David Lawrence Ramsey | 6b24856 | 2004-08-07 22:33:14 +0000 | [diff] [blame] | 1036 | - Add titlebar() calls before all open_file() calls and remove |
| 1037 | the titlebar() call after them, so that the titlebar is |
David Lawrence Ramsey | 69a2812 | 2004-08-12 04:34:00 +0000 | [diff] [blame] | 1038 | displayed properly for all file(s) loaded. Also call |
| 1039 | display_main_list() after adding the first file to open_files, |
| 1040 | so that "Close" is properly displayed then instead of "Exit". |
| 1041 | (DLR) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1042 | - nano.h: |
| 1043 | - Reassign the key for full justification to Ctrl-U, for |
| 1044 | compatibility with the current version of Pico. (DLR) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 1045 | - Remove justbegend enum, as it's no longer needed. (DLR) |
David Lawrence Ramsey | ebd0d7c | 2004-07-01 18:59:52 +0000 | [diff] [blame] | 1046 | - proto.h: |
David Lawrence Ramsey | f708037 | 2004-07-08 17:15:10 +0000 | [diff] [blame] | 1047 | - Change the variables in the prototypes for do_justify(), |
| 1048 | get_verbatim_kbinput(), and get_mouseinput() to match the ones |
| 1049 | used in the actual functions. (DLR) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 1050 | - Remove unused declaration of temp_opt. (David Benbennick) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 1051 | - Add missing copy_file() prototype. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1052 | - Move the load_history() and save_history() prototypes up to |
| 1053 | match their corresponding location in files.c. (DLR) |
David Lawrence Ramsey | db357a1 | 2004-06-29 12:36:25 +0000 | [diff] [blame] | 1054 | - rcfile.c: |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1055 | rcfile_msg() |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1056 | - Removed and replaced with calls to rcfile_error(). (David |
| 1057 | Benbennick) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1058 | - Removed the reference to "starting nano" in the statusbar |
| 1059 | message, as it may be called when we exit if the history file |
| 1060 | can't be saved. (DLR) |
David Lawrence Ramsey | db357a1 | 2004-06-29 12:36:25 +0000 | [diff] [blame] | 1061 | parse_rcfile() |
| 1062 | - Have whitespace display default to off instead of on. (Mike |
| 1063 | Frysinger) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 1064 | nregcomp() |
| 1065 | - Rename the variable flags to eflags so as not to conflict with |
| 1066 | the global flags. (DLR) |
David Lawrence Ramsey | f56cc9e | 2004-07-29 14:32:17 +0000 | [diff] [blame] | 1067 | - search.c: |
| 1068 | do_replace_loop() |
| 1069 | - Make sure old_pww is updated to the current value of |
| 1070 | placewewant when a new match is found, so that edit_redraw() |
| 1071 | will redraw the screen properly when only placewewant changes. |
| 1072 | (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 9062579 | 2004-07-30 20:21:34 +0000 | [diff] [blame] | 1073 | do_replace() |
| 1074 | - Instead of using edit_update() to redraw the screen with |
| 1075 | edittop at the top, set edittop beforehand and call |
| 1076 | edit_refresh(). (DLR) |
| 1077 | do_gotoline() |
| 1078 | - Use parse_num() to interpret a line entered by the user, and |
| 1079 | start the search for a line from current instead of fileage. |
| 1080 | (DLR) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1081 | do_gotopos(), find_node(), free_history() |
David Lawrence Ramsey | 9062579 | 2004-07-30 20:21:34 +0000 | [diff] [blame] | 1082 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1083 | free_history() |
| 1084 | - Only include when DEBUG is defined. (David Benbennick) |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 1085 | - utils.c: |
| 1086 | parse_num() |
| 1087 | - New function to parse numeric values, so that we don't have to |
| 1088 | duplicate code that calls strtol() all over the place. (David |
| 1089 | Benbennick) DLR: Renamed from parse_int() to parse_num() and |
| 1090 | converted to use ssize_t instead of int. |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1091 | nstrnicmp() |
| 1092 | - Remove code chacking for n's being less than 0 that will never |
| 1093 | be run, since n is a size_t and is hence unsigned. (David |
| 1094 | Benbennick) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1095 | ngetdelim(), ngetline() |
| 1096 | - New functions equivalent to getdelim() and getline(), which |
| 1097 | are both GNU extensions. (DLR, adapted from GNU mailutils |
David Lawrence Ramsey | b4041d6 | 2004-08-17 16:04:48 +0000 | [diff] [blame] | 1098 | 0.5 with minor changes to better integrate with nano and |
| 1099 | increase efficiency) |
David Lawrence Ramsey | cff5558 | 2004-06-30 12:28:15 +0000 | [diff] [blame] | 1100 | - winio.c: |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 1101 | get_kbinput() |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1102 | - 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] | 1103 | convert it to an int. (DLR) |
David Lawrence Ramsey | cff5558 | 2004-06-30 12:28:15 +0000 | [diff] [blame] | 1104 | get_control_kbinput() |
| 1105 | - Fix erroneous debugging statement so that nano compiles with |
| 1106 | --enable-debug again. (Jon Oberheide) |
David Lawrence Ramsey | 0fb841a | 2004-07-01 17:04:23 +0000 | [diff] [blame] | 1107 | nanogetstr() |
| 1108 | - Tweak the code to update the edit window just before getting |
| 1109 | statusbar input for efficiency, and update bottomwin just |
| 1110 | before then too. (David Benbennick) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1111 | - Don't delete the statusbar line on UnCut, since the current |
| 1112 | version of Pico doesn't. (DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 1113 | do_cursorpos() |
| 1114 | - Add assert to check whether totsize is correct. (David |
| 1115 | Benbennick) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1116 | line_len() |
| 1117 | - Rename to help_line_len() so as not to conflict with the |
| 1118 | line_len variable used elsewhere, and move inside the |
| 1119 | DISABLE_HELP #ifdef surrounding do_help() since it's only |
| 1120 | called in do_help(). (DLR) |
| 1121 | do_help() |
| 1122 | - Have help_line_len() properly return an int again, since its |
| 1123 | value can't be larger than COLS. (DLR) |
| 1124 | - Allow the user to exit the help browser via Ctrl-C as well as |
| 1125 | Ctrl-X, for consistency with the file browser. (DLR) |
David Lawrence Ramsey | 76fb3ec | 2004-08-01 16:09:15 +0000 | [diff] [blame] | 1126 | - configure.ac: |
| 1127 | - Add AC_PROG_LN_S, so that we can portably create symlinks. |
| 1128 | (DLR) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1129 | - Check for getdelim() and getline(), which are both GNU |
| 1130 | extensions. (DLR) |
David Lawrence Ramsey | 7d3817f | 2004-07-28 13:03:06 +0000 | [diff] [blame] | 1131 | - nanorc.sample: |
| 1132 | - Add sample regexes for patch files. (Mike Frysinger) |
David Lawrence Ramsey | 2d140c2 | 2004-07-28 13:50:43 +0000 | [diff] [blame] | 1133 | - Various improvements to the "c-file" regexes. Add double, |
| 1134 | typedef, extern, union, unsigned, inline, and long to the |
| 1135 | green list. (Mike Frysinger) DLR: Also add signed, short, and |
| 1136 | enum to the green list. |
David Lawrence Ramsey | 8bf9ba0 | 2004-08-01 22:00:29 +0000 | [diff] [blame] | 1137 | - nano.spec.in: |
| 1138 | - Tweak to include all files in %{_bindir} instead of just nano, |
| 1139 | so that the "rnano" symlink will be properly packaged. (DLR) |
David Lawrence Ramsey | d36715e | 2004-06-28 13:23:37 +0000 | [diff] [blame] | 1140 | |
David Lawrence Ramsey | e115156 | 2004-06-28 13:17:33 +0000 | [diff] [blame] | 1141 | GNU nano 1.3.3 - 2004.06.28 |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 1142 | - General: |
| 1143 | - Minor comment cleanups. (DLR) |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 1144 | - Convert more ints used as boolean values to use TRUE and |
| 1145 | FALSE. (David Benbennick) |
David Lawrence Ramsey | 5520e85 | 2004-04-07 00:44:35 +0000 | [diff] [blame] | 1146 | - Make sure the special control keys are handled the same way |
| 1147 | after the window is resized or we come out of suspend mode. |
| 1148 | Changes to do_cont() and handle_sigwinch(). (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1149 | - Change some instances of ints that can never be negative to |
| 1150 | size_t's. (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 1151 | - Add better explanations for and in the "Terminal breakage" |
| 1152 | comments, and handle missing key #ifdefs inside the functions |
| 1153 | that use those keys. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 1154 | - Add restricted mode, accessible via the -Z/--restricted |
| 1155 | command line option or by invoking nano with any name |
| 1156 | beginning with 'r' (e.g. "rnano"). In restricted mode, nano |
| 1157 | will not read or write to any file not specified on the |
| 1158 | command line, read any nanorc files, allow suspending, or |
| 1159 | allow a file to be appended to, prepended to, or saved under a |
| 1160 | different name if it already has one. (IO ERROR) DLR: Also |
| 1161 | disable backup files and spell checking (since the latter can |
| 1162 | leave a pre-spell-checked version of the file in a temporary |
| 1163 | directory), use tail() to get the program name so that the |
| 1164 | check for its beginning with 'r' will work when a path is |
| 1165 | specified, disable toggles that are only useful with options |
| 1166 | that are disabled in restricted mode, call nano_disabled_msg() |
| 1167 | when trying to read or spell check a file instead of leaving |
| 1168 | the shortcuts out of the main list, and instead of acting as |
| 1169 | though TEMP_OPT is enabled when exiting with a modified file |
| 1170 | (which caused problems if the filename was blank), only allow |
| 1171 | a filename to be modified at the writeout prompt if it's blank |
| 1172 | beforehand. Changes to do_writeout(), toggle_init(), |
| 1173 | shortcut_init(), die_save_file(), and nanogetstr(). |
| 1174 | - Call nano_disabled_msg() directly from the shortcut list |
| 1175 | instead of inside the disabled functions. (David Benbennick) |
David Lawrence Ramsey | 0381c21 | 2004-05-01 01:21:38 +0000 | [diff] [blame] | 1176 | - Clarifications to comments explaining exactly what control |
| 1177 | characters and escape sequences are supported. (DLR) |
David Lawrence Ramsey | 5aa3983 | 2004-05-05 21:36:50 +0000 | [diff] [blame] | 1178 | - Disable "Where Is Next" in tiny mode. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 1179 | - Added the ability to justify the entire file at once, which |
David Lawrence Ramsey | 91bc83a | 2004-06-25 01:52:10 +0000 | [diff] [blame] | 1180 | Pico has via ^W^J. Changes to backup_lines() and |
| 1181 | do_justify(); new functions do_justify_void() and |
| 1182 | do_full_justify(). (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 1183 | - Modify the justification algorithm to work the same way as in |
| 1184 | 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] | 1185 | each line of the justified paragraph except for the last one, |
| 1186 | 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] | 1187 | it. Changes to justify_format() and do_justify(). Note that |
| 1188 | we can no longer reliably detect the first modified line in a |
| 1189 | paragraph, since a line unmodified by justify_format() may get |
| 1190 | a space tacked onto the end of it or removed from the end of |
| 1191 | it later. The entire original paragraph is now always backed |
| 1192 | up, and justify_format() no longer has a non-modifying mode, |
| 1193 | so it's now only called in backup_lines(). (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1194 | - Wrap the long jump code in NANO_SMALL #ifdefs, since we only |
| 1195 | use it if we're resizing the window, which is disabled when |
| 1196 | NANO_SMALL is defined. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 1197 | - Add smart home key option, accessible via -A/--smarthome on |
| 1198 | the command line, "set smarthome" in the rcfile, and the |
| 1199 | Meta-H toggle in the edit window. Smart home works as |
| 1200 | follows: When Home is pressed anywhere but at the very |
| 1201 | beginning of non-whitespace characters on a line, the cursor |
| 1202 | will jump to that beginning (either forwards or backwards). |
| 1203 | If the cursor is already at that position, it will jump to the |
| 1204 | true beginning of the line. This option is disabled in tiny |
| 1205 | mode. Changes to do_home(), nanogetstr(), etc. (DLR; |
| 1206 | suggested by Stephan T. Lavavej) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1207 | - Minor tweaks to the punctuation in some statusbar messages. |
| 1208 | (DLR) |
David Lawrence Ramsey | 48ae986 | 2004-05-28 17:23:33 +0000 | [diff] [blame] | 1209 | - Overhaul the low-level input routines into main routines that |
| 1210 | actually get the input and state machines that interpret the |
| 1211 | input. This allows better handling of the input (e.g. ignored |
| 1212 | keys are now always ignored instead of just being ignored when |
| 1213 | there are no escapes prefixing them) and will make it easier |
| 1214 | to port to interfaces that don't have blocking input. New |
| 1215 | functions reset_kbinput(), get_translated_kbinput(), |
| 1216 | get_control_kbinput(), and get_untranslated_kbinput(); changes |
| 1217 | to do_verbatim_input(), handle_sigwinch(), get_kbinput(), |
| 1218 | get_ascii_kbinput(), get_escape_seq_kbinput(), and |
David Lawrence Ramsey | 7ea39ef | 2004-06-04 22:36:42 +0000 | [diff] [blame] | 1219 | get_verbatim_kbinput(); removal of get_ignored_kbinput() and |
| 1220 | get_accepted_kbinput(). (DLR) |
David Lawrence Ramsey | 2ed225f | 2004-05-28 20:44:09 +0000 | [diff] [blame] | 1221 | - Overhaul all the movement functions in order to avoid |
| 1222 | redundant screen redraws (and regexec()s when color support is |
| 1223 | available) whenever possible during ordinary cursor movement |
| 1224 | when the text doesn't change. Do the same for moving in |
| 1225 | do_char(), do_delete(), do_next_word(), do_prev_word(), |
| 1226 | do_search(), do_research(), and do_replace_loop. Changes to |
| 1227 | do_first_line(), do_last_line(), do_home(), do_end(), |
| 1228 | do_page_up(), do_page_down(), do_up(), do_down(), do_left(), |
| 1229 | do_right(), do_delete(), do_backspace(), do_search(), |
| 1230 | do_research(), do_replace_loop(), do_find_bracket(), and |
| 1231 | edit_refresh(). New functions do_left_void(), |
| 1232 | do_right_void(), need_horizontal_update(), |
David Lawrence Ramsey | c21790d | 2004-05-30 03:19:52 +0000 | [diff] [blame] | 1233 | need_vertical_update(), edit_scroll(), and edit_redraw(). All |
| 1234 | of these functions but the first two require the previous |
David Lawrence Ramsey | ce1d765 | 2004-06-01 18:32:36 +0000 | [diff] [blame] | 1235 | versions of current and/or placewewant as parameters, so that |
| 1236 | they can redraw properly when the location has changed. Also |
David Lawrence Ramsey | c21790d | 2004-05-30 03:19:52 +0000 | [diff] [blame] | 1237 | rename the int refresh in do_delete() and do_backspace() to |
| 1238 | do_refresh so as not to conflict with refresh(). (DLR) |
David Lawrence Ramsey | 32e3b88 | 2004-05-29 01:20:17 +0000 | [diff] [blame] | 1239 | - Add some comments better explaining what is disabled in |
| 1240 | restricted mode and why. (DLR) |
David Lawrence Ramsey | c833d9e | 2004-05-29 15:36:58 +0000 | [diff] [blame] | 1241 | - Since KEEP_CUTBUFFER is only used in cut.c, make it a static |
| 1242 | variable in cut.c instead of a flag, and unset it in other |
| 1243 | files via the new function cutbuffer_reset(). (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 1244 | - Add the ability to change the characters used to display the |
| 1245 | beginning characters of tabs and spaces via the rcfile entry |
| 1246 | "whitespace". This is disabled if nanorc support is disabled |
David Lawrence Ramsey | f521b60 | 2004-05-30 03:56:52 +0000 | [diff] [blame] | 1247 | 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] | 1248 | 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] | 1249 | Frysinger; minor changes and adaptations by DLR) |
David Lawrence Ramsey | 2c62b07 | 2004-05-29 16:38:57 +0000 | [diff] [blame] | 1250 | - Add the ability to change the closing punctuation and closing |
| 1251 | brackets used to control justification, via the rcfile |
| 1252 | entries "punct" and "brackets". (DLR) |
Jordi Mallach | 0675c2f | 2004-06-01 15:29:31 +0000 | [diff] [blame] | 1253 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 85529b3 | 2004-06-22 15:38:47 +0000 | [diff] [blame] | 1254 | - Make the former flag same_line_wrap use TRUE and FALSE |
| 1255 | instead of 1 and 0. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 1256 | - files.c: |
| 1257 | add_open_file() |
| 1258 | - Rearrange the NANO_SMALL #ifdef so that the code to set the |
| 1259 | MODIFIED flag in open_files->flags is included only once. |
| 1260 | (DLR) |
David Lawrence Ramsey | 2f0d03b | 2004-05-28 00:15:28 +0000 | [diff] [blame] | 1261 | write_marked() |
| 1262 | - Call write_file() with nonamechange set to TRUE so that we |
| 1263 | don't erroneously change the current filename when writing a |
| 1264 | selection, and don't take a nonamechange parameter anymore |
| 1265 | since we don't use it. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 1266 | do_writeout() |
| 1267 | - Refactor so that no recursion is needed if we try to exit with |
| 1268 | 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] | 1269 | - Add spaces to the ends of the "Overwrite" and "Different Name" |
| 1270 | prompts, for consistency. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1271 | do_browser() |
| 1272 | - Call check_statblank() instead of blanking the statusbar |
| 1273 | unconditionally, for consistency. (David Benbennick) |
David Lawrence Ramsey | be26561 | 2004-05-29 20:38:08 +0000 | [diff] [blame] | 1274 | - global.c: |
| 1275 | shortcut_init() |
| 1276 | - Don't assign any handler functions to the help browser keys, |
| 1277 | as the help browser handles them all internally. (David |
| 1278 | Benbennick) |
David Lawrence Ramsey | 4be15f0 | 2004-05-23 21:33:23 +0000 | [diff] [blame] | 1279 | - move.c: |
| 1280 | do_first_line(), do_last_line() |
| 1281 | - Move these functions here from winio.c. (DLR) |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 1282 | - nano.c: |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 1283 | finish() |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1284 | - Call blank_statusbar() and blank_bottombars() to blank out |
| 1285 | the statusbar and shortcut list in bottomwin. (DLR) |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 1286 | - Since all of the calls to finish() use 0 for the value of |
| 1287 | sigage, and the return value of finish() is never used, make |
| 1288 | it accept and return void. (David Benbennick) |
David Lawrence Ramsey | 2f0d03b | 2004-05-28 00:15:28 +0000 | [diff] [blame] | 1289 | die_save_file() |
| 1290 | - Call write_file() with nonamechange set to TRUE since we don't |
| 1291 | need to change the current filename if we're writing emergency |
| 1292 | backup files. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1293 | do_early_abort() |
| 1294 | - Removed, as it's no longer called anywhere. (David Benbennick) |
David Lawrence Ramsey | 4525137 | 2004-06-09 08:36:46 +0000 | [diff] [blame] | 1295 | usage() |
| 1296 | - Add missing "[dir]" and two missing _()'s around the strings |
| 1297 | describing the -E [dir]/--backupdir=[dir]" option. (CHAO |
| 1298 | Wei-Lun) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1299 | open_pipe() |
| 1300 | - Call enable_signals() at the beginning and disable_signals() |
| 1301 | at the end, so that we get a SIGINT when Ctrl-C is pressed |
| 1302 | during wait() and can then call cancel_fork() properly. (DLR) |
David Lawrence Ramsey | 228148b | 2004-05-27 20:09:52 +0000 | [diff] [blame] | 1303 | do_delete(), do_enter() |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 1304 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 1b525e9 | 2004-05-24 02:35:02 +0000 | [diff] [blame] | 1305 | do_prev_word() |
| 1306 | - Switch the last test (current != NULL or not) around to match |
| 1307 | the order of the same test in do_next_word() (current == |
| 1308 | NULL). The results are the same either way. (DLR) |
David Lawrence Ramsey | 9a527f5 | 2004-05-31 14:58:59 +0000 | [diff] [blame] | 1309 | do_wrap() |
| 1310 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1311 | do_spell() |
| 1312 | - Tweak for efficiency. (David Benbennick) |
| 1313 | - Change the statusbar entries used in cases of failure so that |
| 1314 | they all display the actual error that occurred. (David |
| 1315 | Benbennick and DLR) |
| 1316 | do_int_speller(), do_alt_speller() |
| 1317 | - Make these functions return const char*'s instead of char*'s. |
| 1318 | (David Benbennick) |
David Lawrence Ramsey | d4693cb | 2004-05-14 01:17:25 +0000 | [diff] [blame] | 1319 | justify_format() |
| 1320 | - Remove redundant assignment. (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 1321 | do_para_search() |
| 1322 | - Remove unneeded edit_update() calls. (David Benbennick) |
David Lawrence Ramsey | 2e3aeae | 2004-05-24 05:52:35 +0000 | [diff] [blame] | 1323 | - Convert to use an enum to specify the search type: JUSTIFY, |
| 1324 | BEGIN, or END. (DLR) |
David Lawrence Ramsey | dbde9d7 | 2004-06-27 00:54:08 +0000 | [diff] [blame] | 1325 | - Refactor to properly do searches for beginnings of paragraphs |
| 1326 | in the same way as searches for endings of paragraphs, without |
| 1327 | needing the old (and somewhat inaccurate) recursive approach. |
| 1328 | (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 1329 | do_justify() |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1330 | - Remove unneeded edit_update() calls, and add a few minor |
| 1331 | efficiency tweaks. (David Benbennick) |
David Lawrence Ramsey | 7097d7b | 2004-05-17 16:11:18 +0000 | [diff] [blame] | 1332 | - Simplify an if statement. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 1333 | do_exit() |
| 1334 | - Refactor so that no recursion is needed if we try to exit with |
| 1335 | 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] | 1336 | print_numlock_warning() |
| 1337 | - Removed, as it's no longer needed and was never called |
| 1338 | anywhere after the input overhaul. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1339 | signal_init() |
| 1340 | - Don't use termios and _POSIX_VDISABLE to disable keys anymore, |
| 1341 | as there's no real equivalent of it when the latter isn't |
| 1342 | defined. (DLR) |
| 1343 | handle_sigwinch() |
| 1344 | - Call resetty() to get the original terminal settings back. |
| 1345 | (DLR) |
| 1346 | - Rework so that nano properly redraws the screen on systems |
| 1347 | that don't have resizeterm() and/or wresize(). In curses, we |
| 1348 | now leave and immediately reenter curses mode via endwin() and |
| 1349 | refresh(), and then reinitialize all windows via |
| 1350 | window_init(). In slang, the above routine will only work if |
| 1351 | the resize made the window smaller, so we now leave and |
| 1352 | immediately reenter screen management mode via |
| 1353 | SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize |
| 1354 | all windows via window_init(). (DLR, adapted from code in |
| 1355 | 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] | 1356 | do_toggle() |
| 1357 | - Call blank_statusbar() and blank_bottombars() to blank out |
| 1358 | the statusbar and shortcut list in bottomwin. (DLR) |
David Lawrence Ramsey | d4693cb | 2004-05-14 01:17:25 +0000 | [diff] [blame] | 1359 | do_verbatim_input() |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1360 | - If PRESERVE is set, disable flow control characters before |
| 1361 | getting input and reenable them after getting input. (DLR) |
| 1362 | disable_signals(), enable_signals(), disable_flow_control(), |
| 1363 | enable_flow_control() |
| 1364 | - New functions that allow more fine-grained control of the |
| 1365 | terminal: disabling and enabling signals without having to use |
| 1366 | _POSIX_VDISABLE and disabling and enabling flow control |
| 1367 | characters. (DLR) |
David Lawrence Ramsey | 97133f5 | 2004-05-14 17:39:19 +0000 | [diff] [blame] | 1368 | main() |
| 1369 | - Don't open the first file in quiet mode, since if we do, an |
| 1370 | error message won't be shown if it's unreadable. (DLR; found |
| 1371 | by Jaap Eldering) |
David Lawrence Ramsey | 1d43db8 | 2004-05-14 17:57:00 +0000 | [diff] [blame] | 1372 | - If we've specified multiple files on the command line and |
| 1373 | multibuffer support is compiled in, turn multibuffer mode on |
| 1374 | when reading those files and turn it off afterward if it was |
| 1375 | off before. This allows us to open multiple files without |
| 1376 | having to turn multibuffer mode on at the command line or in |
| 1377 | the nanorc first, both of which are unintuitive. Multibuffer |
| 1378 | mode should only affect how the "Read File" command behaves |
| 1379 | anyway. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1380 | - Remove the disabling of implementation-defined input |
David Lawrence Ramsey | e608f94 | 2004-05-19 16:04:27 +0000 | [diff] [blame] | 1381 | processing, as cbreak mode appears to turn it off anyway. |
| 1382 | (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1383 | - After noecho(), call disable_signals() and |
| 1384 | disable_flow_control(), the latter only if PRESERVE is not |
| 1385 | set. (DLR) |
| 1386 | - Move the savetty() call down from just after initscr() to just |
| 1387 | after the terminal is properly set up, so that we can restore |
| 1388 | it easily after a resize. (DLR) |
David Lawrence Ramsey | 570ea89 | 2004-05-28 21:02:32 +0000 | [diff] [blame] | 1389 | - Add missing cast to char when calling do_char(). (DLR) |
David Lawrence Ramsey | dd7cc72 | 2004-05-28 23:45:25 +0000 | [diff] [blame] | 1390 | - Don't initialize the backup directory if we're in restricted |
| 1391 | mode, since backups are disabled then. (DLR) |
David Lawrence Ramsey | 3aedb36 | 2004-05-28 22:42:41 +0000 | [diff] [blame] | 1392 | - 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] | 1393 | one from the command line and/or rcfile, as Pico does. Don't |
| 1394 | do this if we're in restricted mode, since spell checking is |
| 1395 | disabled then. (DLR) |
David Lawrence Ramsey | 74af3a7 | 2004-06-12 21:03:14 +0000 | [diff] [blame] | 1396 | - Add some cleanups for greater readability, and remove a few |
| 1397 | bits of redundant code. (DLR and David Benbennick) |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 1398 | - nano.h: |
| 1399 | - Since REGEXP_COMPILED is only used in search.c, convert it |
| 1400 | from a flag to a static int there. (DLR) |
David Lawrence Ramsey | 2e3aeae | 2004-05-24 05:52:35 +0000 | [diff] [blame] | 1401 | - Add justbegend enum, used in do_para_search(). (DLR) |
David Lawrence Ramsey | 2ed225f | 2004-05-28 20:44:09 +0000 | [diff] [blame] | 1402 | - Add updown enum, used in edit_scroll(). (DLR) |
David Lawrence Ramsey | f38230a | 2004-04-21 22:25:16 +0000 | [diff] [blame] | 1403 | - proto.h: |
David Lawrence Ramsey | d62b634 | 2004-04-28 21:49:30 +0000 | [diff] [blame] | 1404 | - Remove unused xpt() and add_marked_sameline() prototypes. |
| 1405 | (DLR) |
David Lawrence Ramsey | 14bf803 | 2004-05-22 20:19:15 +0000 | [diff] [blame] | 1406 | - Add missing #ifdefs around the nstristr() and get_mouseinput() |
| 1407 | prototypes. (DLR) |
David Lawrence Ramsey | f38230a | 2004-04-21 22:25:16 +0000 | [diff] [blame] | 1408 | - rcfile.c: |
| 1409 | - Move "rebinddelete" up in the list of options so that the list |
| 1410 | is in alphabetical order. (DLR) |
David Lawrence Ramsey | b6a4b10 | 2004-05-29 17:20:01 +0000 | [diff] [blame] | 1411 | - Cosmetic reorganization of the order in which some options are |
| 1412 | interpreted. (DLR) |
David Lawrence Ramsey | 8d91199 | 2004-05-29 17:05:52 +0000 | [diff] [blame] | 1413 | - Explicitly check for rcopts[i].name's being "tabsize" to avoid |
| 1414 | a spurious error under some circumstances about tabsize's |
| 1415 | 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] | 1416 | - search.c: |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 1417 | regexp_init() |
| 1418 | - Overhaul for efficiency. Also check if regcomp() failed, and |
| 1419 | if so, display "Bad regex" message on the statusbar, so that |
| 1420 | we don't have to display it separately after every call to |
| 1421 | this function. (David Benbennick) |
| 1422 | search_init() |
| 1423 | - Only check whether USE_REGEXP is set, and hence whether or not |
| 1424 | to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is |
| 1425 | defined. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 1426 | not_found_msg() |
| 1427 | - Convert to properly handle strings generated by |
| 1428 | display_string() that have been used in the search prompt |
| 1429 | since 1.3.0. (David Benbennick) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 1430 | - Use display_string() directly to display the text that we |
| 1431 | didn't find instead of relying on statusbar() to do it |
| 1432 | indirectly, since the latter won't display its text with the |
| 1433 | user-specified whitespace characters and the former will. |
| 1434 | (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 1435 | - utils.c: |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 1436 | is_blank_char() |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1437 | - New function used as an isblank() equivalent, since isblank() |
| 1438 | is a GNU extension. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 1439 | nstricmp(), nstrnicmp() |
| 1440 | - Add extra blank lines for greater readability, and remove |
| 1441 | unneeded test for n's being less than zero (since it's already |
| 1442 | been tested for being greater than zero or equal to zero at |
| 1443 | that point) from nstrnicmp(). (DLR) |
| 1444 | stristr() |
| 1445 | - Rename to nstristr() to avoid a potential conflict with an |
| 1446 | existing stristr() function, and move up to just after |
| 1447 | nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency. |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 1448 | - Include and use only when strcasestr() is unavailable, since |
| 1449 | strcasestr() is a GNU extension. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1450 | nstrnlen() |
| 1451 | - New function used as a strnlen() equivalent, since strnlen() |
| 1452 | is a GNU extension. (DLR) |
David Lawrence Ramsey | e1e7cb2 | 2004-04-15 06:15:55 +0000 | [diff] [blame] | 1453 | - winio.c: |
| 1454 | get_verbatim_kbinput() |
| 1455 | - Refactor the output in the DEBUG #ifdef. It didn't work |
| 1456 | properly ever since this function was changed to use an int* |
| 1457 | instead of a char*. (DLR) |
David Lawrence Ramsey | 805547f | 2004-04-22 03:41:04 +0000 | [diff] [blame] | 1458 | - When reading characters from input, properly reallocate |
| 1459 | verbatim_kbinput via (int*)nrealloc() instead of an uncast |
| 1460 | realloc(). (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 1461 | get_accepted_kbinput() |
| 1462 | - Add proper support for the keypad values and escape sequences |
David Lawrence Ramsey | 16eb518 | 2004-06-03 20:26:12 +0000 | [diff] [blame] | 1463 | generated by the NumLock glitch and by certain keys on the |
| 1464 | numeric keypad. (DLR) |
David Lawrence Ramsey | d897445 | 2004-06-04 22:28:55 +0000 | [diff] [blame] | 1465 | - Add an extra break and move an #endif down to fix a potential |
| 1466 | problem when NANO_SMALL is defined or KEY_RESIZE isn't, and |
| 1467 | when PDCURSES isn't defined. (DLR) |
David Lawrence Ramsey | 805547f | 2004-04-22 03:41:04 +0000 | [diff] [blame] | 1468 | get_escape_seq_kbinput() |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 1469 | - Add proper support for the keypad values and escape sequences |
| 1470 | generated by the NumLock glitch. (DLR) |
David Lawrence Ramsey | e65e639 | 2004-06-04 18:18:17 +0000 | [diff] [blame] | 1471 | - Add ignore_seq parameter. If a sequence is recognized but |
| 1472 | ignored, we will now return ERR and set ignore_seq to TRUE, and |
| 1473 | if a sequence is unrecognized, we will now return ERR and set |
| 1474 | ignore_seq to FALSE. Also, here and elsewhere, don't bother |
| 1475 | assigning ERR to retval when that's its initial value. (DLR) |
David Lawrence Ramsey | 973a96b | 2004-06-22 14:30:18 +0000 | [diff] [blame] | 1476 | - Fix problem where the escape sequence for F3 on the FreeBSD |
| 1477 | console would not be interpreted properly. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1478 | get_mouseinput() |
| 1479 | - Don't ungetch() anything if there's no control key and no meta |
| 1480 | key defined in the shortcut we clicked. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 1481 | bottombars() |
| 1482 | - Don't display any more than MAIN_VISIBLE shortcuts. Adding |
| 1483 | justification of the entire file above made the search |
| 1484 | shortcut list longer than this and hence made the shortcuts in |
| 1485 | it so short as to be almost incomprehensible. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1486 | - Tweak for efficiency and to better handle shorter screen |
| 1487 | widths. (David Benbennick) |
| 1488 | - Restructure the if block used for the sentinel key values, |
| 1489 | dynamically allocate keystr based on the number of columns |
| 1490 | available, and make sure we can display shortcuts even when |
| 1491 | the number of available columns is too short for any complete |
| 1492 | one. (DLR) |
| 1493 | onekey() |
| 1494 | - Don't bother padding the displayed shortcuts with spaces. |
| 1495 | (David Benbennick) |
| 1496 | - Convert len to a size_t. (DLR) |
David Lawrence Ramsey | e5b2f83 | 2004-04-29 06:30:36 +0000 | [diff] [blame] | 1497 | edit_add() |
| 1498 | - Minor cosmetic reformatting. Also remove unused int |
| 1499 | searched_later_lines. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1500 | blank_bottomwin() |
| 1501 | - Removed, as it does the same thing as blank_bottombars(). |
| 1502 | (David Benbennick) |
| 1503 | blank_titlebar() |
| 1504 | - New function used to blank the titlebar in topwin. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1505 | blank_statusbar_refresh() |
| 1506 | - Removed, as it's now unnecessary. (David Benbennick) |
| 1507 | titlebar() |
| 1508 | - Overhaul to use display_string() to display the filename, and |
| 1509 | to better handle shorter screen widths. Also remove |
| 1510 | now-unneeded wrefresh(topwin) calls. (David Benbennick) |
David Lawrence Ramsey | 8328fc2 | 2004-05-25 23:34:43 +0000 | [diff] [blame] | 1511 | DLR: Tweak to reserve enough space for "Modified", plus |
| 1512 | padding, in all cases, to make sure that the version message |
| 1513 | takes up no more more than 1/3 of the available width, minus |
| 1514 | padding, and to include a reset_cursor() call so that the |
| 1515 | cursor is always in the right place. |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1516 | bottombars() |
| 1517 | - Call blank_bottombars() instead of blank_bottomwin(). (David |
| 1518 | Benbennick) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1519 | check_statblank() |
| 1520 | - Overhaul for efficiency, (David Benbennick) DLR: Add |
| 1521 | reset_cursor() call to ensure that the cursor is always in the |
| 1522 | right place. |
David Lawrence Ramsey | 228148b | 2004-05-27 20:09:52 +0000 | [diff] [blame] | 1523 | update_cursor() |
| 1524 | - Removed, as it's no longer called anywhere. (David Benbennick) |
David Lawrence Ramsey | 07d3feb | 2004-04-16 05:15:11 +0000 | [diff] [blame] | 1525 | edit_refresh() |
| 1526 | - Remove apparently unneeded leaveok() calls. (David Benbennick) |
David Lawrence Ramsey | c279a63 | 2004-05-25 01:49:58 +0000 | [diff] [blame] | 1527 | edit_refresh_clearok(), center_cursor() |
| 1528 | - Removed, as they are now unnecessary. (David Benbennick) |
David Lawrence Ramsey | d12fd4b | 2004-05-28 15:05:56 +0000 | [diff] [blame] | 1529 | statusq() |
| 1530 | - Don't allow "Full Justify" when in view mode. (DLR) |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 1531 | statusbar() |
| 1532 | - Call reset_cursor() just before refreshing the edit window, so |
| 1533 | that slang and other non-ncurses versions of curses will |
| 1534 | properly place the cursor back in the edit window instead of |
| 1535 | leaving it at the end of the statusbar. (DLR) |
David Lawrence Ramsey | be26561 | 2004-05-29 20:38:08 +0000 | [diff] [blame] | 1536 | do_help() |
| 1537 | - Overhaul for efficiency, and allow scrolling through the help |
| 1538 | via the arrow keys as well as the paging keys. (David |
David Lawrence Ramsey | ae064bf | 2004-06-01 20:38:00 +0000 | [diff] [blame] | 1539 | Benbennick) DLR: Revert the use of the return value of |
| 1540 | curs_set() to restore the previous state of the cursor, as |
| 1541 | some curses implementations (including slang) get it wrong, |
| 1542 | and explicitly turn the cursor off where needed instead. |
David Lawrence Ramsey | dc35cb8 | 2004-04-24 18:30:23 +0000 | [diff] [blame] | 1543 | do_credits() |
| 1544 | - Use napms() instead of nanosleep(), as it does the same thing |
| 1545 | (aside from taking an argument in milliseconds instead of |
| 1546 | microseconds) and curses includes it. (DLR) |
David Lawrence Ramsey | 837a02b | 2004-05-18 15:23:31 +0000 | [diff] [blame] | 1547 | - Overhaul for efficiency, and make sure the xlcredits |
| 1548 | translations are done after initialization in order to avoid |
| 1549 | an error when compiling with -pedantic. (David Benbennick) |
Jordi Mallach | 21ad762 | 2004-06-25 22:43:09 +0000 | [diff] [blame] | 1550 | do_yesno() |
| 1551 | - Add a comment to encourage translators to use both native and |
| 1552 | English shortcuts, if possible. (Jordi) |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 1553 | - configure.ac: |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1554 | - Add tests for isblank(), strcasestr(), and strnlen(), and |
| 1555 | define _GNU_SOURCE so that the tests work properly. Increase |
| 1556 | the minimum required autoconf version to 2.54. (DLR) |
David Lawrence Ramsey | 1122c85 | 2004-05-13 17:46:57 +0000 | [diff] [blame] | 1557 | - Reformat the test programs so that they aren't packed into |
| 1558 | fewer lines than usual, so as to make them easier to read, and |
| 1559 | remove unnecessary inclusion of stdio.h in the slang test |
| 1560 | programs. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1561 | - Remove the checks for resizeterm() and wresize(), as they're |
| 1562 | no longer needed. (DLR) |
Jordi Mallach | d350727 | 2004-06-25 22:34:18 +0000 | [diff] [blame] | 1563 | - config.rpath: |
| 1564 | - Replace usage of egrep with grep -E, avoiding a XSI:ism (David |
| 1565 | Weinehall) |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 1566 | - faq.html: |
| 1567 | - Removed question about the NumLock glitch, as it's no longer |
| 1568 | needed. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 1569 | - nano.1: |
| 1570 | - Document restricted mode. (IO ERROR) DLR: Add minor |
| 1571 | modifications to account for the above changes. |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 1572 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 498e13d | 2004-06-01 22:56:34 +0000 | [diff] [blame] | 1573 | - Document the use of the SPELL environment variable. (DLR) |
David Lawrence Ramsey | 12e066f | 2004-05-29 14:13:02 +0000 | [diff] [blame] | 1574 | - nanorc.5: |
| 1575 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 1576 | - Document the whitespace option. (DLR, adapted from |
| 1577 | documentation by Mike Frysinger) |
David Lawrence Ramsey | 2c62b07 | 2004-05-29 16:38:57 +0000 | [diff] [blame] | 1578 | - Document the punct and brackets options. (DLR) |
David Lawrence Ramsey | 9be546b | 2004-04-20 19:19:21 +0000 | [diff] [blame] | 1579 | - nano.texi: |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 1580 | - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and |
| 1581 | Meta-< and Meta-> aren't toggles. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 1582 | - Document restricted mode. (IO ERROR) DLR: Add minor |
| 1583 | modifications to account for the above changes. |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 1584 | - Fix version number inaccuracies: Search/replace history and |
| 1585 | sorting/uniqueness filtering for the internal spell chacker |
| 1586 | were added in nano 1.1.99pre1. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 1587 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 498e13d | 2004-06-01 22:56:34 +0000 | [diff] [blame] | 1588 | - Document the use of the SPELL environment variable. (DLR) |
David Lawrence Ramsey | 71d0a1f | 2004-05-08 00:06:15 +0000 | [diff] [blame] | 1589 | - nanorc.sample: |
| 1590 | - Add missing mouse entry, and update the nanorc sample regexes |
| 1591 | to account for the backupdir and mouse options. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 1592 | - Add smarthome description. (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 1593 | - Document the whitespace option. (DLR, adapted from |
| 1594 | documentation by Mike Frysinger) |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 1595 | - README.CVS: |
| 1596 | - Increase the minimum required autoconf version to 2.54, and |
| 1597 | change the recommended automake version 1.7 to the minimum |
| 1598 | required automake version. Note that autoconf 2.54 will |
| 1599 | technically also work with automake 1.6c, but that is a CVS |
| 1600 | version as opposed to a stable release version, and automake |
| 1601 | 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] | 1602 | - TODO: |
| 1603 | - Added entry for justifying the entire file at once, since Pico |
| 1604 | can do it, and with "[DONE]" since it's already been |
| 1605 | implemented. (DLR) |
David Lawrence Ramsey | befb25a | 2004-03-31 18:53:07 +0000 | [diff] [blame] | 1606 | |
David Lawrence Ramsey | f70f0cf | 2004-03-31 18:42:52 +0000 | [diff] [blame] | 1607 | GNU nano 1.3.2 - 2004.03.31 |
David Lawrence Ramsey | 760a2dc | 2004-01-14 06:38:00 +0000 | [diff] [blame] | 1608 | - General: |
| 1609 | - Change instances in the code that refresh the entire edit |
| 1610 | window when color support is enabled (in order to properly |
| 1611 | handle multi-line color regexes) to only do so when |
| 1612 | it's necessary, i.e, when COLOR_SYNTAX is set. (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 1613 | - Minor cosmetic tweaks to the code involving direction keys. |
| 1614 | NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and |
| 1615 | NANO_NEXTLINE_KEY, and the help messages for them have been |
| 1616 | changed accordingly. Also remove extraneous references to |
| 1617 | NANO_DOWN_KEY in the search history shortcut entries. (DLR) |
David Lawrence Ramsey | c91696e | 2004-01-29 04:16:23 +0000 | [diff] [blame] | 1618 | - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the |
| 1619 | shortcut list, and tweak the unjustify routine to use it. |
David Lawrence Ramsey | d7f5ad9 | 2004-03-04 19:30:53 +0000 | [diff] [blame] | 1620 | Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak |
| 1621 | the statusbar input routines to handle them and NANO_HELP_FKEY |
| 1622 | properly. (DLR) |
David Lawrence Ramsey | 369732f | 2004-02-16 20:32:40 +0000 | [diff] [blame] | 1623 | - Block SIGWINCH after setting up its handler, and only unblock |
| 1624 | and handle it when we're in a stable state, i.e, when we're |
| 1625 | waiting for input from the user. New function |
| 1626 | allow_pending_sigwinch(); changes to signal_init(), |
| 1627 | get_kbinput(), and get_verbatim_kbinput(). (DLR) |
David Lawrence Ramsey | 281e056 | 2004-02-27 18:54:04 +0000 | [diff] [blame] | 1628 | - Decouple the paragraph searching code and the justifying code. |
| 1629 | Removed function do_para_operation(); new function |
| 1630 | do_para_search(); changes to do_justify(). (DLR) |
David Lawrence Ramsey | 04e42a6 | 2004-02-28 16:24:31 +0000 | [diff] [blame] | 1631 | - Add -E/--backupdir option. When used with -B/--backup, backup |
| 1632 | files will be saved in the specified directory with their |
| 1633 | canonical pathnames encoded in their names (all '/'s replaced |
| 1634 | with '!'s). Changes to write_file(). (Martin Ehmsen) DLR: |
| 1635 | Add function init_backup_dir() to handle relative paths |
| 1636 | correctly, use get_full_path() to get the canonical pathname, |
| 1637 | 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] | 1638 | - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom |
| 1639 | Bates; minor tweaks by DLR) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 1640 | - Change some instances of boolean 0 and 1 to TRUE and FALSE. |
| 1641 | (David Benbennick) |
| 1642 | - Fix memory corruption problem occurring when answer is used as |
| 1643 | the value of def; if the realloc() of answer leads to its |
| 1644 | pointing to a different memory block, there will be a segfault |
David Lawrence Ramsey | 7947544 | 2004-03-19 20:47:57 +0000 | [diff] [blame] | 1645 | when the value of def is copied into it via strcpy(). |
David Lawrence Ramsey | b882340 | 2004-04-27 21:06:11 +0000 | [diff] [blame] | 1646 | (bort@alltel.net, Christian Weisgerber, David Benbennick, and |
David Lawrence Ramsey | 7947544 | 2004-03-19 20:47:57 +0000 | [diff] [blame] | 1647 | DLR) |
David Lawrence Ramsey | b977515 | 2004-03-19 02:15:42 +0000 | [diff] [blame] | 1648 | - Remove the last editbot references, to avoid any potential |
| 1649 | segfaults related to them. Also remove fix_editbot(), as it's |
| 1650 | no longer needed. (David Benbennick) |
David Lawrence Ramsey | 1576d53 | 2004-03-19 21:46:34 +0000 | [diff] [blame] | 1651 | - Rename several variables to make their use clearer and to |
| 1652 | avoid conflicts. (DLR) |
David Lawrence Ramsey | ce991bb | 2004-03-29 18:36:39 +0000 | [diff] [blame] | 1653 | - Set the input mode before turning the keypad on. (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 1654 | - cut.c: |
| 1655 | add_to_cutbuffer() |
| 1656 | - Add parameter allow_concat to determine whether we're allowed |
| 1657 | to concatenate strings in the cutbuffer. (DLR) |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 1658 | - files.c: |
David Lawrence Ramsey | da35251 | 2004-03-05 20:04:44 +0000 | [diff] [blame] | 1659 | do_insertfile() |
| 1660 | - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef. |
| 1661 | (DLR) |
David Lawrence Ramsey | c6908f2 | 2004-03-11 02:20:25 +0000 | [diff] [blame] | 1662 | - Save the already-typed answer when switching from "Insert |
| 1663 | File" to "Execute Command" mode via Ctrl-X, just in case we |
| 1664 | started typing a command before switching. (DLR) |
David Lawrence Ramsey | cb34a67 | 2004-02-06 21:20:05 +0000 | [diff] [blame] | 1665 | add_open_files() |
| 1666 | - Make the saving of marked status in open_files->file_flags |
| 1667 | work properly again; a tweak to the ISSET() macro in 1.3.0 |
| 1668 | to make it only return 0 or 1 broke it. (DLR) |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 1669 | write_marked() |
| 1670 | - New function used to write the current marked selection to a |
| 1671 | file, split out from do_writeout(). (DLR) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 1672 | do_writeout() |
| 1673 | - Tweak for efficiency. (David Benbennick) DLR: Modify to have |
| 1674 | the current answer preserved between toggles again. |
David Lawrence Ramsey | 3af54d3 | 2004-02-25 04:43:27 +0000 | [diff] [blame] | 1675 | filestat() |
| 1676 | - Removed, as it is only called in one place and is |
| 1677 | redundant. (DLR) |
| 1678 | do_browser() |
| 1679 | - Replace the filestat() call with an equivalent stat() call. |
| 1680 | (DLR) |
David Lawrence Ramsey | 00c2054 | 2004-02-01 06:27:59 +0000 | [diff] [blame] | 1681 | - global.c: |
| 1682 | shortcut_init() |
| 1683 | - 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] | 1684 | - Set the associated function for unjustify to 0 instead of |
| 1685 | do_uncut_text(), since it's currently unused. (DLR) |
David Lawrence Ramsey | c53a92d | 2004-01-12 03:28:06 +0000 | [diff] [blame] | 1686 | - nano.c: |
David Lawrence Ramsey | a7c9364 | 2004-02-25 03:19:29 +0000 | [diff] [blame] | 1687 | usage() |
| 1688 | - Clarify the description for -T/--tabsize a bit. (DLR) |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 1689 | do_verbatim_input() |
| 1690 | - Remove the now-unneeded code to disable XON, XOFF, and |
| 1691 | suspend, since we now go into raw mode in |
| 1692 | get_verbatim_kbinput() and bypass them. (DLR) |
David Lawrence Ramsey | bf3c93e | 2004-03-13 19:42:58 +0000 | [diff] [blame] | 1693 | do_next_word() |
| 1694 | - Simplify and remove references to editbot so as to avoid a |
| 1695 | segfault. (David Benbennick) |
David Lawrence Ramsey | b6aa428 | 2004-03-14 01:42:17 +0000 | [diff] [blame] | 1696 | do_prev_word() |
| 1697 | - Simplify and remove references to edittop. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1698 | do_int_speller(), do_alt_speller(), do_spell() |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 1699 | - Modify to write only the current selection from a file to the |
| 1700 | temporary file used for spell checking when the mark is on, |
| 1701 | and add a few miscellaneous cosmetic cleanups. (DLR) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1702 | do_int_spell_fix() |
| 1703 | - Store the value of current_x in a size_t instead of an int, |
| 1704 | and add a few minor efficiency tweaks. (David Benbennick) |
| 1705 | - Remove comment explaining why findnextstr() is called with |
| 1706 | bracket_mode set to TRUE even though we aren't doing a bracket |
| 1707 | search, since after the above efficiency tweaks, it's now more |
| 1708 | accurately called can_display_wrap. (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 1709 | indent_length() |
| 1710 | - Remove unneeded #ifdef. (David Benbennick) |
| 1711 | do_justify() |
| 1712 | - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR) |
David Lawrence Ramsey | 2897d2b | 2004-01-26 20:56:20 +0000 | [diff] [blame] | 1713 | signal_init() |
| 1714 | - Trap SIGQUIT in addition to turning it off via termios in |
| 1715 | main(). This is consistent with SIGINT, which we trap here |
| 1716 | and turn off via termios in main(), as well as with the |
| 1717 | associated comment. (DLR) |
David Lawrence Ramsey | 273d2ce | 2004-01-30 04:20:28 +0000 | [diff] [blame] | 1718 | handle_sigwinch() |
David Lawrence Ramsey | 5380944 | 2004-01-30 04:29:52 +0000 | [diff] [blame] | 1719 | - Set keypad() to TRUE and switch to cbreak mode just before |
| 1720 | calling siglongjmp(), in case we resized during verbatim |
| 1721 | input. (DLR) |
David Lawrence Ramsey | c53a92d | 2004-01-12 03:28:06 +0000 | [diff] [blame] | 1722 | main() |
| 1723 | - Move the call to raw() on systems that don't define |
| 1724 | _POSIX_VDISABLE outside the main input/output loop, as it |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 1725 | doesn't need to be called every time through the loop. Call it |
| 1726 | instead of cbreak() on such systems, as it overrides cbreak() |
| 1727 | anyway. (DLR) |
David Lawrence Ramsey | 369732f | 2004-02-16 20:32:40 +0000 | [diff] [blame] | 1728 | - Add more descriptive comments explaining the termios and |
| 1729 | curses setup routines, and turn the keypad on before setting |
| 1730 | the input mode. (DLR) |
David Lawrence Ramsey | aca5d04 | 2004-03-19 01:35:57 +0000 | [diff] [blame] | 1731 | - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR) |
David Lawrence Ramsey | ce991bb | 2004-03-29 18:36:39 +0000 | [diff] [blame] | 1732 | - Don't call keypad() before initializing the windows it needs |
| 1733 | via window_init(). |
David Lawrence Ramsey | 24ae56c | 2004-02-27 03:06:28 +0000 | [diff] [blame] | 1734 | - nano.h: |
| 1735 | - Move the NANO_H include guard up before the first #include. |
| 1736 | (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 1737 | - Remove the now-unneeded JUSTIFY_MODE flag. (DLR) |
David Lawrence Ramsey | 41151ac | 2004-01-15 05:47:03 +0000 | [diff] [blame] | 1738 | - search.c: |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1739 | regexp_cleanup() |
| 1740 | - Only do anything if REGEXP_COMPILED is set. (David Benbennick) |
| 1741 | search_abort() |
| 1742 | - Only test if the mark is set when NANO_SMALL isn't defined. |
| 1743 | (David Benbennick) |
| 1744 | search_init() |
| 1745 | - Add some more comments and comment tweaks, don't indicate that |
| 1746 | the search has been canceled when we enter a blank string in |
| 1747 | replace mode, only call regexp_init() when USE_REGEXP is set, |
| 1748 | and return -1 instead of -3 since a canceled search and a |
| 1749 | canceled replace should be mostly equivalent. (David |
| 1750 | Benbennick) DLR: Tweak to use the old behavior if we try to |
| 1751 | search for invalid regexes. |
| 1752 | findnextstr() |
| 1753 | - Refactor to use a loop invariant, and tweak for greater |
| 1754 | efficiency and simplicity. Also modify so that all searches |
| 1755 | start one character after (or before, if we're doing a |
| 1756 | backwards search) the current one, as opposed to all searches |
| 1757 | except for regex searches for "^" and the like, for |
| 1758 | consistency with other searches. (David Benbennick) |
| 1759 | do_search() |
| 1760 | - Handle search_init()'s no longer returning -3 above. (David |
| 1761 | Benbennick) |
| 1762 | - Port the code from do_replace_loop() to skip the current line |
| 1763 | if we're searching for a regex with "^" and/or "$" in it and |
| 1764 | end up on the same line to this function. This fixes a |
| 1765 | problem where doing a forward search for "^" on a file with |
| 1766 | more than one line would erroneously stop at the magicline and |
| 1767 | indicate that that was the only occurrence. (DLR) |
| 1768 | do_research() |
| 1769 | - Port David Benbennick's efficiency tweaks and the |
| 1770 | aforementioned code ported from do_replace_loop() to this |
| 1771 | function. (DLR) |
| 1772 | replace_regexp() |
| 1773 | - Completely refactor for increased efficiency. (David |
| 1774 | Benbennick) |
| 1775 | replace_line() |
| 1776 | - Use a char* parameter for the replacement string instead of |
| 1777 | last_search, and add minor efficiency tweaks. (David |
| 1778 | Benbennick) |
David Lawrence Ramsey | 41151ac | 2004-01-15 05:47:03 +0000 | [diff] [blame] | 1779 | do_replace_loop() |
| 1780 | - Fix segfault when doing a regex replace of a string that |
| 1781 | matches inside a line (e.g. replace the "b" in "abc" with |
| 1782 | anything). (David Benbennick) |
David Lawrence Ramsey | 1122c85 | 2004-05-13 17:46:57 +0000 | [diff] [blame] | 1783 | - If the mark is on at the beginning of the function, turn it |
| 1784 | off and turn it back on just before returning. Also overhaul |
| 1785 | 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] | 1786 | invariant, to not need to take an int* parameter, and store |
| 1787 | the beginning x-coordinate in a size_t instead of an int. |
| 1788 | (David Benbennick) |
| 1789 | do_replace() |
| 1790 | - Handle search_init()'s no longer returning -3 above, and add |
| 1791 | efficiency tweaks. (David Benbennick) DLR: Tweak to follow |
| 1792 | the old behavior of adding non-blank strings entered at the |
| 1793 | "Replace: " prompt to the search history. (DLR) |
David Lawrence Ramsey | c6908f2 | 2004-03-11 02:20:25 +0000 | [diff] [blame] | 1794 | do_gotoline() |
| 1795 | - Simplify the edit_update() call depending on the value of |
| 1796 | save_pos. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1797 | do_bracket() |
| 1798 | - Add efficiency tweaks. (David Benbennick) DLR: Remove |
| 1799 | reliance on the hardcoded bracket string length; instead, only |
| 1800 | require that the bracket string length be even. |
| 1801 | - utils.c: |
| 1802 | regexec_safe() |
| 1803 | - Wrap in HAVE_REGEX_H #ifdefs. (DLR) |
| 1804 | regexp_bol_or_eol() |
| 1805 | - New function used to check if a regex contains "^" and/or "$", |
| 1806 | assuming that the regex would be found if the REG_NOT(BOL|EOL) |
| 1807 | flags aren't used in the regexec() call; it replaces the |
| 1808 | direct regexec()s used before. (DLR) |
| 1809 | strstrwrapper() |
| 1810 | - Refactor for increased efficiency, and eliminate the need for |
| 1811 | the line_pos parameter. (David Benbennick) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 1812 | mallocstrcpy() |
| 1813 | - Tweak so that when src is "", "" is allocated and returned |
| 1814 | instead of NULL. (David Benbennick) |
David Lawrence Ramsey | e97c8d5 | 2004-01-14 19:26:29 +0000 | [diff] [blame] | 1815 | - winio.c: |
David Lawrence Ramsey | 58f6d83 | 2004-01-27 07:12:47 +0000 | [diff] [blame] | 1816 | get_verbatim_kbinput() |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 1817 | - Set keypad() to FALSE and switch to raw mode while reading |
David Lawrence Ramsey | 273d2ce | 2004-01-30 04:20:28 +0000 | [diff] [blame] | 1818 | input, and set it back to TRUE and go back into cbreak mode |
| 1819 | mode afterwards. (Note that if _POSIX_VDISABLE isn't defined, |
| 1820 | we don't need to change to or from raw mode since we're |
| 1821 | already in it exclusively.) This ensures that we don't end up |
| 1822 | reading in extended keypad values that are outside the ASCII |
| 1823 | range or having to deal with interrupt-generating key values. |
| 1824 | Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE |
| 1825 | when the user hits Ctrl-H, which, when cut down to ASCII |
| 1826 | range, ends up being Ctrl-G, which can be confusing. (DLR) |
David Lawrence Ramsey | ee383db | 2004-02-06 03:07:10 +0000 | [diff] [blame] | 1827 | - For consistency with get_kbinput(), use an int* to store and |
| 1828 | return the input instead of a char*, and tweak the functions |
| 1829 | that call it to handle this. (DLR) |
David Lawrence Ramsey | 2506136 | 2004-01-16 19:12:46 +0000 | [diff] [blame] | 1830 | get_accepted_kbinput() |
| 1831 | - Don't use "kbinput = wgetch(win)" as a switch value. (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 1832 | get_escape_seq_kbinput() |
| 1833 | - Add support for the escape sequences for F1-F14 whenever |
| 1834 | possible (i.e, whenever a conflict doesn't occur), some |
| 1835 | additional comments, and a few cosmetic cleanups. (DLR) |
David Lawrence Ramsey | ee383db | 2004-02-06 03:07:10 +0000 | [diff] [blame] | 1836 | - Use switch statements instead of strncmp() to read in the long |
| 1837 | xterm sequences for Ctrl-[arrow key] and Shift-[arrow key]. |
| 1838 | (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 1839 | get_escape_seq_abcd() |
| 1840 | - A resurrected version of the old abcd() function, readded in |
| 1841 | order to simplify get_escape_seq_kbinput(). (DLR) |
David Lawrence Ramsey | 0b047c5 | 2004-03-29 23:09:08 +0000 | [diff] [blame] | 1842 | get_mouseinput() |
David Lawrence Ramsey | 1576d53 | 2004-03-19 21:46:34 +0000 | [diff] [blame] | 1843 | - Interpret shortcut key values slightly more stringently when |
| 1844 | ungetch()ing them. (DLR) |
David Lawrence Ramsey | 0b047c5 | 2004-03-29 23:09:08 +0000 | [diff] [blame] | 1845 | strlenpt() |
| 1846 | - Properly cast the second parameter of the strnlenpt() call to |
| 1847 | size_t. (DLR) |
David Lawrence Ramsey | 66081d4 | 2004-01-22 07:25:31 +0000 | [diff] [blame] | 1848 | get_page_start() |
| 1849 | - For consistency, tweak so that scrolling always occurs when we |
| 1850 | try to move onto the "$" at the end of the line, as opposed to |
| 1851 | (a) when we move onto the "$" at the end of the line on the |
| 1852 | first page and (b) when we move onto the character just before |
| 1853 | the "$" on subsequent pages. (DLR) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1854 | reset_cursor() |
| 1855 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 1856 | edit_refresh() |
| 1857 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 1858 | statusq() |
| 1859 | - Rename "tabs" to "allowtabs". (David Benbennick) |
David Lawrence Ramsey | e97c8d5 | 2004-01-14 19:26:29 +0000 | [diff] [blame] | 1860 | do_credits() |
| 1861 | - Use nanosleep() instead of usleep(). The latter is only |
| 1862 | standard under BSD, whereas the former is POSIX compliant. |
David Lawrence Ramsey | f5300af | 2004-02-24 20:48:12 +0000 | [diff] [blame] | 1863 | Accordingly, only include time.h if we use this function, i.e, |
| 1864 | if NANO_EXTRA is defined. (DLR) |
David Lawrence Ramsey | fdece46 | 2004-01-19 18:15:03 +0000 | [diff] [blame] | 1865 | - Add explanatory comment. (DLR) |
David Lawrence Ramsey | 35557c5 | 2004-03-07 15:14:56 +0000 | [diff] [blame] | 1866 | - configure.ac: |
| 1867 | - Change instances of "int main ()" to "int main(void)". (DLR) |
David Lawrence Ramsey | be66a6b | 2004-01-30 21:31:57 +0000 | [diff] [blame] | 1868 | - faq.html: |
| 1869 | - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0, |
| 1870 | not 1.1.12. (DLR) |
David Lawrence Ramsey | 475a2a7 | 2004-02-25 03:58:46 +0000 | [diff] [blame] | 1871 | - nano.1, nanorc.5, nano.texi |
| 1872 | - Clarify the description for -T/--tabsize a bit. (DLR) |
David Lawrence Ramsey | 04e42a6 | 2004-02-28 16:24:31 +0000 | [diff] [blame] | 1873 | - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic |
| 1874 | fixes by DLR) |
| 1875 | - nanorc.sample: |
| 1876 | - Add backupdir description. (Martin Ehmsen; minor cosmetic |
| 1877 | fixes by DLR) |
David Lawrence Ramsey | f0b3009 | 2004-01-10 06:02:05 +0000 | [diff] [blame] | 1878 | - README: |
| 1879 | - Reformat to 72 characters per line, fix wording in one spot, |
David Lawrence Ramsey | ce364e2 | 2004-03-03 01:25:46 +0000 | [diff] [blame] | 1880 | and fix spacing and capitalization in several spots. (DLR) |
David Lawrence Ramsey | 1eadebe | 2004-01-25 21:36:38 +0000 | [diff] [blame] | 1881 | - NEWS: |
| 1882 | - Capitalization fix. (DLR) |
David Lawrence Ramsey | 5ae684f | 2004-03-04 23:48:26 +0000 | [diff] [blame] | 1883 | - TODO: |
| 1884 | - Clarify the paragraph searching item, and add item for |
| 1885 | filename searches in the file browser. (DLR) |
David Lawrence Ramsey | 606dfda | 2004-01-09 23:26:54 +0000 | [diff] [blame] | 1886 | |
David Lawrence Ramsey | fa1497b | 2004-01-09 23:22:02 +0000 | [diff] [blame] | 1887 | GNU nano 1.3.1 - 2004.01.09 |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 1888 | - General: |
| 1889 | - Minor overhaul and abstraction of the lowest level of mouse |
| 1890 | input, mostly adapted from the code in do_mouse() that handles |
| 1891 | clicking on the shortcut list. New function do_mouseinput(); |
| 1892 | changes to do_mouse(). (DLR) David Benbennick: Add a few |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1893 | efficiency/extensibility tweaks. |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 1894 | - Modify the shortcut structure so that instead of having two |
| 1895 | miscellaneous key values (misc1 and misc2), there is one key |
| 1896 | value reserved for function keys (func_key) and one |
| 1897 | miscellaneous key value (misc), and tweak the |
| 1898 | shortcut-handling code to deal with this. These changes allow |
| 1899 | NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the |
| 1900 | shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove |
David Lawrence Ramsey | d291460 | 2003-11-30 02:22:22 +0000 | [diff] [blame] | 1901 | the values in the shortcut list and elsewhere that were made |
| 1902 | redundant by the low-level input overhaul, use toupper() |
| 1903 | instead of subtracting 32 from values for greater code |
| 1904 | readability, and eliminate use of adding 32 to values when |
| 1905 | testing for toggles, as get_kbinput_accepted() converts toggle |
| 1906 | values to lowercase before returning them. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1907 | - Remove the workarounds for missing KEY_UP and KEY_DOWN, as |
| 1908 | they appear to be holdovers of the old way of denoting the |
| 1909 | search history shortcuts; if they aren't defined, KEY_LEFT and |
| 1910 | KEY_RIGHT probably shouldn't work either, and all four appear |
| 1911 | to be standard keys in termcap/terminfo in any case. Add new |
| 1912 | special sentinel key values NANO_NO_KEY (for no shortcut key) |
| 1913 | and NANO_HISTORY_KEY (for search history keys, both Up and |
| 1914 | Down), modify the shortcut list to use them, and modify the |
| 1915 | shortcut display routines to handle them. Also modify the |
| 1916 | shortcut list code to not treat non-control character values |
| 1917 | of val as Meta-sequences, and fix dependencies on that |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1918 | behavior. Also rename several variables: "alt" -> "meta", |
| 1919 | "altval" -> "metaval". (DLR) |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 1920 | - Hook up the verbatim input functions so that verbatim input |
| 1921 | can be used in the edit window. New function |
| 1922 | do_verbatim_input(); changes to do_char(). (DLR) Additional |
| 1923 | minor tweaks to do_char() by David Benbennick. |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1924 | - Clarify the description of the --rebinddelete option. (DLR) |
David Lawrence Ramsey | 6481c3f | 2004-01-09 23:06:54 +0000 | [diff] [blame] | 1925 | - Miscellaneous comment tweaks, and copyright year updates in |
| 1926 | the comments and in do_credits(). (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1927 | - cut.c: |
| 1928 | - Overhaul to increase efficiency and add various cleanups. |
| 1929 | Changes to add_to_cutbuffer(), cut_marked_segment(), and |
| 1930 | do_uncut_text(). (David Benbennick) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 1931 | - files.c: |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1932 | check_operating_dir() |
| 1933 | - Add an assert to ensure that full_operatingdir isn't NULL, |
| 1934 | a fix for reporting nonexistent (incomplete) directory names |
| 1935 | as being outside the operating directory when tab completion |
| 1936 | is being used, and cosmetic cleanups. (David Benbennick) |
| 1937 | copy_file() |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 1938 | - 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] | 1939 | do_writeout(). (David Benbennick) |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 1940 | write_file() |
| 1941 | - Completely overhauled to properly ignore appending/prepending |
| 1942 | to symlinks when NOFOLLOW_SYMLINKS is defined, to properly |
| 1943 | support writing a selection to a file under the changed |
| 1944 | cutting code, to have more concise error messages, to add |
| 1945 | various cleanups, and so on. (David Benbennick) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 1946 | do_writeout() |
David Lawrence Ramsey | bc503c8 | 2003-11-19 23:59:14 +0000 | [diff] [blame] | 1947 | - Prompt the user if we're trying to save an existing file (and |
| 1948 | not just a selection of it) under a different name. (DLR; |
| 1949 | suggested by Jean-Philippe Guérard) |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 1950 | - Overhaul the code used to write a selection of a file to |
| 1951 | temporarily set fileage and filebot to the top and bottom of |
| 1952 | the selection and then call write_file(), instead of following |
| 1953 | the old hackish behavior with cut_marked_segment() (which |
| 1954 | won't work after the cutting code changes anyway). (David |
David Lawrence Ramsey | 70bd6e0 | 2004-01-15 16:08:42 +0000 | [diff] [blame] | 1955 | Benbennick) DLR: Tweak to not add an extra blank line to the |
| 1956 | end of the written selection if the cursor is at the beginning |
| 1957 | of the last line of the selection. |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1958 | open_prevfile(), open_nextfile() |
| 1959 | - For consistency with the rest of the multibuffer code, change |
| 1960 | "No more open files" to "No more open file buffers". (DLR) |
| 1961 | do_browser() |
| 1962 | - Allow '?' to open the help browser, and readd the ability of |
| 1963 | 'G'/'g' to open the "Go to Directory" prompt (which was |
| 1964 | erroneously removed before), for compatibility with Pico. |
| 1965 | (DLR) |
David Lawrence Ramsey | 8fa1976 | 2003-11-03 00:13:21 +0000 | [diff] [blame] | 1966 | - global.c: |
| 1967 | shortcut_init() |
| 1968 | - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR) |
David Lawrence Ramsey | 3255929 | 2003-12-28 03:56:04 +0000 | [diff] [blame] | 1969 | - nano.c: |
| 1970 | do_int_spell_fix() |
| 1971 | - Add comment explaining why findnextstr() is called with |
| 1972 | bracket_mode set to TRUE even though we aren't doing a bracket |
| 1973 | search. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1974 | do_para_operation() |
| 1975 | - Convert to use the new low-level input functions. (DLR) |
| 1976 | main() |
| 1977 | - Remove unused variable option_index. (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1978 | - Fix omission of NANO_NO_KEY in the shortcut list scanning |
| 1979 | code. (DLR) |
David Lawrence Ramsey | f8ddf31 | 2004-01-09 22:38:09 +0000 | [diff] [blame] | 1980 | - Remove now-unnecessary initialization of kbinput. (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 1981 | - nano.h: |
| 1982 | - Comment additions and cosmetic tweaks. (DLR) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 1983 | - search.c: |
David Lawrence Ramsey | 45cfbec | 2003-11-28 16:04:24 +0000 | [diff] [blame] | 1984 | findnextstr(), do_replace_loop() |
David Lawrence Ramsey | 18394ac | 2003-12-24 03:13:44 +0000 | [diff] [blame] | 1985 | - Fix potential infinite loops and other misbehavior when doing |
David Lawrence Ramsey | e190ff3 | 2004-01-03 21:42:25 +0000 | [diff] [blame] | 1986 | beginning-of-line or end-of-line regex replacements ("^", "$", |
| 1987 | and "^$"). Add a no_sameline parameter to findnextstr(), and |
| 1988 | set it in the calls in do_replace_loop() when such regexes are |
| 1989 | found, so that such regexes are only found once per line. |
| 1990 | Also change length_change from a long to an int; size_t is |
| 1991 | unsuitable due to its being unsigned. (DLR; found by Mike |
| 1992 | Frysinger and DLR) David Benbennick: Add a few minor cleanups |
| 1993 | to do_replace_loop(). |
David Lawrence Ramsey | 7776ef9 | 2003-11-04 18:32:35 +0000 | [diff] [blame] | 1994 | - winio.c: |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1995 | get_kbinput(), get_accepted_kbinput() |
| 1996 | - Don't pass in the value of the REBIND_DELETE flag anymore. |
| 1997 | Instead, handle it directly inside the functions. (DLR) |
David Lawrence Ramsey | 7776ef9 | 2003-11-04 18:32:35 +0000 | [diff] [blame] | 1998 | get_accepted_kbinput() |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 1999 | - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY |
| 2000 | if REBIND_DELETE is set), since it apparently is generated |
| 2001 | sometimes even when keypad() is TRUE. (DLR) |
| 2002 | - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into |
| 2003 | NANO_FORWARD_KEY, since they are sometimes generated by |
| 2004 | Shift-Left and Shift-Right. (DLR) |
| 2005 | get_ascii_kbinput() |
| 2006 | - Tweak to make it slightly more readable. (DLR) |
| 2007 | get_verbatim_kbinput() |
| 2008 | - Modify to take an extra parameter indicating if we should |
| 2009 | interpret ASCII codes or not. (DLR) |
| 2010 | get_escape_seq_kbinput() |
| 2011 | - Expand to deal with more broken terminals that don't generate |
| 2012 | keypad values. Support the escape sequences for Insert, |
| 2013 | Delete, Home, End, PageUp, and PageDown, [arrow key], |
| 2014 | Ctrl-[arrow key], and Shift-[arrow key] when needed in the |
| 2015 | Linux console, the FreeBSD console, the Hurd console, xterm, |
| 2016 | rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII |
| 2017 | interpretation disabled, to read in the sequences. (DLR) |
| 2018 | get_skip_tilde_kbinput() |
| 2019 | - Removed, as it is unneeded due to the expansion of |
| 2020 | get_escape_seq_kbinput(). (DLR) |
| 2021 | get_mouseinput() |
| 2022 | - Modify to take an extra parameter indicating if we should |
| 2023 | ungetch() the key equivalents of shortcuts we click on or not. |
| 2024 | (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2025 | nanogetstr() |
| 2026 | - Properly interpret the Meta key value in misc if we hit it at |
| 2027 | the statusbar prompt. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2028 | do_yesno() |
| 2029 | - Add a few efficiency/extensibility tweaks. (David Benbennick) |
| 2030 | - Convert to use the new low-level input functions, and remove |
| 2031 | two last hardcoded widths left after the above tweaks. (DLR) |
David Lawrence Ramsey | 76c4b33 | 2003-12-24 08:17:54 +0000 | [diff] [blame] | 2032 | do_replace_highlight() |
| 2033 | - Display a highlighted space if the word length is zero, so |
| 2034 | that we can see zero-length regexes we're replacing. (DLR; |
| 2035 | suggested by Mike Frysinger) |
David Lawrence Ramsey | 4dca76f | 2003-11-20 00:15:52 +0000 | [diff] [blame] | 2036 | - configure.ac: |
| 2037 | - 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] | 2038 | - faq.html: |
| 2039 | - Add question explaining how verbatim input works, as well as a |
| 2040 | few minor fixes. (DLR) |
David Lawrence Ramsey | 9e45a47 | 2004-01-06 17:12:28 +0000 | [diff] [blame] | 2041 | - nano.1, nanorc.5: |
| 2042 | - Add nano version numbers (minus any "-cvs" suffixes). (DLR) |
David Lawrence Ramsey | 637f6e5 | 2003-11-04 18:34:44 +0000 | [diff] [blame] | 2043 | - nano.spec.in: |
| 2044 | - Update for the 1.3 branch of nano. (DLR) |
David Lawrence Ramsey | 9e45a47 | 2004-01-06 17:12:28 +0000 | [diff] [blame] | 2045 | - NEWS: |
| 2046 | - Reformat so all lines are limited to 72 columns, add a few |
| 2047 | typo fixes, and make a few minor cosmetic cleanups. (DLR) |
Jordi Mallach | a5d8e54 | 2003-11-06 10:47:44 +0000 | [diff] [blame] | 2048 | - THANKS: |
| 2049 | - Add Danilo Segan, for the Serbian translation. |
| 2050 | |
David Lawrence Ramsey | 133f7b1 | 2003-10-22 17:15:12 +0000 | [diff] [blame] | 2051 | GNU nano 1.3.0 - 2003.10.22 |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2052 | - General: |
| 2053 | - Complete overhaul and abstraction of the lowest level of |
| 2054 | keyboard input, mostly rewritten but incorporating a few bits |
| 2055 | from the old functions and adding support for Pico's Esc Esc |
| 2056 | [three-digit decimal ASCII code] input method. New functions |
| 2057 | get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(), |
| 2058 | get_accepted_kbinput(), get_ascii_kbinput(), |
| 2059 | get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These |
| 2060 | should work properly on FreeBSD (due to code and input |
| 2061 | provided by Lee Nelson and Wouter van Hemel, respectively). |
| 2062 | (DLR) |
| 2063 | - The -K/--keypad command line/rcfile option has been removed, |
| 2064 | and keypad() is now always TRUE. keypad_on() in winio.c and |
| 2065 | the check for _use_keypad in configure.ac have both been |
| 2066 | removed. (DLR) |
| 2067 | - The -d/--rebinddelete command line/rcfile option, equivalent |
| 2068 | to Pico's -d, has been added. It is intended to work around |
| 2069 | the problem with Backspace/Delete confusion on some terminals, |
| 2070 | notably FreeBSD; if your Backspace key acts like Delete, this |
| 2071 | option will fix that. (DLR) |
David Lawrence Ramsey | a9cebd8 | 2003-08-17 03:31:57 +0000 | [diff] [blame] | 2072 | - Remove unneeded breaks at the ends of default: clauses. (DLR) |
David Lawrence Ramsey | e049706 | 2003-08-23 21:11:06 +0000 | [diff] [blame] | 2073 | - Add the ability to repeat the last search without prompting |
| 2074 | via Meta-W, and move the line wrapping toggle to Meta-L. New |
| 2075 | function do_research(). (Wouter van Hemel) |
David Lawrence Ramsey | 8faf305 | 2003-09-04 20:25:29 +0000 | [diff] [blame] | 2076 | - Added the ability to move to the beginning or end of the |
| 2077 | paragraph, which Pico has via ^W^W (previous paragraph) |
David Lawrence Ramsey | 4510834 | 2004-04-21 23:04:55 +0000 | [diff] [blame] | 2078 | and ^W^O (next paragraph). Changes to do_justify(); new |
| 2079 | functions do_para_operation(), do_para_begin(), and |
David Lawrence Ramsey | 8faf305 | 2003-09-04 20:25:29 +0000 | [diff] [blame] | 2080 | do_para_end(). Note that the last three functions are |
| 2081 | disabled if justification is disabled. (DLR) |
David Lawrence Ramsey | 417b03a | 2003-09-06 21:44:37 +0000 | [diff] [blame] | 2082 | - Make sure the "historylog" option isn't included at all if |
| 2083 | NANO_SMALL is defined. (DLR) |
Jordi Mallach | 3a42087 | 2003-10-19 23:30:48 +0000 | [diff] [blame] | 2084 | - Source reorganization: move code to src/, docs to doc/. |
| 2085 | (Jordi) |
Jordi Mallach | 298b975 | 2003-09-07 00:44:12 +0000 | [diff] [blame] | 2086 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | c97acfb | 2003-09-10 20:08:00 +0000 | [diff] [blame] | 2087 | - Since SAMELINEWRAP is only used in nano.c, make it a static |
| 2088 | variable in nano.c instead of a flag, and surround all |
David Lawrence Ramsey | 1356a0a | 2003-09-10 20:31:02 +0000 | [diff] [blame] | 2089 | wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR) |
| 2090 | - Change enum "topmidbotnone" to "topmidnone", as there's no |
| 2091 | BOTTOM option anymore. (DLR) |
David Lawrence Ramsey | 5ffbec5 | 2003-09-16 01:16:49 +0000 | [diff] [blame] | 2092 | - Split out the string-displaying routine from update_line() |
| 2093 | into a separate function; convert the edit window, statusbar |
| 2094 | display, and statusbar prompt to use it, so that they can all |
| 2095 | properly display control characters and tabs; free and NULL |
| 2096 | the backup search string in one place in the search code |
| 2097 | instead of several; and do some other minor refactoring of |
| 2098 | related display functions to simplify them. New functions |
| 2099 | mark_order() and display_string(); changes to actual_x(), |
David Lawrence Ramsey | 2dd7ed1 | 2003-09-29 05:15:24 +0000 | [diff] [blame] | 2100 | strnlenpt(), blank_bottombars(), blank_edit(), |
| 2101 | get_page_start(), edit_add(), update_line(), statusbar(), and |
| 2102 | do_replace_highlight(). (David Benbennick) DLR: Add minor |
| 2103 | cosmetic tweaks, add missing NANO_SMALL #ifdef around the text |
| 2104 | for a backwards search in the refactored code, and enclose |
| 2105 | dump_buffer() and dump_buffer_reverse() in one ENABLE_DEBUG |
| 2106 | #ifdef instead of two. |
David Lawrence Ramsey | 9eff746 | 2003-09-16 02:04:00 +0000 | [diff] [blame] | 2107 | - Convert memmove() function calls to charmove() macro calls, as |
| 2108 | the former all work on char*'s. (DLR) |
David Lawrence Ramsey | f5b256b | 2003-10-03 20:26:25 +0000 | [diff] [blame] | 2109 | - Miscellaneous #define cleanups: only include the prototype for |
| 2110 | and definition of wrap_at if wrapping and/or justification are |
| 2111 | enabled, remove duplicate wrap_at prototype, and define |
| 2112 | DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h |
| 2113 | instead of all over the code. (DLR) |
Jordi Mallach | 3a42087 | 2003-10-19 23:30:48 +0000 | [diff] [blame] | 2114 | - Autogenerate the html versions of the manpages in the |
| 2115 | Makefile.am's in doc/man/, make sure that they're properly |
| 2116 | installed via "make dist", and make sure that "make distcheck" |
David Lawrence Ramsey | 13dfdb2 | 2003-10-22 15:37:13 +0000 | [diff] [blame] | 2117 | works too. Also be sure to set EXTRA_DIST properly. (Jordi, |
| 2118 | DLR and Jeff Bailey) |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2119 | - files.c: |
David Lawrence Ramsey | 7bf00de | 2003-09-23 04:25:05 +0000 | [diff] [blame] | 2120 | read_file() |
| 2121 | - After we've read in a file and possibly converted it from |
| 2122 | DOS/Mac format, set fileformat back to 0 to prevent erroneous |
| 2123 | conversion messages when we read other files in. (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2124 | do_browser() |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2125 | - Some of the Pico compatibility options in the file browser |
David Lawrence Ramsey | 1018761 | 2003-08-17 05:40:45 +0000 | [diff] [blame] | 2126 | that don't work properly for current Pico have been removed. |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2127 | Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes |
| 2128 | the highlighted file, and 'r' renames the highlighted file; |
| 2129 | neither of these are implemented. (DLR) |
David Lawrence Ramsey | ba6fd42 | 2003-08-23 21:16:02 +0000 | [diff] [blame] | 2130 | - global.c: |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2131 | toggle_init() |
David Lawrence Ramsey | ba6fd42 | 2003-08-23 21:16:02 +0000 | [diff] [blame] | 2132 | - Change the message for the line wrapping toggle from "Auto |
| 2133 | wrap" to "Auto line wrap", to more clearly associate it with |
| 2134 | Meta-L. (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2135 | shortcut_init() |
David Lawrence Ramsey | cb7ee0e | 2003-08-31 17:08:59 +0000 | [diff] [blame] | 2136 | - Change multibuffer-enabled references to |
| 2137 | opening/closing/toggling the previous/next loaded file to |
| 2138 | toggling/switching to/closing the previous/next file buffer, |
| 2139 | for consistency with other references. (DLR) |
David Lawrence Ramsey | 2786366 | 2003-08-29 21:31:37 +0000 | [diff] [blame] | 2140 | - nano.c: |
| 2141 | window_init() |
| 2142 | - Set keypad() to TRUE regardless of whether PDCurses is being |
| 2143 | used, as Meta-X apparently turns it off even under ncurses. |
| 2144 | (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2145 | do_backspace() |
| 2146 | - Vastly simplify, and remove dependency on page_up(). (David |
| 2147 | Benbennick) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2148 | help_init() |
| 2149 | - Document the support for Esc Esc [character]'s being |
| 2150 | interpreted as Ctrl-[character], and the support for Pico's |
| 2151 | Esc Esc [three-digit decimal ASCII code] input method. (DLR) |
David Lawrence Ramsey | f03c78b | 2003-09-28 21:26:49 +0000 | [diff] [blame] | 2152 | do_mark() |
David Lawrence Ramsey | cb34a67 | 2004-02-06 21:20:05 +0000 | [diff] [blame] | 2153 | - Toggle MARK_ISSET at the beginning of the function instead of |
| 2154 | setting it in one place and unsetting it in another place. |
David Lawrence Ramsey | f03c78b | 2003-09-28 21:26:49 +0000 | [diff] [blame] | 2155 | (David Benbennick) |
David Lawrence Ramsey | 99bede3 | 2003-09-29 07:21:11 +0000 | [diff] [blame] | 2156 | do_suspend() |
| 2157 | - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can |
| 2158 | properly deal with them while nano is suspended. (DLR; problem |
| 2159 | found by David Benbennick) |
David Lawrence Ramsey | f0b7dca | 2003-09-22 15:46:21 +0000 | [diff] [blame] | 2160 | abcd() |
| 2161 | - Removed, as it's unneeded due to the low-level input overhaul. |
| 2162 | (DLR) |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2163 | - nano.h: |
David Lawrence Ramsey | e0a9f50 | 2003-09-07 05:32:24 +0000 | [diff] [blame] | 2164 | - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as |
| 2165 | slang has no equivalent of either. When nano is compiled with |
| 2166 | slang support, resizing the window doesn't generate |
| 2167 | KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux |
| 2168 | console with keypad(TRUE) generates Ctrl-Z instead of |
| 2169 | KEY_SUSPEND, both unlike ncurses. (DLR) |
David Lawrence Ramsey | 2530725 | 2003-10-10 04:42:48 +0000 | [diff] [blame] | 2170 | - 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] | 2171 | 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] | 2172 | KEY_SUSPEND as -1 if it isn't defined, in case it isn't in |
| 2173 | more than just Slang. (DLR) |
David Lawrence Ramsey | f6cf4a7 | 2003-10-22 16:20:47 +0000 | [diff] [blame] | 2174 | - Define all potentially missing keys as different negative |
| 2175 | values (ERR is -1, so use -2, -3, etc.) so as to avoid having |
| 2176 | duplicate case values when keys are missing. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2177 | - move.c: |
| 2178 | - Remove unneeded inclusion of stdio.h, make various cleanups, |
| 2179 | and preserve the cursor's coordinates when paging up and down. |
| 2180 | (David Benbennick) DLR: Readd the ability to behave the old |
| 2181 | way while paging, make it so the new behavior is only used in |
| 2182 | smooth-scrolling mode, and modify page_down() to always go |
| 2183 | down a full page (even when there's less than one page of text |
| 2184 | left) for consistency. |
| 2185 | page_up() |
| 2186 | - Removed due to rewrite of movement functions. (David |
| 2187 | Benbennick) |
David Lawrence Ramsey | c97acfb | 2003-09-10 20:08:00 +0000 | [diff] [blame] | 2188 | - proto.h: |
| 2189 | - Surround the do_prev_word() and do_next_word() prototypes with |
| 2190 | NANO_SMALL #ifdefs, since the actual functions aren't included |
| 2191 | in tiny mode. (DLR) |
David Lawrence Ramsey | 3bd9628 | 2003-09-06 05:09:32 +0000 | [diff] [blame] | 2192 | - rcfile.c: |
| 2193 | parse_colors() |
| 2194 | - Generate an error if we try to use a bright background color |
| 2195 | in a nanorc file. (DLR; found by Brand Huntsman) |
| 2196 | - Make sure all rcfile error messages are capitalized, for |
| 2197 | consistency. (DLR) |
David Lawrence Ramsey | ec290f2 | 2003-08-30 19:05:40 +0000 | [diff] [blame] | 2198 | - winio.c: |
David Lawrence Ramsey | da8fd8f | 2003-09-16 01:22:31 +0000 | [diff] [blame] | 2199 | get_verbatim_kbinput() |
| 2200 | - Fix a silly memory corruption bug that would occur when trying |
| 2201 | to read a sequence of more than one key verbatim. (DLR) |
| 2202 | get_accepted_kbinput() |
| 2203 | Handle Ctrl-{ to Ctrl-~ correctly, and drop support for |
| 2204 | converting Esc ` to Esc Space, since making Meta-[key] |
| 2205 | correspond to Ctrl-[key] in all cases is inconsistent due to |
| 2206 | the different natures of Contol and Meta key sequences. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2207 | do_first_line() |
| 2208 | - Call edit_update() with TOP instead of CENTER; both do the |
| 2209 | same thing, but it works faster with TOP. (DLR) |
David Lawrence Ramsey | 7f47d42 | 2003-09-08 18:01:49 +0000 | [diff] [blame] | 2210 | nanogetstr() |
| 2211 | - Don't let the user type in ASCII 127 at the statusbar prompt. |
| 2212 | (DLR) |
David Lawrence Ramsey | ec290f2 | 2003-08-30 19:05:40 +0000 | [diff] [blame] | 2213 | titlebar() |
| 2214 | - Fix problem with the available space for a filename on the |
| 2215 | titlebar's being short by one. (DLR) |
David Lawrence Ramsey | 4dcd070 | 2003-10-03 04:20:28 +0000 | [diff] [blame] | 2216 | edit_add() |
| 2217 | - Fix problems with the marking highlight's being drawn |
| 2218 | improperly in some cases. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2219 | edit_update() |
| 2220 | - Tweak for efficiency and remove the fix_editbot() call. (David |
| 2221 | Benbennick) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2222 | do_credits() |
| 2223 | - Update the copyright years to "1999-2003", to match those |
| 2224 | given in the rest of the code. (DLR) |
David Lawrence Ramsey | a3831ab | 2003-09-22 16:26:40 +0000 | [diff] [blame] | 2225 | - configure.ac: |
| 2226 | - Change instances of "GNU Nano" to "GNU nano" for consistency. |
| 2227 | (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2228 | - nano.1, nanorc.5, nano.texi: |
| 2229 | - Change all instances of $SYSCONFDIR to SYSCONFDIR, since |
| 2230 | SYSCONFDIR is set at compile time and can't be overridden by |
| 2231 | setting SYSCONFDIR in the environment. (David Benbennick) |
| 2232 | - Remove -K/--keypad, and document -d/--rebinddelete. (DLR) |
| 2233 | - Document the support for Esc Esc [character]'s being |
| 2234 | interpreted as Ctrl-[character], and the support for Pico's |
| 2235 | Esc Esc [three-digit decimal ASCII code] input method, if |
| 2236 | applicable. (DLR) |
Jordi Mallach | 298b975 | 2003-09-07 00:44:12 +0000 | [diff] [blame] | 2237 | - French translation by Jean-Philippe Guérard. |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2238 | - nano.1.html, nanorc.5.html: |
| 2239 | - Regenerated. (DLR) |
| 2240 | - nanorc.sample: |
| 2241 | - Remove duplicate "historylog" entry, remove "keypad" entry, |
| 2242 | and add "rebinddelete" entry. (DLR) |
David Lawrence Ramsey | dc9c40a | 2003-09-07 23:54:57 +0000 | [diff] [blame] | 2243 | - Update and add comments to the regexes for nanorc files. |
| 2244 | (Brand Huntsman) |
David Lawrence Ramsey | 21cc550 | 2003-09-06 19:04:02 +0000 | [diff] [blame] | 2245 | - Fix an attempt at a bright background color in the sample Java |
| 2246 | source regexes. (DLR) |
| 2247 | - Since tabs are shown as groups of spaces, they are interpreted |
| 2248 | as such when parsed by color regexes. Accordingly, simplify |
| 2249 | regexes that handle both spaces and tabs to just handle |
| 2250 | spaces, as the results are the same. (DLR) |
Chris Allegretta | f3fee5d | 2003-08-12 02:40:47 +0000 | [diff] [blame] | 2251 | - AUTHORS |
| 2252 | - Updated to show 1.2/1.3 maintainers. |
| 2253 | |
Chris Allegretta | 6954f05 | 2003-08-12 02:34:03 +0000 | [diff] [blame] | 2254 | - 1.3 tree forks here |
| 2255 | |
Chris Allegretta | 3364214 | 2003-08-12 01:49:20 +0000 | [diff] [blame] | 2256 | GNU nano 1.2.2 - 2003.08.11 |
Jordi Mallach | 5b63eaf | 2003-06-11 10:17:20 +0000 | [diff] [blame] | 2257 | - General: |
| 2258 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 2259 | - Change uncast nrealloc()s assigned to char pointers/arrays to |
| 2260 | charealloc()s, and cast all other nrealloc()s and all |
| 2261 | nmalloc()s. (David Benbennick and DLR) |
Jordi Mallach | f9390af | 2003-08-05 19:31:12 +0000 | [diff] [blame] | 2262 | - Remove gettext marks from all debug messages. Good for developers, |
| 2263 | better for translators. (Jordi) |
| 2264 | - Add translator comments on strings that should be short, like in |
| 2265 | status bar strings, etc. (Jordi) |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 2266 | - utils.c: |
| 2267 | align() |
| 2268 | - Tweak to avoid a potential problem when strp is non-NULL but |
| 2269 | *strp is NULL. (David Benbennick) |
Chris Allegretta | 4f5335d | 2003-08-04 02:51:12 +0000 | [diff] [blame] | 2270 | nstricmp(), nstrnicmp() |
| 2271 | - Add these functions, equivalent to strcasecmp() and |
| 2272 | strncasecmp(), and convert nano to use them when strcasecmp() |
| 2273 | and/or strncasecmp() are unavailable. (DLR) |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 2274 | - winio.c: |
Chris Allegretta | 653d614 | 2003-08-04 02:12:03 +0000 | [diff] [blame] | 2275 | do_help() |
| 2276 | - Get rid of keypad_on() call for bottomwin, which should not be |
| 2277 | needed (DLR). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 2278 | nanogetstr() |
| 2279 | - Fix problem with search history where a temporary string |
| 2280 | added at the bottom of the history (but which was not in the |
| 2281 | history) would not be preserved after scrolling down to the |
| 2282 | blank bottom entry and then scrolling back up. (DLR) |
Chris Allegretta | c30fc24 | 2003-08-11 00:32:45 +0000 | [diff] [blame] | 2283 | - Fix problem where pressing down,up,down does not blank the |
| 2284 | search prompt but keeps the previous search (DLR). |
Chris Allegretta | 653d614 | 2003-08-04 02:12:03 +0000 | [diff] [blame] | 2285 | - Handle Alt-[-F and H (DLR, fixed home and end not working with |
| 2286 | -K in statusbar). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 2287 | - configure.ac: |
| 2288 | - Change the program used to detect a broken regexec() function |
| 2289 | so that it works properly, using information found at |
| 2290 | http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html. |
| 2291 | (DLR) |
| 2292 | - nanorc.sample: |
| 2293 | - Revised comment explaining the non-escaping of quotes to cover |
| 2294 | non-escaping of all shell-interpreted characters. (DLR) |
| 2295 | - Fixes to the descriptions and examples in the comments, and |
| 2296 | changes to some default values. (David Benbennick and DLR) |
| 2297 | - Add regexes for Perl syntax. (Richard Smith, tweaked for |
| 2298 | greater efficiency by David Benbennick) |
| 2299 | - Add regexes for Java source syntax. (David Benbennick) |
| 2300 | Regex for C++-style comments (colored the same way as C-style |
| 2301 | comments) added by DLR. |
Jordi Mallach | 2e6d0ca | 2003-04-24 18:23:56 +0000 | [diff] [blame] | 2302 | - THANKS: |
| 2303 | - Added Laurentiu Buzdugan, for Romanian. |
Jordi Mallach | 9e74ade | 2003-06-11 15:52:34 +0000 | [diff] [blame] | 2304 | - Added Geir Helland, for Norwegian Bokmål. |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 2305 | - TODO: |
| 2306 | - Move the items for nano 1.2 to the "Old Requests" section, |
| 2307 | and mark color syntax highlighting as done. (David Benbennick) |
David Lawrence Ramsey | 6d97d18 | 2003-07-02 14:20:11 +0000 | [diff] [blame] | 2308 | - faq.html: |
| 2309 | - Added question about nano's not showing color when it's |
| 2310 | compiled with color support. (DLR; suggested by Jordi) |
Jordi Mallach | d995e9a | 2003-06-11 16:38:35 +0000 | [diff] [blame] | 2311 | - nano.1, nanorc.5: |
Jordi Mallach | 5b63eaf | 2003-06-11 10:17:20 +0000 | [diff] [blame] | 2312 | - Formatting improvements by Jean-Philippe Guérard. |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 2313 | - Minor fixes by DLR. |
| 2314 | - nano.1.html, nanorc.5.html: |
| 2315 | - Regenerated from nano.1 and nanorc.5. (DLR) |
Chris Allegretta | ffe575f | 2003-04-20 16:25:46 +0000 | [diff] [blame] | 2316 | |
Chris Allegretta | aa45931 | 2003-04-20 16:20:15 +0000 | [diff] [blame] | 2317 | GNU nano 1.2.1 - 2003.04.19 |
Jordi Mallach | 723399a | 2003-02-23 19:12:54 +0000 | [diff] [blame] | 2318 | - General: |
| 2319 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2320 | - Work around broken regexec() on some systems that segfaults |
David Lawrence Ramsey | 1a5c4c6 | 2004-09-07 00:48:49 +0000 | [diff] [blame] | 2321 | when passed an empty string. This is known to be in glibc |
| 2322 | 2.2.3. New function regexec_safe(). (David Benbennick) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2323 | - Fix various bugs with search string history logging: don't |
| 2324 | print a broken error message and freeze if ~/.nano_history is |
| 2325 | unreadable, actually show an error message in save_history() |
| 2326 | if ~/.nano_history is unwritable, and prevent ~/.nano_history |
| 2327 | from being completely overwritten by save_history() if it's |
| 2328 | unreadable but writable. (David Benbennick) |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 2329 | - Only unset KEEP_CUTBUFFER in main() when we do something other |
| 2330 | than cut text in the main input loop, instead of unsetting it |
| 2331 | all over the place (which, as written, didn't handle cases |
| 2332 | like a cut followed by M-Space properly). Also, instead of |
| 2333 | checking for keyhandled's not being set inside the for loops, |
| 2334 | do it in if blocks surrounding the for loops to increase |
| 2335 | efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER |
| 2336 | if we hit a shortcut key other than the one for cutting text. |
| 2337 | - Make it so a marked cut immediately followed by an unmarked |
| 2338 | cut tacks the latter's text onto the end of the former's text |
| 2339 | instead of putting it on a new line, as Pico does. (DLR) |
| 2340 | - Convert instances of "(char *)nrealloc()" to the macro |
| 2341 | charealloc(), which does the same thing. (DLR) |
Chris Allegretta | 8151ba5 | 2003-04-19 19:34:05 +0000 | [diff] [blame] | 2342 | - Change justify_mode from a boolean int to a flag (DLR). |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 2343 | - cut.c: |
| 2344 | do_cut_text() |
| 2345 | - Tweak where KEEP_CUTBUFFER is set so that a marked cut |
| 2346 | immediately followed by an unmarked cut preserves the |
| 2347 | cutbuffer between the two. (David Benbennick) DLR: Also |
| 2348 | properly set KEEP_CUTBUFFER in tiny mode. |
| 2349 | do_uncut_text() |
| 2350 | - If we're about to uncut on the magicline, always make a new |
| 2351 | magicline in advance, as Pico does. (DLR) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2352 | - global.c: |
| 2353 | shortcut_init() |
| 2354 | - Simplify the #ifdef used to enable file insertion in view mode |
| 2355 | if multibuffer support has been compiled in. (DLR) |
| 2356 | - nano.c: |
| 2357 | justify_format() |
| 2358 | - If we shave spaces off the end of the line, make sure totsize |
| 2359 | is properly updated. (DLR; much simplified by David |
| 2360 | Benbennick) |
| 2361 | - nano.h: |
| 2362 | - Simplify #ifdefs relating to HAVE_STRCASECMP and |
| 2363 | HAVE_STRNCASECMP. (David Benbennick) |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 2364 | - search.c: |
| 2365 | goto_abort() |
| 2366 | - Removed, with all instances replaced with display_main_list(), |
| 2367 | since with the removal of all the scattered calls to |
| 2368 | SET(KEEP_CUTBUFFER), that function was all that was left of |
| 2369 | it. (DLR) |
| 2370 | do_find_bracket() |
| 2371 | - If a matching bracket wasn't found, call update_line() after |
| 2372 | setting current and current_x back to their original values, |
| 2373 | in case current_x's original value is greater than the width |
| 2374 | of the screen. (DLR) |
Chris Allegretta | 4b376a4 | 2003-04-16 02:08:23 +0000 | [diff] [blame] | 2375 | - winio.c: |
| 2376 | nanogetstr() |
| 2377 | - Remove a few unnecessary breaks occurring immediately after |
| 2378 | gotos, and properly interpret the up and down arrow keys when |
| 2379 | ALT_KEYPAD is set. (DLR) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2380 | - configure.ac: |
| 2381 | - Enable autodetection of broken regexec(). (DLR) Re-added |
| 2382 | regex.h check to ensure compile under Debian w/autoconf 1.6. |
Jordi Mallach | db469d8 | 2003-03-24 13:08:16 +0000 | [diff] [blame] | 2383 | - README: |
| 2384 | - Update obsolete 1.1.x information. |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2385 | - TODO: |
| 2386 | - Fix typo. (David Benbennick) |
| 2387 | - faq.html: |
| 2388 | - Update RPM links for nano 1.2.x. (DLR) |
Chris Allegretta | dbc3ec7 | 2003-02-20 03:14:37 +0000 | [diff] [blame] | 2389 | |
Chris Allegretta | 2b4ead9 | 2003-02-20 01:56:02 +0000 | [diff] [blame] | 2390 | GNU nano 1.2.0 - 2003.02.19 |
Jordi Mallach | 07e2000 | 2003-02-14 22:10:14 +0000 | [diff] [blame] | 2391 | - General: |
| 2392 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 33ac7b9 | 2003-02-16 03:13:47 +0000 | [diff] [blame] | 2393 | - files.c: |
| 2394 | read_file() |
| 2395 | - If the file we're loading has already been detected as a DOS |
| 2396 | or Mac formatted file, don't turn on NOCONVERT if we find |
| 2397 | binary chars in it. This is because if it's detected as |
| 2398 | DOS/Mac format, at least one line has already been converted, |
| 2399 | so setting NOCONVERT (which is supposed to signal that none |
| 2400 | of the file should be converted) makes no sense. (DLR) |
Chris Allegretta | a7a78de | 2003-02-19 22:27:53 +0000 | [diff] [blame] | 2401 | - nano.c: |
| 2402 | justify_format() |
| 2403 | - Fix ugly behavior when wrapping spaces at the end of long |
| 2404 | words (David Benbennick). |
Jordi Mallach | 07e2000 | 2003-02-14 22:10:14 +0000 | [diff] [blame] | 2405 | - nanorc.5: |
| 2406 | - Fix formatting error and update copyright year (Jordi). |
Jordi Mallach | fc71eb5 | 2003-02-15 13:34:03 +0000 | [diff] [blame] | 2407 | - Several enhancements (David Benbennick). |
Chris Allegretta | 3d33251 | 2003-02-14 03:10:12 +0000 | [diff] [blame] | 2408 | |
Chris Allegretta | 7ba3279 | 2003-02-14 03:09:35 +0000 | [diff] [blame] | 2409 | GNU nano 1.1.99pre3 - 2003.02.13 |
Jordi Mallach | a577d5a | 2003-02-04 14:13:36 +0000 | [diff] [blame] | 2410 | - General: |
| 2411 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 201f1d9 | 2003-02-05 02:51:19 +0000 | [diff] [blame] | 2412 | - Fix globals and externs such that nano will compile with |
| 2413 | DISABLE_SPELLER (David Benbennick). |
Chris Allegretta | f8f2d58 | 2003-02-10 02:43:48 +0000 | [diff] [blame] | 2414 | - Fix unreasonable fill values by wrapping at length 0 instead |
| 2415 | of erroring out, and don't start up if the window size is too |
| 2416 | small but fill is set reasonably. Changes to |
| 2417 | nano.c:global_init(), window_init(), and handle_sigwinch(). |
| 2418 | New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH |
| 2419 | (David Benbennick). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2420 | - Change ngettext macro to P_(), to avoid a clash with the |
| 2421 | reserved C __ identifier (Jordi). |
Chris Allegretta | fdcb9e9 | 2003-02-12 02:52:04 +0000 | [diff] [blame] | 2422 | - Memory leak fixes for files.c:do_insertfile(),do_browser(), |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2423 | nano.c:do_spell(), and search.c:do_replace() (David |
| 2424 | Benbennick). |
Chris Allegretta | bcc8688 | 2003-02-13 01:54:41 +0000 | [diff] [blame] | 2425 | - Remove do_preserve_msg, as using -p still gives Pico-style |
| 2426 | string behavior, so an annoying message every invocation is |
| 2427 | probably unneeded (all cheer). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2428 | - Change resetpos function to be global (now called |
Chris Allegretta | 65f075d | 2003-02-13 03:03:49 +0000 | [diff] [blame] | 2429 | resetstatuspos. Fixes annoying but small odd problem with |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2430 | cursor placement when inserting a file. This needs to be done |
| 2431 | better in 1.3 (originally by David Lawrence Ramsey). Added |
| 2432 | this issue to TODO. |
Chris Allegretta | 3cdf6ff | 2003-02-08 02:02:02 +0000 | [diff] [blame] | 2433 | - files.c: |
Chris Allegretta | bcaeeb4 | 2003-02-08 02:03:26 +0000 | [diff] [blame] | 2434 | cwd_tab_completion() |
| 2435 | - Memory leak fix (David Benbennick). |
David Lawrence Ramsey | 9591ee5 | 2004-01-14 16:51:06 +0000 | [diff] [blame] | 2436 | input_tab() |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2437 | - Fix assumption that matches is null terminated (David |
Chris Allegretta | 3cdf6ff | 2003-02-08 02:02:02 +0000 | [diff] [blame] | 2438 | Benbennick). |
Chris Allegretta | a0449d9 | 2003-02-12 23:58:01 +0000 | [diff] [blame] | 2439 | load_history() |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2440 | - Fix segfault on loading huge strings from history file |
Chris Allegretta | a0449d9 | 2003-02-12 23:58:01 +0000 | [diff] [blame] | 2441 | (David Benbennick). |
Chris Allegretta | 1debce2 | 2003-02-13 22:00:19 +0000 | [diff] [blame] | 2442 | load_history(), save_history() |
| 2443 | - Changed to look at $HOME before getpwuid(geteuid()), see |
| 2444 | details in comment for rcfile.c:do_rcfile(). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2445 | real_dir_from_tilde() |
Chris Allegretta | 1debce2 | 2003-02-13 22:00:19 +0000 | [diff] [blame] | 2446 | - Change check for the running user's home dir to use |
| 2447 | getpwuid(geteuid()) rather than a getpwent() loop |
| 2448 | (suggested by Jordi). |
Chris Allegretta | 5ec6862 | 2003-02-05 02:39:34 +0000 | [diff] [blame] | 2449 | - nano.c: |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 2450 | breakable() |
| 2451 | - Fix incorrect return value on short lines (David Benbennick). |
Chris Allegretta | 4640fe3 | 2003-02-10 03:10:03 +0000 | [diff] [blame] | 2452 | do_help() |
| 2453 | - Fix line lengths not being computed properly, causes display |
| 2454 | glitches most noticeable with < 20 rows. New function |
| 2455 | nano.c:line_len(). (David Benbennick). |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 2456 | do_justify() |
| 2457 | - Add regfree() to quote regex (David Benbennick). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 2458 | - Only copy previous indent if AUTOINDENT is set (David |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 2459 | Benbennick). |
Chris Allegretta | 7641708 | 2003-02-12 23:54:34 +0000 | [diff] [blame] | 2460 | do_suspend() |
| 2461 | - Fix untranslated message (David Benbennick). |
Chris Allegretta | d127c71 | 2003-02-12 23:20:45 +0000 | [diff] [blame] | 2462 | do_wrap() |
| 2463 | - Fix isspace() call to operate on int. |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 2464 | help_init() |
| 2465 | - Fix crashing in do_help when COLS < 23 (David Benbennick). |
| 2466 | main() |
| 2467 | - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP |
| 2468 | (David Benbennick). |
Chris Allegretta | fe1d072 | 2003-02-13 00:52:49 +0000 | [diff] [blame] | 2469 | - Silence annoying compiler messages about clobbering and |
| 2470 | uninitialized variables by moving variable inits to the top |
| 2471 | of main() and re-initializing them after the sigsetjmp(). |
Chris Allegretta | d6e8436 | 2003-02-07 00:02:00 +0000 | [diff] [blame] | 2472 | - rcfile.c: |
| 2473 | colortoint() |
| 2474 | - Don't bomb after invalid color and print bad color name |
| 2475 | (David Benbennick). |
Chris Allegretta | 17ec14b | 2003-02-07 00:19:05 +0000 | [diff] [blame] | 2476 | colortoint, parse_colors() |
| 2477 | - Don't add strings with invalid fg colors at all. |
Chris Allegretta | 2e39c1c | 2003-02-13 03:36:15 +0000 | [diff] [blame] | 2478 | do_rcfile() |
| 2479 | - Revert (somewhat) previous behavior of looking at |
| 2480 | $HOME, and only run getpw* if it is NULL. Most *nix programs |
| 2481 | seem to only care about $HOME, and at the user-level |
| 2482 | getpw* may not be reliable (and its slower). |
Chris Allegretta | a90d0cf | 2003-02-10 02:55:03 +0000 | [diff] [blame] | 2483 | - search.c: |
| 2484 | do_gotoline() |
| 2485 | - Only goto_abort() if we *didnt* abort the command, making |
| 2486 | the function seem horribly misnamed ;-) (David Benbennick). |
Chris Allegretta | bfc8b2a | 2003-02-08 21:49:13 +0000 | [diff] [blame] | 2487 | - winio.c: |
Chris Allegretta | e9b5c6f | 2003-02-12 23:49:56 +0000 | [diff] [blame] | 2488 | browser_init(), striponedir(), do_browse_from() |
| 2489 | - Various memory leak fixes (David Benbennick). |
Chris Allegretta | b2cd248 | 2003-02-12 23:18:19 +0000 | [diff] [blame] | 2490 | do_yesno(), do_help() |
| 2491 | - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that |
| 2492 | don't understand MEVENT will compile. |
Chris Allegretta | bfc8b2a | 2003-02-08 21:49:13 +0000 | [diff] [blame] | 2493 | nanogetstr() |
| 2494 | - Remove unnecessary reset of x since it is now handled |
| 2495 | elsewhere (David Lawrence Ramsey). |
Chris Allegretta | a90d0cf | 2003-02-10 02:55:03 +0000 | [diff] [blame] | 2496 | statusq() |
| 2497 | - Always blank the statusbar on exit (David Benbennick). |
Chris Allegretta | 5ea694e | 2003-02-04 14:24:54 +0000 | [diff] [blame] | 2498 | - nano.1, nano.1.html: |
| 2499 | - Add initialization file comments, change some options from |
| 2500 | bracketed to underlined to emphasize that they are not |
| 2501 | optional. |
Jordi Mallach | a66a8f7 | 2003-02-09 01:28:40 +0000 | [diff] [blame] | 2502 | - Add SEE ALSO section (Jordi). |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 2503 | - Moved nano.1 color and syntax sections to nanorc, pointed |
| 2504 | nano.1 to nanorc.5 for initialization file. Changed |
| 2505 | nanorc.5 variables to be italics to match nano.1. Added |
| 2506 | nanorc.5.html to CVS tree. |
Jordi Mallach | a66a8f7 | 2003-02-09 01:28:40 +0000 | [diff] [blame] | 2507 | - nanorc.5: |
| 2508 | - Add nanorc manpage, with descriptions of all available commands |
| 2509 | (Jordi). |
Chris Allegretta | a3daf3a | 2003-02-07 00:11:55 +0000 | [diff] [blame] | 2510 | - nanorc.sample: |
| 2511 | - Make nanorc entry less tolerant of invalid colors. |
Chris Allegretta | 97e10b5 | 2003-02-08 22:05:50 +0000 | [diff] [blame] | 2512 | - nano.spec.in: |
| 2513 | - Change default flags to --enable-all. |
Jordi Mallach | 2ddd75e | 2003-02-09 23:51:17 +0000 | [diff] [blame] | 2514 | - THANKS: |
| 2515 | - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi). |
Jordi Mallach | aebfac8 | 2003-02-13 12:50:53 +0000 | [diff] [blame] | 2516 | - UPGRADE: |
| 2517 | - Add upgrading information document for 1.0 users (Jordi). |
Chris Allegretta | cddbfd0 | 2003-02-03 15:29:56 +0000 | [diff] [blame] | 2518 | |
Chris Allegretta | 5c8c276 | 2003-02-03 15:21:27 +0000 | [diff] [blame] | 2519 | GNU nano 1.1.99pre2 - 2003.02.03 |
Jordi Mallach | a577d5a | 2003-02-04 14:13:36 +0000 | [diff] [blame] | 2520 | - General: |
Chris Allegretta | 0e86e60 | 2003-01-23 04:27:23 +0000 | [diff] [blame] | 2521 | - Changed some translatable debug messages to use %s |
| 2522 | instead of the function name, and removed gettext from |
| 2523 | two strings that had no actual words in them that |
| 2524 | should be translated. Suggested originally by |
| 2525 | Christian Rose. |
Chris Allegretta | 9090f2e | 2003-01-26 04:45:05 +0000 | [diff] [blame] | 2526 | - Fix subexpression replacement to work consistently. |
| 2527 | Affects search.c:replace_regexp() and |
| 2528 | utils.c:strstrwrapper() (David Benbennick). |
Chris Allegretta | 47fcfe5 | 2003-01-26 21:01:16 +0000 | [diff] [blame] | 2529 | - Fix cursor position being saved when escaping out |
| 2530 | of nanogetstr with keys like ^Y and ^V. New arg |
| 2531 | resetpos to nanogetstr(), added static int |
| 2532 | resetpos in statusq() (bug found by DLR). |
Chris Allegretta | d26ab91 | 2003-01-28 01:16:47 +0000 | [diff] [blame] | 2533 | - Fix constant curos updates from obliterating other |
| 2534 | system messages, and fix statusbar message length. |
| 2535 | Affects files.c:load_open_file(), nano.c:main(), |
| 2536 | search.c:findnextstr(), winio.c:statusbar() and |
| 2537 | do_cursorpos() (David Benbennick). |
Chris Allegretta | 5d71514 | 2003-01-29 04:18:37 +0000 | [diff] [blame] | 2538 | - Fix nano crashing when searching/replacing an invalid |
| 2539 | regex (try "^*"). Changed regexp_init() to return |
| 2540 | 1 or 0 based on regcomp()'s return value and search_init |
Chris Allegretta | d89eb91 | 2003-02-03 07:07:40 +0000 | [diff] [blame] | 2541 | to exit with an error message (sorry Jordi!). Added |
| 2542 | another check when using last_search instead of answer. |
Chris Allegretta | ce452fb | 2003-02-03 02:56:44 +0000 | [diff] [blame] | 2543 | - Move regcomp into rcfile.c rather than each display refresh |
| 2544 | of winio.c. New function rcfile.c:nregcomp(). |
| 2545 | This fixes much of nano's resource hogging behavior |
| 2546 | in syntax higlighting. (David Benbennick). |
Chris Allegretta | cff6e6f | 2003-02-03 03:22:02 +0000 | [diff] [blame] | 2547 | - Fix justify failing for certain lines, new function |
| 2548 | nano.c:breakable() (David Benbennick). |
Chris Allegretta | a0d8997 | 2003-02-03 03:32:08 +0000 | [diff] [blame] | 2549 | - Fix screen getting trashed on signals nano can catch |
| 2550 | (TERM and HUP). New global variable curses_ended, |
Chris Allegretta | dbfc56c | 2003-02-03 03:33:04 +0000 | [diff] [blame] | 2551 | changes to winio.c:statubar() and nano.c:die() |
| 2552 | (David Benbennick). |
Chris Allegretta | 149781d | 2003-01-26 03:54:00 +0000 | [diff] [blame] | 2553 | - cut.c: |
| 2554 | do_cut_text() |
| 2555 | - Fix incorrect cursor location when cutting long lines |
| 2556 | (David Benbennick). |
Chris Allegretta | 54c1f79 | 2003-01-26 04:11:09 +0000 | [diff] [blame] | 2557 | - files.c: |
Chris Allegretta | 858d9d9 | 2003-01-30 00:53:32 +0000 | [diff] [blame] | 2558 | - Set a default PATH_MAX for getcwd() etc calls (David |
| 2559 | Benbennick). |
| 2560 | do_browse_from() |
| 2561 | - Fix path checking to fix bad paths, escaping |
| 2562 | the operating directory, new function readable_dir() (David |
| 2563 | Benbennick). |
Chris Allegretta | b698c35 | 2003-01-26 22:05:07 +0000 | [diff] [blame] | 2564 | do_browser() |
| 2565 | - Fix incorrect path check for check_operating_dir() |
| 2566 | (David Benbennick). |
Chris Allegretta | f80a59c | 2003-01-30 00:57:33 +0000 | [diff] [blame] | 2567 | - Fix goto directory operating dir check and tilde expansion |
| 2568 | (David Benbennick). |
Chris Allegretta | 0eab236 | 2003-02-03 03:39:05 +0000 | [diff] [blame] | 2569 | - Even more checks and operating dir fixes (David Benbennick). |
Chris Allegretta | 434d686 | 2003-02-03 04:55:17 +0000 | [diff] [blame] | 2570 | do_insertfile() |
| 2571 | - Add some more checks and fix recursion when toggling |
| 2572 | multibuffer (David Benbennick). |
Chris Allegretta | 54c1f79 | 2003-01-26 04:11:09 +0000 | [diff] [blame] | 2573 | open_file() |
| 2574 | - Fix FD leak with file load error (David Benbennick). |
Chris Allegretta | 5c63f27 | 2003-02-02 04:26:54 +0000 | [diff] [blame] | 2575 | add_open_file() |
| 2576 | - Revert the fix for the supposed minor logic error from before; |
| 2577 | it was keeping some updates from happening when they should, |
| 2578 | which was leading to segfaults with both multibuffer and view |
| 2579 | mode on. (DLR; found by David Benbennick) |
Chris Allegretta | 77e726d | 2003-01-26 19:36:08 +0000 | [diff] [blame] | 2580 | save_history() |
| 2581 | - Fix nrealloc return value being ignored (David Benbennick). |
Chris Allegretta | c453357 | 2003-02-03 05:04:09 +0000 | [diff] [blame] | 2582 | - Fix off-by-one bug causing write to unallocated memory |
| 2583 | (David Benbennick). |
Chris Allegretta | ce452fb | 2003-02-03 02:56:44 +0000 | [diff] [blame] | 2584 | - global.c: |
| 2585 | thanks_for_all_the_fish() |
| 2586 | - Fix compiling with DEBUG and multibuffer (David Benbennick). |
Jordi Mallach | eeb5004 | 2003-01-18 22:42:34 +0000 | [diff] [blame] | 2587 | - nano.c: |
Chris Allegretta | a340766 | 2003-01-26 21:13:03 +0000 | [diff] [blame] | 2588 | do_char() |
| 2589 | - Remove unneeded check_statblank() (David Benbennick). |
Chris Allegretta | 64fc78c | 2003-01-26 19:57:44 +0000 | [diff] [blame] | 2590 | do_int_spell_fix(), do_int_speller() |
| 2591 | - Fix crashes with mark position, current_x position, |
| 2592 | and edit_update args (David Benbennick). |
Chris Allegretta | 2a7b8b2 | 2003-01-30 00:42:20 +0000 | [diff] [blame] | 2593 | do_justify() |
| 2594 | - Unset KEEP_CUTBUFFER so nano won't crash with subsequent |
| 2595 | ^K cuts and justifies (David Benbennick). |
Chris Allegretta | e92a7bc | 2003-01-28 01:36:38 +0000 | [diff] [blame] | 2596 | do_mouse() |
| 2597 | - Fix the mouse code to work with lines longer than COLS and |
| 2598 | with the proper positioning, including special characters |
| 2599 | (David Benbennick). |
| 2600 | do_preserve_msg(): |
| 2601 | - Unsplit error message into a single fprintf call (Jordi). |
Chris Allegretta | 3d459ad | 2003-01-22 01:09:40 +0000 | [diff] [blame] | 2602 | main() |
| 2603 | - Call load_file with arg 0 for insert, as we aren't really |
| 2604 | doing an insert, allows new_file() to run if we open a |
| 2605 | non-file at startup. |
| 2606 | usage() |
Jordi Mallach | eeb5004 | 2003-01-18 22:42:34 +0000 | [diff] [blame] | 2607 | - Remove gettext markings from -p/--preserve (Jordi). |
Chris Allegretta | 36fec72 | 2003-01-22 01:13:25 +0000 | [diff] [blame] | 2608 | - Revamp -H option message to fit in 80 column terminal. |
Chris Allegretta | 1a128af | 2003-01-26 04:15:56 +0000 | [diff] [blame] | 2609 | window_init() |
| 2610 | - Fix leaking *WINDOWs (no pun intended) (David Benbennick). |
Chris Allegretta | 1939c35 | 2003-01-26 04:26:25 +0000 | [diff] [blame] | 2611 | - search.c: |
Chris Allegretta | 8a85aa0 | 2003-01-26 20:02:15 +0000 | [diff] [blame] | 2612 | do_search(), do_replace_loop() |
| 2613 | - Fix edit_update call to use CENTER instead of current_x |
| 2614 | (related to David Benbennick's fixes for spelling). |
Chris Allegretta | 1939c35 | 2003-01-26 04:26:25 +0000 | [diff] [blame] | 2615 | do_replace_loop() |
| 2616 | - Fix various bugs having to do with replace string length |
| 2617 | and positioning (David Benbennick). |
Chris Allegretta | 63d0b48 | 2003-01-26 19:47:10 +0000 | [diff] [blame] | 2618 | edit_refresh() |
| 2619 | - Fix cursor being above as well as below the current screen |
| 2620 | (David Benbennick). |
Chris Allegretta | 3bbc416 | 2003-01-23 00:46:12 +0000 | [diff] [blame] | 2621 | - winio.c: |
| 2622 | bottombars() |
| 2623 | - Change strcpy of gettext() "Up" string to strncpy of max |
| 2624 | width 8, to stop stupid strcpy crash. |
Chris Allegretta | db28e96 | 2003-01-28 01:23:40 +0000 | [diff] [blame] | 2625 | do_yesno() |
| 2626 | - Fix mouse interaction bugs with yes/no prompt (David Benbennick). |
Chris Allegretta | f22e8bf | 2003-01-23 01:21:26 +0000 | [diff] [blame] | 2627 | - nanorc.sample: |
| 2628 | - Change comment to say magenta instead of purple. |
| 2629 | |
Chris Allegretta | d46f544 | 2003-01-17 21:47:33 +0000 | [diff] [blame] | 2630 | GNU nano 1.1.99pre1 - 2003.01.17 |
David Lawrence Ramsey | dc60b72 | 2002-10-25 16:08:53 +0000 | [diff] [blame] | 2631 | - General: |
Chris Allegretta | d46f544 | 2003-01-17 21:47:33 +0000 | [diff] [blame] | 2632 | - New date format for NEWS and ChangeLog. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2633 | - Completely removed PICO_MODE, as with the search/replace |
| 2634 | history patch we should have the extended functionality we can |
| 2635 | without being incompatible with Pico. Removed all code for |
| 2636 | different search/replace string editing and alternate shortcut |
| 2637 | list. I'm sure I won't even have to ask for feedback on this |
| 2638 | one :-) |
| 2639 | - Add in Pico's -p flag, (-p, --preserve). To preserve the XON |
| 2640 | and XOFF keys (^Q and ^S). Add warning if we invoke -p and |
| 2641 | add checks for using --preserve (to skip warning) and --pico |
| 2642 | (to force showing it). New flag PRESERVE, function |
| 2643 | do_preserve_msg(), changes to main(), signal_init(). |
| 2644 | - Search history and replace history up/down cursor arrows, |
| 2645 | w/history tab completion, not available w/NANO_SMALL. Changes |
| 2646 | to statusq(), others (Ken Tyler). Added shortcut to |
| 2647 | search/replace shortcuts so people will know it's there, |
| 2648 | forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case |
| 2649 | blame needs to be placed later). Minor fixes by DLR: allow ^P |
| 2650 | and ^N as alternatives to the up and down arrows, make sure |
| 2651 | the "Up" shortcut is displayed properly in the help menu, |
| 2652 | remove a few bits of unneeded and/or warning-generating code, |
| 2653 | and fix some missing statusq() prompts with --enable-tiny. |
Chris Allegretta | f3de8b5 | 2003-01-16 23:44:46 +0000 | [diff] [blame] | 2654 | - Added search/replace history log. Flag -H, --historylog. |
| 2655 | Flags HISTORY_CHANGED and HISTORYLOG (only room for one more |
| 2656 | flag!), added entries in nanorc.sample, new functions |
| 2657 | log_history and save_history (Ken Tyler). |
Jordi Mallach | 5e4b8cf | 2002-10-26 15:02:14 +0000 | [diff] [blame] | 2658 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | dc60b72 | 2002-10-25 16:08:53 +0000 | [diff] [blame] | 2659 | - Forward-ported Chris' --disable-wrapping-as-root option from |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2660 | 1.0.9. Per Jordi's suggestions, have it override |
| 2661 | $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR) |
| 2662 | - Change all references to /etc/nanorc in the documentation to |
| 2663 | $SYSCONFDIR/nanorc. (DLR) |
David Lawrence Ramsey | 99519ae | 2002-11-04 16:12:19 +0000 | [diff] [blame] | 2664 | - Minor cosmetic tweaks to the ngettext() macro, and fix to |
| 2665 | properly detect systems lacking ngettext() and correctly |
| 2666 | compile on them; the previous fix didn't work. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2667 | - Fix problems with some code sections' not being #ifdef'ed out |
| 2668 | when they should be, or being #ifdef'ed out improperly. (David |
| 2669 | Benbennick and DLR) |
| 2670 | - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the |
| 2671 | associated logic accordingly, throughout the code. (David |
| 2672 | Benbennick) |
| 2673 | - Rework #ifdefs to not include mouse_init() at all if |
| 2674 | DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR) |
| 2675 | - For consistency, change many references of (!x) to (x == NULL) |
| 2676 | and (x) to (x != NULL). (DLR) |
| 2677 | - Define KEY_IC properly (and KEY_DC more portably) when slang |
| 2678 | support is enabled, and remove the hack to work around the |
| 2679 | former's not being defined. (David Benbennick and DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2680 | - Miscellaneous tweaks to update_color() calls, to make sure |
| 2681 | they're called at the right times and that refreshes are done |
| 2682 | afterwards only when needed. (David Benbennick) |
| 2683 | - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR) |
| 2684 | - Add the "preserve" option to the nanorc file, to match |
| 2685 | nanorc.sample. (DLR) |
Chris Allegretta | 0e7a3f5 | 2003-01-15 03:06:25 +0000 | [diff] [blame] | 2686 | - Fixed awful scrolling in do_int_speller. Problem was |
| 2687 | findnextstr() calling edit_update(), though screen updating |
| 2688 | is not its business. Added checks in do_search() and |
| 2689 | do_replace_loop() to do the checks. It really should not be |
| 2690 | done here, as some function in winio.c should handle this, |
| 2691 | 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] | 2692 | - Updated all copyright notices to say 2003 rather than 2002, as |
| 2693 | nearly all the source files have been worked on this year |
| 2694 | (DLR). |
Jordi Mallach | 3e5ad63 | 2002-12-14 22:15:35 +0000 | [diff] [blame] | 2695 | - configure.ac: |
Jordi Mallach | a0e829c | 2003-01-15 17:43:59 +0000 | [diff] [blame] | 2696 | - Added tr and eu to ALL_LINGUAS (Jordi). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2697 | - Fix now inaccurate description of --enable-tiny's effects; it |
| 2698 | no longer disables NLS support. (DLR) |
| 2699 | - Fix typo. (David Benbennick) |
| 2700 | - Check for strcasecmp() and strncasecmp(), since they are |
| 2701 | apparently only standard under BSD. (DLR) |
Jordi Mallach | 631ee1f | 2003-01-15 17:40:35 +0000 | [diff] [blame] | 2702 | - Small cleanups. Add copyright header, add autopoint support and |
| 2703 | define bug report address and full package name in AC_INIT. Move |
| 2704 | ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11. |
Chris Allegretta | d957f59 | 2003-01-17 00:17:45 +0000 | [diff] [blame] | 2705 | - Added --enable-all option to compile in all the extra stuff |
| 2706 | we'd normally need extra flags for. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2707 | - color.c: |
| 2708 | update_color(): |
| 2709 | - Remove an unneeded edit_refresh() call after do_colorinit(). |
| 2710 | (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2711 | - cut.c: |
| 2712 | do_cut_text() |
| 2713 | - Fix a memory corruption problem caused by accessing edittop |
| 2714 | after it was freed but before it was reset to a sane value |
| 2715 | from current. (David Benbennick) |
| 2716 | do_uncut_text() |
| 2717 | - If uncutting more than one line of unmarked text at editbot, |
| 2718 | don't center the screen, since Pico doesn't. (DLR) |
Chris Allegretta | 688c8eb | 2003-01-14 23:36:11 +0000 | [diff] [blame] | 2719 | - If uncutting previously unmarked text, uncut to end if we're |
| 2720 | not at the beginning of the line, and set placewewant to 0 if |
| 2721 | we are. This matches Pico's behavior. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2722 | - files.c: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2723 | load_file() |
| 2724 | - Remove unneeded wmove() call. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2725 | read_line() |
| 2726 | - Miscellaneous cleanups. (David Benbennick) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2727 | open_file() |
| 2728 | - If we're in multibuffer mode and there's an error opening the |
| 2729 | file in read-only mode, display the error message on the |
| 2730 | statusbar regardless of the value of quiet. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2731 | read_file() |
| 2732 | - Miscellaneous cleanups. (David Benbennick) |
| 2733 | - Fix len's being off by one when reading in Mac-format files, |
| 2734 | exposed by one of David Benbennick's cleanups. (DLR) |
| 2735 | - If NO_CONVERT isn't set when we first enter, and it gets set |
| 2736 | while reading in the file, unset it again afterwards. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2737 | do_insertfile() |
| 2738 | - If we're in multibuffer mode and there's an error opening the |
| 2739 | file that we're trying to insert, close the new buffer that we |
| 2740 | made to hold it and reload the buffer we had open before. |
| 2741 | (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2742 | add_open_file() |
| 2743 | - Fix minor logic error when determining when to resave fileage |
| 2744 | and filebot. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2745 | load_open_file() |
| 2746 | - If switching between files when CONSTUPDATE is set, only force |
| 2747 | a cursor position display update if DISABLE_CURPOS isn't set. |
| 2748 | This will ensure that the "Switching to [file]" messages are |
| 2749 | shown. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2750 | write_file() |
| 2751 | - Change lineswritten from a long to an int, to match |
| 2752 | filestruct->lineno. (DLR; mismatch found by David Benbennick) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2753 | real_dir_from_tilde() |
| 2754 | - Since this is needed for proper interpretation of paths |
| 2755 | containing tildes and not just for tab completion, include and |
| 2756 | use it regardless of whether tab completion is disabled. |
| 2757 | (David Benbennick and DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2758 | input_tab() |
| 2759 | - Variable name change: matchBuf -> matchbuf. (DLR) |
| 2760 | diralphasort() |
| 2761 | - Remove the HAVE_STRCASECMP #ifdef block; see the changes to |
| 2762 | configure.ac and nano.h for why. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2763 | - global.c: |
| 2764 | thanks_for_all_the_fish() |
| 2765 | - Miscellaneous cleanups. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2766 | - move.c: |
| 2767 | do_page_down() |
| 2768 | - If there's a page or less of text, do an edit_update() if the |
| 2769 | mark is on; otherwise, the highlight won't be displayed. (DLR) |
David Lawrence Ramsey | 9e050ad | 2002-11-04 16:18:52 +0000 | [diff] [blame] | 2770 | - nano.c: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2771 | - Added free_history() list calls clean up, added init of list |
| 2772 | headers, and modified statusq() calls (Ken Tyler). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2773 | do_prev_word() |
| 2774 | - Make the assert match that in do_next_word(). (DLR) |
| 2775 | do_enter() |
| 2776 | - If smooth scrolling is on, and Enter is pressed on the |
| 2777 | magicline, don't center the screen. (DLR) |
| 2778 | do_justify() |
| 2779 | - Fix memory corruption problem triggered when edittop and |
| 2780 | current->next pointed to the same value and current->next was |
| 2781 | destroyed during justification. (DLR) |
| 2782 | - Center the screen when justification moves the cursor entirely |
| 2783 | off the bottom of the screen, instead of when it moves the |
| 2784 | cursor near the bottom of the screen, to more closely match |
| 2785 | Pico's behavior. (DLR) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2786 | version() |
| 2787 | - Remove obsolete reference to --enable-undo. (David Benbennick) |
Chris Allegretta | e660037 | 2003-01-17 03:39:41 +0000 | [diff] [blame] | 2788 | - Move up check for --disable-nls as it's independent of |
| 2789 | --enable-tiny now (DLR). |
Chris Allegretta | 5ad92ac | 2002-12-09 00:58:51 +0000 | [diff] [blame] | 2790 | do_int_speller() |
Chris Allegretta | 5af5889 | 2003-01-17 21:07:38 +0000 | [diff] [blame] | 2791 | - Make internal spell program use sort -f and uniq to create a |
| 2792 | less redundant word list. [The only reason this is going in |
| 2793 | during feature freeze is because the int speller is useless as |
| 2794 | is and should either be improved or removed. I chose |
| 2795 | improved]. |
Chris Allegretta | 3f1b685 | 2003-01-12 23:54:05 +0000 | [diff] [blame] | 2796 | - Change all child error checks to use one goto (gasp!) called |
| 2797 | close_pipes_and_exit, so we don't leak FDs. |
Chris Allegretta | 2d5fc3a | 2003-01-16 03:11:23 +0000 | [diff] [blame] | 2798 | - Fix FD leaks which occur outside of errors (David Benbennick). |
Chris Allegretta | 334a940 | 2002-12-16 04:25:53 +0000 | [diff] [blame] | 2799 | do_int_speller(), do_alt_speller() |
| 2800 | - Programs now return char *, NULL for successful completion, |
| 2801 | otherwise the error string to display. This allows us to give |
| 2802 | more useful feedback to the user when spell checking fails. |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2803 | ABCD() |
| 2804 | - Renamed abcd(). (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2805 | main() |
| 2806 | - Remove an unneeded do_colorinit() call, do major cleanups, and |
| 2807 | allow loading of multiple files on the command line when |
| 2808 | multibuffers are used. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2809 | - nano.h: |
| 2810 | - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same |
| 2811 | value. (DLR; discovered by Ken Tyler) |
| 2812 | - If strcasecmp() and/or strncasecmp() aren't available, use |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2813 | strcmp() and/or strncmp() instead. (DLR) |
| 2814 | - proto.h: |
| 2815 | - Fix the #ifdef block for DISABLE_TABCOMP's being undefined |
| 2816 | so that functions only used with tab completion are properly |
| 2817 | #ifdef'ed out. (DLR) |
| 2818 | - search.c: |
Chris Allegretta | 2ad0f6c | 2003-01-16 03:51:02 +0000 | [diff] [blame] | 2819 | do_gotoline() |
| 2820 | - Don't call blank_statusbar_refresh() so if there's an error |
| 2821 | returned in multibuffer mode, we can actually see it. |
Chris Allegretta | 688c8eb | 2003-01-14 23:36:11 +0000 | [diff] [blame] | 2822 | do_search() |
| 2823 | - Remove erroneously introduced near-duplicate call to |
| 2824 | update_history(). (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2825 | print_replaced() |
| 2826 | - Remove and replace with an equivalent ngettext() call. (DLR) |
| 2827 | do_replace_loop() |
| 2828 | - Fix bug where if text on the magicline was replaced (which can |
| 2829 | be done via a regexp replace of "^$" with something other than |
| 2830 | ""), a new magicline wouldn't be created. (DLR) |
Chris Allegretta | ca7113a | 2003-01-14 23:35:24 +0000 | [diff] [blame] | 2831 | - Remove check for answer being a blank string, presumed to be |
| 2832 | a PICO_MODE holdover, but it stops us from doing a blank |
| 2833 | spelling replacement. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2834 | do_replace() |
| 2835 | - For greater Pico compatibility, when an attempt to replace a |
| 2836 | string results in 0 replacements due to the string's not being |
| 2837 | found, display "[string] not found" instead of "Replaced 0 |
| 2838 | occurrences". (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2839 | - utils.c: |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 2840 | is_cntrl_char() |
| 2841 | - Rework to fix a problem with displaying certain high-bit |
| 2842 | characters. (David Benbennick; reported by Andrzej Marecki) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2843 | align() |
| 2844 | - Don't just assert that the string passed in isn't NULL; check |
| 2845 | that it isn't and only do the alignment when it isn't. (David |
| 2846 | Benbennick) |
| 2847 | nmalloc(), nrealloc() |
| 2848 | - If the size passed to nmalloc() or nrealloc() is zero, don't |
| 2849 | die with an erroneous out-of-memory error. Also, change |
| 2850 | their dying messages to "nano is out of memory!". (David |
| 2851 | Benbennick) |
| 2852 | charalloc() |
| 2853 | - Removed and redefined as a macro that calls nmalloc(). (David |
| 2854 | Benbennick) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2855 | - winio.c: |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 2856 | nanogetstr() |
| 2857 | - Tweak to make the cursor stay in the same place if we hit a |
| 2858 | prompt-changing toggle while it's in the middle of the string. |
Chris Allegretta | 5af5889 | 2003-01-17 21:07:38 +0000 | [diff] [blame] | 2859 | Reset it to -1 (so next time we come here, it'll be set to the |
| 2860 | 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] | 2861 | Also fix minor problem with search history where the current |
| 2862 | search item could be at the bottom of the history twice in a |
| 2863 | row under certain conditions. (DLR) |
Chris Allegretta | 327abda | 2003-01-17 05:04:17 +0000 | [diff] [blame] | 2864 | - Remove parens in NANO_CONTROL_I check so nano won't complain if |
| 2865 | just NANO_SMALL is defined (David Benbennick). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 2866 | edit_refresh() |
| 2867 | - Miscellaneous cleanups that fix a bug where the screen |
| 2868 | isn't updated after uncutting chunks of upwardly marked cut |
| 2869 | text that are over a page in length. (David Benbennick) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2870 | do_credits() |
| 2871 | - Add David Benbennick to credits. (DLR) |
| 2872 | - nanorc.sample: |
| 2873 | - Added comment to explain the non-escaping of quotes in |
| 2874 | color regexes, based on info provided by David Benbennick. |
| 2875 | (DLR) |
Chris Allegretta | ed4fb2c | 2003-01-11 01:14:07 +0000 | [diff] [blame] | 2876 | - Added some examples for groff and the nanorc courtesy of |
| 2877 | Robert D. Goulding. |
| 2878 | - Added double hash marks to comment lines, so people who |
| 2879 | uncomment the beginning of every line won't get syntax errors. |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2880 | - faq.html: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 2881 | - Miscellaneous fixes and updates for typos, broken links, and |
| 2882 | slashes at the end of directories. It is now fully compliant |
| 2883 | with HTML 4.01 Transitional. (DLR and David Benbennick) |
Chris Allegretta | 3f8a63c | 2003-01-17 02:49:23 +0000 | [diff] [blame] | 2884 | - Added docs about the new unified search string interface and |
| 2885 | search histories, and added --enable-all into configure docs. |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 2886 | - nano.texi: |
| 2887 | - Typo fixes and updates. (David Benbennick) |
Chris Allegretta | 9fa5fbd | 2003-01-13 02:56:29 +0000 | [diff] [blame] | 2888 | - Updates for the most recent and not so recent changes. |
Chris Allegretta | f9ab3f7 | 2003-01-17 03:06:28 +0000 | [diff] [blame] | 2889 | - nano.1, nano.1.html |
| 2890 | - Updated for the --preserve and --historylog options. |
Chris Allegretta | 916a8ec | 2003-01-05 21:51:16 +0000 | [diff] [blame] | 2891 | - TODO |
| 2892 | - Added some wishlist stuff. |
Jordi Mallach | 3e5ad63 | 2002-12-14 22:15:35 +0000 | [diff] [blame] | 2893 | - THANKS: |
Jordi Mallach | a0e829c | 2003-01-15 17:43:59 +0000 | [diff] [blame] | 2894 | - Added Doruk Fisek and Peio Ziarsolo (Jordi). |
Chris Allegretta | e8ad5ed | 2002-10-25 03:15:48 +0000 | [diff] [blame] | 2895 | |
Chris Allegretta | 2257893 | 2002-10-25 03:14:11 +0000 | [diff] [blame] | 2896 | GNU nano 1.1.12 - 10/24/2002 |
Jordi Mallach | dab0299 | 2002-10-06 23:35:19 +0000 | [diff] [blame] | 2897 | - General: |
| 2898 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 1dd0bc9 | 2002-10-13 18:43:45 +0000 | [diff] [blame] | 2899 | - 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] | 2900 | *BSD systems. Added stdlib.h to global.c. |
Chris Allegretta | 1dd0bc9 | 2002-10-13 18:43:45 +0000 | [diff] [blame] | 2901 | - Added Meta-Y toggle to disable/enable color syntax highlighting |
| 2902 | completely. This may eventually be per-buffer, but that's too |
| 2903 | complicated for a feature freeze. |
Chris Allegretta | e42df73 | 2002-10-15 00:27:55 +0000 | [diff] [blame] | 2904 | - Disable VSTOP keystroke. Stops people accidentally locking up |
| 2905 | nano (suggested by David Benbennick). |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 2906 | - Pluralize messages with ngettext() where needed. (David |
Chris Allegretta | d45c599 | 2002-10-25 01:41:31 +0000 | [diff] [blame] | 2907 | Benbennick) Tweaked to compile on systems lacking ngettext() |
| 2908 | by DLR (problem found by Ken Tyler). |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 2909 | - Update nano.1 and nano.1.html to show that nano now does an |
| 2910 | emergency save on receiving SIGHUP or SIGTERM. (DLR) |
| 2911 | - Don't include "nowrap" in the long options if |
| 2912 | DISABLE_WRAPPING is defined. (DLR) |
| 2913 | - files.c: |
| 2914 | read_file() |
| 2915 | - Minor efficiency fixes, some of which fit in with the change |
| 2916 | to ngettext() usage mentioned above. (David Benbennick) |
| 2917 | do_browser() |
| 2918 | - Make sure the value of path is mallocstrcpy()ed into retval |
| 2919 | and not just assigned to it, to avoid memory corruption |
| 2920 | problems. (DLR) |
| 2921 | - nano.c: |
Chris Allegretta | 2a15c58 | 2002-10-25 01:51:13 +0000 | [diff] [blame] | 2922 | version() |
| 2923 | - If ENABLE_NLS isn't defined, display "--disable-nls" |
| 2924 | (suggested by Ken Tyler). (DLR) |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 2925 | justify_format() |
| 2926 | - Make sure the double space maintained after sentence-ending |
| 2927 | punctuation is done when that punctuation is immediately |
| 2928 | followed by a bracket-type character, so justifying e.g. |
| 2929 | sentences in parentheses works properly. (David Benbennick) |
| 2930 | handle_hup() |
| 2931 | - Renamed handle_hupterm() to show that it now handles SIGTERM |
| 2932 | as well as SIGHUP. (DLR) |
| 2933 | signal_init() |
| 2934 | - Do an emergency save on receiving either SIGHUP or SIGTERM, |
| 2935 | not just SIGHUP. (David Benbennick) |
| 2936 | main() |
| 2937 | - Fix a problem where control key commands were printed |
| 2938 | literally instead of interpreted after a failed search of a |
| 2939 | one-line file. (David Benbennick) |
| 2940 | - proto.h: |
| 2941 | handle_hup() |
| 2942 | - Renamed handle_hupterm(); see above for why. (DLR) |
| 2943 | - winio.c: |
| 2944 | edit_add() |
| 2945 | - Fix a potential infinite loop occurring with certain |
| 2946 | zero-length regexes. (David Benbennick) |
Chris Allegretta | 71fb1f5 | 2002-10-02 00:21:31 +0000 | [diff] [blame] | 2947 | |
Chris Allegretta | 136a38a | 2002-10-02 00:05:40 +0000 | [diff] [blame] | 2948 | GNU nano 1.1.11 - 10/01/2002 |
Jordi Mallach | 25daa05 | 2002-07-29 00:16:38 +0000 | [diff] [blame] | 2949 | - General: |
| 2950 | - Translation updates (see po/ChangeLog for details). |
Jordi Mallach | 1f1022f | 2002-08-21 18:19:53 +0000 | [diff] [blame] | 2951 | - Upgraded to gettext 0.11.5 (Jordi). |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2952 | - Updated nano.1, nano.1.html, and nano.texi to fix an |
| 2953 | inaccuracy in the description of -Q/--quotestr. (DLR) |
| 2954 | - Set REG_EXTENDED in all regcomp() calls. (DLR) |
| 2955 | - Minor cosmetic code cleanups. (DLR) |
Chris Allegretta | f7c6811 | 2002-09-03 22:58:40 +0000 | [diff] [blame] | 2956 | - Changed do_insertfile to (a) report multibuffer status at the |
| 2957 | prompt and allowing it to be toggled, taking into account the |
| 2958 | need to keep the translatable strings, and (b) added a |
| 2959 | variable inspath to keep track of what the string was before |
| 2960 | toggling. I'm sure there's bugs, have at it. |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2961 | - Make sure all functions have prototypes in proto.h, and swap |
| 2962 | some functions around to put similar functions closer |
| 2963 | together (for this, rename clear_bottombars() to |
| 2964 | blank_bottombars()). (DLR; suggested by David Benbennick) |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2965 | - More changes of char *'s to const char *'s when possible. |
| 2966 | (David Benbennick) |
| 2967 | - Fix various minor memory leaks in files.c. (David Benbennick) |
| 2968 | - Fix minor problems with the operating directory code: set the |
| 2969 | operating directory properly if it's specified only in a |
| 2970 | nanorc file, and handle an operating directory of "/" |
| 2971 | properly. New function init_operating_dir() to handle |
| 2972 | setting it both on the command line and in the nanorc file. |
| 2973 | (David Benbennick) |
David Lawrence Ramsey | 1f28b8f | 2002-09-27 14:21:59 +0000 | [diff] [blame] | 2974 | - Major rewrite of color and screen update routines to fix |
| 2975 | minor bugs and increase efficiency. New function |
| 2976 | set_colorpairs() for the former. (David Benbennick) |
Jordi Mallach | cb7c8d8 | 2002-07-27 02:49:46 +0000 | [diff] [blame] | 2977 | - configure.ac: |
| 2978 | - Added pt_BR to ALL_LINGUAS (Jordi). |
Chris Allegretta | 82559b3 | 2002-08-22 01:12:41 +0000 | [diff] [blame] | 2979 | - Changed --enable-color warning to be slightly less severe. |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2980 | - Put the configure options in more or less alphabetical order, |
| 2981 | and remove --enable-undo, since it doesn't do anything. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2982 | - files.c: |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2983 | open_file() |
| 2984 | - String change: "File "x" is a directory" -> ""x" is a |
| 2985 | directory". (Jordi) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 2986 | do_insertfile() |
| 2987 | - Disallow multibuffer toggling at the "Insert File" prompt if |
| 2988 | we're in both view and multibuffer mode, so as to keep proper |
| 2989 | integration between the two, and make sure the toggle |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 2990 | actually works all the time otherwise. Also, make sure |
| 2991 | TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and |
| 2992 | ENABLE_MULTIBUFFER are both defined. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 2993 | open_prevfile_void(), open_nextfile_void() |
| 2994 | - Return the return values of open_prevfile() and |
| 2995 | open_nextfile(), respectively, instead of (incorrectly) |
| 2996 | calling them and returning 0. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 2997 | real_dir_from_tilde() |
| 2998 | - Rework to use getpwent() exclusively and end reliance on |
| 2999 | $HOME. Adapted from equivalent code in do_rcfile(). (DLR) |
| 3000 | input_tab() |
| 3001 | - Most likely fixed the check marked with FIXME, so that tab |
| 3002 | completion works properly when we're trying to tab-complete a |
| 3003 | username and the string already contains data. (DLR) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3004 | - global.c: |
| 3005 | shortcut_init() |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3006 | - Disable the new multibuffer toggle at the file insertion |
| 3007 | prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both |
| 3008 | defined. (DLR) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3009 | thanks_for_all_the_fish() |
| 3010 | - Make sure the reference to help_text is #ifdefed out when |
| 3011 | --disable-help is used. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3012 | - move.c: |
| 3013 | page_up() |
| 3014 | - Fix bug where current is moved up two lines when the up arrow |
| 3015 | is pressed on the top line of the edit window; this causes a |
| 3016 | segfault is the top line in the edit window is the second |
| 3017 | 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] | 3018 | exist. (Jeff DeFouw) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3019 | do_down() |
| 3020 | - Fix bug where, if the last line in the edit window is the |
| 3021 | line before the magicline, and smooth scrolling is turned |
| 3022 | off, pressing the down arrow on that last line centers the |
| 3023 | cursor without updating the edit window. (Jeff DeFouw) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3024 | - nano.c: |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3025 | version() |
| 3026 | - Put the listed configure options in more or less alphabetical |
| 3027 | order. (DLR) |
| 3028 | open_pipe() |
| 3029 | - If we're in view mode here (in which case we're also in |
| 3030 | multibuffer mode), don't set the modification flag. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3031 | do_next_word(), do_prev_word() |
| 3032 | - If we're on the last/first line of the file, don't center the |
| 3033 | screen; Pico doesn't in the former case. (DLR) |
| 3034 | do_backspace() |
| 3035 | - Rework to call edit_refresh() regardless of the value of |
| 3036 | current_x if ENABLE_COLOR is defined, so that multiple-line |
| 3037 | color regexes are properly updated onscreen as they are in |
| 3038 | do_delete(). (DLR) |
| 3039 | do_delete() |
| 3040 | - Rework to only call edit_refresh() unconditionally if |
| 3041 | ENABLE_COLOR is defined; if it isn't, and we're not deleting |
| 3042 | the end of the line, only call update_line(). (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3043 | do_wrap() |
| 3044 | - Make sure wrapping is done properly when the number of |
| 3045 | characters on the line is exactly one over the limit. (David |
| 3046 | Benbennick) |
Chris Allegretta | 0ae5c72 | 2002-09-19 23:20:26 +0000 | [diff] [blame] | 3047 | - Restore the previous wrapping point behavior (pre 1.1.10) |
Chris Allegretta | 4300092 | 2002-09-21 15:41:33 +0000 | [diff] [blame] | 3048 | (David Benbennick). Minor fix by DLR to prevent spaces from |
| 3049 | being added to the ends of lines ending in spaces or lines |
| 3050 | ending in tabs (the latter case found by David Benbennick). |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3051 | do_alt_speller() |
| 3052 | - Readd DLR's fix to preserve marking when using the alternate |
| 3053 | spell checker; it was accidentally dropped. (David |
| 3054 | Benbennick) |
| 3055 | do_justify() |
| 3056 | - Fix cosmetic problems caused when justifying on the |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3057 | magicline, and a minor problem where the cursor would |
| 3058 | sometimes be moved to the wrong line after justification. |
| 3059 | (David Benbennick) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3060 | main() |
| 3061 | - When searching through the main shortcut list looking for a |
| 3062 | shortcut key, stop searching after finding one; this avoids a |
| 3063 | rare segfault. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3064 | - nano.h: |
| 3065 | - Change search toggles for case sensitive searching and regexp |
| 3066 | searching to M-C and M-R, respectively. (DLR; suggested by |
| 3067 | Chris) |
Chris Allegretta | 515ba32 | 2002-09-14 21:16:40 +0000 | [diff] [blame] | 3068 | - Add support for HP-UX's curses, which doesn't seem to support |
| 3069 | KEY_HOME and KEY_END. |
Chris Allegretta | 79cdfdc | 2002-08-22 02:58:55 +0000 | [diff] [blame] | 3070 | - nanorc.sample: |
| 3071 | - Fix the c-file regex for all caps words to be extended regex |
| 3072 | format ({} instead of \{\}) (found by DLR). |
Chris Allegretta | 3f9c3bf | 2002-09-18 00:00:12 +0000 | [diff] [blame] | 3073 | - Add a better string matching sequence that includes escaped |
| 3074 | 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] | 3075 | helped ;-). Some unneeded \'s in that sequence removed, and |
| 3076 | a new sequence to handle multi-line quotes added, by David |
| 3077 | Benbennick. |
Chris Allegretta | 136a38a | 2002-10-02 00:05:40 +0000 | [diff] [blame] | 3078 | - Add some examples for HTML and TeX files (David Benbennick). |
Chris Allegretta | de85262 | 2002-09-18 00:28:57 +0000 | [diff] [blame] | 3079 | - rcfile.c: |
| 3080 | parse_colors() |
| 3081 | - Stop infinite loop when syntax doesn't begin with " char. |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3082 | - utils.c: |
| 3083 | charalloc() |
| 3084 | - Switch from using calloc() to using malloc(). (David |
| 3085 | Benbennick) |
David Lawrence Ramsey | 605165e | 2002-09-11 01:48:14 +0000 | [diff] [blame] | 3086 | - faq.html: |
| 3087 | - Typo fix. (DLR) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3088 | - AUTHORS: |
| 3089 | - Add David Benbennick. (Jordi and Chris) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3090 | - TODO: |
| 3091 | - Add entry in the 1.4 section for Pico's paragraph searching |
| 3092 | ability (at the search prompt, ^W goes to the paragraph's |
| 3093 | beginning, and ^O goes to the paragraph's end). (DLR) |
Chris Allegretta | 52069c6 | 2002-07-25 22:27:50 +0000 | [diff] [blame] | 3094 | |
Chris Allegretta | 720a9e0 | 2002-07-25 22:26:33 +0000 | [diff] [blame] | 3095 | GNU nano 1.1.10 - 07/25/2002 |
Jordi Mallach | cb7c8d8 | 2002-07-27 02:49:46 +0000 | [diff] [blame] | 3096 | - General: |
Jordi Mallach | 1f22687 | 2002-05-13 15:05:38 +0000 | [diff] [blame] | 3097 | - Translation updates (see po/ChangeLog for details). |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 3098 | - Upgraded to gettext 0.11.2 (Jordi). |
Jordi Mallach | bd33865 | 2002-06-03 12:32:28 +0000 | [diff] [blame] | 3099 | Removed intl/ entirely, and a few more tweaks by gettextize. |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3100 | - i18nized a few strings used in DEBUG mode. (DLR) |
| 3101 | - Some chars being assigned 0 are now assigned '\0'. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 3102 | - Put header file #includes in a more consistent order. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3103 | - Remove some unneeded blank lines and spaces, and make some |
| 3104 | spacing more consistent. (DLR) |
| 3105 | - When possible, use iscntrl() to determine whether a character |
| 3106 | is a control character or not. (DLR) |
| 3107 | - Miscellaneous typo fixes. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 3108 | - Many fixes to the help browser and shortcut lists: efficiency |
| 3109 | updates, consistency fixes, help text fixes and improvements, |
| 3110 | and spacing improvements. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3111 | - Make some functions use const variables when possible, and |
| 3112 | also make them static when necessary. (David Benbennick, |
| 3113 | necessary redefined by Chris ;-) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3114 | - Add Carl Drinkwater's backup file option (-B or --backup on the |
| 3115 | command line, M-B in nano's global shortcuts). If the original |
| 3116 | file is unchanged from when it was loaded, it is backed up to |
| 3117 | filename~; if the original file has been changed or deleted |
| 3118 | since it was originally loaded, it isn't backed up. The backup |
| 3119 | file retains the permissions, owner/group, and |
| 3120 | access/modification times of the original file. This option is |
| 3121 | disabled when --enable-tiny is used. It will not back up |
| 3122 | temporary files. Minor fixes to it by David Benbennick and |
| 3123 | DLR. Changes to open_file(), add_open_file(), |
| 3124 | load_open_file(), write_file(), and do_writeout(). |
| 3125 | - Add \n's to the ends of "filename is %s" debugging strings. |
| 3126 | (Carl Drinkwater) |
| 3127 | - Add the long option --quotestr as an alternative for -Q, and |
| 3128 | --regexp as an alternative for -R; they were listed in nano's |
| 3129 | usage information, but weren't actually in nano. Also, display |
| 3130 | "-?" as an alternative for "-h" in nano's usage information, |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3131 | 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] | 3132 | alphabetical) order in nano, put the long options in a more |
| 3133 | consistent order in rcfile.c and nanorc.sample, don't include |
| 3134 | rcfile options if their equivalent command line options are |
| 3135 | disabled, and remove obsolete relative option from |
| 3136 | nanorc.sample. (DLR) |
| 3137 | - Change "File Name to Append/Prepend" to "File Name to |
| 3138 | Append/Prepend to". The original prompt could confusingly |
| 3139 | imply that we are appending/prepending another file to the |
| 3140 | current file, when we are actually appending/prepending the |
| 3141 | current file to another file. (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3142 | - Put nano.1, nano.1.html, and nano.texi up to date, and fix a |
| 3143 | few inconsistencies in them. (DLR) |
| 3144 | - Typo fixes for the ChangeLog. (David Benbennick and DLR) |
| 3145 | - Complete rewrite of justification code to fix some bugs and |
| 3146 | improve its functionality. (David Benbennick) |
| 3147 | - If a variable isn't going to be used in tiny mode, #define it |
| 3148 | out when possible. (David Benbennick) |
| 3149 | - Major reworking of the cutting/screen-updating code in cut.c, |
| 3150 | some functions in utils.c, the cursor placement code in |
| 3151 | winio.c, and many, many other areas to increase efficiency. |
| 3152 | (David Benbennick) |
| 3153 | - Rework handling of prompts when there's a list of partial |
| 3154 | filename matches on the screen: remove kludgy case-by-case |
| 3155 | handling (which didn't even handle every case), and have |
| 3156 | statusq() handle it directly for all cases. (David Benbennick |
| 3157 | and DLR) |
| 3158 | - Fix some warnings and errors that show up when using gcc's |
| 3159 | -pedantic option. (DLR) |
| 3160 | - Add a comment to nanorc.sample warning that an out-of-range |
| 3161 | negative value for fill can make nano die complaining that |
| 3162 | the screen is too small (which may not be immediately |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3163 | obvious). (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3164 | - There were some opendir() calls in files.c without |
| 3165 | corresponding closedir() calls; add them. (DLR) |
| 3166 | - Move align() and null_at() from nano.c to utils.c, and move |
| 3167 | the openfilestruct handling functions from nano.c to files.c. |
| 3168 | (DLR) |
| 3169 | - In color.c, start the "#ifdef ENABLE_COLOR" block after |
| 3170 | including all the header files, as rcfile.c does; this fixes |
| 3171 | a warning about ANSI C'S inability to handle blank files. |
| 3172 | (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 3173 | - Add new function is_cntrl_char() as a wrapper for iscntrl(); |
| 3174 | this is needed to treat ASCII 0x80-0x9f as control characters |
| 3175 | consistently. (Without this, they will only be treated as |
| 3176 | such when gettext is used; when it isn't used, they will be |
| 3177 | printed as-is and be interpreted as commands by xterm, which |
| 3178 | will corrupt the display.) (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3179 | - Add command line option -I/--ignorercfiles to ignore |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3180 | $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to |
| 3181 | parsing getopt args (DLR). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3182 | - Fix minor bugs with importing certain text files in Mac |
| 3183 | format. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3184 | - files.c: |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3185 | append_slash_if_dir(), input_tab() |
| 3186 | - Changed variable names: lastWasTab -> lastwastab, matchBuf -> |
| 3187 | matchbuf. (DLR) |
| 3188 | check_operating_dir() |
| 3189 | - Memory leak fix. (David Benbennick) |
| 3190 | check_writable_directory() |
| 3191 | - Optimizations (David Benbennick). |
| 3192 | cwd_tab_completion() |
| 3193 | - Changed a variable name: dirName -> dirname. (DLR) |
| 3194 | do_browser() |
| 3195 | - Optimizations and mouse selection fixes (David Benbennick). |
| 3196 | do_writeout() |
| 3197 | - Fix problem with formatstr's being defined as NULL when |
| 3198 | --enable-tiny is used. Since formatstr isn't ever used in tiny |
| 3199 | mode, don't bother even creating the variable. (David |
| 3200 | Benbennick and DLR) |
| 3201 | do_insertfile() |
| 3202 | - Memory leak fix (accidentally dropped 1st time). |
| 3203 | (David Benbennick). |
| 3204 | get_full_path() |
| 3205 | - Memory leak fix. Also, make it properly interpret ~/ notation |
| 3206 | so, among other things, the option "--operatingdir ~" works. |
| 3207 | (David Benbennick) |
| 3208 | - More optimizations (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3209 | new_file() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3210 | - Make sure current_x is zero; this fixes a problem where the |
| 3211 | current cursor position wasn't reset when reading in a file in |
| 3212 | multibuffer mode. (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3213 | - Use make_new_node rather than setting up fileage by hand |
| 3214 | (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3215 | read_file(), read_line() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3216 | - Rework to properly handle nulls in the input file, fix |
| 3217 | detection of binary files to properly mark a file as binary if |
| 3218 | the only binary characters it contains are ASCII 127's, and |
| 3219 | after reading the last line of a file that doesn't end in a |
| 3220 | newline, increment totsize. Remove previous kludge to set |
| 3221 | totsize properly. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3222 | write_file() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3223 | - Rework to properly handle nulls in the input file. When |
| 3224 | appending/prepending, don't change the current file's name to |
| 3225 | the name of the file it's being appended/prepended to. When |
| 3226 | writing a marked selection to a file, save and restore totsize |
| 3227 | so it isn't decreased by the size of the selection afterward. |
| 3228 | (DLR) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3229 | - Optimizations (David Benbennick). |
Chris Allegretta | 6fe98d7 | 2002-05-16 23:30:14 +0000 | [diff] [blame] | 3230 | - global.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3231 | free_toggles() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3232 | - Only include if we're not using tiny mode. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3233 | toggle_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3234 | - Remove global entries for search toggles, as they aren't really |
| 3235 | global. (DLR) |
| 3236 | - Don't reinititialize the toggles if they've already been |
| 3237 | initialized; it's unnecessary and even causes a segfault in |
| 3238 | do_toggle() if Pico emulation mode is the toggle in question. |
| 3239 | Don't free the toggles here, either; it's unnecessary after the |
| 3240 | above change. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3241 | - If wrapping is disabled, don't include the toggle for it. |
| 3242 | (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3243 | shortcut_init() |
Chris Allegretta | 6fe98d7 | 2002-05-16 23:30:14 +0000 | [diff] [blame] | 3244 | - Rework IFHELP macro (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3245 | - move.c |
| 3246 | page_down(), page_up() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3247 | - Put sanity checks for current_x back in, to avoid rare |
| 3248 | segfaults (oops). Now, however, they are only called when |
| 3249 | placewewant is zero instead of being called unconditionally; |
| 3250 | see changes to winio.c:actual_x_from_start() below. (DLR) |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 3251 | - nanorc.sample: |
Chris Allegretta | 5c6379d | 2002-05-18 03:13:03 +0000 | [diff] [blame] | 3252 | - Put in much less crappy example regex rules for c-file. |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3253 | - nano.c: |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3254 | clear_filename() |
| 3255 | - Remove this function, as it has unneeded functionality, is |
| 3256 | short enough to be inlined, and is only called in two spots |
| 3257 | anyway. (DLR) |
| 3258 | die() |
| 3259 | - Rework slightly to remove redundant printing of last message |
| 3260 | and print all messages after resetting the terminal. (DLR) |
| 3261 | do_backspace() |
| 3262 | - Make sure placewewant is set properly, and that the mark is |
| 3263 | moved backwards. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3264 | do_char() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3265 | - Fix a problem where, if ENABLE_COLOR wasn't used, typing |
| 3266 | characters on a marked line before the beginning of the mark |
| 3267 | would make the highlight short by one. (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3268 | do_cont() |
| 3269 | - Handle the case where the window was resized while we were |
| 3270 | stopped. (David Benbennick) |
| 3271 | do_delete() |
| 3272 | - Make sure placewewant is set properly, to match Pico's |
| 3273 | behavior. (DLR) |
| 3274 | do_int_spell(), do_alt_spell() |
| 3275 | - Rework to save the marked selection before doing spell checking |
| 3276 | and restore it afterward. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3277 | do_next_word(), do_prev_word() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3278 | - Fix a problem where highlighting isn't done properly after |
| 3279 | calling either of these, and another problem where the cursor |
| 3280 | would move back too far in certain cases with do_prev_word(). |
| 3281 | (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3282 | do_toggle() |
| 3283 | - Since the search mode toggles aren't global anymore, we don't |
| 3284 | need to explicitly block them here anymore (which will end up |
| 3285 | blocking the global backup mode toggle, which is the same as |
| 3286 | the backwards search toggle). (DLR) |
| 3287 | do_wrap() |
| 3288 | - fill fixes and 'two short word wrap' bug (David Benbennick). |
| 3289 | global_init() |
| 3290 | - Call die_too_small() when fill is 0. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3291 | handle_sigwinch() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3292 | - Make sure we adjust fill when the window is resized. (David |
| 3293 | Benbennick) |
| 3294 | - Call die_too_small() when fill is 0. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3295 | help_init() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3296 | - Since the return value of snprintf() isn't well defined, use |
| 3297 | sprintf() instead. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3298 | main() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3299 | - Rework to blank out filename manually before doing anything |
| 3300 | with it, instead of calling clear_filename() in two places. |
| 3301 | Make startline an int instead of a long, since it's supposed to |
| 3302 | hold a line number. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 3303 | - Properly handle multiple -r settings on the command line. (Carl |
| 3304 | Drinkwater) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3305 | - Fix a bug that prevented file insertion via the Insert key |
| 3306 | from working at all when --enable-multibuffer wasn't used |
| 3307 | (oops). (DLR) |
| 3308 | - Adapt David Benbennick's fix to get fill to accept negative |
| 3309 | numbers properly in parse_rcfile() (see below) to the |
| 3310 | handlers for the -r and -T options as well, so that -r/-T 0 |
| 3311 | can be treated separately from -r/-T string. (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 3312 | - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space. |
| 3313 | (DLR) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3314 | usage() |
| 3315 | - List the options that are ignored for the purpose of Pico |
| 3316 | compatibility, and make some minor consistency fixes. (DLR) |
Chris Allegretta | c46337b | 2002-07-23 00:34:48 +0000 | [diff] [blame] | 3317 | - nano.h: |
| 3318 | - Fix some space/tab formatting for flags (DLR). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3319 | - proto.h: |
| 3320 | - Remove external declaration of the global int fill, since |
| 3321 | it's now static. (DLR) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3322 | - rcfile.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3323 | parse_rcfile() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3324 | - Add David Benbennick's fix that allows fill to accept |
| 3325 | negative numbers properly. Specifically, use strtol() there |
| 3326 | instead of atoi() so that errors can be detected. Also |
| 3327 | adapted for tabsize by DLR. |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3328 | parse_next_regex(), colortoint() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3329 | - Only include if ENABLE_COLOR is defined. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3330 | - search.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3331 | search_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3332 | - Since the search mode toggles aren't global anymore, rework the |
| 3333 | part of this function referencing them so that they still work. |
| 3334 | (DLR) |
| 3335 | - Remove unneeded toggles variable. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3336 | - Fix a problem where the first character of buf was overwritten |
| 3337 | if the last search string was one third the number of columns |
| 3338 | plus one. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3339 | findnextstr() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3340 | - 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] | 3341 | Also, pass current_x_find to strstrwrapper() so we know whether |
| 3342 | we're at the beginning of a string or not (see changes to |
| 3343 | strstrwrapper() below), and reset it between lines. (DLR) |
| 3344 | do_gotoline(): |
| 3345 | - Make sure placewewant is zero after we go to a line. (David |
| 3346 | Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3347 | do_gotopos() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3348 | - Simplify the sanity check to only put x within the range of the |
| 3349 | current line; don't call actual_x() anymore. (DLR) |
| 3350 | - utils.c: |
| 3351 | - Add sunder() and unsunder(). These functions convert nulls |
| 3352 | other than the terminating null in strings to newlines and |
| 3353 | back; they're used to handle null characters in files properly. |
| 3354 | (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3355 | lowercase() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3356 | - Remove, since it isn't actually used anywhere. (David |
| 3357 | Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3358 | strstrwrapper() |
| 3359 | - 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] | 3360 | string, to avoid false positives when searching for regular |
| 3361 | expressions prefixed with ^. Make it take a new parameter, |
| 3362 | line_pos, to determine where we are in the string. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3363 | check_wildcard_match() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3364 | - Changed variable names: retryPat -> retrypat, retryText -> |
| 3365 | retrytext. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3366 | - winio.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3367 | actual_x_from_start() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3368 | - Overhaul to make cursor placement more like that of Pico: add |
| 3369 | sanity check for i, and then place i as close to the value of |
| 3370 | xplus column as possible. This change is most noticeable when |
| 3371 | moving down through binary files. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3372 | do_credits() |
| 3373 | - Fix for the i18ned credits so it will compile with -pedantic |
| 3374 | (DLR & Chris). |
Chris Allegretta | 079b549 | 2002-09-19 23:54:53 +0000 | [diff] [blame] | 3375 | do_help() |
| 3376 | - Add support for the handled keyboard escape sequences in the |
| 3377 | help menu, as they are needed with some terminals (e.g. xterm |
| 3378 | with TERM=ansi). (DLR) |
| 3379 | edit_refresh() |
| 3380 | - Turn on leaveok() so the cursor doesn't bounce around the |
| 3381 | screen while we're updating it (most noticeable when using |
| 3382 | color syntax over a very slow connection). |
| 3383 | do_replace_highlight() |
| 3384 | - When using regexps, make sure the highlight is the length of |
| 3385 | the search result and not the regexp string. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3386 | nanogetstr() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3387 | - After the user presses Enter at the prompt, refresh the edit |
| 3388 | window in case there's a list of possible filename matches |
| 3389 | (left over from attempted tab completion) on it. (DLR) |
Chris Allegretta | 079b549 | 2002-09-19 23:54:53 +0000 | [diff] [blame] | 3390 | statusbar() |
| 3391 | - Limit statusbar display to the number of columns less four, and |
| 3392 | don't allow it to go over its original row. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3393 | titlebar() |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 3394 | - Tweak text spacing and printing so that the titlebar text looks |
| 3395 | better on smaller terminals. (Carl Drinkwater) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3396 | update_line() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3397 | - When marking control characters, make sure the mark moves |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3398 | forward by two characters instead of one. Rework control |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3399 | character display routine to display newlines within the line |
| 3400 | (which should never occur under normal circumstances; they will |
| 3401 | only be there if the line had nulls in it and was unsunder()ed |
| 3402 | beforehand) as ^@'s. (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 3403 | - Fix to properly treat ASCII 128-159 as control characters. |
| 3404 | (DLR) |
Jordi Mallach | 7d40134 | 2002-07-05 23:46:31 +0000 | [diff] [blame] | 3405 | - configure.ac: |
| 3406 | - Added ms to ALL_LINGUAS (Jordi). |
| 3407 | - Merged acconfig.h in (Jordi). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3408 | - Fixed so that --enable-debug defines DEBUG and undefines |
| 3409 | NDEBUG. (Carl Drinkwater) |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 3410 | - THANKS: |
| 3411 | - Completed a bit (Jordi). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3412 | - Fixed David Benbennick's email address. (David Benbennick) |
| 3413 | - Typo fix. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3414 | |
Chris Allegretta | 8b75a78 | 2002-05-13 00:09:30 +0000 | [diff] [blame] | 3415 | GNU nano 1.1.9 - 05/12/2002 |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 3416 | - General: |
| 3417 | - Typos n misspellings all over the place (David Benbennick). |
| 3418 | - Allow --tiny and --multibuffer to cooperate (who the heck |
| 3419 | would want this is beyond me but ;-). Changes to |
| 3420 | configure.ac, global.c, , (David Benbennick). |
Chris Allegretta | f2387fb | 2002-04-10 02:31:20 +0000 | [diff] [blame] | 3421 | - Change to openfilestruct for multibuffer mode by DLR. |
| 3422 | New functions nano.c:make_new_opennode(), free_openfilestruct(), |
| 3423 | delete_opennode(), unlink_opennode(), splice_opennode(), |
| 3424 | new struct openfilestruct in nano.h. |
Chris Allegretta | 0e9b7aa | 2002-04-16 03:15:47 +0000 | [diff] [blame] | 3425 | - Preliminary prepend code. This may be a bad idea, but I've |
| 3426 | been wanting it for awhile now and we'll see how bad it messes |
| 3427 | everything up. Changes to files.c:do_writeout(), write_file(). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3428 | Fixes for O_CREAT & append compatibility by David Benbennick. |
Chris Allegretta | 0547eb3 | 2002-04-22 23:52:34 +0000 | [diff] [blame] | 3429 | - Change from read() and write() to file streams by Jay Carlson. |
| 3430 | Allows OS to implement read and write ahead rather than making |
| 3431 | us do it. Hopefully merged properly. |
Chris Allegretta | dab017e | 2002-04-23 10:56:06 +0000 | [diff] [blame] | 3432 | - More cleanups with DISABLE flags, better free_shortcutage and |
| 3433 | free_toggle, and get rid of unnecessary variable decls with |
| 3434 | NANO_SMALL in shortcut_init() by David Benbennick. |
Chris Allegretta | b6c5dc2 | 2002-05-04 03:47:33 +0000 | [diff] [blame] | 3435 | - Added "syntax" command to .nanorc file, to allow multiple |
| 3436 | syntaxes. New function color.c:update_color(), calls in various |
| 3437 | files.c places, syntaxtype struct, global variables syntaxes, |
Chris Allegretta | 21c433d | 2002-05-04 04:24:29 +0000 | [diff] [blame] | 3438 | syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax |
Chris Allegretta | 09900ff | 2002-05-04 04:23:30 +0000 | [diff] [blame] | 3439 | to specify the type on the command line, if there's no good |
| 3440 | filename regex to use. Global variable syntaxstr. |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 3441 | - Changed many strcmp()s and strcpy()s to their equivalent |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3442 | '\0' counterparts (David Lawrence Ramsey). |
| 3443 | - Many changes to allow marked cutting to work with multiple |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 3444 | file buffers: changes to openfilestruct type in nano.h and |
| 3445 | files.c (David Lawrence Ramsey). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 3446 | - Changed NANO_SMALL to ENABLE_NLS for gettext disabling |
| 3447 | (David Benbennick). |
| 3448 | - Move next_key and pev_key definitions out of main() and into |
| 3449 | global.c where they belong (David Benbennick). |
Chris Allegretta | 5e76fe9 | 2002-05-12 20:54:16 +0000 | [diff] [blame] | 3450 | - color.c: |
| 3451 | update_color() |
| 3452 | - Add regfree call here to avoid memory leaks. |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 3453 | - configure.ac: |
| 3454 | - Define NDEBUG to silence asserts (David Benbennick). |
| 3455 | - files.c: |
| 3456 | get_next_filename() |
| 3457 | - Optimizations (David Benbennick). |
| 3458 | - global.c: |
| 3459 | shortcut_init() |
| 3460 | - Add missing free_shortcutage()s (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 3461 | thanks_for_all_the_fish() |
| 3462 | - Only defined when using DEBUG, makes sense (David Benbennick). |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 3463 | - nano.c: |
| 3464 | die_save_file() |
| 3465 | - Add missing free (David Benbennick). |
| 3466 | do_justify() |
| 3467 | - Optimizations (David Benbennick). |
| 3468 | do_wrap() |
| 3469 | - Complete rewrite (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 3470 | help_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3471 | - A little less readable, a lot shorter :-) (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 3472 | - Fix Meta-A not getting capitalized, and convert the ASCII |
| 3473 | #s to their character equivalent. |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 3474 | main() |
| 3475 | - Changed charalloc(), strcpy()s to mallocstrcpy()s. |
Chris Allegretta | 66f373f | 2002-04-05 23:33:09 +0000 | [diff] [blame] | 3476 | - nano.h: |
| 3477 | - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol) |
| 3478 | (David Benbennick). |
Chris Allegretta | 8902eba | 2002-03-30 18:02:54 +0000 | [diff] [blame] | 3479 | - nano.spec.in: |
| 3480 | - Don't put Chris' name as the Packager in the distribution |
| 3481 | by default (Im an idiot). |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 3482 | - Fixed Source line (David Lawrence Ramsey). |
Jordi Mallach | 42c6405 | 2002-04-30 02:33:14 +0000 | [diff] [blame] | 3483 | - nano.1: |
| 3484 | - Changed references to Debian GNU/Linux to Debian GNU (Jordi). |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 3485 | - nano.1.html: |
| 3486 | - Updated for -Y option (David Lawrence Ramsey). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 3487 | - rcfile.c: |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 3488 | - Made some rc file errors less fatal. |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 3489 | - Added in my patch for getpwent instead of relying on $HOME |
| 3490 | (David Lawrence Ramsey). |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 3491 | - winio.c: |
| 3492 | edit_add() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3493 | - Changed some syntax highlight computations for the sake of COLS. |
Chris Allegretta | 3674c1d | 2002-05-12 20:43:49 +0000 | [diff] [blame] | 3494 | - Add in the necessary regfree() calls to stop nano from leaking |
| 3495 | memory like a sieve when using color syntax highlighting :-) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3496 | bottombars(), onekey() |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 3497 | - Cleanups (David Benbennick). |
Jordi Mallach | 0ab011f | 2002-04-05 11:25:00 +0000 | [diff] [blame] | 3498 | - po/gl.po: |
| 3499 | - Galician translation updates (Jacobo Tarrio). |
| 3500 | - po/de.po: |
| 3501 | - German translation updates (Michael Piefel). |
| 3502 | - po/fr.po: |
| 3503 | - French translation updates (Jean-Philippe Guérard). |
| 3504 | - po/ca.po, po/es.po: |
| 3505 | - Catalan and Spanish translation updates (Jordi). |
Jordi Mallach | b18bc69 | 2002-04-10 16:26:17 +0000 | [diff] [blame] | 3506 | - po/sv.po: |
| 3507 | - Swedish translation updates (Christian Rose). |
Jordi Mallach | d301e10 | 2002-04-13 14:46:26 +0000 | [diff] [blame] | 3508 | - po/nl.po: |
| 3509 | - Dutch translation updates (Guus Sliepen). |
Jordi Mallach | 7f80e66 | 2002-04-13 16:31:03 +0000 | [diff] [blame] | 3510 | - po/it.po: |
| 3511 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 0417a7b | 2002-04-19 21:59:35 +0000 | [diff] [blame] | 3512 | - po/ru.po, po/uk.po: |
| 3513 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | 934b76b | 2002-04-25 22:24:48 +0000 | [diff] [blame] | 3514 | - po/id.po: |
| 3515 | - Indonesian translation updates (Tedi Heriyanto). |
Jordi Mallach | ca76fa9 | 2002-05-05 15:04:26 +0000 | [diff] [blame] | 3516 | - po/sv.po: |
| 3517 | - Swedish translation updates (Christian Rose). |
David Lawrence Ramsey | 233f336 | 2004-10-27 02:15:44 +0000 | [diff] [blame] | 3518 | |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 3519 | GNU nano 1.1.8 - 03/30/2002 |
Chris Allegretta | bef1297 | 2002-03-06 03:30:40 +0000 | [diff] [blame] | 3520 | - General |
| 3521 | - Type misalignments and mem leaks in renumber_all, do_justify |
| 3522 | and do_spell (Rocco & Steven Kneizys). |
Chris Allegretta | bb88ece | 2002-03-25 13:40:39 +0000 | [diff] [blame] | 3523 | - New "External Command" code, originally by Dwayne Rightler, |
Chris Allegretta | 77777d4 | 2002-03-29 16:31:29 +0000 | [diff] [blame] | 3524 | various fixes and changes by Chris, Rocco and David Benbennick. |
| 3525 | New function nano.c:open_pipe() and signal handler cancel_fork(), |
| 3526 | changes to do_insertfile(), new list extcmd_list, cmd is |
| 3527 | ^X after ^R. |
Chris Allegretta | 3533a34 | 2002-03-24 23:19:32 +0000 | [diff] [blame] | 3528 | - Added separate regex variable (color_regex and colormatches) |
| 3529 | so that color syntax and regex search/replace can coexist. |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 3530 | - Added new nano.spec file from Brett <brett@bad-sports.com>, |
| 3531 | added because maintaining the spec file is getting to be a large |
| 3532 | hassle ;) |
Chris Allegretta | 564535a | 2002-03-06 15:32:17 +0000 | [diff] [blame] | 3533 | - files.c: |
| 3534 | check_writable_directory() |
| 3535 | - Stat full_path, not path (Steven Kneizys). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 3536 | open_pipe() |
| 3537 | - I18nize the pipe error (DLR). |
Chris Allegretta | e373909 | 2002-03-29 15:06:05 +0000 | [diff] [blame] | 3538 | do_insertfile() |
| 3539 | - Handle cancel from ExtCmd properly (David Benbennick). |
Chris Allegretta | 52c5a6e | 2002-03-21 05:07:28 +0000 | [diff] [blame] | 3540 | read_file() |
| 3541 | - 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] | 3542 | - Reverse tests to stop segfault on editing a new file of 0 |
| 3543 | lines (David Benbennick) |
| 3544 | - Change input var to one char instead of array (David Benbennick). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 3545 | - Move NO_CONVERT check up so chars get read in properly (DLR). |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 3546 | - nano.c: |
Chris Allegretta | cf1d812 | 2002-03-21 19:53:36 +0000 | [diff] [blame] | 3547 | do_justify() |
| 3548 | - More fixes for indented justify (David Benbennick). |
Chris Allegretta | f21f3fc | 2002-03-25 03:26:27 +0000 | [diff] [blame] | 3549 | do_int_speller() |
| 3550 | - Fix zombie processes and spelling buffer issues (Rocco Corsi). |
Chris Allegretta | 5902f96 | 2002-03-07 12:40:39 +0000 | [diff] [blame] | 3551 | help_init() |
| 3552 | - Capitalize Meta altkeys. |
Chris Allegretta | b479c89 | 2002-03-09 20:03:10 +0000 | [diff] [blame] | 3553 | - Various fixes and string changes. |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 3554 | main() |
| 3555 | - Put NANO_SMALL defines around toggle pointer (noticed by Jordi); |
Chris Allegretta | 97e6fe6 | 2002-03-09 17:38:47 +0000 | [diff] [blame] | 3556 | usage() |
Chris Allegretta | 3fc5d57 | 2002-03-09 18:51:58 +0000 | [diff] [blame] | 3557 | - Rewritten to encompass systems with and without GETOPT_LONG. |
| 3558 | New function print1opt does most of the dirty work, stops |
| 3559 | duplication of effort and eases translator's jobs. Also |
| 3560 | breaks all the current translations ;-) |
Chris Allegretta | 45329a1 | 2002-03-10 01:22:21 +0000 | [diff] [blame] | 3561 | - proto.h: |
| 3562 | - Missing externs (Rocco). |
Chris Allegretta | 1596d38 | 2002-03-07 00:46:17 +0000 | [diff] [blame] | 3563 | - rcfile.c: |
Chris Allegretta | 78f0fc6 | 2002-03-29 19:41:57 +0000 | [diff] [blame] | 3564 | do_rcfile() |
| 3565 | - Reset lineno between system and local .nanorc file. |
| 3566 | - Fix errno->strerror(errno) mismatch. |
Chris Allegretta | e8e1034 | 2002-03-07 00:47:22 +0000 | [diff] [blame] | 3567 | parse_rcfile() |
| 3568 | - 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] | 3569 | potential crashes, 1st reported by Jean-Philippe Guérard. |
Chris Allegretta | 78f0fc6 | 2002-03-29 19:41:57 +0000 | [diff] [blame] | 3570 | rcfile_error() |
| 3571 | - Don't print out the file name if we haven't opened the file |
| 3572 | yet (lineno == 0). |
Chris Allegretta | 45329a1 | 2002-03-10 01:22:21 +0000 | [diff] [blame] | 3573 | - search.c: |
| 3574 | search_init() |
| 3575 | - Fix a missing free (Rocco). |
Chris Allegretta | d1c2c1c | 2002-03-26 17:58:42 +0000 | [diff] [blame] | 3576 | do_gotoline() |
| 3577 | - Set placewewant if we actually move to a different line. |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 3578 | - utils.c: |
Chris Allegretta | dce44ab | 2002-03-16 01:03:41 +0000 | [diff] [blame] | 3579 | stristr() |
| 3580 | - Defined regardless of NANO_SMALL (noticed by Jordi). |
Chris Allegretta | 77777d4 | 2002-03-29 16:31:29 +0000 | [diff] [blame] | 3581 | nperror() |
| 3582 | - New wrapper for perror (David Benbennick). |
Chris Allegretta | dce44ab | 2002-03-16 01:03:41 +0000 | [diff] [blame] | 3583 | - winio.c: |
| 3584 | do_credits() |
| 3585 | - Add Thomas Dickey. |
Chris Allegretta | f3a07b2 | 2002-03-29 15:15:38 +0000 | [diff] [blame] | 3586 | do_cursorpos() |
| 3587 | - Make col numbering start from 1 (suggested by Andrew Ho). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 3588 | update_line(), xpt() |
| 3589 | - Add check for 127 (DLR). |
Jordi Mallach | 4951c66 | 2002-03-07 14:12:53 +0000 | [diff] [blame] | 3590 | - po/sv.po: |
| 3591 | - Swedish translation updates (Christian Rose). |
| 3592 | - po/de.po: |
| 3593 | - German translation updates (Michael Piefel). |
Jordi Mallach | 4e803aa | 2002-03-09 18:05:53 +0000 | [diff] [blame] | 3594 | - po/id.po: |
| 3595 | - Indonesian translation updates (Tedi Heriyanto). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 3596 | - po/it.po: |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 3597 | - Serious typo. |
Jordi Mallach | 4e803aa | 2002-03-09 18:05:53 +0000 | [diff] [blame] | 3598 | - po/ca.po, po/es.po: |
| 3599 | - Catalan and Spanish translation updates (Jordi). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 3600 | - Typo (DLR). |
Jordi Mallach | 558b5d8 | 2002-03-11 13:23:33 +0000 | [diff] [blame] | 3601 | - po/fr.po: |
| 3602 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 5477e10 | 2002-03-12 16:15:50 +0000 | [diff] [blame] | 3603 | - po/gl.po: |
| 3604 | - Galician translation updates (Jacobo Tarrio). |
Jordi Mallach | 057c3c4 | 2002-03-14 11:00:56 +0000 | [diff] [blame] | 3605 | - po/uk.po, po/ru.po: |
| 3606 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | b83e61a | 2002-03-15 15:15:13 +0000 | [diff] [blame] | 3607 | - po/pl.po: |
| 3608 | - Polish translation updates (Wojciech Kotwica). |
Jordi Mallach | 7fa082d | 2002-03-17 00:35:41 +0000 | [diff] [blame] | 3609 | - po/fr.po: |
| 3610 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 7afc6d9 | 2002-03-27 16:34:46 +0000 | [diff] [blame] | 3611 | - po/it.po: |
| 3612 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 465a0ff | 2002-03-29 00:46:05 +0000 | [diff] [blame] | 3613 | - po/da.po: |
| 3614 | - Danish translation updates (Keld Simonsen). |
Chris Allegretta | bef1297 | 2002-03-06 03:30:40 +0000 | [diff] [blame] | 3615 | |
Chris Allegretta | 97489d2 | 2002-03-05 23:47:44 +0000 | [diff] [blame] | 3616 | GNU nano 1.1.7 - 03/05/2002 |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3617 | - General |
| 3618 | - malloc->calloc, etc cleanups (DLR). |
| 3619 | - New option, noconvert (-N, --noconvert) to completely stop |
| 3620 | the translation of files from DOS or Mac format (DLR). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3621 | - New functions check_writable_directory() and safe_tempnam() |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 3622 | to get around the tempnam warning. More improvements (DLR) |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 3623 | Still needs testing. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3624 | - Added DOS and Mac format options to write file routine. |
| 3625 | Changes to shortcut_init() and do_writeout(). |
| 3626 | - Removed stupid static definitions of toggles and shortcut |
| 3627 | lists. Many changes to shortcut_init(), toggle_init(), |
| 3628 | statusq(), nanogetstr(), main(), and many other places. |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 3629 | - Multibuffer mode now allows multiple empty filenames. |
| 3630 | Changes to add_open_files(), removed open_file_dup_search(), |
| 3631 | open_file_dup_fix(), etc (DLR). |
| 3632 | - New code to handle multiple .save files. Changes to |
| 3633 | die_save_file(), new function files.c:get_next_filename() |
| 3634 | and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris) |
Chris Allegretta | f5de33a | 2002-02-27 04:14:16 +0000 | [diff] [blame] | 3635 | - Many malloc() cleanups and files.c tweaks by Steven Kneizys, |
| 3636 | new functions utils.c:free_shortcutage() (got to love that |
| 3637 | name!) & free_toggles(), and big cleanup program |
| 3638 | thanks_for_all_the_fish() (originally |
| 3639 | thanks_for_the_memories()). Mods to shortcut_init() by Chris. |
Chris Allegretta | e4f940d | 2002-03-03 22:36:36 +0000 | [diff] [blame] | 3640 | - Preliminary quoting support for justify. New arg -Q, --quotestr, |
| 3641 | changes to do_justify(), global variable quotestr(). |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 3642 | - Makefile.am: |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3643 | - Add SYSCONFDIR to DEFS, so we can have an $SYSCONFDIR/nanorc. |
Chris Allegretta | 40b85e7 | 2002-02-09 21:56:09 +0000 | [diff] [blame] | 3644 | - Change localedir line to 1.0's version. |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 3645 | - Moved m4/ stuff to its own m4/Makefile.am. |
Jordi Mallach | 87435d9 | 2002-03-05 17:58:34 +0000 | [diff] [blame] | 3646 | - m4/aclocal_inc.m4: |
| 3647 | - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look for |
| 3648 | macros (Gergely Nagy). |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 3649 | - configure.in: |
| 3650 | - Renamed to configure.ac. |
| 3651 | - configure.ac: |
| 3652 | - Moved to autoconf 2.52 (Jeff Bailey). |
Jordi Mallach | 87435d9 | 2002-03-05 17:58:34 +0000 | [diff] [blame] | 3653 | - Added call to AM_ACLOCAL_INCLUDE. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3654 | - files.c: |
| 3655 | read_byte() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3656 | - Added check for control characters (indicative of a binary |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 3657 | file), set NO_CONVERT if found (fixes by DLR). |
Chris Allegretta | f5de33a | 2002-02-27 04:14:16 +0000 | [diff] [blame] | 3658 | do_insertfile() |
| 3659 | - Added support for -o in prompt (Steven Kneizys). |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3660 | - global.c: |
| 3661 | - Move openprev and opennext functions to shortcuts, they really |
| 3662 | aren't toggles (DLR). |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 3663 | - rcfile.c: |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3664 | parse_next_regex() |
Chris Allegretta | 3d8e759 | 2002-02-02 07:13:02 +0000 | [diff] [blame] | 3665 | - Allow " symbol to be in regex without leading \ by checking |
| 3666 | for *ptr+1 is not the end of the regex. |
Chris Allegretta | ff8a68c | 2002-02-16 20:34:57 +0000 | [diff] [blame] | 3667 | do_rcfile() |
| 3668 | - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler). |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 3669 | - nano.1: |
| 3670 | - Added Noconvert option to man page (DLR). |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3671 | - nano.c: |
Chris Allegretta | d4fa0d3 | 2002-03-05 19:55:55 +0000 | [diff] [blame] | 3672 | justify_format(), do_justify() |
| 3673 | - Various fixes for starting blank spaces, spaces after |
| 3674 | punctuation, & segfault with quoting strings (David Benbennick). |
Chris Allegretta | 46c1b9e | 2002-03-05 19:58:45 +0000 | [diff] [blame] | 3675 | do_justify() |
| 3676 | - Don't continue to justify string if it's indented more |
| 3677 | (quoting wise) than the beginning of the justification. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3678 | help_init() |
| 3679 | - Added message re: having multiple blank buffers (DLR). |
Chris Allegretta | 9caa193 | 2002-02-15 20:08:05 +0000 | [diff] [blame] | 3680 | main() |
| 3681 | - Add 407 as equiv of 26, this seems to be sent when using |
| 3682 | ^Z in linux console with keypad() enabled. |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 3683 | - rcfile.c: |
| 3684 | - Get rid of unneeded relativechars from rcopts (DLR). |
| 3685 | - search.c |
| 3686 | do_replace(), findnextstr() |
| 3687 | - Fixes for various search issues (Ken Tyler) |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 3688 | - winio.c: |
| 3689 | do_cursorpos() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3690 | - Rewritten to show col place as well as character place, without |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 3691 | needing an entirely separate flag. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 3692 | bottombars(), onekey() |
| 3693 | - Make bottom list dynamic with screen size (Guus Sliepen & Chris). |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 3694 | - More cleanups w/width of shortcut. |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 3695 | - utils.c: |
Chris Allegretta | 99ed9dc | 2002-02-28 00:57:18 +0000 | [diff] [blame] | 3696 | strcasestr(),revstrcasestr() |
| 3697 | - Renamed to stristr and revstristr since strcasestr has not |
| 3698 | been confirmed to be detected properly on various Linux |
| 3699 | systems. |
Chris Allegretta | d4fa0d3 | 2002-03-05 19:55:55 +0000 | [diff] [blame] | 3700 | strstrwrapper() |
| 3701 | - NANO_SMALL test was backwards (Ken Tyler). |
| 3702 | - winio.c: |
| 3703 | strlenpt() |
| 3704 | - Changed main function to strnlenpt() for new justify changes, |
| 3705 | original function now just a stub. |
Chris Allegretta | 3c597d0 | 2002-01-26 03:42:14 +0000 | [diff] [blame] | 3706 | - nanorc.sample |
| 3707 | - Mention unset in the sample nanorc. |
Jordi Mallach | 83ffefb | 2002-01-25 21:00:18 +0000 | [diff] [blame] | 3708 | - po/ca.po, po/es.po: |
| 3709 | - Catalan and Spanish translation updates (Jordi). |
Jordi Mallach | 9c34a16 | 2002-01-26 00:46:47 +0000 | [diff] [blame] | 3710 | - po/sv.po: |
| 3711 | - Swedish translation updates (Christian Rose). |
| 3712 | - po/fr.po: |
| 3713 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 8636f7b | 2002-01-26 19:23:37 +0000 | [diff] [blame] | 3714 | - po/nn.po: |
| 3715 | - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). |
| 3716 | - po/de.po: |
| 3717 | - German translation updates (Michael Piefel). |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 3718 | - po/it.po: |
| 3719 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 94def06 | 2002-02-06 12:14:25 +0000 | [diff] [blame] | 3720 | - po/cs.po: |
| 3721 | - Partial Czech translation updates (Vaclav Haisman). |
Jordi Mallach | 8bfd311 | 2002-02-06 20:53:04 +0000 | [diff] [blame] | 3722 | - po/hu.po: |
| 3723 | - Hungarian translation updates, or to be precise, rewrite |
| 3724 | (Gergely Nagy). |
Jordi Mallach | b3b28c1 | 2002-02-07 13:51:00 +0000 | [diff] [blame] | 3725 | - po/uk.po, po/ru.po: |
Jordi Mallach | 507c361 | 2002-02-14 18:57:23 +0000 | [diff] [blame] | 3726 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
| 3727 | - po/da.po: |
| 3728 | - Danish translation updates (Keld Simonsen). |
Jordi Mallach | e46d43d | 2002-02-15 17:13:11 +0000 | [diff] [blame] | 3729 | - po/nb.po: |
| 3730 | - Norwegian bokmål translation updates (Stig E Sandoe). |
Jordi Mallach | 62d2171 | 2002-02-20 16:21:27 +0000 | [diff] [blame] | 3731 | - po/nl.po: |
| 3732 | - Dutch translation updates (Guus Sliepen). |
Jordi Mallach | a3322fd | 2002-03-05 11:23:17 +0000 | [diff] [blame] | 3733 | - po/pl.po: |
| 3734 | - Polish translation updates (Wojciech Kotwica). |
Jordi Mallach | 83ffefb | 2002-01-25 21:00:18 +0000 | [diff] [blame] | 3735 | |
Chris Allegretta | 491029e | 2002-01-25 17:02:32 +0000 | [diff] [blame] | 3736 | nano-1.1.6 - 01/25/2002 |
Chris Allegretta | 044d1b1 | 2002-01-08 00:33:32 +0000 | [diff] [blame] | 3737 | - General |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3738 | - Add Meta-A as alternate keystroke for ^^ for people with |
Chris Allegretta | 044d1b1 | 2002-01-08 00:33:32 +0000 | [diff] [blame] | 3739 | non-US keyboards. |
Chris Allegretta | 967a1e2 | 2002-01-10 00:50:38 +0000 | [diff] [blame] | 3740 | - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in |
| 3741 | browser. |
Chris Allegretta | 1bc0c7e | 2002-01-08 15:00:24 +0000 | [diff] [blame] | 3742 | - Better partial word checking code. New function |
| 3743 | search.c:is_whole_word(), changes to findnextstr(), |
| 3744 | and nano.c:do_int_spell_fix() (Rocco Corsi). |
Chris Allegretta | 6c1e661 | 2002-01-19 16:52:34 +0000 | [diff] [blame] | 3745 | - Added multiple-line regex support. Format in .nanorc is |
| 3746 | start="regex" end="regex". Cleaned up nanorc:parse_colors(), |
| 3747 | added parse_next_regex(), changes to edit_add in winio.c(), |
| 3748 | changes to colortype, cleaning up some old cruft. |
Chris Allegretta | 15b23f4 | 2002-01-19 19:15:18 +0000 | [diff] [blame] | 3749 | - Upgrade to gettext 0.10.40, probably broke everything again :) |
Chris Allegretta | 24e48d8 | 2002-01-23 01:06:20 +0000 | [diff] [blame] | 3750 | - Upgraded to and then downgraded from automake 1.5, as there |
| 3751 | are severe security implications. |
Chris Allegretta | ea250e8 | 2002-01-16 01:09:11 +0000 | [diff] [blame] | 3752 | - color.c: |
| 3753 | do_colorinit() |
| 3754 | - Moved some comments and braces around so color can work |
| 3755 | w/slang (DLR). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3756 | - global.c: |
| 3757 | shorcut_init() |
| 3758 | - Replace hard coded ALT_G and ALT_H values in the replace |
| 3759 | and goto shortcuts with their macro counterparts NANO_ALT_*_KEY. |
Jordi Mallach | 345a846 | 2002-01-07 11:35:16 +0000 | [diff] [blame] | 3760 | - nano.c: |
| 3761 | usage() |
| 3762 | - Remove extra \n in --keypad description (Jordi). |
Chris Allegretta | f7dee92 | 2002-01-07 16:43:25 +0000 | [diff] [blame] | 3763 | main() |
| 3764 | - Check that alt value is an alpha char before comparing to |
| 3765 | val - 32, fixes Alt-R calling doprev instead of replace. |
Chris Allegretta | b2cd10d | 2002-01-20 00:54:42 +0000 | [diff] [blame] | 3766 | do_char() |
| 3767 | - Run edit_refresh() if ENABLE_COLOR is defined so adding |
| 3768 | multi-liners will update (e.g. /* in C). |
Chris Allegretta | 23b74b2 | 2002-01-21 20:32:22 +0000 | [diff] [blame] | 3769 | do_int_spell_fix() |
| 3770 | - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi). |
Chris Allegretta | 7b0667f | 2002-01-10 12:44:21 +0000 | [diff] [blame] | 3771 | do_suspend() |
| 3772 | - Call tcsetattr() to restore the old terminal settings, so |
Chris Allegretta | 5bbce6a | 2002-01-10 12:48:16 +0000 | [diff] [blame] | 3773 | tcsh can use ^C after suspend for example (fixes BUG #68). |
Chris Allegretta | 438f713 | 2002-01-16 00:54:47 +0000 | [diff] [blame] | 3774 | do_wrap() |
| 3775 | - Move "right" increment to part where new line is created, |
| 3776 | should change (fix?) some wrapping problems with autoindent. |
Jordi Mallach | 5285ca9 | 2002-01-17 12:40:33 +0000 | [diff] [blame] | 3777 | version() |
| 3778 | - Show --enable-multibuffer independently of --enable-extra being |
| 3779 | compiled in (Jordi). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3780 | - nano.h: |
| 3781 | - Changed color struct slightly, because of previous issue with |
| 3782 | applying color painting in order, the "str" portion was |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3783 | useless. Renamed "val" in colortype to "start", added "end" |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3784 | for multi-line color strings. |
| 3785 | - rcfile.c: |
| 3786 | General |
| 3787 | - Took silly variables being passed everywhere like lineno and |
| 3788 | filename and made them static variables. |
Chris Allegretta | 6c1e661 | 2002-01-19 16:52:34 +0000 | [diff] [blame] | 3789 | - Re-indented. |
Chris Allegretta | 34f8098 | 2002-01-22 20:09:20 +0000 | [diff] [blame] | 3790 | - Added stdarg.h to includes. |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3791 | rcfile_error() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3792 | - Now automatically prepends the "error in line blah at foo" |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3793 | message to error messages. |
| 3794 | parse_colors() |
| 3795 | - Added section for computing "end" section. |
| 3796 | parse_next_word() |
| 3797 | - Added support for "\ ", in word parsing. |
Chris Allegretta | e29697d | 2002-01-14 03:31:10 +0000 | [diff] [blame] | 3798 | - search.c: |
Chris Allegretta | 1c2fddc | 2002-01-21 20:40:14 +0000 | [diff] [blame] | 3799 | do_search() |
| 3800 | - Check position of cursor and return value of findnextstr and |
| 3801 | tell user if search string only occurs once (Rocco & Chris). |
Chris Allegretta | e29697d | 2002-01-14 03:31:10 +0000 | [diff] [blame] | 3802 | findnextstr() |
| 3803 | - Fix off by one in check for wrap around (Rocco Corsi). |
Chris Allegretta | 3d0739c | 2002-01-07 14:41:32 +0000 | [diff] [blame] | 3804 | - winio.c: |
| 3805 | edit_refresh() |
| 3806 | - Rename lines to nlines to fix AIX breakage (reported by |
| 3807 | Dennis Cranston, re-reported by arh14@cornell.edu). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 3808 | edit_add() |
| 3809 | - Refuse to honor regex matches of 0 characters when applying |
| 3810 | color highlighting, and say so on the statusbar. Otherwise |
| 3811 | we go into an infinite loop, the error message should clue |
| 3812 | users into the fact that their regex is doing something bad. |
Jordi Mallach | d6481e4 | 2002-01-17 12:14:23 +0000 | [diff] [blame] | 3813 | - THANKS: |
| 3814 | - Oops, correct Eivind's entry. His translation was Norwegian nynorsk, |
Jordi Mallach | 83d5ced | 2002-01-17 12:06:49 +0000 | [diff] [blame] | 3815 | not bokmål as we claimed (Jordi). |
Chris Allegretta | 9963b0e | 2002-01-19 19:35:12 +0000 | [diff] [blame] | 3816 | - .cvsignore |
| 3817 | - Added config.guess config.sub install-sh missing & mkinstalldirs |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3818 | - po/ca.po, po/es.po: |
Jordi Mallach | e36a152 | 2002-01-07 15:12:48 +0000 | [diff] [blame] | 3819 | - Catalan and Spanish translation updates (Jordi). |
| 3820 | - po/sv.po: |
| 3821 | - Swedish translation update (Christian Rose). |
Jordi Mallach | d39698f | 2002-01-07 15:16:26 +0000 | [diff] [blame] | 3822 | - po/de.po: |
| 3823 | - German translation update (Michael Piefel). |
Jordi Mallach | bf1a1e8 | 2002-01-08 14:07:39 +0000 | [diff] [blame] | 3824 | - po/fr.po: |
| 3825 | - French translation update (Jean-Philippe Guérard). |
| 3826 | - po/ru.po, po/uk.po: |
| 3827 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | 83d5ced | 2002-01-17 12:06:49 +0000 | [diff] [blame] | 3828 | - po/no.po: |
| 3829 | - Moved to po/nn.po, which is the correct name for Norwegian nynorsk. |
| 3830 | - po/nn.po: |
| 3831 | - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). |
| 3832 | - po/nb.po: |
| 3833 | - New Norwegian bokmål translation (Stig E Sandoe <stig@ii.uib.no>). |
Jordi Mallach | 3a23a55 | 2002-01-18 23:04:16 +0000 | [diff] [blame] | 3834 | - po/da.po: |
| 3835 | - Danish translation update (Keld Simonsen). |
Chris Allegretta | d175193 | 2002-01-05 20:01:53 +0000 | [diff] [blame] | 3836 | |
Chris Allegretta | 110927b | 2002-01-05 19:49:06 +0000 | [diff] [blame] | 3837 | nano-1.1.5 - 01/05/2002 |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 3838 | - General |
| 3839 | - Better integration of View mode (-v) and multibuffer. |
| 3840 | Fixes to new_file(), do_insertfile_void(), shortcut_init() |
| 3841 | (David Lawrence Ramsey). |
Chris Allegretta | 48bd378 | 2002-01-03 21:26:34 +0000 | [diff] [blame] | 3842 | - The keypad handling has changed (again). We now use |
| 3843 | the keypad() function by default. New flag -K, --keypad |
| 3844 | allows the old behavior for those using the keypad arrow keys |
| 3845 | and rxvt-based terminals. |
Jordi Mallach | 8ae5789 | 2002-01-04 17:57:40 +0000 | [diff] [blame] | 3846 | - Updated copyright notices to 2002 (Jordi). |
Chris Allegretta | 0bb70dc | 2001-12-17 04:34:23 +0000 | [diff] [blame] | 3847 | - nano.c: |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 3848 | die() |
| 3849 | - Only save files that were modified (David Lawrence Ramsey). |
Chris Allegretta | 0bb70dc | 2001-12-17 04:34:23 +0000 | [diff] [blame] | 3850 | do_cont() |
| 3851 | - Run signal_init() after doupdate() so ^Y wont suddenly |
| 3852 | start suspending after returning from ^Z suspend in Hurd. |
| 3853 | signal_init() |
| 3854 | - Unconditionally disable VDSUSP if it exists, stops ^Y |
| 3855 | suspending nano on the Hurd. |
Jordi Mallach | 11f39e7 | 2001-12-25 19:17:32 +0000 | [diff] [blame] | 3856 | help_init() |
Chris Allegretta | 64dd95d | 2001-12-27 20:53:54 +0000 | [diff] [blame] | 3857 | - Typo fixes in help strings (Jordi). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3858 | - New variable helplen needed cause currslen is not always |
Chris Allegretta | 13fd44b | 2002-01-02 13:59:11 +0000 | [diff] [blame] | 3859 | the length we want (bug found by David Lawrence Ramsey). |
Chris Allegretta | 180a569 | 2002-01-02 14:30:33 +0000 | [diff] [blame] | 3860 | - Typo in file switch string (found by David Lawrence Ramsey). |
| 3861 | main() |
| 3862 | - Handle Alt prev/next file keys (,.), as well as normal ones (<>). |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 3863 | - Handle OS-specific insert keys by jump to do_insertkey (David |
| 3864 | Lawrence Ramsey). |
Chris Allegretta | 64dd95d | 2001-12-27 20:53:54 +0000 | [diff] [blame] | 3865 | - files.c: |
| 3866 | read_file() |
| 3867 | - Make conversion message less confusing (suggested by Jordi). |
Chris Allegretta | 13fd44b | 2002-01-02 13:59:11 +0000 | [diff] [blame] | 3868 | - rcfile.c: |
| 3869 | parse_next_word() |
| 3870 | - Get rid of ptr == \n check to abort, screws up option |
| 3871 | parsing (bug found by David Lawrence Ramsey) |
Chris Allegretta | 52db7a2 | 2001-12-17 23:39:36 +0000 | [diff] [blame] | 3872 | - winio.c: |
| 3873 | update_line() |
Chris Allegretta | 3c57e50 | 2001-12-19 16:20:43 +0000 | [diff] [blame] | 3874 | - set realdata check to >= 1 && <= 31, lack of > 0 check screwed |
| 3875 | high ascii characters. |
Jordi Mallach | 9335f91 | 2001-12-23 00:03:18 +0000 | [diff] [blame] | 3876 | titlebar() |
| 3877 | - gettextized a pair of strings. |
Chris Allegretta | e5b9eac | 2002-01-05 01:52:02 +0000 | [diff] [blame] | 3878 | bottombars() |
| 3879 | - Get rid of that annoying reversed line when color is on! :) |
Chris Allegretta | 1bf8f5e | 2002-01-05 03:30:10 +0000 | [diff] [blame] | 3880 | edit_add() |
| 3881 | - Little fixes to let color highlights not bleed onto the next line. |
Chris Allegretta | a16e4e9 | 2002-01-05 18:59:54 +0000 | [diff] [blame] | 3882 | statusq() |
| 3883 | - Initialize "list". |
Chris Allegretta | cf68071 | 2001-12-18 14:59:20 +0000 | [diff] [blame] | 3884 | - m4/gettext.m4: |
| 3885 | - Back down to 1.1.3 version. |
Jordi Mallach | cf9f783 | 2001-12-26 12:33:01 +0000 | [diff] [blame] | 3886 | - faq.html: |
| 3887 | - Various link updates and other fixes (Aaron S. Hawley). |
| 3888 | - Typo fixes (David Lawrence Ramsey). |
Chris Allegretta | fae0dce | 2002-01-04 13:30:42 +0000 | [diff] [blame] | 3889 | - AUTHORS |
| 3890 | - Add DLR. |
Jordi Mallach | 77b1232 | 2001-12-22 23:23:40 +0000 | [diff] [blame] | 3891 | - po/sv.po: |
| 3892 | - Swedish translation update (Christian Rose). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3893 | - po/ru.po, po/uk.po: |
Jordi Mallach | 3279398 | 2001-12-28 16:35:28 +0000 | [diff] [blame] | 3894 | - Russian and Ukrainian translations updates (Sergey A. Ribalchenko). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 3895 | - po/ca.po, po/es.po: |
Jordi Mallach | 414acab | 2001-12-26 00:15:16 +0000 | [diff] [blame] | 3896 | - Catalan and Spanish translations updates (Jordi). |
Jordi Mallach | a4ffccb | 2001-12-26 00:31:17 +0000 | [diff] [blame] | 3897 | - po/pl.po: |
| 3898 | - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>. |
Jordi Mallach | 65f3e42 | 2002-01-04 17:48:58 +0000 | [diff] [blame] | 3899 | - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new |
| 3900 | official maintainer. |
Jordi Mallach | 1a58fb4 | 2001-12-27 16:00:23 +0000 | [diff] [blame] | 3901 | - po/fr.po: |
| 3902 | - French translation update (Michel Robitaille). |
Jordi Mallach | 05d8ce9 | 2001-12-27 20:34:42 +0000 | [diff] [blame] | 3903 | - po/gl.po: |
| 3904 | - Galician translation update (Jacobo TarrÃo). |
Jordi Mallach | 78e2c9d | 2001-12-27 22:06:38 +0000 | [diff] [blame] | 3905 | - po/it.po: |
| 3906 | - Italian translation update (Marco Colombo). |
Jordi Mallach | 3279398 | 2001-12-28 16:35:28 +0000 | [diff] [blame] | 3907 | - po/de.po: |
| 3908 | - German translation update (Michael Piefel). |
Jordi Mallach | 13f3017 | 2002-01-02 18:45:58 +0000 | [diff] [blame] | 3909 | - po/fr.po: |
| 3910 | - French translation update (Jean-Philippe Guérard). |
Chris Allegretta | 5fd6cac | 2001-12-12 13:55:19 +0000 | [diff] [blame] | 3911 | |
Chris Allegretta | 7bf2509 | 2001-12-12 02:44:40 +0000 | [diff] [blame] | 3912 | nano-1.1.4 - 12/11/2001 |
Chris Allegretta | 08893e0 | 2001-11-29 02:42:27 +0000 | [diff] [blame] | 3913 | - General |
| 3914 | - Preliminary syntax highlighting support. New functions |
| 3915 | colortoint() and parse_color() in rcfile.c, new code in |
| 3916 | edit_add() in winio.c to actually do the highlighting. It's |
| 3917 | not even close to pretty yet :P |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3918 | - Many int/long alignments (David Lawrence Ramsey). |
Chris Allegretta | 0567bfe | 2001-10-28 14:42:18 +0000 | [diff] [blame] | 3919 | - files.c: |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3920 | - Fixes for tab completion and screen refresh (David Lawrence |
| 3921 | Ramsey). |
Chris Allegretta | 0567bfe | 2001-10-28 14:42:18 +0000 | [diff] [blame] | 3922 | add_open_file() |
| 3923 | - Get rid of unsetting MARK_ISSET because otherwise writing |
| 3924 | marked text will automatically unset the marker with |
| 3925 | multibuffer enabled. |
Chris Allegretta | 22ec59a | 2001-10-28 04:56:08 +0000 | [diff] [blame] | 3926 | - global.c: |
| 3927 | - Define currshortcut and currslen when either DISABLE_MOUSE |
Chris Allegretta | 8c8d370 | 2001-10-28 05:00:39 +0000 | [diff] [blame] | 3928 | or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan |
| 3929 | Minghetti). |
Chris Allegretta | 7bf7274 | 2001-10-28 04:29:55 +0000 | [diff] [blame] | 3930 | - nano.c: |
| 3931 | main() |
Chris Allegretta | f3e80ad | 2001-10-28 04:49:10 +0000 | [diff] [blame] | 3932 | - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert). |
Chris Allegretta | 9b8b370 | 2001-11-19 05:09:15 +0000 | [diff] [blame] | 3933 | - Added better Hurd support for function keys (Alt-V,U,9,@,F). |
| 3934 | signal_init() |
| 3935 | - do SIG_IGN for the SIGTSTP sigaction regardless of whether |
| 3936 | we have _POSIX_VDISABLE or not (more Hurd fixes) |
Jordi Mallach | 773623c | 2001-10-28 21:00:49 +0000 | [diff] [blame] | 3937 | help_init() |
| 3938 | - Typo fixes and additions to the new help texts. |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 3939 | do_curpos() |
| 3940 | - Now takes arg for constant updating to always show the cursor |
| 3941 | position (David Lawrence Ramsey). |
| 3942 | do_wrap() |
| 3943 | - Many fixes (David Lawrence Ramsey). |
Chris Allegretta | 8083827 | 2001-12-02 06:03:22 +0000 | [diff] [blame] | 3944 | do_spell() |
| 3945 | - Dont prompt for replace if we don't change the word in |
| 3946 | question (Rocco Corsi). |
Jordi Mallach | 8c9c572 | 2001-10-31 13:02:12 +0000 | [diff] [blame] | 3947 | - po/de.po: |
| 3948 | - German translation updates (Karl Eichwalder). |
| 3949 | - po/ru.po: |
| 3950 | - Russian translation updates (Sergey A. Ribalchenko). |
| 3951 | - po/sv.po: |
| 3952 | - Swedish translation updates (Christian Rose). |
Jordi Mallach | feebeb9 | 2001-11-19 12:09:51 +0000 | [diff] [blame] | 3953 | - po/da.po: |
| 3954 | - Danish translation updates (Keld Simonse). |
| 3955 | - po/es.po: |
| 3956 | - Spanish translation updates (Jordi). |
Jordi Mallach | df59ae6 | 2001-12-07 14:00:56 +0000 | [diff] [blame] | 3957 | - po/fr.po: |
| 3958 | - French translation updates (Michel Robitaille). |
Chris Allegretta | 9c23a44 | 2001-12-12 01:45:01 +0000 | [diff] [blame] | 3959 | - m4/gettext.m4: |
| 3960 | - diff against mutt 1.2.5's gettext.m4. |
Chris Allegretta | 7b409bd | 2001-10-26 16:15:58 +0000 | [diff] [blame] | 3961 | |
Chris Allegretta | dc57bba | 2001-10-26 16:14:45 +0000 | [diff] [blame] | 3962 | nano-1.1.3 - 10/26/2001 |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3963 | - General |
| 3964 | - Finally wrote function-specific help mode. Changes to |
| 3965 | nano.c:help_init() and winio.c:do_help(). Changed |
| 3966 | currshortcut and currslen #ifdefs to depend on both |
| 3967 | DISABLE_HELP and DISABLE_MOUSE being defined to not |
| 3968 | include. Changed all the shortcuts and lengths. |
Chris Allegretta | fa0c696 | 2001-10-22 23:22:19 +0000 | [diff] [blame] | 3969 | - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again, |
| 3970 | this was causing nasty errors if the call to nrealloc moved |
| 3971 | where the data was located. |
Chris Allegretta | 3a24f3f | 2001-10-24 11:33:54 +0000 | [diff] [blame] | 3972 | - Changed header comments to say "version 2" instead of "version |
| 3973 | 1" as the COPYING file is actually version 2 of the GPL (bug |
| 3974 | noticed by Jordi Mallach). |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3975 | - cut.c: |
| 3976 | do_cut_text() |
| 3977 | - Check to see whether marked text is contained within edit |
| 3978 | window and if so only do an edit_refresh (variable dontupdate |
| 3979 | replaces cuttingpartialline). |
| 3980 | do_uncut_text() |
| 3981 | - Similar display fixes (David Lawrence Ramsey). |
Chris Allegretta | beead28 | 2001-10-18 14:15:28 +0000 | [diff] [blame] | 3982 | - faq.html |
| 3983 | - Removed nano-editor.org FTP site address [deprecated] and added |
| 3984 | the GNU one. |
Chris Allegretta | 76e291b | 2001-10-14 19:05:10 +0000 | [diff] [blame] | 3985 | - files.c: |
| 3986 | - Added status messages for converted DOS and Mac files. |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 3987 | People should know that their file wasnt normally formatted. |
| 3988 | load_file() |
| 3989 | - Status message when trying to load an already loaded file with multiple |
| 3990 | buffers (David Lawrence Ramsey). |
| 3991 | read_file() |
| 3992 | - Get rid of useless linetemp variable and name num_lines int |
| 3993 | (David Lawrence Ramsey). |
Chris Allegretta | 76e291b | 2001-10-14 19:05:10 +0000 | [diff] [blame] | 3994 | - nano.c: |
| 3995 | - 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] | 3996 | Alt-space, as next word is hard coded as control-space. Fixed |
| 3997 | 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] | 3998 | beginning of first line, prog should simply abort. Added |
| 3999 | the #ifdefs around the code in main(). |
Chris Allegretta | 1078640 | 2001-10-24 17:27:46 +0000 | [diff] [blame] | 4000 | - nano.h: |
| 4001 | - Additional #define, SMALL_TOO to determine how long |
| 4002 | MAIN_LIST_LEN is. We need this because of the find matching |
| 4003 | bracket code. |
Chris Allegretta | 48ebb81 | 2001-10-24 01:34:15 +0000 | [diff] [blame] | 4004 | main() |
Chris Allegretta | 347c184 | 2001-10-24 01:37:13 +0000 | [diff] [blame] | 4005 | - Moved #ifndef NANO_SMALL down past the case 0: line so |
| 4006 | control-space doesn't insert a \0 (ack!) |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 4007 | - rcfile.c: |
| 4008 | - Fix incorrect number of rc options (David Lawrence Ramsey). |
Jordi Mallach | 482d165 | 2001-10-06 02:36:25 +0000 | [diff] [blame] | 4009 | - po/sv.po: |
| 4010 | - Updated Swedish translation (Christian Rose). |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 4011 | - po/da.po: |
Jordi Mallach | 2476ebd | 2001-10-07 00:26:26 +0000 | [diff] [blame] | 4012 | - Updated Danish translation (Keld Simonsen). |
Jordi Mallach | 26f4603 | 2001-10-07 15:53:27 +0000 | [diff] [blame] | 4013 | - po/es.po: |
| 4014 | - Style updates to Spanish translation (Santiago Vila). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 4015 | - po/ru.po, po/uk.po: |
Jordi Mallach | eb94b9e | 2001-10-15 14:26:48 +0000 | [diff] [blame] | 4016 | - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko). |
Chris Allegretta | 9a39789 | 2001-10-04 01:25:43 +0000 | [diff] [blame] | 4017 | |
Chris Allegretta | 03260b4 | 2001-10-04 01:24:07 +0000 | [diff] [blame] | 4018 | nano-1.1.2 - 10/03/2001 |
Chris Allegretta | c1049ac | 2001-08-17 00:03:46 +0000 | [diff] [blame] | 4019 | - General |
| 4020 | - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(), |
| 4021 | new flag CLEAR_BACKUPSTRING because there's no easy way to |
| 4022 | clear the backupstring without making it global (messy), so we |
| 4023 | use a flag instead (just as messy?) |
Chris Allegretta | ff98983 | 2001-09-17 13:48:00 +0000 | [diff] [blame] | 4024 | - --enable-tiny now leaves out the Auto Indent code, do you really |
| 4025 | need that on a bootdisk? =-) |
Chris Allegretta | e1f1452 | 2001-09-19 03:19:43 +0000 | [diff] [blame] | 4026 | - New flag -o, --operatingdir, similar to Pico's -o mode. New |
| 4027 | function check_operating_dir(), changes to load_file (arg), |
Chris Allegretta | e09cd1d | 2001-09-19 03:22:52 +0000 | [diff] [blame] | 4028 | open_file_dup_search (arg), new function do_gotopos for -F |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 4029 | (David Lawrence Ramsey). |
Chris Allegretta | 9184189 | 2001-09-21 02:37:01 +0000 | [diff] [blame] | 4030 | - Code to read/write dos formatted files. Massive amounts of |
Chris Allegretta | 7004c28 | 2001-09-22 00:42:10 +0000 | [diff] [blame] | 4031 | new code in read_line and write_file. New cmdline flag |
| 4032 | (-D --dos) to automatically write the file in DOS format, |
| 4033 | regardless of the original format. |
Chris Allegretta | 995177f | 2001-09-22 04:34:23 +0000 | [diff] [blame] | 4034 | - Mac file writing supported too. Flag -M, --mac. Toggle |
| 4035 | Meta-O (MacOS? OS-X? =-) |
Chris Allegretta | 3e3ae94 | 2001-09-22 19:02:04 +0000 | [diff] [blame] | 4036 | - New smooth scroll code by Ken Tyler. New flag -S, --smooth, |
Chris Allegretta | d948edc | 2001-10-02 00:38:56 +0000 | [diff] [blame] | 4037 | changes to page_up() and page_down(). Many fixes to paging by |
Chris Allegretta | 5050d35 | 2001-09-27 00:44:58 +0000 | [diff] [blame] | 4038 | David Lawrence Ramsey. |
Chris Allegretta | 8d990b5 | 2001-09-22 22:14:25 +0000 | [diff] [blame] | 4039 | - Bracket (brace, parens, etc) matching code by Ken Tyler. |
| 4040 | New functions do_find_bracket(), changes to findnextstr(), |
| 4041 | command is Meta-] (hope you dont mind since I already sold off |
Chris Allegretta | 2bef182 | 2001-09-28 19:53:11 +0000 | [diff] [blame] | 4042 | Meta-O to the MacOS file code Ken...) Fixes to bracket_msg |
| 4043 | by DLR. |
Chris Allegretta | 1b3381b | 2001-09-28 21:59:01 +0000 | [diff] [blame] | 4044 | - Call do_gotopos from do_alt_spell() to keep position |
| 4045 | consistent when invoking alt speller (DLR). |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 4046 | - Readded DISABLE_CURPOS because in certain instances (like |
Chris Allegretta | 03260b4 | 2001-10-04 01:24:07 +0000 | [diff] [blame] | 4047 | all the "Search Wrapped" lines) the cursor position will |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 4048 | be different yet we don't want the cursor position displayed. |
Chris Allegretta | e10f389 | 2001-10-02 03:54:40 +0000 | [diff] [blame] | 4049 | - Take control-space out of -tiny build, unneeded. |
Chris Allegretta | 222a086 | 2001-10-02 00:24:37 +0000 | [diff] [blame] | 4050 | - cut.c: |
| 4051 | cut_marked_segment() |
| 4052 | - Add magic line when cutting a selection including filebot |
Chris Allegretta | 31b2b81 | 2001-10-03 01:51:33 +0000 | [diff] [blame] | 4053 | (discovered by DLR, fixed by DLR & Chris, fixes BUG #66). |
Chris Allegretta | dc2ca88 | 2001-10-02 23:55:09 +0000 | [diff] [blame] | 4054 | do_cut_text() |
Chris Allegretta | 5e4b108 | 2001-10-03 00:45:06 +0000 | [diff] [blame] | 4055 | - Don't recenter the line when cutting one line (DLR) (Bug #65). |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 4056 | - faq.html: |
| 4057 | - Notes about the Free Translation Project. |
| 4058 | - Debian additions. |
Chris Allegretta | 9519eb0 | 2001-09-27 20:46:25 +0000 | [diff] [blame] | 4059 | - files.c: |
| 4060 | do_writeout() |
| 4061 | - Expanded strings to not use %s and ?: to determine |
| 4062 | write/append string to be nice to translators. |
Chris Allegretta | 1b3381b | 2001-09-28 21:59:01 +0000 | [diff] [blame] | 4063 | new_file() |
| 4064 | - Initialize totsize (DLR). |
Chris Allegretta | 0357c4d | 2001-09-19 02:59:25 +0000 | [diff] [blame] | 4065 | - nano.c: |
| 4066 | main() |
Chris Allegretta | b516d8e | 2001-10-03 00:01:36 +0000 | [diff] [blame] | 4067 | - Added var constcheck as a CRC-like check of whether cursor |
Chris Allegretta | 0357c4d | 2001-09-19 02:59:25 +0000 | [diff] [blame] | 4068 | pos has changed and if so update the pos with -c. |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 4069 | - Many tweaks and changes from numerics to char equivs |
| 4070 | (David Lawrence Ramsey). |
Chris Allegretta | 92f5fdc | 2001-10-02 02:58:07 +0000 | [diff] [blame] | 4071 | - Fix the KEY_IC being undefined when using slang. |
Chris Allegretta | 6414b40 | 2001-09-21 03:21:11 +0000 | [diff] [blame] | 4072 | do_mouse() |
| 4073 | - Send 27 when the menu item clicked is an alt key seq... The |
| 4074 | lines aren't lined up since the menu width changed though, |
| 4075 | this breakage depends on whether the new widths will be kept |
| 4076 | or not (FEEDBACK!!) |
Chris Allegretta | a951f21 | 2001-09-27 21:07:39 +0000 | [diff] [blame] | 4077 | - Change k based on currslen to allow the new widths in |
| 4078 | bottombars(). |
Chris Allegretta | 56214c6 | 2001-09-27 02:46:53 +0000 | [diff] [blame] | 4079 | do_wrap() |
| 4080 | - Fixes for Pico incompatibility in cases 2b and 2c. |
| 4081 | (David Lawrence Ramsey). |
| 4082 | global_init() |
| 4083 | - New arg save_cutbuffer, allows cutbuffer to not be lost when |
| 4084 | using multibuffer. |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 4085 | - nano.1: |
| 4086 | - Added new features, fixed some typos (Jordi). |
Jordi Mallach | 372b1a0 | 2001-08-08 19:35:23 +0000 | [diff] [blame] | 4087 | - nano.texi: |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 4088 | - Corrected the Mouse Toggle section, noticed by Daniel Bonniot. |
| 4089 | - Added many command line options, toggles and other additions |
| 4090 | (Jordi). |
Chris Allegretta | beb5497 | 2001-09-22 23:54:45 +0000 | [diff] [blame] | 4091 | - rcfile.c: |
| 4092 | - NUM_RCOPTS fix (DLR). |
Chris Allegretta | 66c33b8 | 2001-10-02 23:57:31 +0000 | [diff] [blame] | 4093 | - Add tabsize support to rc file (Nathan Heagy). |
Chris Allegretta | ca1a82e | 2001-10-03 15:18:41 +0000 | [diff] [blame] | 4094 | - Fix incorrect argument in fill and tabsize error message |
| 4095 | (Nathan Heagy) |
Chris Allegretta | 759d352 | 2001-09-27 13:04:10 +0000 | [diff] [blame] | 4096 | - search.c: |
| 4097 | - Changed search prompt to "Search" followed by a list of |
| 4098 | bracketed, free-standing modifiers that do not imply a grammar, |
| 4099 | and the (to replace) string separately. Hopefully this resolves |
| 4100 | the i18n problems that this provoked. |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 4101 | findnextstr() |
| 4102 | - Various fixes that need testing (Ken Tyler). |
Chris Allegretta | 9b3c7e8 | 2001-08-25 16:00:53 +0000 | [diff] [blame] | 4103 | - winio.c: |
| 4104 | - Add David Lawrence Ramsey to credits. |
Chris Allegretta | 96eef73 | 2001-08-25 16:41:37 +0000 | [diff] [blame] | 4105 | bottombars() |
| 4106 | - Spread out the menu items, feedback definitely needed on this. |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 4107 | nanogetstr() |
| 4108 | - More key fixes (David Lawrence Ramsey) |
Chris Allegretta | 92f5fdc | 2001-10-02 02:58:07 +0000 | [diff] [blame] | 4109 | - Don't be clever and wasteful, just repaint every iteration. |
Jordi Mallach | 2cde0a2 | 2001-09-05 13:23:53 +0000 | [diff] [blame] | 4110 | - po/nl.po: |
Jordi Mallach | c6c35ea | 2001-09-09 11:04:43 +0000 | [diff] [blame] | 4111 | - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>. |
Jordi Mallach | c1917e7 | 2001-09-28 13:06:29 +0000 | [diff] [blame] | 4112 | - po/ca.po, po/es.po: |
| 4113 | - Updated Catalan and Spanish translation (Jordi). |
Jordi Mallach | d1625cd | 2001-09-10 11:36:45 +0000 | [diff] [blame] | 4114 | - po/gl.po: |
| 4115 | - Updated Galician translation (Jacobo TarrÃo). |
Jordi Mallach | 90bbdd3 | 2001-09-12 19:06:59 +0000 | [diff] [blame] | 4116 | - po/da.po: |
| 4117 | - New Danish translation, by Keld Simonsen <keld@dkuug.dk>. |
Jordi Mallach | 6c49b3f | 2001-09-15 22:47:05 +0000 | [diff] [blame] | 4118 | - po/sv.po: |
| 4119 | - Updated Swedish translation (Christian Rose). |
Jordi Mallach | 1e36fd8 | 2001-10-01 17:24:24 +0000 | [diff] [blame] | 4120 | - po/it.po: |
| 4121 | - Updated Italian translation (Marco Colombo). |
Jordi Mallach | 780f320 | 2001-10-03 20:47:47 +0000 | [diff] [blame] | 4122 | - po/fi.po: |
| 4123 | - Updated Finnish translation (Pauli Virtanen). |
Chris Allegretta | 47a2686 | 2001-07-29 01:17:38 +0000 | [diff] [blame] | 4124 | |
Chris Allegretta | 0e8c8d8 | 2001-07-29 01:16:27 +0000 | [diff] [blame] | 4125 | nano-1.1.1 - 07/28/2001 |
Chris Allegretta | ef8f98d | 2001-07-19 12:24:17 +0000 | [diff] [blame] | 4126 | - General |
| 4127 | - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir. |
| 4128 | - Added m4/ directory to allow rebuilding using only the internal |
| 4129 | version of gettext.m4 (Albert Chin). |
Chris Allegretta | 307d4c8 | 2001-07-15 20:25:33 +0000 | [diff] [blame] | 4130 | - nano.c: |
| 4131 | main() |
Chris Allegretta | 0e8c8d8 | 2001-07-29 01:16:27 +0000 | [diff] [blame] | 4132 | - Change the multibuffer getopt option to 'F' (David Lawrence |
| 4133 | Ramsey) |
Chris Allegretta | 41ed016 | 2001-07-24 00:21:03 +0000 | [diff] [blame] | 4134 | do_mark() |
| 4135 | - Temporarily disable cursorpos when enabled to be able to see |
| 4136 | the mark (un)set message (Ken Tyler). |
Chris Allegretta | 4839d23 | 2001-07-19 22:03:51 +0000 | [diff] [blame] | 4137 | - nanorc.sample |
| 4138 | - Typo fixes and updates (David Lawrence Ramsey) |
Chris Allegretta | 5cce53b | 2001-07-17 10:42:50 +0000 | [diff] [blame] | 4139 | - files.c: |
Chris Allegretta | e642197 | 2001-07-18 01:03:36 +0000 | [diff] [blame] | 4140 | new_file() |
| 4141 | - Do add_open_files if there aren't any open yet (David Lawrence |
| 4142 | Ramsey). |
| 4143 | close_open_file() |
| 4144 | - Try to open the next file first, then the previous one |
| 4145 | (David Lawrence Ramsey). |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4146 | - global.c: |
| 4147 | shortcut_init() |
| 4148 | - Rewrote the whereis and replace lists to put CANCEL at the end |
| 4149 | of the list, and not include the toggle functions when using |
| 4150 | NANO_SMALL. |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 4151 | - nano.h: |
| 4152 | - Fix type in INSERTFILE_LIST_LEN. |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4153 | - Rewrote all the macro definitions to be a little less messy, |
| 4154 | for the #ifdefs anyway. |
Chris Allegretta | 307d4c8 | 2001-07-15 20:25:33 +0000 | [diff] [blame] | 4155 | - rcfile.c: |
| 4156 | - Update for the multibuffer option (oops) (David Lawrence Ramsey). |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 4157 | - search.c: |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4158 | - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code. |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 4159 | search_init() |
| 4160 | - add #ifdef NANO_SMALL around toggles code. |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4161 | - winio.c: |
| 4162 | bottombars() |
| 4163 | - Fixed an off by one that wasn't letting lines with odd # |
| 4164 | shortcuts work in certain cases. |
Chris Allegretta | 47f77b4 | 2001-07-15 16:13:18 +0000 | [diff] [blame] | 4165 | |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 4166 | nano-1.1.0 - 07/15/2001 |
Chris Allegretta | 6b58acd | 2001-04-12 03:01:53 +0000 | [diff] [blame] | 4167 | - General |
| 4168 | - New global variables currshortcut and currslen to support using |
Chris Allegretta | 051fc6e | 2001-05-05 23:17:36 +0000 | [diff] [blame] | 4169 | the mouse with the shortcuts. Also supports clicking on files |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 4170 | in browser. Added #ifdef DISABLE_MOUSE around this code also. |
Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 4171 | - Changed mouse disabling code from depending on --enable-tiny |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4172 | to its own flag, --disable-mouse. The --tiny option defines |
Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 4173 | this automatically, but now just mouse support can be disabled |
| 4174 | if desired. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 4175 | - File Browser supports the "Goto Directory" |
Chris Allegretta | 8d8e012 | 2001-04-18 04:28:54 +0000 | [diff] [blame] | 4176 | - Added rcfile.c source file. Only includes much of anything when |
| 4177 | --enable-nanorc is used. Tons of new funcs, most notably |
| 4178 | do_rcfile() called from nano.c:main(). Added much needed |
| 4179 | function ncalloc(), will have to go through source code later |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4180 | and change the appropriate calls which used nmalloc for lack of |
| 4181 | an appropriate calloc function *** FIXME *** |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 4182 | - After "Alternate" spell checker is called, cursor is repositioned on |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4183 | the same line as before ^T was pressed. |
Chris Allegretta | 6efda54 | 2001-04-28 18:03:52 +0000 | [diff] [blame] | 4184 | - Moved config.h up in all .c files #include list (Albert Chin). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4185 | - Added config.guess and config.sub to distribution because, |
| 4186 | apparently, newer autoconf/automakes can't live without them. |
| 4187 | - Various spelling updates by David Lawrence Ramsey. |
Chris Allegretta | 88b0915 | 2001-05-17 11:35:43 +0000 | [diff] [blame] | 4188 | - Changed all string allocations to charalloc(), new function |
| 4189 | designed to take nmalloc argument but call calloc based on |
| 4190 | (char *) size. |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 4191 | - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping |
| 4192 | and justify being disabled. This allows us to compile out the |
| 4193 | -r flag if neither are set, and will also allow us to comment |
| 4194 | out -W when it is written. |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4195 | - 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] | 4196 | value. This allows the value to vary with the screen size yet |
| 4197 | still be correct. New static value wrap_at to minimize code |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4198 | impact. Updated man page and info file. |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 4199 | - Allow file appending. New shortcut list nano_insertfile_list (since |
| 4200 | insert and write routines can't share shortcut lists anymore), |
| 4201 | new args to do_writeout and write_file called append, and of source |
| 4202 | code changes to those functions. |
Chris Allegretta | e4933a3 | 2001-06-13 02:35:44 +0000 | [diff] [blame] | 4203 | - Allow backwards searching. Drastic rewrite of the search prompt |
| 4204 | string by Chris. All other code by Ken Tyler. New globals |
| 4205 | nano_reverse_msg, new functions revstrstr and revstrcasestr, |
| 4206 | many changes to search functions. Not too big a code size |
| 4207 | increase! |
Chris Allegretta | 658399a | 2001-06-14 02:54:22 +0000 | [diff] [blame] | 4208 | - Moved extension functions (Case Sensitive, Regexp, and Backwards |
| 4209 | Search, Append key in write file function) to Meta keys, as |
| 4210 | people are complaining loudly about nano not being control-key |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4211 | compatible with Pico, which is a Bad Thing (TM). Changes to |
Chris Allegretta | 658399a | 2001-06-14 02:54:22 +0000 | [diff] [blame] | 4212 | shortcut_init, toggle_init, new toggles for backwards and regexp |
| 4213 | (and you can now toggle all search options including regexp at |
| 4214 | the Search: prompt!) Changes to nanogetstr to enable Meta |
| 4215 | keys to be grabbed, changes to onekey to print M-style shortcuts. |
| 4216 | - New macro TOGGLE which just toggles, no more silly checking |
| 4217 | ISSET and then using SET or UNSET when we want a simple toggle |
| 4218 | for a flag. |
Chris Allegretta | 2d7893d | 2001-07-11 02:08:33 +0000 | [diff] [blame] | 4219 | - Added multiple buffer capability (God help us). New configure |
Chris Allegretta | 355fbe5 | 2001-07-14 19:32:47 +0000 | [diff] [blame] | 4220 | option --enable-multibuffer (-F), changes to do_insertfile(), |
Chris Allegretta | 2d7893d | 2001-07-11 02:08:33 +0000 | [diff] [blame] | 4221 | do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(), |
| 4222 | and write_file(), new functions add_open_file(), |
| 4223 | open_file_change_name(), load_open_file(), open_file_dup_search(), |
| 4224 | open_file_dup_fix(), open_prevfile(), open_nextfile(), |
| 4225 | close_open_file(), get_full_path(), die_save_file(), etc. |
| 4226 | (David Lawrence Ramsey). |
Chris Allegretta | 355fbe5 | 2001-07-14 19:32:47 +0000 | [diff] [blame] | 4227 | - Using --enable-extra automatically defines --enable-multibuffer |
| 4228 | changes to version() and configure.in. |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 4229 | - Moved to gettext 0.10.38 at the last second, sure to break |
| 4230 | something, but at least I can run make distcheck! |
Jordi Mallach | 7fde37f | 2001-06-22 23:26:19 +0000 | [diff] [blame] | 4231 | - Makefile.am: |
| 4232 | - Include ABOUT-NLS and the new THANKS files to the distributed list. |
| 4233 | - THANKS: |
| 4234 | - Initial, incomplete list of people to thank. |
Chris Allegretta | 049149f | 2001-07-02 01:57:44 +0000 | [diff] [blame] | 4235 | - Added some more people. |
Chris Allegretta | ea066c8 | 2001-04-13 02:32:06 +0000 | [diff] [blame] | 4236 | - configure.in: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4237 | - New option, --enable-nanorc, which allows people to have a .nanorc |
Chris Allegretta | 18d70f1 | 2001-04-28 15:53:28 +0000 | [diff] [blame] | 4238 | initialization file and set options normally used on the command |
| 4239 | line, and color later on. |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 4240 | - Added --enable-color option to allow color and syntax highlighting |
Chris Allegretta | 18d70f1 | 2001-04-28 15:53:28 +0000 | [diff] [blame] | 4241 | (stub as of now). |
Chris Allegretta | 4cb991d | 2001-05-10 22:55:16 +0000 | [diff] [blame] | 4242 | - cut.c: |
| 4243 | add_to_cutbuffer() |
| 4244 | - Remove useless statements (Rocco). |
Chris Allegretta | 9fe015c | 2001-05-17 03:41:00 +0000 | [diff] [blame] | 4245 | cut_marked_segment() |
Chris Allegretta | 53ea9d1 | 2001-05-18 19:58:33 +0000 | [diff] [blame] | 4246 | - Add bizarre copy of bot node, else *BSD goes ballistic (fixes |
| 4247 | BUG #60). |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 4248 | - Added 'destructive' argument. Allows the selected text to be |
| 4249 | added to the cutbuffer without changing the contents of the |
| 4250 | file. This allows writing selection to separate files. |
Chris Allegretta | 3ba2953 | 2001-06-10 20:41:20 +0000 | [diff] [blame] | 4251 | do_cut_text() |
Chris Allegretta | a75bc41 | 2001-06-12 23:22:26 +0000 | [diff] [blame] | 4252 | - If the line is empty when using -k and wasn't already added, |
| 4253 | 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] | 4254 | - Reset marked_cut if we blow away the cutbuffer. |
Chris Allegretta | 500b5e3 | 2001-06-21 23:58:47 +0000 | [diff] [blame] | 4255 | - Moved the case of current == mark_beginbuf into cut_marked |
| 4256 | segment, so do_writeout could call it when writing selection to |
| 4257 | file. |
Chris Allegretta | 40f45c8 | 2001-06-21 15:07:40 +0000 | [diff] [blame] | 4258 | do_uncut_text() |
| 4259 | - 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] | 4260 | - faq.html: |
| 4261 | - Brought the FAQ up to date, many little changes (Jordi). |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 4262 | - 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] | 4263 | - files.c: |
| 4264 | do_browser() |
| 4265 | - Minor fixes to the processing of SELECT function (Rocco) |
| 4266 | - Added the "Goto Directory" code (Rocco) |
Chris Allegretta | d461562 | 2001-05-23 21:54:47 +0000 | [diff] [blame] | 4267 | - Don't shift the size of the file is it's less than 1K. Fixed |
| 4268 | files less than 1K being displayed as 0B (Rocco). |
Chris Allegretta | a2c02e9 | 2001-07-02 01:31:44 +0000 | [diff] [blame] | 4269 | - More Picoish keystrokes for the browser, ^P, ^N, etc, for up, |
| 4270 | down, etc, and add the consistent ^C to exit (Jim Knoble). |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 4271 | do_writeout() |
| 4272 | - New code to allow writing selected text to a separate file. |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4273 | When this is done, the current state is preserved. |
Chris Allegretta | ecc3d7f | 2001-06-05 23:24:55 +0000 | [diff] [blame] | 4274 | write_file() |
| 4275 | - New arg, nonamechange, means whether or not to update the |
| 4276 | current filename after writing the file out. |
Chris Allegretta | 1a8b296 | 2001-06-30 18:41:08 +0000 | [diff] [blame] | 4277 | - Increment lineswritten when the very last line isn't null. |
| 4278 | Fixes off by one count when writing selection to file. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 4279 | - global.c: |
| 4280 | - Updated some of the lists for the "Goto Directory" code (Rocco) |
Chris Allegretta | 6cb4e88 | 2001-04-29 02:26:17 +0000 | [diff] [blame] | 4281 | - move.c: |
| 4282 | page_up() |
| 4283 | - Rewritten with a loop to make screen updates work when |
| 4284 | mark is set (fixes bug #59). |
Chris Allegretta | 1cde322 | 2001-06-11 06:56:10 +0000 | [diff] [blame] | 4285 | do_home(), do_end() |
| 4286 | - Don't keep cutbuffer. |
Jordi Mallach | 3f8db49 | 2001-04-30 10:30:43 +0000 | [diff] [blame] | 4287 | - nano.1: |
| 4288 | - Added the missing -r flag (Jordi). |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 4289 | - nano.c: |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 4290 | do_alt_speller() |
| 4291 | - Reposition cursor on same line as before ^T was called (Rocco) |
Chris Allegretta | 316e4d9 | 2001-04-28 16:31:19 +0000 | [diff] [blame] | 4292 | ABCD(), main() |
| 4293 | - 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] | 4294 | main() |
| 4295 | - Code to silently process "-g" and "-j" (Rocco) |
Chris Allegretta | b26ecb5 | 2001-07-04 16:27:05 +0000 | [diff] [blame] | 4296 | - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen). |
Chris Allegretta | 521e00d | 2001-06-28 16:52:52 +0000 | [diff] [blame] | 4297 | signal_init() |
| 4298 | - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and |
| 4299 | SIGCONT from being interrupted, allows suspending nano |
| 4300 | to work more reliably, esp. with mutt, etc. |
| 4301 | do_suspend() |
| 4302 | - Don't try to play with the handler inside the handler. Just |
| 4303 | raise a SIGSTOP. We also now write the "use "fg"" message to |
| 4304 | stdout instead of stderr. |
Chris Allegretta | ac899e5 | 2001-06-30 04:09:09 +0000 | [diff] [blame] | 4305 | - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke. |
| 4306 | Eliminates the possibility that nano can be suspended when |
| 4307 | it's not supposed to be. Many many many thanks to Jordi and |
| 4308 | Tom Lear for helping out finding and fixing this bug! |
Chris Allegretta | 521e00d | 2001-06-28 16:52:52 +0000 | [diff] [blame] | 4309 | do_cont() |
| 4310 | - Now just does a refresh call instead of playing with the SIGTSTP |
| 4311 | handler. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 4312 | - nano.h: |
| 4313 | - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco) |
| 4314 | - proto.h: |
| 4315 | - New shortcut list added: gotodir_list (Rocco). |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 4316 | - search.c: |
| 4317 | do_gotoline() |
| 4318 | - Optimizations, remove "$" goes-to-last-line, less messages (Rocco) |
Chris Allegretta | 5050aa6 | 2001-04-22 07:10:21 +0000 | [diff] [blame] | 4319 | do_replace() |
| 4320 | - If we manage to make it in somehow with VIEW_MODE on, abort |
| 4321 | nicely (fixes BUG #59). |
Chris Allegretta | 99afb85 | 2001-05-16 04:20:57 +0000 | [diff] [blame] | 4322 | - utils.c |
| 4323 | strcasestr() |
| 4324 | - Replaced by mutt's mutt_stristr function, because the thought |
| 4325 | of dynamically allocating memory and copying each line in a file |
| 4326 | to do a search or replace was causing me to lose sleep. |
Chris Allegretta | 6efda54 | 2001-04-28 18:03:52 +0000 | [diff] [blame] | 4327 | - winio.c: |
| 4328 | actual_x() |
| 4329 | - Remove inline from function decl (Albert Chin). |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 4330 | - po/POTFILES.in: |
| 4331 | - Added utils.c to the list. |
| 4332 | - po/es.po, po/ca.po: |
| 4333 | - Updated (Jordi). |
Jordi Mallach | 9634571 | 2001-04-29 10:38:07 +0000 | [diff] [blame] | 4334 | - po/gl.po: |
Jordi Mallach | 64bacd2 | 2001-05-14 13:55:30 +0000 | [diff] [blame] | 4335 | - Galician translation by Jacobo TarrÃo. |
Jordi Mallach | 92b3bd2 | 2001-05-16 09:10:31 +0000 | [diff] [blame] | 4336 | - po/uk.po, po/ru.po: |
| 4337 | - New Ukrainian and Russian translations by Sergey A. Ribalchenko |
Jordi Mallach | 3bf6bf4 | 2001-05-14 13:11:56 +0000 | [diff] [blame] | 4338 | <fisher@obu.ck.ua>, thanks! |
Jordi Mallach | efd2236 | 2001-06-22 16:59:29 +0000 | [diff] [blame] | 4339 | - po/id.po: |
| 4340 | - Updated Indonesian translation by Tedi Heriyanto. |
Chris Allegretta | 63ba2d6 | 2001-05-16 12:16:28 +0000 | [diff] [blame] | 4341 | - po/it.po |
| 4342 | - Updated Italian translation by Marco Colombo. |
Jordi Mallach | df7d8b2 | 2001-07-05 23:16:05 +0000 | [diff] [blame] | 4343 | - po/no.po: |
| 4344 | - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>. |
| 4345 | - po/sv.po: |
| 4346 | - New Swedish translation by Christian Rose <menthos@menthos.com>. |
Chris Allegretta | ac840eb | 2001-04-07 18:21:47 +0000 | [diff] [blame] | 4347 | |
| 4348 | nano 1.1 tree forked here 04/07/2001 |
| 4349 | |
Chris Allegretta | 38068cd | 2001-04-06 20:04:23 +0000 | [diff] [blame] | 4350 | nano 1.0.1 - 04/06/2001 |
Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 4351 | - General: |
| 4352 | - added configure option --disable-wrapping. Does what it says, |
| 4353 | no wrapping or checks are done. Separate from --enable-tiny, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4354 | some may want a bare-bones Pico clone that does wrap text. |
Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 4355 | Affects configure, nano.c:do_char() and check_wrap() obviously, |
| 4356 | version(), and do_char(). |
Chris Allegretta | 3948bae | 2001-03-25 00:46:40 +0000 | [diff] [blame] | 4357 | - aclocal.m4: |
| 4358 | - Minor patch for intl check (really this time) (Albert Chin) |
Chris Allegretta | 4bf831f | 2001-03-26 15:35:34 +0000 | [diff] [blame] | 4359 | - faq.html: |
| 4360 | - Fixed typo in section 6.1 (discovered by Bob Farmer). |
Chris Allegretta | 4980517 | 2001-03-28 02:14:28 +0000 | [diff] [blame] | 4361 | - files.c: |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 4362 | - fix two typos in comments, one in ChangeLog (Matthias Andree) |
Chris Allegretta | 4980517 | 2001-03-28 02:14:28 +0000 | [diff] [blame] | 4363 | diralphasort() |
Chris Allegretta | 0876dc9 | 2001-03-28 13:04:08 +0000 | [diff] [blame] | 4364 | - Stop abort on symlinks (Matthias Andree) |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 4365 | - use strcasecmp to sort directory if available, pilot does that |
| 4366 | as well (Matthias Andree) |
| 4367 | filestat(), do_browse() |
Chris Allegretta | 0876dc9 | 2001-03-28 13:04:08 +0000 | [diff] [blame] | 4368 | - Changed lstat calls to stat, which fixes the browser not |
| 4369 | following links to directories. We only use lstat() when |
| 4370 | printing the details of the file, and if it is a link, then |
| 4371 | check via lstat() for link to a directory. If it is |
Jordi Mallach | b2c4cbe | 2001-04-02 13:47:17 +0000 | [diff] [blame] | 4372 | a directory, display (dir), else use the normal "--". |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 4373 | do_browser() |
| 4374 | - Fix broken size suffix off-by-one errors (Matthias Andree) |
| 4375 | cwd_tab_completion(), do_browse_from() |
| 4376 | - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree). |
| 4377 | - Changed above to use PATH_MAX only when defined on the |
| 4378 | system, as the HURD e.g. does not support it. |
Jordi Mallach | b2c4cbe | 2001-04-02 13:47:17 +0000 | [diff] [blame] | 4379 | - intl/Makefile.in: |
| 4380 | distclean |
| 4381 | - added intl/libintl.h to the rm -f rule, should fix the unresolved |
| 4382 | gettext symbols problem (Jordi). |
Chris Allegretta | 2071207 | 2001-03-23 03:51:48 +0000 | [diff] [blame] | 4383 | |
Chris Allegretta | 2bfbda0 | 2001-03-23 03:50:44 +0000 | [diff] [blame] | 4384 | nano-1.0.0 - 03/22/2001 |
Chris Allegretta | e316773 | 2001-03-18 16:59:34 +0000 | [diff] [blame] | 4385 | - General |
| 4386 | - Added void to functions declared as () args, nano.c:do_mark() |
| 4387 | and search.c:regexp_cleanup(). (Christian Weisgerber). |
| 4388 | - Changed internal variables called "new" to "newnode" to avoid |
| 4389 | the "new" C++ reserved word, even though there is likely no way |
| 4390 | nano will EVER be compilable with a C++ compiler. (suggested by |
| 4391 | Rocco Corsi). |
Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 4392 | - ca.po, es.po: |
| 4393 | - Final tweaks for Nano 1.0. |
Chris Allegretta | 10ae4f1 | 2001-03-20 15:51:43 +0000 | [diff] [blame] | 4394 | - cs.po: |
| 4395 | - Czech translation from Vaclav Haisman. |
Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 4396 | - nano.info: |
| 4397 | - Added dir entry (Albert Chin). |
Chris Allegretta | 35dac58 | 2001-03-21 15:07:20 +0000 | [diff] [blame] | 4398 | - winio.c: |
| 4399 | statusq() |
| 4400 | - 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] | 4401 | |
| 4402 | 1.0-test prerelease - 03/17/2001 |
Chris Allegretta | 94a78b8 | 2001-03-14 08:28:48 +0000 | [diff] [blame] | 4403 | - nano.c: |
| 4404 | do_wrap() |
| 4405 | - Added case for autoindenting text causing new line (Adam). |
| 4406 | - Added SAMELINE case to above. Added checks to cases 1b and |
| 4407 | 2b for placement of cursor. |
Chris Allegretta | 565f7d5 | 2001-03-15 02:02:20 +0000 | [diff] [blame] | 4408 | - move.c: |
| 4409 | page_down() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4410 | - Check for totlines < editwinrows in check for superfluous |
Chris Allegretta | 565f7d5 | 2001-03-15 02:02:20 +0000 | [diff] [blame] | 4411 | edit update (fixed BUG #57). |
Jordi Mallach | 5b387d7 | 2001-02-20 12:45:47 +0000 | [diff] [blame] | 4412 | - search.c: |
Chris Allegretta | 74bb31b | 2001-03-14 09:08:14 +0000 | [diff] [blame] | 4413 | print_replaced() |
Jordi Mallach | 5b387d7 | 2001-02-20 12:45:47 +0000 | [diff] [blame] | 4414 | - s/occurence/occurrence typos (Jordi). |
Chris Allegretta | 74bb31b | 2001-03-14 09:08:14 +0000 | [diff] [blame] | 4415 | search_init() |
| 4416 | - If using Pico mode and regex and same answer is entered, use |
| 4417 | last_search string instead of answer (fixes BUG #56). |
Chris Allegretta | 203ce15 | 2001-02-23 03:05:38 +0000 | [diff] [blame] | 4418 | - nano.texi: |
| 4419 | - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks). |
Chris Allegretta | 9c9c5da | 2001-02-20 03:53:31 +0000 | [diff] [blame] | 4420 | |
Chris Allegretta | a4a222d | 2001-02-20 03:52:13 +0000 | [diff] [blame] | 4421 | nano-0.9.99pre3 - 02/19/2001 |
Chris Allegretta | af6414a | 2001-02-11 19:05:05 +0000 | [diff] [blame] | 4422 | - General |
Chris Allegretta | 1bf501c | 2001-02-12 03:24:46 +0000 | [diff] [blame] | 4423 | GNU compliance issues: |
Jordi Mallach | a7b2ed0 | 2001-02-20 02:04:43 +0000 | [diff] [blame] | 4424 | - Reworked shortcut list, put "Get Help" into default list, |
Chris Allegretta | 1bf501c | 2001-02-12 03:24:46 +0000 | [diff] [blame] | 4425 | removed "Goto Line", aligned "Read File" with "Write Out" and |
| 4426 | "Replace" with "Where is" for consistency. |
| 4427 | - Added texinfo manual nano.texi. Added texi options to |
Chris Allegretta | c46dd81 | 2001-02-14 14:28:27 +0000 | [diff] [blame] | 4428 | Makefile.am. |
Chris Allegretta | de48b41 | 2001-02-01 22:56:44 +0000 | [diff] [blame] | 4429 | - configure.in: |
| 4430 | - Autoconf compatibility fixes (Pavel Roskin) |
Chris Allegretta | 618f5d7 | 2001-02-16 04:48:30 +0000 | [diff] [blame] | 4431 | - Added separate check for resizeterm(). |
Jordi Mallach | 82b1829 | 2001-02-17 01:31:32 +0000 | [diff] [blame] | 4432 | - ALL_LINGUAS: added hu and ca. |
Chris Allegretta | 09f39cb | 2001-02-05 13:43:23 +0000 | [diff] [blame] | 4433 | - cut.c: |
| 4434 | do_cut_text() |
| 4435 | - marked text cut fixes (Rocco) (Fixes bug #54). |
Chris Allegretta | 00ae5df | 2001-02-05 18:24:33 +0000 | [diff] [blame] | 4436 | - nano.c: |
Chris Allegretta | 4ed1315 | 2001-02-10 17:50:50 +0000 | [diff] [blame] | 4437 | do_delete() |
| 4438 | - Added check for current->next == fileptr, as we have a magic |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4439 | line code again, fixes silliness at the end of the last line |
Chris Allegretta | 4ed1315 | 2001-02-10 17:50:50 +0000 | [diff] [blame] | 4440 | before the magic line (reported by J.A. Neitzel). |
Chris Allegretta | 00ae5df | 2001-02-05 18:24:33 +0000 | [diff] [blame] | 4441 | do_justify() |
| 4442 | - If the keystroke after the justify is not the unjustify key, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4443 | blank the statusbar (bug reported by Neil Parks). |
Chris Allegretta | 8bc03b6 | 2001-02-09 02:57:52 +0000 | [diff] [blame] | 4444 | main() |
| 4445 | - Added ENABLE_NLS check around gettext stuff. |
Chris Allegretta | 4ce8e3b | 2001-02-16 01:49:31 +0000 | [diff] [blame] | 4446 | - winio.c: |
| 4447 | do_yesno() |
| 4448 | - Added localized yes, no and all strings to function and rewrote |
| 4449 | handler for the new format. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 4450 | - de.po: |
Jordi Mallach | 8119765 | 2001-02-16 20:00:03 +0000 | [diff] [blame] | 4451 | - Translation updates by Florian König. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 4452 | - fi.po: |
| 4453 | - Translation updates by Pauli Virtanen. |
Chris Allegretta | d096f68 | 2001-02-05 13:51:31 +0000 | [diff] [blame] | 4454 | - hu.po: |
| 4455 | - Hungarian translation by Horvath Szabolcs. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 4456 | - id.po: |
| 4457 | - Translation updates by Tedi Heriyanto. |
Jordi Mallach | 8119765 | 2001-02-16 20:00:03 +0000 | [diff] [blame] | 4458 | - es.po: |
Jordi Mallach | 6aec0d6 | 2001-02-17 01:32:58 +0000 | [diff] [blame] | 4459 | - Translation updates and grammatical/typo fixes (Jordi). |
Jordi Mallach | 82b1829 | 2001-02-17 01:31:32 +0000 | [diff] [blame] | 4460 | - ca.po: |
| 4461 | - Catalan translation by Jordi Mallach :) |
Jordi Mallach | a7b2ed0 | 2001-02-20 02:04:43 +0000 | [diff] [blame] | 4462 | - Miquel Vidal <miquel@sindominio.net> went over it and corrected |
| 4463 | many typos and completed bits that remained untranslated by error. |
Chris Allegretta | 7c1fee7 | 2001-01-31 23:24:54 +0000 | [diff] [blame] | 4464 | |
Chris Allegretta | 34318ed | 2001-01-31 23:22:36 +0000 | [diff] [blame] | 4465 | nano-0.9.99pre2 - 01/31/2001 |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 4466 | General |
Chris Allegretta | d4ddd01 | 2001-01-23 01:17:07 +0000 | [diff] [blame] | 4467 | - Removed center_x and center_y globals. center_y was |
| 4468 | completely unused and center_x was only used a few places, |
Chris Allegretta | 17276e5 | 2001-01-23 01:22:32 +0000 | [diff] [blame] | 4469 | easily replaced with COLS / 2 (oops, not current_x & y (Rob)). |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 4470 | - Deleted free_node, duplicate of delete_node, and changed all |
| 4471 | free_node calls to delete_node. |
Chris Allegretta | 0802088 | 2001-01-29 23:37:54 +0000 | [diff] [blame] | 4472 | - Fix for resizing the window in modes other than normal edit mode |
| 4473 | Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco). |
Chris Allegretta | 0fc2b81 | 2001-01-18 15:04:20 +0000 | [diff] [blame] | 4474 | - files.c: |
| 4475 | write_file() |
| 4476 | - Don't free() realname on error, if it needs to be free()d later |
| 4477 | it will be (fixes crash on successful write after failed write, |
| 4478 | discovered by David Sobon). |
Chris Allegretta | 8d9b11a | 2001-01-19 04:17:24 +0000 | [diff] [blame] | 4479 | username_tab_completion() |
| 4480 | - Optimization and removal of useless vars (Rocco). |
Chris Allegretta | 2c2c5f2 | 2001-01-23 03:27:31 +0000 | [diff] [blame] | 4481 | - Rewritten using getpwent (suggested by Rocco). |
Chris Allegretta | a711f7e | 2001-01-23 04:16:31 +0000 | [diff] [blame] | 4482 | - Removed redundant conditional (Rocco). |
Chris Allegretta | ee733e6 | 2001-01-22 22:17:08 +0000 | [diff] [blame] | 4483 | real_dir_from_tilde() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4484 | - Rewritten using getpwent (suggested by Adam, much optimized by |
| 4485 | Rocco). |
Chris Allegretta | f0b26df | 2001-01-20 22:18:18 +0000 | [diff] [blame] | 4486 | - global.c: |
| 4487 | - Don't define toggles global or toggle_init_one if using --tiny. |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 4488 | - nano.c: |
| 4489 | do_justify() |
| 4490 | - Added restoration of totsize after unjustify command. |
Chris Allegretta | 7f7ce56 | 2001-01-21 16:35:49 +0000 | [diff] [blame] | 4491 | usage() |
Chris Allegretta | e9a2d03 | 2001-01-21 16:08:21 +0000 | [diff] [blame] | 4492 | - Add arg to -T help (Rocco). |
Chris Allegretta | 0a06e07 | 2001-01-23 02:35:04 +0000 | [diff] [blame] | 4493 | global_init(), handle_sigwinch() |
| 4494 | - Messy loops replaced with memset calls (Rocco). |
Chris Allegretta | 169ee84 | 2001-01-26 01:57:32 +0000 | [diff] [blame] | 4495 | do_alt_speller() |
| 4496 | - Added code to parse multi-word alt_speller strings. |
Chris Allegretta | e434b45 | 2001-01-27 19:25:00 +0000 | [diff] [blame] | 4497 | - Fix initialization before fork() (Rocco). |
Chris Allegretta | 34318ed | 2001-01-31 23:22:36 +0000 | [diff] [blame] | 4498 | - proto.h: |
| 4499 | - Fix do_credits() proto (oops!) |
Chris Allegretta | e434b45 | 2001-01-27 19:25:00 +0000 | [diff] [blame] | 4500 | - winio.c: |
| 4501 | nanogetstr() |
| 4502 | - Sanity check for x overrunning the string buffer len. |
Chris Allegretta | 76745fb | 2001-01-18 04:40:06 +0000 | [diff] [blame] | 4503 | |
Chris Allegretta | 9d6f3f3 | 2001-01-21 02:35:03 +0000 | [diff] [blame] | 4504 | nano 0.9.99pre1 - 01/17/2001 |
Chris Allegretta | a4d6d1d | 2001-01-10 23:44:10 +0000 | [diff] [blame] | 4505 | General |
| 4506 | - Changed #ifdefs to check for both DISABLE_TABCOMP and |
| 4507 | NANO_SMALL, makes tiny option leave out tab completion, which |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 4508 | should be left out in that circumstance. Saves at least 5k. |
Rocco Corsi | 06aca1c | 2001-01-11 05:30:31 +0000 | [diff] [blame] | 4509 | - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 4510 | back. (Rocco) |
| 4511 | - Various #ifdef & #ifndef cleanups. (Rocco) |
Chris Allegretta | 201d9bf | 2001-01-14 03:17:53 +0000 | [diff] [blame] | 4512 | - Added message for when keypad goes awry. Added code in main and |
| 4513 | function print_numlock_warning() to notify user, and added an |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4514 | appropriate section in the faq to refer to this brokenness. |
Chris Allegretta | e61e830 | 2001-01-14 05:18:27 +0000 | [diff] [blame] | 4515 | - 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] | 4516 | nano.c:global_init(). (Rocco) |
Chris Allegretta | bbebec6 | 2001-01-09 00:37:32 +0000 | [diff] [blame] | 4517 | - configure.in: |
| 4518 | - Fix for _use_keypad check breaking slang support (Christian |
| 4519 | Weisgerber). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4520 | - Changed to automatically define the 5 DISABLE variables when |
Chris Allegretta | 4ee0b41 | 2001-01-11 15:11:00 +0000 | [diff] [blame] | 4521 | NANO_SMALL (enable-tiny) is requested at configure. |
Chris Allegretta | 2c4feca | 2001-01-09 17:40:56 +0000 | [diff] [blame] | 4522 | - faq.html: |
| 4523 | - Added some info on making the binary smaller with the configure |
| 4524 | script. |
Chris Allegretta | 201d9bf | 2001-01-14 03:17:53 +0000 | [diff] [blame] | 4525 | - Added section on keypad bugginess. |
Chris Allegretta | bf69261 | 2001-01-08 16:59:19 +0000 | [diff] [blame] | 4526 | - files.c: |
| 4527 | real_dir_from_tilde() |
| 4528 | - Oops, fix case where buf ="~", silly crash (bug discovered by |
| 4529 | Neil Parks). |
Chris Allegretta | 8eac3b5 | 2001-01-08 21:14:04 +0000 | [diff] [blame] | 4530 | do_browser() |
| 4531 | - Added space and - keys to do page up and down. |
Chris Allegretta | a35ec04 | 2001-01-15 02:26:12 +0000 | [diff] [blame] | 4532 | cwd_tab_completion(), input_tab() |
| 4533 | - Changed bare malloc/calloc calls to nmalloc (found by Rocco). |
Chris Allegretta | 4058709 | 2001-01-16 04:45:38 +0000 | [diff] [blame] | 4534 | - Added memset() to matchBuf to ensure sanity (Rocco, Adam). |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 4535 | - nano.c: |
Chris Allegretta | 1748cd1 | 2001-01-13 17:22:54 +0000 | [diff] [blame] | 4536 | ABCD() |
| 4537 | - New function, figures out what kbinput to return given |
| 4538 | input common to several switch statements, allows us to |
| 4539 | support the default Konsole key settings. |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 4540 | main() |
| 4541 | - Alternate speller option no longer valid if DISABLE_SPELLER is |
| 4542 | active. (Rocco) |
Chris Allegretta | ae4318d | 2001-01-16 04:18:26 +0000 | [diff] [blame] | 4543 | - Removed direct calls to usage() (#else) for -k (cut) or -s (speller) |
| 4544 | options when these have been disabled. (Rocco) |
Chris Allegretta | 3693944 | 2001-01-15 20:26:38 +0000 | [diff] [blame] | 4545 | - Initialized kbinput to get around stupid compiler warning. |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 4546 | nano_small_msg() |
| 4547 | - This function has been removed. All references now call |
| 4548 | nano_disabled_msg. (Rocco) |
| 4549 | version() |
| 4550 | - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE |
| 4551 | variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not |
| 4552 | reported as enabled when Nano is called with -V (--version) |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4553 | command line option. (Rocco) |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 4554 | usage() |
| 4555 | - Alternate speller option no longer valid if DISABLE_SPELLER is |
| 4556 | active. (Rocco) |
Chris Allegretta | e61e830 | 2001-01-14 05:18:27 +0000 | [diff] [blame] | 4557 | window_init(), handle_sigwinch() |
| 4558 | - Added check for not having enough LINES to do anything useful, |
| 4559 | if so die with an error. (Rocco) |
| 4560 | die_too_small() |
| 4561 | - Function to print the window too small error message, avoids |
| 4562 | repeated string defs and globals. |
Robert Siemborski | c2eeb4e | 2001-01-17 03:29:02 +0000 | [diff] [blame] | 4563 | do_justify() |
| 4564 | - Small fix for totsize calculation (Rob) |
| 4565 | |
Chris Allegretta | d9742c6 | 2001-01-12 15:51:53 +0000 | [diff] [blame] | 4566 | - fi.po: |
| 4567 | - Update by Pauli Virtanen. |
Chris Allegretta | 7e08082 | 2001-01-08 02:31:03 +0000 | [diff] [blame] | 4568 | |
Chris Allegretta | 1699144 | 2001-01-07 22:06:11 +0000 | [diff] [blame] | 4569 | nano 0.9.25 - 01/07/2001 |
Chris Allegretta | f4b9601 | 2001-01-03 07:11:47 +0000 | [diff] [blame] | 4570 | General - |
| 4571 | - New file browser code. New functions in files.c:do_browser(), |
| 4572 | helper functions browser_init(), tail(), striponedir(), |
| 4573 | filestat(). New shortcut list browser_list. Some new |
Chris Allegretta | 150469a | 2001-01-05 21:13:14 +0000 | [diff] [blame] | 4574 | strings to translate. Added function do_browse_from(). |
Chris Allegretta | c08f50d | 2001-01-06 18:12:43 +0000 | [diff] [blame] | 4575 | - Keypad code has been changed slightly. Now checks for |
| 4576 | _use_keypad flag in window to see whether or not to turn |
| 4577 | the keypad() back off when finished (taken from aumix). Moved |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4578 | to winio.c where it should probably be anyway. New configure |
| 4579 | check for _use_keypad in window struct. This will have to do |
Chris Allegretta | c08f50d | 2001-01-06 18:12:43 +0000 | [diff] [blame] | 4580 | for now. |
Chris Allegretta | 155d620 | 2001-01-08 01:50:37 +0000 | [diff] [blame] | 4581 | - Moved keypad() calls for PDCURSES from main() to window_init() |
| 4582 | so the keypad continues to work after a Meta-X, for example. |
| 4583 | Fixed bug #51. |
Jordi Mallach | 56e6d72 | 2000-12-19 22:59:55 +0000 | [diff] [blame] | 4584 | - faq.html: |
| 4585 | - Fix typos and small mistakes (Jordi). |
Chris Allegretta | ee289d7 | 2000-12-27 16:12:47 +0000 | [diff] [blame] | 4586 | - files.c: |
Rocco Corsi | 8b6cccc | 2001-01-02 06:21:07 +0000 | [diff] [blame] | 4587 | username_tab_completion() |
| 4588 | - Added the (char *) sizeof when allocating memory for the filename |
| 4589 | array (Rocco). |
Chris Allegretta | ee289d7 | 2000-12-27 16:12:47 +0000 | [diff] [blame] | 4590 | cwd_tab_completion() |
| 4591 | - removed skipping . and .. when tabulating matches. |
Rocco Corsi | 8b6cccc | 2001-01-02 06:21:07 +0000 | [diff] [blame] | 4592 | - Added the (char *) sizeof when allocating memory for the filename |
| 4593 | array (Rocco). |
Chris Allegretta | e1ebaf3 | 2001-01-07 05:50:36 +0000 | [diff] [blame] | 4594 | do_writeout() |
| 4595 | - Now takes an argument so the string typed in can be retained |
| 4596 | when calling the browser. |
Chris Allegretta | 816a165 | 2001-01-06 17:43:56 +0000 | [diff] [blame] | 4597 | do_browser() |
| 4598 | - Don't decrement longest by the length of path. Fixes crashes |
| 4599 | on entering various dirs (Rocco). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4600 | - Don't ungetch() the exit key, unneeded, fixes inserting a file |
Chris Allegretta | 816a165 | 2001-01-06 17:43:56 +0000 | [diff] [blame] | 4601 | causes exit code. |
Chris Allegretta | 155d620 | 2001-01-08 01:50:37 +0000 | [diff] [blame] | 4602 | - move.c: |
| 4603 | page_down() |
| 4604 | - Don't do an edit_update when there is only one page of text |
| 4605 | (fileage == edittop && filebot == editbot). Fixes Bug #50. |
Chris Allegretta | d55655f | 2000-12-27 03:36:47 +0000 | [diff] [blame] | 4606 | - nano.c: |
| 4607 | main() |
| 4608 | - Reorder the getopt options to be more or less alphabetical |
| 4609 | (suggested by Sven Guckes). |
Chris Allegretta | 66795ec | 2000-12-27 04:47:28 +0000 | [diff] [blame] | 4610 | - winio.c: |
| 4611 | do_cursorpos() |
| 4612 | - Optimizations and cleanups by Rocco Corsi. |
Chris Allegretta | 827b15f | 2001-01-03 02:09:04 +0000 | [diff] [blame] | 4613 | do_credits() |
| 4614 | - Spell Erik Andersen's name right. |
Chris Allegretta | f4b9601 | 2001-01-03 07:11:47 +0000 | [diff] [blame] | 4615 | titlebar() |
| 4616 | - Now takes an arg, needed for browser function. |
Chris Allegretta | 7044489 | 2001-01-07 23:02:02 +0000 | [diff] [blame] | 4617 | do_help() |
| 4618 | - Changed way of temporarily bringing up shortcuts at the |
| 4619 | bottom in the help screen (actually works). |
Chris Allegretta | 150469a | 2001-01-05 21:13:14 +0000 | [diff] [blame] | 4620 | - utils.c: |
| 4621 | mallocstrcpy() |
| 4622 | - Takes char pointers now instead of void (makes debugging a |
| 4623 | helluva lot easier) |
Chris Allegretta | e1ebaf3 | 2001-01-07 05:50:36 +0000 | [diff] [blame] | 4624 | - Duh, don't do anything if src == dest! |
Jordi Mallach | 75ef81b | 2001-01-04 16:48:59 +0000 | [diff] [blame] | 4625 | - es.po: |
| 4626 | - Updates for file browser (Jordi). |
Chris Allegretta | 827b15f | 2001-01-03 02:09:04 +0000 | [diff] [blame] | 4627 | |
Chris Allegretta | 66149e7 | 2000-12-19 02:51:06 +0000 | [diff] [blame] | 4628 | nano 0.9.24 - 12/18/2000 |
Chris Allegretta | 3bc8c72 | 2000-12-10 17:03:25 +0000 | [diff] [blame] | 4629 | General |
| 4630 | - Added --disable-help option, affects acconfig.h, configure(.in), |
Chris Allegretta | b7d00ef | 2000-12-18 05:36:51 +0000 | [diff] [blame] | 4631 | winio.c:do_help, nano.c:help_init,help_text_init,version. |
Chris Allegretta | 1a6e904 | 2000-12-14 13:56:28 +0000 | [diff] [blame] | 4632 | - Changed filename to no longer use PATH_MAX, so it can work on the |
| 4633 | HURD. Changes in files.c:write_file(), new function |
| 4634 | nano.c:clear_filename(), many changed in main(), a few other |
| 4635 | places. Please test this! |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 4636 | - Added -b, -e, and -f flags, which we ignore as nano provides |
| 4637 | their functionality already. |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 4638 | - cut.c: |
| 4639 | do_uncut_text() |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 4640 | - Fix renumbering bug when uncutting marked text at filebot. |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 4641 | - Fix screen not being displayed when we are uncutting marked |
| 4642 | text at editbot (Bug discovered by Ken Tyler). |
Chris Allegretta | e51c95f | 2000-12-10 05:54:27 +0000 | [diff] [blame] | 4643 | - Fix magic line not getting created when (you guessed it) |
| 4644 | uncutting marked text at filebot (Ryan Krebs). |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 4645 | - files.c: |
Chris Allegretta | 3a7c0be | 2000-12-18 01:09:07 +0000 | [diff] [blame] | 4646 | read_file() |
| 4647 | - If we encounter an error and insert is not set, run new_file(). |
| 4648 | (bug discovered by Ben Roberts). |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 4649 | write_file() |
| 4650 | - Change open call flags, basically copy joe's way of doing it so |
| 4651 | a more recent version will actually be included in (un)stable. |
Chris Allegretta | 1cd5066 | 2000-12-11 02:47:12 +0000 | [diff] [blame] | 4652 | - Remove useless fstat call. |
Chris Allegretta | 7960dcf | 2000-12-13 15:01:29 +0000 | [diff] [blame] | 4653 | open_file() |
| 4654 | - 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] | 4655 | - nano.c: |
| 4656 | renumber() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4657 | - Don't stupidly assign the value of prev->lineno if prev == NULL! |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 4658 | main() |
| 4659 | - Added code to check for Alt-Alt (27-27) keystrokes and set the |
| 4660 | next keystroke as a control sequence. New variable |
| 4661 | modify_control_key. Removed #ifdef _POSIX_VDISABLE check |
| 4662 | around Control-S,Q,Z handlers because we need it now for |
| 4663 | the Alt-Alt-x code. |
Chris Allegretta | 7492cec | 2000-12-18 04:55:21 +0000 | [diff] [blame] | 4664 | - Added --view option to getopt_long()call . Bug discovered |
| 4665 | by Rocco Corsi. |
Chris Allegretta | 220ba69 | 2000-12-18 03:40:00 +0000 | [diff] [blame] | 4666 | help_init() |
| 4667 | - 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] | 4668 | ^_ in Pico mode not be displayed in the help (bug discovered by |
Chris Allegretta | 92325e7 | 2000-12-18 03:44:22 +0000 | [diff] [blame] | 4669 | Rocco Corsi). |
Chris Allegretta | affeda8 | 2000-12-18 04:03:48 +0000 | [diff] [blame] | 4670 | do_toggle() |
| 4671 | - Added fix_editbot() call to fix improper redisplay of edit |
| 4672 | window when using nohelp toggle (bug discovered by Rocco Corsi). |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 4673 | - nano.1, nano.1.html: |
| 4674 | - Updated man page for -b, -e, -f and expanded explanation for -p. |
Chris Allegretta | d1627cf | 2000-12-18 05:03:16 +0000 | [diff] [blame] | 4675 | - winio.c |
| 4676 | do_help() |
| 4677 | - Force keypad on so F-keys and PageUp/Down will work properly. |
| 4678 | Added check for NANO_EXIT_FKEY to loop. |
Chris Allegretta | e51c95f | 2000-12-10 05:54:27 +0000 | [diff] [blame] | 4679 | - utils.c: |
| 4680 | new_magicline() |
Chris Allegretta | 321590a | 2000-12-10 06:03:40 +0000 | [diff] [blame] | 4681 | - Increment totsize!! We decrement it when we've read a file, |
| 4682 | everywhere else it should automatically be incremented |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 4683 | |
Chris Allegretta | b29550e | 2000-12-09 03:34:12 +0000 | [diff] [blame] | 4684 | nano 0.9.23 - 12/08/2000 |
Chris Allegretta | 7b36c52 | 2000-12-06 01:08:10 +0000 | [diff] [blame] | 4685 | General |
| 4686 | - Changed --disable-spell to --disable speller. The term is |
| 4687 | "speller" for -s, so it should be --disable-speller. |
Chris Allegretta | 5982849 | 2000-12-04 03:31:39 +0000 | [diff] [blame] | 4688 | - files.c: |
| 4689 | write_file() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4690 | - Added tmp check to TMP_OPT section (how appropriate). |
Chris Allegretta | 07f9ee0 | 2000-12-04 05:15:39 +0000 | [diff] [blame] | 4691 | - Added new consistency checking code from securityfocus |
Chris Allegretta | fb2226a | 2000-12-04 05:25:47 +0000 | [diff] [blame] | 4692 | article by Oliver Friedrichs, and use O_EXCL if tmp == 1. |
Chris Allegretta | 928a7f5 | 2000-12-04 05:31:34 +0000 | [diff] [blame] | 4693 | - We now run check on result of lstat(), not stat(), to be |
| 4694 | safer. New variable anyexists, we use still use realexists |
| 4695 | later in the program. |
Chris Allegretta | 71e4640 | 2000-12-06 00:40:26 +0000 | [diff] [blame] | 4696 | - OOPS, line up link/unlink/rename check if conditional with |
| 4697 | top if conditional. Option -l has been broken for 9 versions, |
| 4698 | no one noticed?! |
Chris Allegretta | 1bd0ce2 | 2000-12-06 05:56:08 +0000 | [diff] [blame] | 4699 | - Added saving perms at end of link so we can apply them to the |
| 4700 | new file if --nofollow is used. |
Chris Allegretta | 908805a | 2000-12-04 04:42:56 +0000 | [diff] [blame] | 4701 | - winio.c: |
| 4702 | edit_add() |
| 4703 | - Off by one display error (fix by Rocco Corsi). |
Chris Allegretta | fb62f73 | 2000-12-05 11:36:41 +0000 | [diff] [blame] | 4704 | do_replace_highlight() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4705 | - New code to handle being past COLS (Rocco Corsi). |
Chris Allegretta | fb62f73 | 2000-12-05 11:36:41 +0000 | [diff] [blame] | 4706 | - Moved from search.c, as it's definitely a winio function now =) |
| 4707 | update_line() |
| 4708 | - More '$' display fixes (Rocco Corsi). |
Chris Allegretta | 5982849 | 2000-12-04 03:31:39 +0000 | [diff] [blame] | 4709 | |
Chris Allegretta | fedd724 | 2000-12-03 03:15:38 +0000 | [diff] [blame] | 4710 | nano 0.9.22 - 12/02/2000 |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 4711 | - General |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 4712 | - Username tab completion code, and cleaned up existing tabcomp |
| 4713 | code. New functions real_dir_from_tide(), append_slash_if_dir(), |
| 4714 | username_tab_completion is more than a stub now =-). |
Chris Allegretta | 7262358 | 2000-11-29 23:43:28 +0000 | [diff] [blame] | 4715 | - Ignore key sequence 543 & 545, right control and alt keys in |
| 4716 | windows. Affects main() and winio.c:nanogetstr(). |
Chris Allegretta | 56b24b5 | 2000-11-29 23:57:20 +0000 | [diff] [blame] | 4717 | - Took out help from spell_list and changed SPELL_LIST_LEN to 1. |
| 4718 | Is using a spell checker THAT difficult? =-) |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4719 | - New function nano_disabled_msg(), to alert that certain |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4720 | functions have been disabled, similar to nano_tiny feature. |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4721 | - New configure options: |
| 4722 | - Added configure argument --disable-tabcomp. Affects |
| 4723 | bottom of files.c and write_file, utils.c:check_wildcard_match() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4724 | and winio.c:nanogetstr(). |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4725 | - New options --enable-extra. New code in nano.c:version() to |
| 4726 | print out various options from ./configure, function do_credits(). |
| 4727 | - Added --disable-spell option for those who want to just disable |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4728 | the spell check feature. Affects the spelling functions |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4729 | do_spell, do_int_speller and do_alt_speller. |
| 4730 | - Added --disable-justify to get rid of the justify function. |
| 4731 | Affects do_justify() (not surprisingly). |
Chris Allegretta | 650e8a4 | 2000-11-24 14:15:17 +0000 | [diff] [blame] | 4732 | - files.c: |
| 4733 | write_file() |
| 4734 | - Unsetting modified on temp files bug fixed (Rocco Corsi). |
Chris Allegretta | 581bc60 | 2000-12-03 03:01:12 +0000 | [diff] [blame] | 4735 | - Okay, if tmp == 1 and the file exists, we abort. |
Chris Allegretta | 25f4e58 | 2000-11-25 05:03:20 +0000 | [diff] [blame] | 4736 | do_insertfile() |
Chris Allegretta | 09a8084 | 2000-11-30 02:31:13 +0000 | [diff] [blame] | 4737 | - Added call to real_name_from tilde, oops. Added check for |
| 4738 | DISABLE_TABCOMP. |
Chris Allegretta | 24946bd | 2000-11-26 21:34:47 +0000 | [diff] [blame] | 4739 | read_file() |
| 4740 | - Added check for fileptr == NULL. |
Chris Allegretta | 0779835 | 2000-11-27 22:58:23 +0000 | [diff] [blame] | 4741 | - global.c: |
| 4742 | shortcut_init() |
| 4743 | - Now takes an argument as to whether to display the unjustify |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4744 | shortcut or the normal uncut text one. Needed to accommodate |
| 4745 | the kludgey unjustify code. |
Chris Allegretta | 8be8ce2 | 2000-11-28 02:15:30 +0000 | [diff] [blame] | 4746 | - nano.1, nano.1.html: |
| 4747 | - Updated date on pages because of -p changes. |
Jordi Mallach | d7ad75a | 2000-12-03 02:46:02 +0000 | [diff] [blame] | 4748 | - Added "NOTES" section, where I explain what nano.save & friends |
| 4749 | are. |
| 4750 | - Added a copyright notice for the manpage, under the GPL. |
| 4751 | - Other minor changes. |
Chris Allegretta | 9149e61 | 2000-11-27 00:23:41 +0000 | [diff] [blame] | 4752 | - nano.c: |
| 4753 | do_justify() |
Chris Allegretta | 8be8ce2 | 2000-11-28 02:15:30 +0000 | [diff] [blame] | 4754 | - Wrote unjustify code. Borrows cutbuffer and stores the unjustified |
| 4755 | text there, then grabs the next keystroke and, if the unjustify |
| 4756 | key, gets rid of the justified text and calls do_uncut_text. |
| 4757 | Added macro NANO_UNJUSTIFY_KEY. |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 4758 | do_int_spell* |
| 4759 | - Various fixes (Rocco Corsi). |
| 4760 | - Changed abort of program to aborting based on value of "edit a |
| 4761 | replacement" question, and not caring about the replace loop |
| 4762 | return value. That way the user can get out of the replace loop |
| 4763 | and continue spell checking (very important to me anyway). |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 4764 | version() |
| 4765 | - Took out huge check for the various --disabled macros, |
| 4766 | eventually there will be too many to reasonably check for. |
Chris Allegretta | 4eb7aa0 | 2000-12-01 18:57:11 +0000 | [diff] [blame] | 4767 | nano_small_msg(), nano_disabled_msg() |
| 4768 | - Added checks for disabled functions to see whether or not to |
| 4769 | declare them. |
Chris Allegretta | 9e2934f | 2000-12-01 23:49:48 +0000 | [diff] [blame] | 4770 | do_next_word() |
| 4771 | - Update the previous line as well as the current one in case we |
| 4772 | have moved beyond COLS or back from COLS, patch submitted |
| 4773 | by Ryan Krebs. |
Chris Allegretta | e7a5893 | 2000-12-02 02:36:22 +0000 | [diff] [blame] | 4774 | die() |
| 4775 | - Now creates .save file using variable-length strings. Also |
| 4776 | calls write_file with tmp == 1, which happens to do exactly what |
Chris Allegretta | 581bc60 | 2000-12-03 03:01:12 +0000 | [diff] [blame] | 4777 | we want (abort on save file exists and use mode 0600). |
Chris Allegretta | e7a5893 | 2000-12-02 02:36:22 +0000 | [diff] [blame] | 4778 | handle_sighup() |
| 4779 | - Now calls die instead of writing on its own and exiting normally. |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 4780 | - search.c: |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 4781 | do_replace_highlight() |
| 4782 | - New function, displays the currently selected word as highlighted |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 4783 | in the spell check. Called from do_replace_loop (Rocco Corsi). |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 4784 | - Added calls to curs_set(0) and (1) to disable the cursor when |
| 4785 | highlighting, looks much better. |
Jordi Mallach | d819a4c | 2000-11-25 04:50:25 +0000 | [diff] [blame] | 4786 | - es.po: |
| 4787 | - Traditional Spanish strings updates. |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 4788 | |
Chris Allegretta | ca7a21d | 2000-11-24 01:35:40 +0000 | [diff] [blame] | 4789 | nano 0.9.21 - 11/23/2000 |
Chris Allegretta | f26bca7 | 2000-11-21 03:04:45 +0000 | [diff] [blame] | 4790 | - AUTHORS |
| 4791 | - Added Rocco Corsi. |
Chris Allegretta | 31c7666 | 2000-11-21 06:20:20 +0000 | [diff] [blame] | 4792 | - nano.c: |
| 4793 | main() |
| 4794 | - Changed check for argc == 1 to argv[optind] == NULL to decide |
| 4795 | whether or not to display "New File" in the statusbar. |
Chris Allegretta | aaabe1f | 2000-11-19 18:20:07 +0000 | [diff] [blame] | 4796 | - search.c: |
| 4797 | findnextstr() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4798 | - Fix current_x increment bug by using another variable (Rocco Corsi). |
Chris Allegretta | ef601bb | 2000-11-19 19:15:03 +0000 | [diff] [blame] | 4799 | search_init() |
| 4800 | - Silly typo in our "one simple call" of statusq. Stopped |
| 4801 | previous search string from being displayed. |
Chris Allegretta | c793c43 | 2000-11-21 12:52:55 +0000 | [diff] [blame] | 4802 | do_replace() |
| 4803 | - Copy back the previous value of last_replace into answer if |
| 4804 | using PICO_MODE and answer == "" |
Chris Allegretta | 6c5781b | 2000-11-23 01:19:58 +0000 | [diff] [blame] | 4805 | - winio.c: |
| 4806 | do_up() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4807 | - Deleted first update_line() call, screws up display when marker is |
| 4808 | set. |
Chris Allegretta | d466ab7 | 2000-11-19 20:36:41 +0000 | [diff] [blame] | 4809 | - nano.1, nano.1.html |
| 4810 | - Updated man page for new -p definition. |
Chris Allegretta | ac0e63a | 2000-11-19 02:25:43 +0000 | [diff] [blame] | 4811 | |
Chris Allegretta | 6da149a | 2000-11-19 02:23:03 +0000 | [diff] [blame] | 4812 | nano 0.9.20 - 11/18/2000 |
Chris Allegretta | 67574f4 | 2000-11-03 03:35:29 +0000 | [diff] [blame] | 4813 | - General |
| 4814 | - Ran source through indent -kr again. Make everything pretty. |
| 4815 | - Changed behavior of "search" and "replace" prompts to make all |
| 4816 | previous values editable. This change was made so that you can |
| 4817 | replace with the null string without needing a special key for it. |
| 4818 | changed code in search_init(), do_replace(), nanogetstr (see |
| 4819 | below). |
| 4820 | - Added some missing gettext calls here and there (Jordi). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4821 | - Revamped nanogetstr() and calls to it to use variable length |
| 4822 | strings. |
Chris Allegretta | 67574f4 | 2000-11-03 03:35:29 +0000 | [diff] [blame] | 4823 | MANY changes in nanogetstr(), many chances in search.c, new |
| 4824 | function mallocstrcpy which is sure to be a programmatic |
| 4825 | nightmare, changed last_search, last_replace, answer to |
| 4826 | pointers. New function not_found_msg in search.c for displaying |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4827 | truncated strings in statusbar when the string is not found |
Chris Allegretta | cbb0f8b | 2000-11-15 03:50:02 +0000 | [diff] [blame] | 4828 | (-pedantic fixes by Rocco Corsi). We disable this feature when |
Chris Allegretta | bf9a8cc | 2000-11-17 01:37:39 +0000 | [diff] [blame] | 4829 | using PICO_MODE (-p). |
Chris Allegretta | 27eb13f | 2000-11-05 16:52:21 +0000 | [diff] [blame] | 4830 | - New spelling code by Rocco Corsi. New functions |
| 4831 | do_int_speller, do_alt_speller, changes to do_spell in nano.c, |
| 4832 | New functions search_init_globals and do_replace_loop, changes |
| 4833 | to search_init(), do_replace, findnextstr, moved last_search and |
| 4834 | last_replace back to nano.c (*shrug*). |
Chris Allegretta | 04d848e | 2000-11-05 17:54:41 +0000 | [diff] [blame] | 4835 | - New tab completion code. Used check_wildcard_match, input_tab, |
| 4836 | cwd_tab_completion, username_tab_completion from busybox, |
Chris Allegretta | 7da4e9f | 2000-11-06 02:57:22 +0000 | [diff] [blame] | 4837 | hacked them a lot, changes to nanogetstr(). nanogetstr() and |
| 4838 | statusq() now take an arg for whether or not to allow tab |
| 4839 | completion. |
Chris Allegretta | 5bf51d3 | 2000-11-16 06:01:10 +0000 | [diff] [blame] | 4840 | - Fixed value being input in statusbar during a search or replace |
| 4841 | and CASE_SENSITIVE or the other search is called and the |
| 4842 | string being typed in is blown away. Reported by Ken Tyler. |
Chris Allegretta | bf9a8cc | 2000-11-17 01:37:39 +0000 | [diff] [blame] | 4843 | - Changed PICO_MSGS flag to PICO_MODE, changed help strings |
| 4844 | accordingly. |
Chris Allegretta | 92d2bab | 2000-11-02 14:53:46 +0000 | [diff] [blame] | 4845 | - files.c: |
| 4846 | do_writeout() |
| 4847 | - Change strcpy to answer to mallocstrcpy. |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 4848 | - global.c |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 4849 | - New global replace_list_2, for 2nd half of the replace dialog |
| 4850 | ("Replace with:"), has fewer options than first half because |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4851 | they were inappropriate. |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 4852 | toggle_init() |
| 4853 | - Added #ifdef around toggle_regex_msg to get rid of compiler |
| 4854 | warning. |
Chris Allegretta | 1cc0b7f | 2000-11-03 01:29:04 +0000 | [diff] [blame] | 4855 | |
| 4856 | - nano.c: |
| 4857 | keypad_on() |
| 4858 | - New function, toggles turning the keypad on and off in edit and |
| 4859 | bottomwin(). Added call to this in finish(), fixes bug #45. |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 4860 | - search.c |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4861 | findnextstr() |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 4862 | - New arg for begin_x variable, basically a rewrite that |
| 4863 | makes a little more sense and isn't quite as messy (Rocco Corsi). |
| 4864 | - Update the line we're checking if not the whole screen, because |
| 4865 | it's quite possible the search team could exist somewhere way |
| 4866 | to the right on the same line, for example. |
| 4867 | replace_abort() |
| 4868 | - Add reset of placewewant, stops cursor from jumping when moving |
| 4869 | cursor after a replace. |
Chris Allegretta | 810632d | 2000-10-27 04:36:01 +0000 | [diff] [blame] | 4870 | do_replace() |
| 4871 | - Added code for Gotoline key after entering the search term. |
| 4872 | Fixes bug #46. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4873 | - Removed redundant code involving processing replacement string. |
Chris Allegretta | 9c371a2 | 2000-10-27 05:48:05 +0000 | [diff] [blame] | 4874 | Converted if statements to switch statements. |
| 4875 | - Optimizations by Rocco Corsi. |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 4876 | - Removed code for deleted shortcuts from in replace_list_2. |
Chris Allegretta | 9c371a2 | 2000-10-27 05:48:05 +0000 | [diff] [blame] | 4877 | do_search() |
| 4878 | - Converted if statements to one switch statement. |
Chris Allegretta | f9b6c9b | 2000-10-18 19:35:59 +0000 | [diff] [blame] | 4879 | - winio.c |
| 4880 | nanogetstr() |
| 4881 | - Added check for 343 in while loop to get rid of getting "locked" |
| 4882 | into statusbar" bug in odd $TERMs like iris-ansi. |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 4883 | - Changed check to return -2 on "enter" from answer == "" |
| 4884 | to answer == def. |
Chris Allegretta | 04d848e | 2000-11-05 17:54:41 +0000 | [diff] [blame] | 4885 | - Fixed fallthrough code because there was no break. Make much |
| 4886 | more sense now. |
Chris Allegretta | 5b1faac | 2000-11-16 19:55:30 +0000 | [diff] [blame] | 4887 | - Added check for ASCII 54[124] when using PDCURSES, ignore them |
| 4888 | if noticed. |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 4889 | nanoget_repaint() |
| 4890 | - New function, removes about 30 lines of duplicate code in |
| 4891 | nanogetstr(). |
Chris Allegretta | 90594e2 | 2000-11-02 15:53:40 +0000 | [diff] [blame] | 4892 | - Black magic code to make $ appear in prompt if we're past |
| 4893 | COLS. |
Chris Allegretta | 2c97522 | 2000-11-15 01:25:42 +0000 | [diff] [blame] | 4894 | blank_edit() |
| 4895 | - Removed wrefresh() call, much less choppy now. If there's a need |
| 4896 | for a wrefresh after a specific call, let me know. |
Jordi Mallach | 0ae0dcd | 2000-10-28 12:38:02 +0000 | [diff] [blame] | 4897 | - es.po: |
Jordi Mallach | d25385b | 2000-11-18 03:31:21 +0000 | [diff] [blame] | 4898 | - Updated translation for 0.9.20 (Jordi). |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 4899 | |
Chris Allegretta | 07e97d6 | 2000-10-03 01:52:50 +0000 | [diff] [blame] | 4900 | nano 0.9.19 - 10/02/2000 |
Chris Allegretta | ad1dacc | 2000-09-21 04:25:45 +0000 | [diff] [blame] | 4901 | - General |
| 4902 | - Added PDCurses support under cygwin, which allows building |
| 4903 | a nice stand-alone nano.exe for those poor Windows users. |
| 4904 | Extra check in configure.in for initscr() in -lcurses (as |
| 4905 | PDcurses has no tgetent), some #ifdef PDCURSES statements |
| 4906 | in main(). |
Chris Allegretta | 66989d6 | 2000-09-27 03:16:11 +0000 | [diff] [blame] | 4907 | - Changed web site and email to new nano-editor.org domain. |
Chris Allegretta | 7c44b68 | 2000-09-21 04:27:01 +0000 | [diff] [blame] | 4908 | - nano.c |
Chris Allegretta | 9e7efa3 | 2000-10-02 03:42:55 +0000 | [diff] [blame] | 4909 | - Added (int) casts to remove compile warnings with -Wall. |
Chris Allegretta | 7c44b68 | 2000-09-21 04:27:01 +0000 | [diff] [blame] | 4910 | main() |
| 4911 | - Added check for _POSIX_VDISABLE around term variable definition. |
Chris Allegretta | df3afdc | 2000-10-01 17:50:29 +0000 | [diff] [blame] | 4912 | - search.c |
| 4913 | - Added initializations for last_search and last_replace (Rocco Corsi) |
| 4914 | |
Chris Allegretta | 629edad | 2000-09-19 00:27:19 +0000 | [diff] [blame] | 4915 | nano 0.9.18 - 09/18/2000 |
Chris Allegretta | 805c26d | 2000-09-06 13:39:17 +0000 | [diff] [blame] | 4916 | - General |
| 4917 | - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H, |
| 4918 | added check for regex.h in configure.in. |
Chris Allegretta | 90bd712 | 2000-09-13 18:12:05 +0000 | [diff] [blame] | 4919 | - configure.in: |
| 4920 | - Added default case for cross-compiling to get rid of annoying |
| 4921 | AC_TRY_RUN warning. |
Chris Allegretta | 429a551 | 2000-09-05 13:09:56 +0000 | [diff] [blame] | 4922 | - cut.c: |
| 4923 | do_cut_text() |
| 4924 | - 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] | 4925 | set (fixes bug #42). |
Chris Allegretta | f45c18d | 2000-09-16 05:25:06 +0000 | [diff] [blame] | 4926 | - files.c: |
| 4927 | open_file() |
| 4928 | - Fix for bug #44 (Rocco Corsi). |
Chris Allegretta | 16e4168 | 2000-09-11 22:33:54 +0000 | [diff] [blame] | 4929 | - global.c: |
| 4930 | shortcut_init() |
| 4931 | - Added in FKEYs that for some reason were left out. *boggle* |
Chris Allegretta | 9239d74 | 2000-09-06 15:19:18 +0000 | [diff] [blame] | 4932 | - nano.c: |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4933 | main() |
Chris Allegretta | 9239d74 | 2000-09-06 15:19:18 +0000 | [diff] [blame] | 4934 | - Added check for _POSIX_VDISABLE and use raw mode if not |
| 4935 | available, allows nano to work with cygwin. |
Jordi Mallach | 2dc0f6b | 2000-09-07 10:48:00 +0000 | [diff] [blame] | 4936 | - Added gettext calls to enable/disable strings (Jordi). |
Chris Allegretta | 16e4168 | 2000-09-11 22:33:54 +0000 | [diff] [blame] | 4937 | - Revamped a great deal of the F-key and keypad key handling, |
| 4938 | because we not longer use keypad() (see below). |
| 4939 | - Removed keypad() call because nano was not working with the |
| 4940 | keypad in many terms, which is very bad. |
Chris Allegretta | 9c35eb0 | 2000-09-13 14:24:52 +0000 | [diff] [blame] | 4941 | - Made insert key call do_insertfile(). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4942 | do_toggle() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4943 | - Rewrote function to allow NOHELP toggle to work on systems |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4944 | without a working resizewin(). New function window_init(). |
Chris Allegretta | 0b88ce0 | 2000-09-15 15:46:32 +0000 | [diff] [blame] | 4945 | mouse_init() |
| 4946 | - Add keypad only if mouse support is on, otherwise mouse doesn't |
| 4947 | work. I guess you have to choose between having the mouse and |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4948 | 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] | 4949 | - winio.c: |
| 4950 | total_refresh() |
| 4951 | - Added titlebar() call. |
Chris Allegretta | e7034c6 | 2000-09-15 03:31:09 +0000 | [diff] [blame] | 4952 | onekey() |
| 4953 | - Off by one error fix fix ;-) (Rocco Corsi). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 4954 | |
Chris Allegretta | b9bfc9b | 2000-09-10 05:06:09 +0000 | [diff] [blame] | 4955 | - search.c: |
| 4956 | findnextstr() |
| 4957 | - Reset starting at current for search instead of begin. |
Jordi Mallach | 2dc0f6b | 2000-09-07 10:48:00 +0000 | [diff] [blame] | 4958 | - es.po: |
| 4959 | - Translated new strings and minor updates (Jordi). |
Chris Allegretta | 834a69d | 2000-09-18 17:11:33 +0000 | [diff] [blame] | 4960 | - de.po |
| 4961 | - Revised translations by floki@bigfoot.com |
Chris Allegretta | 429a551 | 2000-09-05 13:09:56 +0000 | [diff] [blame] | 4962 | |
Chris Allegretta | 423cbfd | 2000-09-04 16:21:29 +0000 | [diff] [blame] | 4963 | nano-0.9.17 - 09/04/2000 |
Chris Allegretta | 756f220 | 2000-09-01 13:32:47 +0000 | [diff] [blame] | 4964 | - General |
| 4965 | - New shortcuts to toggle certain options that are normally only |
| 4966 | flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called |
| 4967 | toggles in nano.h, toggle_init(), toggle_init_one() in global.c |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 4968 | called from shortcut_init(), and do_toggle in nano.c. Also |
| 4969 | moved the signal code into a separate function in nano.c called |
Chris Allegretta | 18f8be0 | 2000-09-04 03:20:38 +0000 | [diff] [blame] | 4970 | signal_init(). Moved "struct sigaction act"into a static in |
| 4971 | nano.c. |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 4972 | - Changed from Alt-key symbol (@) which is completely nonstandard |
| 4973 | to the *nix "Meta" symbol (M-). Changed help_init to show |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4974 | 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] | 4975 | Meta. Moved the toggle Meta keystrokes to the first column |
| 4976 | instead of the third as they are the primary keystrokes for the |
Chris Allegretta | 9541f2a | 2000-09-02 07:31:32 +0000 | [diff] [blame] | 4977 | functions. Thanks Mini editor team :-> |
Chris Allegretta | 756f220 | 2000-09-01 13:32:47 +0000 | [diff] [blame] | 4978 | - Changed last_search and last_replace vars to statically |
| 4979 | allocated (hence nulled) and moved to search.c (Matt Kraai). |
Chris Allegretta | f0f63a8 | 2000-09-02 18:44:21 +0000 | [diff] [blame] | 4980 | - global.c: |
| 4981 | toggle_init() |
| 4982 | - Changed "No auto wrap" and "No help mode" to "Auto wrap" and |
| 4983 | "Help mode". See the change to do_toggle() below. |
Chris Allegretta | e10debd | 2000-08-22 01:26:42 +0000 | [diff] [blame] | 4984 | - nano.c: |
| 4985 | do_mouse() |
| 4986 | - Patch for handling lines w/tabs and mouse better (Ben Roberts). |
Chris Allegretta | 340d6e5 | 2000-08-29 03:55:29 +0000 | [diff] [blame] | 4987 | do_wrap() |
| 4988 | - Made wrapping code less ambitious. |
Chris Allegretta | f0f63a8 | 2000-09-02 18:44:21 +0000 | [diff] [blame] | 4989 | do_toggle() |
| 4990 | - Added checks for no help and no wrap mode, and print opposite |
| 4991 | enable/disable message. |
Chris Allegretta | 18f8be0 | 2000-09-04 03:20:38 +0000 | [diff] [blame] | 4992 | do_suspend(), do_cont(): |
| 4993 | - New functions, handle suspend signal in a Pico-like manner and |
| 4994 | work with Meta-Z. |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 4995 | - winio.c: |
| 4996 | total_refresh() |
| 4997 | - Added edit_refresh() call to actually update the screen if messy. |
| 4998 | edit_refresh_clearok() |
| 4999 | - New function, does a total update for edit refresh, needed to fix |
| 5000 | lack of reversed text on searching with MARK_ISSET. |
Chris Allegretta | dabc3cb | 2000-08-25 01:44:12 +0000 | [diff] [blame] | 5001 | onekey() |
| 5002 | - Off by one error fix (Rocco Corsi). |
Chris Allegretta | e7034c6 | 2000-09-15 03:31:09 +0000 | [diff] [blame] | 5003 | |
Chris Allegretta | 6306a11 | 2000-09-02 07:55:41 +0000 | [diff] [blame] | 5004 | update_line() |
| 5005 | - Added check for binary data >= 1 and <= 26, and use ^+letter |
| 5006 | to display it. Should fix editing text files with binary |
| 5007 | data in them. Placing of the cursor seems to be a bit screwed |
| 5008 | though... |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 5009 | - search.c: |
| 5010 | search_abort() |
| 5011 | - Now calls edit_refresh_clearok when MARK_ISSET to handle screen |
| 5012 | ugliness bug (reported by Ken Tyler). |
Chris Allegretta | e10debd | 2000-08-22 01:26:42 +0000 | [diff] [blame] | 5013 | findnextstr(): |
| 5014 | - Added reset for placewewant (Ben Roberts). |
Chris Allegretta | 9babaf3 | 2000-08-30 13:49:33 +0000 | [diff] [blame] | 5015 | - Fixed check for string that only occurs on the same line failing |
| 5016 | (discovered by Ken Tyler). |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 5017 | |
Chris Allegretta | ba96f7a | 2000-08-09 21:38:28 +0000 | [diff] [blame] | 5018 | nano-0.9.16 - 08/09/2000 |
Chris Allegretta | 7dc14e8 | 2000-08-05 16:03:19 +0000 | [diff] [blame] | 5019 | - cut.c: |
| 5020 | do_cut_text() |
| 5021 | - Fixed getting locked into cutbuffer on cutting first line of file. |
Chris Allegretta | c86f714 | 2000-08-07 14:39:32 +0000 | [diff] [blame] | 5022 | - Added check_statblank(). |
| 5023 | - Check for fileptr == filebot, if so return, we shouldn't bother |
| 5024 | cutting the magic line. |
| 5025 | do_uncut_text() |
| 5026 | - Added check_statblank(). |
Chris Allegretta | 4dbcc3c | 2000-08-04 15:44:29 +0000 | [diff] [blame] | 5027 | - nano.c: |
| 5028 | main() |
| 5029 | - Changed tabsize long arg to actually accept an argument *sigh*. |
Chris Allegretta | 81b1eea | 2000-08-05 16:09:07 +0000 | [diff] [blame] | 5030 | - po/Makefile.in.in: |
| 5031 | - Patch to handle $DESTDIR (orig by Dan Harnett contributed by |
| 5032 | Christian Weisgerber) |
Chris Allegretta | b4dc9e0 | 2000-08-05 22:49:30 +0000 | [diff] [blame] | 5033 | - configure.in: |
Chris Allegretta | a2efc36 | 2000-08-09 03:26:33 +0000 | [diff] [blame] | 5034 | - New (and severally revised =) slang test code (Albert Chin-A-Young) |
Chris Allegretta | 4dbcc3c | 2000-08-04 15:44:29 +0000 | [diff] [blame] | 5035 | |
Chris Allegretta | 0bf4e14 | 2000-08-04 02:42:04 +0000 | [diff] [blame] | 5036 | nano-0.9.15 - 08/03/2000 |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5037 | - Changed edit_update call to take arguments TOP, CENTER or BOTTOM. |
| 5038 | Affects many many functions. Removed functions edit_update_top and |
| 5039 | edit_update_bot. |
Chris Allegretta | 6d690a3 | 2000-08-03 22:51:21 +0000 | [diff] [blame] | 5040 | - Added global variable tabsize, we no longer screw with the curses |
| 5041 | library in order to implement -T (suggested by Christian Weisgerber). |
Chris Allegretta | 7a6f0d9 | 2000-07-31 13:00:24 +0000 | [diff] [blame] | 5042 | - configure.in: |
| 5043 | - Finally fixed check for slang to report "no" if not called |
| 5044 | with --with-slang or --without-slang |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 5045 | - nano.c: |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 5046 | splice_node() |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 5047 | - New function, abstracts linking in nodes. Fixes bug #36. |
Chris Allegretta | 6925bbd | 2000-07-28 01:41:29 +0000 | [diff] [blame] | 5048 | null_at() |
| 5049 | - New function, nulls a string at a given index and realigns it. |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 5050 | delete_buffer() |
| 5051 | - Removed, same as free_filestruct(). |
Chris Allegretta | da721be | 2000-07-31 01:26:42 +0000 | [diff] [blame] | 5052 | do_backspace() |
| 5053 | - Now calls page_up_center instead of page_up (as it should?) |
| 5054 | do_enter() |
| 5055 | - Fixed typo (?) in check for inptr->next. Caused lots of |
| 5056 | grief for editing lines at filebot. |
Chris Allegretta | 99bf73f | 2000-08-04 00:22:08 +0000 | [diff] [blame] | 5057 | main() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5058 | - Removed now useless usertabsize variable (Christian Weisgerber). |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 5059 | - search.c: |
| 5060 | replace_abort() |
| 5061 | - redundant, now just calls search abort until it does something |
| 5062 | different. |
Chris Allegretta | 95b0b52 | 2000-07-28 02:58:06 +0000 | [diff] [blame] | 5063 | - winio.c: |
| 5064 | edit_refresh() |
| 5065 | - Added check for current line "running" off the screen. |
| 5066 | Hopefully this will not cause any recursive lockups. |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5067 | (Who am I kidding, of course it will!) |
Chris Allegretta | ed02216 | 2000-08-03 16:54:11 +0000 | [diff] [blame] | 5068 | - Added check to stop infinite loop calling edit_update. |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5069 | edit_update() |
| 5070 | - Rewritten, hopefully this will remove a lot of the |
| 5071 | scrolling the cursor back and forth needlessly. |
Chris Allegretta | 1a47139 | 2000-07-28 14:08:01 +0000 | [diff] [blame] | 5072 | - move.c: |
| 5073 | page_down() |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5074 | - do an edit_update() at last case. Made function more like |
| 5075 | Pico's version, only move down to two lines before editbot. |
| 5076 | page_up() |
| 5077 | - Made function more like Pico's version, only move down to two |
| 5078 | lines after edittop. |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 5079 | |
Chris Allegretta | a1a55c7 | 2000-07-28 00:36:03 +0000 | [diff] [blame] | 5080 | nano-0.9.14 - 07/27/2000 |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 5081 | - nano.h: |
| 5082 | - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32. |
| 5083 | - cut.c: |
Chris Allegretta | 962c3c9 | 2000-07-24 21:52:17 +0000 | [diff] [blame] | 5084 | do_cut_text() |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 5085 | - 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] | 5086 | - Simplified check for freeing cutbuffer. Added checks for doing |
| 5087 | multiple cuts with -k, now sets marked_cut to 2 for later |
| 5088 | processing by do_uncut_text(). |
| 5089 | do_uncut_text() |
| 5090 | - Added handler for uncutting with -k cuts. |
Chris Allegretta | 962c3c9 | 2000-07-24 21:52:17 +0000 | [diff] [blame] | 5091 | - files.c: |
| 5092 | write_file() |
| 5093 | - Removed (redundant) check for writing out files with -t. |
| 5094 | do_writeout() |
| 5095 | - Changed check for filename to filename[0]. Added some code, |
| 5096 | overall fixes bug #30 =-) |
Robert Siemborski | a417ddc | 2000-07-24 23:18:48 +0000 | [diff] [blame] | 5097 | - nano.c: |
| 5098 | do_justify() & do_wrap(): |
| 5099 | - totsize-related fixes (Rob) |
Chris Allegretta | 2ece167 | 2000-07-27 15:25:52 +0000 | [diff] [blame] | 5100 | - de.po |
| 5101 | - Revised translations by floki@bigfoot.com |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 5102 | |
Chris Allegretta | 1d7110d | 2000-07-23 16:59:07 +0000 | [diff] [blame] | 5103 | nano-0.9.13 - 07/23/2000 |
Chris Allegretta | 627de19 | 2000-07-12 02:09:17 +0000 | [diff] [blame] | 5104 | - 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] | 5105 | affects do_cut_text in cut.c. Not available with SMALL_NANO because it |
| 5106 | depends on the marker code which is not available with that setting. |
Chris Allegretta | 3088555 | 2000-07-14 01:20:12 +0000 | [diff] [blame] | 5107 | - Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using |
| 5108 | -t with an unwritable file causes users to get locked into editor). |
Adam Rogoyski | ed0cb89 | 2000-07-12 04:02:45 +0000 | [diff] [blame] | 5109 | - move.c |
| 5110 | page_down() |
| 5111 | - Don't edit_refresh() if the bottom of the file is in the edit |
| 5112 | buffer. (Adam) |
Robert Siemborski | 6967eec | 2000-07-08 14:23:32 +0000 | [diff] [blame] | 5113 | - nano.c: |
| 5114 | main(): |
| 5115 | - TABSIZE now set before first call to edit_refresh (Bill Soudan) |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 5116 | - Different ^C kill code (patch by Christian Weisgerber). |
Robert Siemborski | fcf32bf | 2000-07-17 03:04:54 +0000 | [diff] [blame] | 5117 | die(): |
| 5118 | - More intelligent emergency-save filename selection (Rob) |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 5119 | do_spell(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5120 | - Changed exit semantics a bit so that aspell wouldn't get |
| 5121 | all screwy (bug discovered by Joshua Jensen. |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 5122 | - files.c: |
| 5123 | read_file(): |
| 5124 | - Added init of buf variable, hopefully this will stop the |
| 5125 | "bleeding" of text seen with mutt and using i18n. |
Chris Allegretta | acb6234 | 2000-07-21 22:42:46 +0000 | [diff] [blame] | 5126 | write_file(): |
| 5127 | - Added code to check to see if using -l and the file is not |
| 5128 | in fact a link. This should fix the behavior where a file |
| 5129 | that does not have write permission but could be removed and |
| 5130 | rewritten is saved without error. Please test this feature |
| 5131 | and give feedback. |
Chris Allegretta | a4d2162 | 2000-07-08 23:57:03 +0000 | [diff] [blame] | 5132 | - search.c: |
| 5133 | search_init(): |
| 5134 | - Added " (to replace)" statement to end of search string if |
| 5135 | we are doing a replace. Manually converted all the translations |
| 5136 | from '%s' to '%s%s' to ensure they still work with the new code. |
| 5137 | Also put in the translation for " (replace)" in the .po's. Hope |
| 5138 | I didn't step on your toes doing this Jordi. (Chris) |
Chris Allegretta | 635fae3 | 2000-07-09 03:26:34 +0000 | [diff] [blame] | 5139 | do_search(), do_replace(): |
| 5140 | - Removed call to search_abort()/replace_abort() before call to |
| 5141 | the opposite function. |
Chris Allegretta | fa8f7bf | 2000-07-12 02:41:13 +0000 | [diff] [blame] | 5142 | - Fixed bug #28. |
Adam Rogoyski | ed0cb89 | 2000-07-12 04:02:45 +0000 | [diff] [blame] | 5143 | findnextstr() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5144 | - do not center string found if it is currently visible. (Adam) |
Chris Allegretta | 7539a82 | 2000-07-09 23:55:13 +0000 | [diff] [blame] | 5145 | - fr.po: |
| 5146 | - French update by Clement Laforet <clem_laf@wanadoo.fr>. |
Jordi Mallach | 8d7ac1b | 2000-07-13 03:10:01 +0000 | [diff] [blame] | 5147 | - es.po: |
| 5148 | - Updated strings to 0.9.13 (Jordi). |
Robert Siemborski | 6967eec | 2000-07-08 14:23:32 +0000 | [diff] [blame] | 5149 | |
Chris Allegretta | e955dae | 2000-07-07 22:24:59 +0000 | [diff] [blame] | 5150 | nano-0.9.12 - 07/07/2000 |
Robert Siemborski | 6d0e9cd | 2000-07-01 21:43:16 +0000 | [diff] [blame] | 5151 | - all: |
Chris Allegretta | 9fc8d43 | 2000-07-07 01:49:52 +0000 | [diff] [blame] | 5152 | - New regexp search feature by Bill Soudan. New flags USE_REGEXP |
| 5153 | and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup |
| 5154 | replace_line, replace_regexp in search.c, changes to |
Chris Allegretta | 4780561 | 2000-07-07 02:35:34 +0000 | [diff] [blame] | 5155 | search_init() and do_replace() and strstrwrapper(). |
| 5156 | - Added _POSIX_VERSION check to regexp code. Better than nothing |
| 5157 | for non-POSIX systems... |
Robert Siemborski | 6d0e9cd | 2000-07-01 21:43:16 +0000 | [diff] [blame] | 5158 | - Made search functions & keys more like Pico. Added goto line from |
| 5159 | search and replace function, changed wording to "No Replace" instead |
| 5160 | of "To Search", "To Replace" to simply "Replace", and changed to |
| 5161 | Pico's keystroke by default, ^R. Affects search_init(), |
| 5162 | do_search() in search.c, globals in nano.h and |
| 5163 | shortcut_init() in global.c. |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5164 | - changed 'sprintf' calls to safer 'snprintf' (Rob) |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5165 | - cut.c |
| 5166 | - further totsize update corrections |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5167 | - files.c: |
| 5168 | - changed do_insertfile to call fix_editbot (Rob) |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5169 | - Magic Line code in read_file (Rob) |
Chris Allegretta | 8a9fe7e | 2000-06-21 22:29:38 +0000 | [diff] [blame] | 5170 | - nano.c: |
| 5171 | - Removed dual alt_speller variables, oops! (Rocco Corsi) |
Chris Allegretta | dbc12b2 | 2000-07-03 03:10:14 +0000 | [diff] [blame] | 5172 | - Removed unnecessary do_oldspell function (Rocco Corsi). Added |
| 5173 | SMALL_NANO #ifdef around actual spell function. |
Chris Allegretta | 1e57e68 | 2000-07-03 04:24:39 +0000 | [diff] [blame] | 5174 | - Moved page_up() to move.c where is belongs. |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5175 | - Corrected FIXME in do_enter with explanation. (Rob) |
| 5176 | - Fixed FIXME in do_justify, resulted in creation of |
| 5177 | fix_editbot [also fixed in do_enter] (winio.c) (Rob) |
Robert Siemborski | cdff015 | 2000-07-07 01:58:52 +0000 | [diff] [blame] | 5178 | help_init(): |
| 5179 | - Moved newline out of if statement (Rocco Corsi) |
Chris Allegretta | 28a0f89 | 2000-07-05 22:47:54 +0000 | [diff] [blame] | 5180 | do_char(): |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5181 | - Magic Line related code in do_char (Rob) |
Chris Allegretta | 28a0f89 | 2000-07-05 22:47:54 +0000 | [diff] [blame] | 5182 | do_backspace(), do_delete(): |
| 5183 | - Added magic line code here too. |
| 5184 | |
Chris Allegretta | f7eba0b | 2000-06-24 01:33:27 +0000 | [diff] [blame] | 5185 | - de.po: |
Chris Allegretta | 6e80585 | 2000-06-22 01:53:29 +0000 | [diff] [blame] | 5186 | - Revised translations by floki@bigfoot.com. |
Chris Allegretta | f7eba0b | 2000-06-24 01:33:27 +0000 | [diff] [blame] | 5187 | - fi.po: |
| 5188 | - Finnish translation by pauli.virtanen@saunalahti.fi. |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5189 | - utils.c: |
| 5190 | - Added new_magicline() |
Chris Allegretta | 8c2b40f | 2000-06-29 01:30:04 +0000 | [diff] [blame] | 5191 | - winio.c: |
Chris Allegretta | dba37ae | 2000-07-07 05:13:09 +0000 | [diff] [blame] | 5192 | - Added stdlib.h to includes, found by OpenBSD gcc. |
Robert Siemborski | 20d61d5 | 2000-07-08 00:43:35 +0000 | [diff] [blame] | 5193 | - lots of new commenting around display functions |
Chris Allegretta | 5204ea9 | 2000-06-22 01:56:23 +0000 | [diff] [blame] | 5194 | do_yesno(), nanogetstr(): |
| 5195 | - Removed now unnecessary raw/cbreak combos. |
Jordi Mallach | 0b0fc49 | 2000-06-23 01:00:13 +0000 | [diff] [blame] | 5196 | - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till |
| 5197 | we decide if those keybindings should be translated. (Jordi) |
Chris Allegretta | 8c2b40f | 2000-06-29 01:30:04 +0000 | [diff] [blame] | 5198 | clear_bottomwin(): |
| 5199 | - Removed wrefresh(edit) call. |
Chris Allegretta | 48fd2cb | 2000-07-03 04:31:13 +0000 | [diff] [blame] | 5200 | edit_update_top(): |
| 5201 | - Fixed a bug that caused nano to not update when |
| 5202 | current->next == NULL (e.g. paging down to the very bottom of |
| 5203 | ABOUT NLS wouldn't work). |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5204 | fix_editbot: |
| 5205 | - Added (should rebuild editbot from a valid edittop) (Rob) |
Robert Siemborski | 20d61d5 | 2000-07-08 00:43:35 +0000 | [diff] [blame] | 5206 | edit_add: |
| 5207 | - removal of redundant call to mvwaddnstr |
Chris Allegretta | 8a9fe7e | 2000-06-21 22:29:38 +0000 | [diff] [blame] | 5208 | |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 5209 | nano-0.9.11 - 06/20/2000 |
Chris Allegretta | 790198d | 2000-06-20 00:40:01 +0000 | [diff] [blame] | 5210 | - New flag "-T" or "--tabsize" to specify how to display tab widths. |
| 5211 | 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] | 5212 | 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] | 5213 | TABSIZE int. Added changes to nano.1 and nano.1.html. |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 5214 | - id.po: |
| 5215 | - Indonesian translation by Tedi Heriyanto. |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 5216 | - es.po: |
| 5217 | - Updated translation (Jordi Mallach). |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 5218 | - winio.c |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5219 | - Rewrite of display functions to correct the display problems |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 5220 | we had been seeing. Affects: add_marked_sameline, edit_add, |
| 5221 | and many others. (Rob Siemborski) |
Chris Allegretta | b0ae393 | 2000-06-15 23:39:14 +0000 | [diff] [blame] | 5222 | - totsize fixes (Rob Siemborski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 5223 | total_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5224 | - Cut display_main_list call, as this function is only supposed to |
| 5225 | refresh what's already on the screen, not go through the process |
| 5226 | of adding the text again. |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 5227 | - cut.c: |
Robert Siemborski | b0df953 | 2000-06-09 00:55:16 +0000 | [diff] [blame] | 5228 | - totsize fixes (Rob Siemborski) |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 5229 | - nano.c: |
Robert Siemborski | b0df953 | 2000-06-09 00:55:16 +0000 | [diff] [blame] | 5230 | - experimental do_wrap and check_wrap (Adam Rogoyski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 5231 | - Removed editwineob, as it was redundant for (editwinrows - 1). |
| 5232 | Changed all calls to editwinrows - 1 in nano.c and move.c. |
| 5233 | - Removed all functions that were split into other files. |
| 5234 | Affects LOTS of funcs. |
Chris Allegretta | b0ae393 | 2000-06-15 23:39:14 +0000 | [diff] [blame] | 5235 | do_enter(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5236 | - Added reset of placewewant to end. |
Robert Siemborski | 10eab1d | 2000-06-18 01:05:00 +0000 | [diff] [blame] | 5237 | do_insertfile(): |
| 5238 | - Fix display problem when using ctrl-r to load a file |
| 5239 | into the buffer (Rob Siemborski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 5240 | handle_sigwinch(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5241 | - Added titlebar(), edit_refresh() and display_main_list() calls |
| 5242 | because a resize wasn't picking up on possible different width |
| 5243 | correctly. |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 5244 | - utils.c: |
| 5245 | - Moved nmalloc() and nrealloc() here. |
| 5246 | - move.c: |
| 5247 | - New file, contains movement functions (like do_home(), do_up(), |
| 5248 | do_down(), page_up(), etc...). |
| 5249 | - files.c: |
| 5250 | - Contains functions for files (read_file, insert_file, |
| 5251 | do_writeout(), etc). |
| 5252 | - search.c: |
| 5253 | - Contains all our searching and related functions, (do_search(), |
| 5254 | findnextstr(), do_replace(), do_gotoline()). |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 5255 | |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5256 | nano-0.9.10 - 06/04/2000 |
| 5257 | - es.po: |
| 5258 | - Translation updates (Jordi). |
| 5259 | - AUTHORS, nano.1.html, TODO, README: |
| 5260 | - Documentation and email address updates (Jordi). |
| 5261 | - nano.c: |
| 5262 | main(): |
| 5263 | - Moved Adam's termio code down to after getopt() and before initscr() |
| 5264 | to stop people losing their SIGINT character when using args that |
| 5265 | exit nano before it runs (--version, --help, etc). |
| 5266 | |
| 5267 | nano-0.9.9 - 05/31/2000 |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5268 | - Makefile.am: |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5269 | - Added proper lines for defining LOCALEDIR. |
| 5270 | - configure.in: |
| 5271 | - Spelling fixes (Jordi Mallach) |
| 5272 | - Removed CFLAGS changes for gcc, reduces portability according to |
| 5273 | some, and it certainly doesn't seem to decrease exe size. |
| 5274 | - es.po: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5275 | - Spanish translation updates (Jordi Mallach) |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5276 | - POTFILES.in: |
| 5277 | - Added global.c file, was screwing up translations (i.e. they |
| 5278 | weren't getting done). |
| 5279 | - cut.c: |
| 5280 | add_to_cutbuffer(): |
| 5281 | - Added totsize increment. |
| 5282 | - Cut fixes and optimizations (Rob Siemborski). |
| 5283 | do_uncut_text(): |
| 5284 | - Added totsize increment in several places. |
| 5285 | - nano.c: |
| 5286 | headers: |
| 5287 | - Removed LOCALEDIR define. |
| 5288 | do_justify(): |
| 5289 | - Added edit_refresh() call (bug discovered by Adam). |
| 5290 | page_down_center(): |
| 5291 | - Added call to edit_update(current) for last case. Removed |
| 5292 | increment of current_y since it's now just wasteful. |
| 5293 | do_enter(): |
| 5294 | - Added totsize increment. |
| 5295 | renumber(), renumber_all(): |
| 5296 | - Removed totsize-- and totsize init in renumber_all. |
| 5297 | do_mouse(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5298 | - Added edit_refresh() call to show highlight updates. Removed |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5299 | unnecessary wrefresh(edit). |
| 5300 | main(): |
| 5301 | - Moved up locale calls so that translated --help messages would |
| 5302 | actually get translated. |
| 5303 | do_backspace(), do_delete(): |
| 5304 | - Added decrement of totsize. |
| 5305 | init_help_msg(): |
| 5306 | - New function, initializes help text if NANO_SMALL isn't set (fixes |
| 5307 | broken i18n). |
| 5308 | read_file(): |
| 5309 | - malloc call changed to nmalloc (Rob Siemborski). |
| 5310 | - winio.c: |
| 5311 | total_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5312 | - Completely rewrote function, not quite so brain-damaged now. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5313 | |
| 5314 | nano-0.9.8 - 05/18/2000 |
| 5315 | - nano.c: |
| 5316 | main(): |
| 5317 | - Added awesome code that disables the CINTR and CQUIT |
| 5318 | character (Adam Rogoyski). Removed raw()/noraw() calls so that |
| 5319 | nano gets input in 'normal' mode, which is the Right Way(tm) to |
| 5320 | 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] | 5321 | ^C. New variable term, global variable oldterm to save previous |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5322 | term settings, and changes to finish() and die(). |
| 5323 | - Added extra #ifdefs in getopt code, so that above code and |
| 5324 | flag init is run even if GETOPT_LONG is not #defined. |
| 5325 | - Added memset line before sigactions. (Adam Rogoyski) |
| 5326 | do_suspend(): |
| 5327 | Removed function, see above for why. |
| 5328 | - winio.c: |
| 5329 | update_line(), center_cursor(): |
| 5330 | - Removed wrefresh(edit) from bottom of functions. wrefresh |
| 5331 | should now only be called once, at the bottom of the main() |
| 5332 | loop. |
| 5333 | - global.c: |
| 5334 | shortcut_init(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5335 | - Removed suspend sc_init call and suspend message because suspend |
| 5336 | is no longer needed in the shortcut list to work properly. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5337 | |
| 5338 | nano-0.9.7 - 05/14/2000 |
| 5339 | - nano.c: |
| 5340 | do_home(), do_end(): |
| 5341 | - Added calls to update_line for the current line, fixes |
| 5342 | lack of update (bug discovered by Alberto GarcÃa). |
| 5343 | main(): |
| 5344 | - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not |
| 5345 | following symlinks even when -l isn't set, and "no changes" |
| 5346 | error when nano is called from crontab -e (Adam Rogoyski). |
| 5347 | - cut.c: |
| 5348 | do_cut_text(): |
| 5349 | - Added edit_update_top to cut when mark is set, fixes lack of |
| 5350 | display update (bug discovered by Ken Tyler). |
| 5351 | |
| 5352 | nano-0.9.6 - 05/08/2000 |
| 5353 | - New Italian translation (it.po), by Daniele Medri. |
| 5354 | - nano.c: |
| 5355 | page_up(), page_down(): |
| 5356 | - Added reset of placewewant to 0, as it should be. |
| 5357 | do_up(), do_down(): |
| 5358 | - Added call to update_line() for line we move from and line we |
| 5359 | move to, in order to keep the highlighting correct. |
| 5360 | do_wrap(): |
| 5361 | - Added var chop, new code to wrap lines more like Pico, mostly. |
| 5362 | THIS STILL DEFINITELY NEEDS TO BE REWRITTEN! |
| 5363 | - winio.c: |
| 5364 | do_help(): |
| 5365 | - Added edit_refresh() before exit. |
| 5366 | update_cursor(): |
| 5367 | - Removed cursor updating which really wasn't needed anyway. |
| 5368 | edit_update(): |
| 5369 | - Removed yucky code that didn't work, this function now just |
| 5370 | computes edittop and editbot and calls edit_refresh() to do the |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5371 | rest, which removes a lot of duplicate code.. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5372 | |
| 5373 | nano-0.9.5 - 05/01/2000 |
| 5374 | - Removed bytes from file struct because it was computationally wasteful. |
| 5375 | - cut.c: |
| 5376 | do_uncut_text(): |
| 5377 | - Added call to edit_refresh(). |
| 5378 | - nano.c: |
| 5379 | do_backspace(): |
| 5380 | - Added reset of editbot when deleting the last line of the file |
| 5381 | (bug discovered by Adam). |
| 5382 | do_char(): |
| 5383 | - Removed call to reset_cursor(). |
| 5384 | do_delete(): |
| 5385 | - Added similar check as to do_backspace(). |
| 5386 | do_enter(): |
| 5387 | - Added call to edit_refresh(). |
| 5388 | do_left(), right(): |
| 5389 | - Added call to update_line(), still redundant but better... |
| 5390 | do_up(), do_down(): |
| 5391 | - Added refresh calls both for current line and line to which |
| 5392 | we are moving. |
| 5393 | main(): |
| 5394 | - Removed inefficient call to edit_refresh() after every keystroke. |
| 5395 | It is now up each function to leave the screen in a good state. |
| 5396 | - winio.c: |
| 5397 | do_cursorpos() |
| 5398 | - Rewritten to not use bytes from filestruct by an incremental sum. |
| 5399 | update_line(), reset_cursor(): |
| 5400 | - Optimized calls to xplustabs() through a single variable. |
| 5401 | - update_line() now takes a new arg, an index into the string |
| 5402 | for where to update the line from. Needed for new update |
| 5403 | code. |
| 5404 | - configure.in: |
| 5405 | - Better checks for slang, allows argument to --with-slang. |
| 5406 | (Albert Chin-A-Young) |
| 5407 | - Removed -Iintl from CFLAGS in gcc check. |
| 5408 | - Makefile.am: |
| 5409 | - Addition of -Iintl for gettext (Albert Chin-A-Young) |
| 5410 | |
| 5411 | nano-0.9.4 - 04/25/2000 |
| 5412 | - Fixed calls to no_help and changed them to the more consistent |
| 5413 | ISSET(NO_HELP). Fixed return val of no_help to be what it should (2, |
| 5414 | not 1. Code to temporarily disable NO_HELP when in the |
| 5415 | help system. (Adam Rogoyski) |
| 5416 | - cut.c: |
| 5417 | do_marked_cut(), do_cut(), do_uncut(): |
| 5418 | - Commented out unnecessary bits when NANO_SMALL is being used. |
| 5419 | - winio.c: |
| 5420 | xpt(), strlenpt(), actual_x(): |
| 5421 | - Added check for value of data[i] & 0x80, if so do not make |
| 5422 | character 2 chars wide (orig. by Chris, 0x80 check by Adam). |
| 5423 | edit_refresh(): |
| 5424 | - New check for temp == NULL (bad thing), if so go back to the |
| 5425 | previous line. New filestruct var hold points to prev line. |
| 5426 | Fixes segfault when paging down to the end of a file. |
| 5427 | - nano.c: |
| 5428 | write_file(): |
| 5429 | - Added check for if file exists and is not equal to the current |
| 5430 | filename, prompt for overwrite (Adam Rogoyski). |
| 5431 | do_down(): |
| 5432 | - Removed check for current->next == NULL, now checks return value |
| 5433 | of do_down before setting current_x = 0 (discovered by Adam). |
| 5434 | do_justify(): |
| 5435 | - Fixed segfault when reaching the last line (tried to assign |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5436 | current->next->data when current->next == NULL) (discovered |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5437 | by Adam). |
| 5438 | - utils.c: |
| 5439 | - Removed extra macro defs that are now in nano.h. |
| 5440 | - nano.h: |
| 5441 | - Changed macro SET() to use |= instead of ^=. Fixes bug in |
| 5442 | cut code when cutting more than one line, and cutbuffer gets |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5443 | blown away when it shouldn't. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5444 | |
| 5445 | nano-0.9.3 - 04/29/2000 |
| 5446 | - cut.c: |
| 5447 | do_marked_cut(): |
| 5448 | - Fixed off by one error in cut code for marked text. |
| 5449 | do_cut_text(): |
| 5450 | - Removed check for being on the last line, part of |
| 5451 | magic line code. |
| 5452 | add_to_cutbuffer(): |
| 5453 | - Moved tmp->prev = inptr line to part where cutbuffer != NULL. |
| 5454 | - Added inptr->prev = NULL for case where cutbuffer == NULL. |
| 5455 | - nano.c: |
| 5456 | do_backspace(), do_char(): |
| 5457 | - Removed "magic line" code. It was basically causing more bugs |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5458 | than it was helping for the sake of compatibility. This fixes |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5459 | at least one known segfault condition. |
| 5460 | do_enter(): |
| 5461 | - Added setting editbot to new node if the new node is the last |
| 5462 | node in the file. |
| 5463 | write_file(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5464 | - Changed writing file behavior. Now, if last line of the file |
| 5465 | 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] | 5466 | - winio.c: |
| 5467 | add_marked_sameline(): |
| 5468 | - New code that checks for whether the begin and end of the marker |
| 5469 | are on different lines. Missing previously. |
| 5470 | edit_add(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5471 | - added some more checks for text length. Cleaned up some |
| 5472 | mvwaddnstrs that could be written more simply as waddnstrs. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5473 | edit_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5474 | - Removed check for temp == filebot, it is now treated like any other |
| 5475 | line. Fixes a bug where selected text on the last line shows |
| 5476 | normally. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5477 | xpt(): |
| 5478 | - Removed an extra computation for tabs variable that was incorrect. |
| 5479 | xplustabs(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5480 | - 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] | 5481 | xpt(current, current_x) |
| 5482 | - nano.1, nano.1.html: |
| 5483 | - Added -l option to man pages. |
| 5484 | - configure.in: |
| 5485 | - New option --enable-tiny, #defines NANO_SMALL in config.h. |
| 5486 | Disables call to gettext in functions and other i18n stuff in |
| 5487 | nano.c, the detailed help mode, the resize functions, and the |
| 5488 | justify code which no one ever uses. |
| 5489 | - New option --with-slang. Enables slang libraries instead of |
| 5490 | ncurses, requires slcurses.h for wrapper functions. (Based |
| 5491 | on patches for 0.8.7 by Glenn McGrath). |
| 5492 | |
| 5493 | nano-0.9.2 - 04/15/2000 |
| 5494 | - This release just fixes the serious segfault problem if nano is |
| 5495 | invoked any way other than using the absolute path. The bug was |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 5496 | in the new code for checking whether nano is invoked as 'pico'. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5497 | |
| 5498 | nano-0.9.1 - 04/14/2000 |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 5499 | - Added Pico compatibility for ^T when in search or switch to switch |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5500 | to the opposite function. Added one to REPLACE_LIST_LEN and |
| 5501 | 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] | 5502 | new strings that will have to be gettext()ed. New argument 'replacing' |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5503 | to search_init(). Handlers in do_replace and do_search(). |
| 5504 | - New write code, now follows symbolic links instead of replacing them |
| 5505 | with the new file. New option (-l, --nofollow) to enable the old |
| 5506 | (incorrect, but secure) behavior (Adam Rogoyski). |
| 5507 | - nano.c: |
| 5508 | do_wrap(): |
| 5509 | - Fixed another bug relating to wrapping, and which would cause |
| 5510 | a segfault *sigh*. |
| 5511 | do_replace(): |
| 5512 | - Incremented current_x by the length of the replacement |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5513 | text inside the main replace loop. Fixes bug #15. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5514 | add_marked_sameline(): |
| 5515 | - New function, handles marked text when start & end of marker is |
| 5516 | on one line, also supports most marked text when cursor > COLS. |
| 5517 | main(): |
| 5518 | - Code to check if nano is invoked as 'pico', and if so |
| 5519 | automatically set pico_msgs (Robert Jones). |
| 5520 | |
| 5521 | nano-0.9.0 - 04/07/2000 |
| 5522 | - nano.1, nano.1.html: Updated man page with my email address and homepage. |
| 5523 | - winio.c: |
| 5524 | reset_cursor(), update_line(): |
| 5525 | - Changed update algorithm for x value to (COLS - 7) multiple when x |
| 5526 | value > (COLS - 2). |
| 5527 | - edit_refresh(): |
| 5528 | - Removed inner loop code, now calls update_line() for each line |
| 5529 | in question, MUCH nicer. |
| 5530 | - xplustabs(), xpt(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5531 | - Removed redundant increment of tabs when column no % 8 == 0. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5532 | - Added check for data[i] < 32, most of such bits are 2 chars wide. |
| 5533 | - update_line(): |
| 5534 | - Fixed a stupid call to strlenpt with col when we should have |
| 5535 | been using actual_col. Ugh. |
| 5536 | |
| 5537 | nano-0.8.9 - 03/22/2000 |
| 5538 | - nano.c: |
| 5539 | empty_line(), no_spaces(), justify_format(), do_justify(): |
| 5540 | Actually added these (screwup applying patch). |
| 5541 | do_justify(): Added call to set_modified(). |
| 5542 | |
| 5543 | nano-0.8.8 - 03/12/2000 |
| 5544 | - Preliminary internationalization support. Many many functions modified |
| 5545 | to use gettext (via _() macro). es.po file included. (Jordi Mallach) |
| 5546 | New dirs po/ and intl/, changes to configure.in and Automake.am to |
| 5547 | support i18n. |
| 5548 | - nano.c: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5549 | includes: Added sys/param.h and limits.h. (Adam Rogoyski). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5550 | statics: Changed some things that were not necessarily static |
| 5551 | (Adam Rogoyski). |
| 5552 | nrealloc(): New function, similar to nmalloc(). Changed calls from |
| 5553 | realloc() to nrealloc (Adam Rogoyski). |
| 5554 | empty_line(), no_spaces(), justify_format(), do_justify(): |
| 5555 | New functions for justify function (Adam Rogoyski). |
| 5556 | - winio.c: |
| 5557 | blank_edit(): Added wrefresh call to edit so that screen updates (like |
| 5558 | on ^L) actually work. |
| 5559 | xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski). |
| 5560 | |
| 5561 | nano-0.8.7 - 03/01/2000 |
| 5562 | - main.c: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5563 | do_wrap(): Better fix for segfaults, and fix for lines being wrapped |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5564 | to a single character on one line when no good place to |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5565 | break the line exists, and for wrapping lines longer than |
| 5566 | COLS. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5567 | - nano.1.html: |
| 5568 | Html version of man page, now included in dist. For |
| 5569 | the benefit of nano packages in Linux distributions. |
| 5570 | |
| 5571 | nano-0.8.6 - 02/24/2000 |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5572 | - global.c: |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5573 | shortcut_init(): |
| 5574 | Added shortcuts for goto_line and do_replace when using |
| 5575 | pico_msgs. Oops. |
| 5576 | - nano.c: |
| 5577 | statics: Changed fill back to 0 from 71 by default (Adam Rogoyski). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5578 | 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] | 5579 | Removed check for backing up past spaces first. |
| 5580 | main(): Added for loop to check for alt keys instead of hard list. |
| 5581 | do_enter(): Fix for bug #14, added call to reset_cursor and messed |
| 5582 | up do_char quite a bit. |
| 5583 | version(): Added time and date stamp for compile on version message. |
| 5584 | Added mail and web page info. |
| 5585 | - README: Updated mailing list info. |
| 5586 | |
| 5587 | nano-0.8.5 - 02/18/2000 |
| 5588 | - nano.c: |
| 5589 | main(): Finally fixed tilde being input on page up/down keys in |
| 5590 | certain terminal types. Fix was input 26->91->5[34] check |
| 5591 | for 126, if so make the kbinput PAGE UP/DOWN, else unget |
| 5592 | the keystroke and continue. Added #include <ioctl.h> for |
| 5593 | ioctl call. |
| 5594 | handle_hup(): |
| 5595 | Handler for hangup signal. Belated include of patch from |
| 5596 | Tim Sherwood. |
| 5597 | - winio.c: |
| 5598 | edit_refresh(): |
| 5599 | Temporary fix for selecting text when temp == current. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5600 | edit_refresh() is now unmanageably complex, and must be |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5601 | revamped. |
| 5602 | check_statblank(): |
| 5603 | Added check for constupdate, makes things less choppy |
| 5604 | (Adam Rogoyski) |
| 5605 | |
| 5606 | nano-0.8.4 - 02/11/2000 |
| 5607 | - Moved global variables that were only (or mostly) used in one file into |
| 5608 | its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn). |
| 5609 | - global.c: |
| 5610 | shortcut_init(): |
| 5611 | Removed redundant NANO_CONTROL_H from backspace shortcut, |
| 5612 | added char 127 which should have been there. |
| 5613 | - nano.c: |
| 5614 | main(): Fix for loops looping until MAIN_LEN, added -1 to stop |
| 5615 | segfaults (Adam Rogoyski). |
| 5616 | - Makefile.am: Added all source filenames (Adam Rogoyski). |
| 5617 | - nano.1: Fixed mail addressed and added mailing list address. |
| 5618 | - README: Updated my email address and the nano web page. |
| 5619 | |
| 5620 | nano-0.8.3 - 02/08/2000 |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 5621 | - New Pico mode (-p, --pico), toggles (more) compatibility with the |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5622 | Pico messages displayed in the shortcut list. Note that there are still |
| 5623 | small differences in this mode. |
| 5624 | - nano.h: New shortcut struct format, for the benefit of i18n and |
| 5625 | our help menu. Removed shortcut message macros, they are |
| 5626 | now all in shortcut_init in global.c. |
| 5627 | - nano.c: |
| 5628 | do_wrap(): Removed resetting of current_x when we are in fact |
| 5629 | wrapping to the next line, fixes a bug in -i mode. |
| 5630 | do_enter(): |
| 5631 | Rewrote the autoindent mode code to be a lot less pretty, |
| 5632 | but a lot more magical. |
| 5633 | main(): |
| 5634 | Removed case for ignoring char 126 (~). That's kind of |
| 5635 | important, we'll have to fix handling that sequence when |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5636 | paging up/down on a terminal some other way... Revamped |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5637 | main switch loop in much snazzier fashion based on the |
| 5638 | shortcut list. |
| 5639 | - winio.c: |
| 5640 | New function display_main_list. Affects all functions |
| 5641 | that used to call bottombars() with main_list. Added |
| 5642 | because we now only call bottombars with the macro |
| 5643 | MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the |
| 5644 | changes to the main_list shortcut list (see global.c below). |
| 5645 | New function do_help, our preliminary dynamic help system. |
| 5646 | - Many many funcs: |
| 5647 | Changed from int to void to allow one uniform type to call |
| 5648 | from the shortcut struct. Also a few functions that do |
| 5649 | not simple have void argument have new functions called |
| 5650 | funcname_void(void) to be called from the shortcut list. |
| 5651 | do_cut_text and do_uncut_text were changed to void |
| 5652 | arguments because they were never called with a filestruct |
| 5653 | other than *current anyway. |
| 5654 | - global.c: |
| 5655 | Shortcut list main_list was expanded to cover all |
| 5656 | shortcuts that could be caught in the main loop. |
| 5657 | Consequently there is a new macro MAIN_VISIBLE which tells |
| 5658 | how many items in the main list to actually show. |
| 5659 | |
| 5660 | nano-0.8.2 - 02/02/2000 |
| 5661 | - Added initial mouse (-m, --mouse) support. New global variable |
| 5662 | use_mouse. (Adam Rogoyski) |
| 5663 | |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5664 | - 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] | 5665 | regardless. (Adam Rogoyski). |
| 5666 | do_delete(): |
| 5667 | Deleted call to do_backspace() when on the end of a line, |
| 5668 | because it won't update the line properly. |
| 5669 | do_backspace(): |
| 5670 | Removed unnecessary pointer manipulation that was being |
| 5671 | handled by unlink_node(). |
| 5672 | open_file(): |
| 5673 | Added check for trying to open a directory (currently we |
| 5674 | segfault on this). Bug pointed out by Chad Ziccardi. |
| 5675 | |
| 5676 | nano-0.8.1 - 01/28/2000 |
| 5677 | - Implemented Pico's -r (fill) mode, command line flag -r or --fill. New |
| 5678 | global variable fill, affects check_wrap(), do_wrap(), main(), usage(), |
| 5679 | global.c and proto.h. |
| 5680 | - nano.c: |
| 5681 | write_file(): Added (incredibly) necessary check for EPERM when |
| 5682 | link() fails. This allows us to actually save |
| 5683 | files via rename() on filesystems that dont |
| 5684 | support hard links (AIEEEEEE). |
| 5685 | do_goto(): |
| 5686 | Fixed a stupid mistake where we were calling |
| 5687 | bottombars() with replace_list instead of goto_list. |
| 5688 | - nano.h: |
| 5689 | New char *help in shortcut structure for help |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5690 | feature. Added NANO_*_MSG and NANO_*_HELP #defines |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5691 | for help function and i18n. |
| 5692 | - global.c: |
| 5693 | New functions shortcut_init (called in nano.c) and |
| 5694 | sc_init_one() to initialize the shortcuts without |
| 5695 | using {}s (for i18n). |
| 5696 | |
| 5697 | nano-0.8.0 - 01/25/2000 |
| 5698 | - View flag (-v, --view) implemented. Global variable view_mode, affects |
| 5699 | main loop of nano.c and new_file(). (me) |
| 5700 | - nano.c: |
| 5701 | split checks for TERMIOS_H and TERMIO_H up so we |
| 5702 | can (theoretically) include them both, which is good. |
| 5703 | handle_sigwinch(): |
| 5704 | Added check for ncurses.h. (Andy Kahn) |
| 5705 | do_spell(): |
| 5706 | We now only try ispell because we don't as of yet |
| 5707 | handle the 'spell' program the right way, now that |
| 5708 | I finally know what the right way is =-). Added |
| 5709 | call to edit_update(fileage) to stop segfaults. |
| 5710 | global_init(): |
| 5711 | Added initialization of edit* filestruct pointers |
| 5712 | to stop segfaults on spell check. |
| 5713 | usage(): |
| 5714 | Check for getopt_long, and if no leave out the |
| 5715 | GNU options everyone seems to love so much (Andy Kahn) |
| 5716 | main(): |
| 5717 | Added checks for getopt_long (Andy Kahn) |
| 5718 | We ignore character 126 because it gets put into |
| 5719 | the buffer when we page up/down on a vt terminal. |
| 5720 | write_file(): |
| 5721 | Fixes for umask (Adam Rogoyski). Renamed tmpfile |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5722 | variable to tmp. Documented the tmp option |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5723 | better in the function comments. Fixed my |
| 5724 | stupidly commented out check for tmp on setting |
| 5725 | umask which I really like => |
| 5726 | - nano.h: |
| 5727 | Made desc variable in shortcut struct a pointer |
| 5728 | instead of a fixed-length string. |
| 5729 | - utils.c: |
| 5730 | Fixed check for config.h before nano.h. |
| 5731 | - configure.in: |
| 5732 | New checks for getopt_long, getopt.h, removed |
| 5733 | CFLAGS and LDFLAGS changes. Gonna have to run |
| 5734 | strip manually now =-) (Andy Kahn) |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5735 | Added check for HAVE_WRESIZE, new file acconfig.h |
| 5736 | (me). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5737 | |
| 5738 | nano-0.7.9 - 01/24/2000 |
| 5739 | - New autoindent feature. Command flag 'i' or '--autoindent'. New |
| 5740 | function do_char() to clean up character output, global |
| 5741 | variable autoindent in global.c. (Graham Mainwaring) |
| 5742 | - New flag 't' or '--tempfile', like Pico's -t mode, automatically saves |
| 5743 | files on exit without prompting. Affects do_writeout(). Also |
| 5744 | do_writeout() now takes a parameter for if exiting. |
| 5745 | Global variable temp_opt in global.c (Graham Mainwaring) |
| 5746 | - Preliminary spell program support. Added command flag '-s' or |
| 5747 | '--speller' for alternative speller command. Added function do_spell() |
| 5748 | and exit_spell() to nano.c. New global variable alt_speller. |
| 5749 | - nano.c: |
| 5750 | main(): We now ignore input of decimal 410 because these get entered |
| 5751 | when we resize the screen. Sorted options in getopt() |
| 5752 | switch statement. |
| 5753 | usage(): Sorted options and changed tabs to make room for -s option. |
| 5754 | write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and |
| 5755 | doesn't print the number of lines written on the statusbar. |
| 5756 | global_init(): |
| 5757 | Added more initializations to globals to support do_spell(). |
| 5758 | |
| 5759 | nano-0.7.8 - 01/23/2000 |
| 5760 | - Stubbed justify function. Affects main() in nano.c and nano.h defines. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5761 | - Added Fkey equivalents for Pico compatibility. Affects nano.h defines |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5762 | and main() in nano.c |
| 5763 | - Removed redundant reset_cursor() calls from the blank() routines. |
| 5764 | - nano.c: |
| 5765 | main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY. |
| 5766 | Removed check for isprint() characters in main while loop |
| 5767 | for people with odd character sets *shrug*. Added some X |
| 5768 | window F-key combos. |
| 5769 | read_line(): New function, consolidates of most of the special |
| 5770 | sections of the file reading code. (Rob Siemborski) |
| 5771 | do_replace(): Many scattered fixes. (Rob Siemborski) |
| 5772 | write_file(): Added check for empty filename. |
| 5773 | - winio.c: |
| 5774 | nanogetstr(): Fixes for deleting at places other than the end of the |
| 5775 | buffer, cut support. (Adam Rogoyski) |
| 5776 | blank_edit(): New function, blanks edit buffer. Added call to it in |
| 5777 | total_refresh(). |
| 5778 | - configure: Checks for glib if snprintf of vsnprintf aren't available |
| 5779 | (Andy Kahn). Changed warning message when no termcap lib |
| 5780 | is found. |
| 5781 | |
| 5782 | nano-0.7.7 - 01/19/2000 |
| 5783 | - Option '-v' for version moved to '-V', because -v is Pico's "read only" |
| 5784 | mode (affects getopt() in main() and usage() function in nano.c |
| 5785 | - New flag -c, always show cursor position. Affects main() in nano.c and |
| 5786 | statusbar() in winio.c |
| 5787 | - Option '-x' doesn't show help window at the bottom of the editor. |
| 5788 | New variable no_help in nano.h and proto.h, affects main(), usage(), |
| 5789 | and global_init() in nano.c, blank_bottombars(), clear_bottomwin(), |
| 5790 | bottombars(), and do_yesno() in winio.c (I had to apply this patch by |
| 5791 | hand =P) (Adam Rogoyski) |
| 5792 | - nano.c: |
| 5793 | handle_sigwinch(): New function (Adam Rogoyski), handles resizing. |
| 5794 | page_up(), page_down(): |
| 5795 | - New functions. We now set the cursor at the top right corner, |
| 5796 | not at the center line, and page up and down a full screen |
| 5797 | rather than a half screen. Original functions renamed to |
| 5798 | page_up_center() and page_down_center(). |
| 5799 | main(): |
| 5800 | - Added check for keystroke key sequence 407 or NANO_CONTROL_Z |
| 5801 | in main while loop because suspend mode was broken. This should |
| 5802 | fix it, at least for now. |
| 5803 | - Added long option support (By popular harassment ;-) - Added |
| 5804 | #include for getopt.h, changed getopt() to getopt_long(). |
| 5805 | Options added so far: --version (-V), --nowrap (-w), --suspend |
| 5806 | (-z), --help (-h), --nohelp (-x). |
| 5807 | - Rewrote signal statements (Adam Rogoyski) |
| 5808 | |
| 5809 | nano 0.7.6 - 01/15/2000 |
| 5810 | - New ChangeLog format |
| 5811 | - nano.c: |
| 5812 | main(): Bound CONTROL_H to backspace (oops) |
| 5813 | Added more Alt-[-key combinations, for page up & down. |
| 5814 | read_bytes(): New function (Adam Rogoyski) |
| 5815 | read_file(): Optimizations - malloc()s *buf a little at a time rather |
| 5816 | than one huge buffer, and replaced the strcat at the end |
| 5817 | with an index variable. Added call to read_bytes(). |
| 5818 | do_next_word(): New function, binding is control-space (0) (me) |
| 5819 | |
| 5820 | - winio.c: |
| 5821 | bottombars(): Fixed non-expanding shortcut keys at bottom of screen. |
| 5822 | (formula is extra space needed = COLS / 6 - 13). |
| 5823 | actual_x() & strlenpt(): |
| 5824 | Added bug#9 fix - when tabs % 8 == 0, we should only |
| 5825 | increment tabs by 1. |
| 5826 | titlebar(): Fixed overrun in titlebar on very long filenames. |
| 5827 | |
| 5828 | 0.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated |
| 5829 | writing a newline at EOF. do_cursorpos and do_replace are now not |
| 5830 | directly bound to signals but picked up as their control sequences |
| 5831 | in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!) |
| 5832 | 0.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for |
| 5833 | available memory, align bug fixed (Big Gaute). |
| 5834 | |
| 5835 | --- As of version 0.7.4 TIP is renamed to nano. |
| 5836 | |
| 5837 | 0.7.3 Fixed a double blank_statusbar() when jumping to first and last |
| 5838 | lines. Took out unnecessary updates in load_file. Bug fix in |
| 5839 | do_left. Missing updates to totlines, fixed bug #7 (last line not |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5840 | 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] | 5841 | with replace all, more/better comments (Robert Siemborski) |
| 5842 | 0.7.2 Our first patch accepted into the source! configure fixes |
| 5843 | and optimizations (Erik Anderson). Added missing stdarg.h to winio.c. |
| 5844 | Bug fix in update_line for editing long lines. Fixed arguments |
| 5845 | being put into the filename when none is specified. Preliminary |
| 5846 | +line command argument function. |
| 5847 | 0.7.1 configure tweak for better FreeBSD support. Removed refresh() from |
| 5848 | edit_refresh to stop cursor "jumping" during screen updates. This |
| 5849 | will probably cause a bug or two. Replace is now Alt-R (@R) and |
| 5850 | Goto line is Alt-G (@G), but they have control key aliases of ^\ and |
| 5851 | ^_ respectively. Made Control-F,B,N,P work like they do in Pico. |
| 5852 | Control-G will become the Help key, but for now is stubbed out. |
| 5853 | 0.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in |
| 5854 | findnextstr. Bound Control-D to Delete. Refixed segfault on zero |
| 5855 | length file. Added Esc-[-A,B,C,D cursor key sequences. |
| 5856 | 0.6.9 Preliminary cursor position function. Split up tip.c more, made |
| 5857 | new files cut.c and winio.c. Fixed a bug in cut_marked_segment |
| 5858 | that was leaving out a character. |
| 5859 | 0.6.8 By request, optchr in main() is now an int. Removed unneeded |
| 5860 | globals. Bound functions for next/prev page, and wrote functions |
| 5861 | do_home and do_end. |
| 5862 | 0.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and |
| 5863 | created read_file. Implemented Insert File. Fixes in tipgetstr |
| 5864 | for erroneous keystrokes. Added leave_cursor arg to do_yesno(). |
| 5865 | 0.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for |
| 5866 | aborted searches and more Pico-compatible messages. statusq() now |
| 5867 | returns -2 on a blank entry instead of -1. Bug fix in actual_x(). |
| 5868 | 0.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text |
| 5869 | regarding buffers with filebot in them. Fixins in do_backspace |
| 5870 | and do_enter. Removed unused variables. Removed strip_newline. |
| 5871 | 0.6.4 Took out the awful newlines from each string buffers. This will |
| 5872 | certainly cause more bugs. Fixes in do_exit(). Better empty file |
| 5873 | handling (I hope). |
| 5874 | 0.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct. |
| 5875 | do_enter() rewritten. |
| 5876 | 0.6.2 Better default file permissions. Complete rewrite of do_wrap(). |
| 5877 | Better handling of editing with cursor near COLS - 1. |
| 5878 | 0.6.1 Starting to implement wrapping toggle. Fix for unhandled control |
| 5879 | codes being entered into the buffer. Bug fix in actual_x; more |
| 5880 | > COLS - 1 functionality, especially on lines with TABs. Fixed being |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5881 | locked into cutbuffer when cutting more than one marked screen of |
| 5882 | text. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5883 | 0.6.0 We have TABs!!! To do this, placewewant is now set to the actual |
| 5884 | width on the screen we want to be, not an index of current->data. |
| 5885 | New functions xplustabs and actual_x convert the actual place |
| 5886 | the cursor should be on the screen to and from the place in the |
| 5887 | string. |
| 5888 | 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] | 5889 | eliminating the "looping" on the last line when holding the right |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5890 | arrow. Preliminary support for longer than COLS - 1 lines. |
| 5891 | Wrote do_delete. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5892 | 0.5.4 Fixed a bug in total_update that wasn't repainting the screen |
| 5893 | properly. tipgetstr is much more messy but text is now more |
| 5894 | editable ;) Fixed crash on entering a new file, hopefully. Awful |
| 5895 | 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] | 5896 | 0.5.3 Added check for malloc.h. Implementing uncut from marker slowly. |
| 5897 | 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] | 5898 | I would not trust your data with the mark code right now, but then |
| 5899 | we're not at version 1.0 yet so dont trust anything ;) |
| 5900 | 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] | 5901 | jump after each keystroke entered. Select text stubbed. Fixed |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5902 | a bug in total_refresh(). Setting a mark will highlight properly, |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5903 | but does not actually affect what gets put in the cutbuffer (yet). |
| 5904 | 0.5.1 Writing a file out causes modified to be set back to 0. Good. |
| 5905 | Set_modified function written. Cut and uncut text now set |
| 5906 | modified when called. |
| 5907 | 0.5.0 Half way there! Implemented write out, save function seems |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5908 | stable. Changed statusbar blank routing to not refresh, a separate |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5909 | program calls it and then refreshes. Made the program not clear |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5910 | the screen on exit, just the bottom two lines (like Pico). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5911 | 0.4.2 Implemented replace all in replace function. Crude exit function |
| 5912 | (asks yes or no if modified but does not write to file). |
| 5913 | 0.4.1 Implementing search & replace. Fixed crash on deleting at top of |
| 5914 | edit buffer. Implemented "timeout" of statusbar messages. |
| 5915 | Implemented ^A and ^E (beginning and end of line). |
| 5916 | 0.4.0 Split code into global.c and proto.h to allow for better multiple |
| 5917 | file handling. Added #defines for the majority of the shortcut |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5918 | keys in tip.h for easy modification. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 5919 | 0.3.1 Write edit_refresh which doesn't move the screen around, just |
| 5920 | updates what's there already. do_wrap() and do_enter() added. |
| 5921 | 0.3.0 Preliminary cutbuffer (cut and uncut) support. |
| 5922 | 0.2.7 Check for Modification added. do_search() works. |
| 5923 | 0.2.5 Rewrite of file data struct. |
| 5924 | 0.2 Read in data to buffer, bound keystrokes to stub functions, |
| 5925 | initial cursor movement on screen. Initial autoconf support. |
| 5926 | 0.1 Initial program setup w/ncurses |
Chris Allegretta | c87a411 | 2000-08-07 02:16:24 +0000 | [diff] [blame] | 5927 | |
| 5928 | $Id$ |