David Lawrence Ramsey | d509229 | 2005-06-30 17:17:41 +0000 | [diff] [blame] | 1 | CVS code - |
David Lawrence Ramsey | 9c3249c | 2005-07-01 22:58:47 +0000 | [diff] [blame] | 2 | - General: |
| 3 | - Miscellaneous comment fixes. (DLR) |
David Lawrence Ramsey | de03989 | 2005-07-08 02:01:07 +0000 | [diff] [blame] | 4 | - Fix a few last instances of the current line number's being |
| 5 | saved as an int instead of a ssize_t. Changes to |
| 6 | renumber_all(), renumber(), do_alt_speller(), and |
| 7 | backup_lines(). (DLR) |
David Lawrence Ramsey | 9057329 | 2005-07-08 02:47:05 +0000 | [diff] [blame] | 8 | - Reorder some functions for consistency. (DLR) |
David Lawrence Ramsey | 64661ac | 2005-07-08 19:57:25 +0000 | [diff] [blame] | 9 | - Rename variable open_files openfile, for consistency. (DLR) |
David Lawrence Ramsey | dbcaa3b | 2005-07-08 20:59:24 +0000 | [diff] [blame] | 10 | - Remove renumber()'s dependency on the main filestruct. |
| 11 | Changes to renumber(); removal of renumber_all(). (DLR) |
David Lawrence Ramsey | 6ad59cd | 2005-07-08 20:09:16 +0000 | [diff] [blame] | 12 | - Restructure things so that every file has its own |
| 13 | openfilestruct, and so that the values in it are used directly |
| 14 | instead of being periodically synced up with the globals. |
| 15 | Accordingly, remove the globals. Changes to pretty much |
David Lawrence Ramsey | e99494f | 2005-07-20 21:08:38 +0000 | [diff] [blame] | 16 | every function. Rename add_open_file() make_new_buffer(), |
| 17 | rename load_buffer() open_buffer(), rename load_open_file() |
| 18 | display_buffer(), rename open_prevnext_file() |
| 19 | switch_to_prevnext_buffer(), rename open_prevfile_void() |
| 20 | switch_to_prev_buffer(), rename open_nextfile_void() |
| 21 | switch_to_next_buffer(), rename write_marked() |
| 22 | write_marked_file(), remove load_file(), rename cancel_fork() |
| 23 | cancel_command(), rename open_pipe() execute_command(), remove |
| 24 | execute_command(), rename resize_variables(), rename |
| 25 | global_init() window_size_init(), rename get_buffer() |
| 26 | get_key_buffer(), and rename get_buffer_len() |
| 27 | get_key_buffer_len(). (DLR) |
David Lawrence Ramsey | b386a90 | 2005-07-10 02:37:38 +0000 | [diff] [blame] | 28 | - Replace all mvwaddstr(hblank) calls with a new function that |
| 29 | does the same thing without the need for hblank. New function |
| 30 | blank_line(); changes to do_browser(), blank_titlebar(), |
| 31 | blank_topbar(), blank_edit(), blank_statusbar(), |
| 32 | blank_bottombars(), update_line(), and edit_refresh(). (DLR) |
David Lawrence Ramsey | 222b201 | 2005-07-12 20:09:24 +0000 | [diff] [blame] | 33 | - Make the static pid variable used by execute_command() and |
| 34 | cancel_command() a pid_t instead of an int, for consistency. |
| 35 | (DLR) |
David Lawrence Ramsey | db95802 | 2005-07-13 20:18:46 +0000 | [diff] [blame] | 36 | - Consistently make the flags global and any variables used to |
| 37 | hold it longs. (DLR) |
David Lawrence Ramsey | 4d46437 | 2005-07-16 22:50:30 +0000 | [diff] [blame] | 38 | - Make edit_scroll() sophisticated enough to keep track of |
David Lawrence Ramsey | c009759 | 2005-07-22 23:17:19 +0000 | [diff] [blame] | 39 | current and current_x, update the lines before and after the |
| 40 | scrolled region, and properly scroll more than editwinrows |
| 41 | lines; and change the movement functions that use |
| 42 | edit_scroll() to (a) set current and current_x before calling |
| 43 | it, and (b) no longer call edit_redraw() afterward, as it's |
| 44 | now unnecessary. These changes eliminate redundant screen |
| 45 | updates when the mark is on, since the mark display depends on |
| 46 | current and current_x. Changes to edit_scroll(), |
| 47 | do_page_up(), do_page_down(), do_up(), and do_down(). (DLR) |
David Lawrence Ramsey | db95802 | 2005-07-13 20:18:46 +0000 | [diff] [blame] | 48 | - Consistently make the fg and bg colortype struct entries and |
| 49 | any variables used to hold them shorts. Changes to |
| 50 | do_colorinit() (renamed color_init()), color_to_int() (renamed |
| 51 | color_to_short()), and parse_colors(). (DLR) |
| 52 | - Change color handling to save only the regex strings |
David Lawrence Ramsey | e99494f | 2005-07-20 21:08:38 +0000 | [diff] [blame] | 53 | constantly, and to actually compile them on an as-needed |
| 54 | basis. Changes to update_color() and |
David Lawrence Ramsey | a74f2f8 | 2005-07-15 00:22:28 +0000 | [diff] [blame] | 55 | thanks_for_all_the_fish(). (Brand Huntsman and DLR) |
| 56 | - Various other color fixes. Handle unspecified foreground |
David Lawrence Ramsey | cb8d845 | 2005-07-15 01:08:52 +0000 | [diff] [blame] | 57 | colors properly, don't automatically reinitialize the |
| 58 | displayed colors every time we update the current buffer's |
| 59 | colors (since the buffer may not be displayed immediately), |
David Lawrence Ramsey | e99494f | 2005-07-20 21:08:38 +0000 | [diff] [blame] | 60 | don't bother doing complete refreshes of the screen when |
David Lawrence Ramsey | cb8d845 | 2005-07-15 01:08:52 +0000 | [diff] [blame] | 61 | color support is enabled if there's no regex associated with |
David Lawrence Ramsey | e99494f | 2005-07-20 21:08:38 +0000 | [diff] [blame] | 62 | the current file, and rename variable exttype->val to |
| 63 | exttype->ext, for consistency. Changes to do_colorinit() |
| 64 | (renamed color_init()), update_color() (renamed |
| 65 | color_update()), write_file(), do_input(), do_output(), and |
| 66 | parse_syntax(). (DLR) |
David Lawrence Ramsey | c104ef1 | 2005-07-17 01:44:35 +0000 | [diff] [blame] | 67 | - Simplify get_totals() to only get the total number of |
| 68 | characters, and eliminate dependence on its old ability to get |
| 69 | the total number of lines by renumber()ing when necessary and |
| 70 | using the number of the last line of a filestruct. Changes to |
| 71 | read_file(), move_to_filestruct(), copy_from_filestruct(), |
| 72 | do_justify(), get_totals() (renamed get_totsize()), and |
| 73 | do_cursorpos(). (DLR) |
David Lawrence Ramsey | 7eb30a8 | 2005-07-17 02:40:07 +0000 | [diff] [blame] | 74 | - Change the NANO_WIDE #define to ENABLE_UTF8, as the latter is |
| 75 | clearer. (DLR) |
David Lawrence Ramsey | 239c3d4 | 2005-07-19 05:58:00 +0000 | [diff] [blame] | 76 | - Minor history code fixes: Make sure that the current position |
| 77 | in the history list is properly set to the bottom if we cancel |
| 78 | out of the prompt, and that magichistory is properly updated |
| 79 | when we change it and then move up. New function |
| 80 | history_reset(); changes to nanogetstr(). (DLR) |
David Lawrence Ramsey | 61f5673 | 2005-07-21 22:12:03 +0000 | [diff] [blame] | 81 | - Various character-handling cleanups. If we get an invalid |
| 82 | multibyte sequence, treat it as Unicode FFFD (Replacement |
| 83 | Character), unless we're determining if it's a control |
| 84 | character or searching for a match to it. Also, remove |
| 85 | unneeded variables and checks when parsing multibyte |
| 86 | sequences. Changes to is_alnum_mbchar(), is_blank_mbchar(), |
| 87 | is_cntrl_mbchar(), is_punct_mbchar(), control_mbrep(), |
| 88 | mbwidth(), make_mbchar(), parse_mbchar(), mbstrncasecmp(), |
| 89 | mbstrcasestr(), mbrevstrcasestr(), mbstrchr(), and |
| 90 | display_string(). (DLR) |
David Lawrence Ramsey | 691698a | 2005-07-24 19:57:51 +0000 | [diff] [blame] | 91 | - Move advanced text operations (command execution in a buffer, |
| 92 | wrapping, spell checking, justifying, and word counting) to |
| 93 | their own source file, and adjust related variables |
| 94 | accordingly. New file text.c; changes to cancel_command(), |
David Lawrence Ramsey | 7ea09e5 | 2005-07-25 02:41:59 +0000 | [diff] [blame] | 95 | execute_command(), do_backspace(), do_delete(), do_tab(), |
| 96 | do_enter(), do_mark(), wrap_reset(), do_wrap(), |
David Lawrence Ramsey | 691698a | 2005-07-24 19:57:51 +0000 | [diff] [blame] | 97 | do_int_spell_fix(), do_int_speller(), do_alt_speller(), |
| 98 | do_spell(), break_line(), indent_length(), justify_format(), |
| 99 | quote_length(), quotes_match(), indents_match(), begpar(), |
| 100 | inpar(), backup_lines(), find_paragraph(), do_justify(), |
| 101 | do_justify_void(), do_full_justify(), and do_word_count() (all |
| 102 | moved to text.c). (DLR) |
| 103 | - color.c: |
| 104 | - Remove unneeded string.h and fcntl.h includes. (DLR) |
David Lawrence Ramsey | e3bae98 | 2005-07-18 19:47:13 +0000 | [diff] [blame] | 105 | - chars.c: |
| 106 | mbstrchr() |
| 107 | - Don't count matches between valid and invalid multibyte |
| 108 | sequences anymore, for consistency. (DLR) |
David Lawrence Ramsey | 76c25f5 | 2005-07-08 21:12:39 +0000 | [diff] [blame] | 109 | - files.c: |
| 110 | open_file() |
| 111 | - Assert that filename isn't NULL, and don't do anything special |
| 112 | if it's blank, as the the former case shouldn't occur, and the |
| 113 | latter case is now handled elsewhere. (DLR) |
David Lawrence Ramsey | 7dc531a | 2005-07-18 18:43:39 +0000 | [diff] [blame] | 114 | input_tab() |
| 115 | - Make columns an int instead of a size_t, since it's limited by |
| 116 | COLS. (DLR) |
David Lawrence Ramsey | 9c1fef0 | 2005-07-07 20:11:17 +0000 | [diff] [blame] | 117 | - global.c: |
| 118 | shortcut_init() |
David Lawrence Ramsey | 1126204 | 2005-07-11 20:19:59 +0000 | [diff] [blame] | 119 | - Simplify wording of nano_gotoline_msg. (Jordi and Ken Tyler) |
David Lawrence Ramsey | 7293685 | 2005-07-25 03:47:08 +0000 | [diff] [blame^] | 120 | - Clarify wording of nano_wordcount_msg, as it won't go through |
| 121 | the entire file if the mark is on. (DLR) |
David Lawrence Ramsey | 4d46437 | 2005-07-16 22:50:30 +0000 | [diff] [blame] | 122 | - move.c: |
| 123 | do_first_line(), do_last_line() |
David Lawrence Ramsey | 5e146e8 | 2005-07-17 00:01:18 +0000 | [diff] [blame] | 124 | - Simplify by only using edit_redraw(), and also make them call |
| 125 | check_statusblank(). (DLR) |
David Lawrence Ramsey | 4d46437 | 2005-07-16 22:50:30 +0000 | [diff] [blame] | 126 | do_page_up(), do_page_down() |
| 127 | - If there's less than a page of text onscreen, just call |
| 128 | do_(first|last)_line(). (DLR) |
David Lawrence Ramsey | c4037f3 | 2005-07-20 21:31:19 +0000 | [diff] [blame] | 129 | do_para_begin(), do_para_begin_void(), do_para_end(), |
| 130 | do_para_end_void(), do_next_word(), do_next_word_void(), |
| 131 | do_prev_word(), do_prev_word_void() |
| 132 | - Move here from nano.c, as they're movement functions, and also |
| 133 | make them call check_statusblank(). |
David Lawrence Ramsey | 9c3249c | 2005-07-01 22:58:47 +0000 | [diff] [blame] | 134 | - nano.c: |
David Lawrence Ramsey | 1126204 | 2005-07-11 20:19:59 +0000 | [diff] [blame] | 135 | usage() |
| 136 | - Properly mention the support for "[+LINE,COLUMN]" on the |
| 137 | command line when HAVE_GETOPT_LONG isn't defined. (DLR) |
David Lawrence Ramsey | 9c3249c | 2005-07-01 22:58:47 +0000 | [diff] [blame] | 138 | do_verbatim_input() |
David Lawrence Ramsey | 9d8396d | 2005-07-08 04:53:51 +0000 | [diff] [blame] | 139 | - If constant cursor position display is on, make sure the |
| 140 | cursor position is displayed properly when we finish. (DLR) |
| 141 | do_next_word() |
| 142 | - Rework to be more like do_prev_word(), to avoid a potential |
| 143 | problem if we start at the end of a line. (DLR) |
David Lawrence Ramsey | 157ce91 | 2005-07-16 23:36:10 +0000 | [diff] [blame] | 144 | do_output() |
| 145 | - When adding a character, just add its length in bytes to |
| 146 | current_x instead of calling do_right(), and set placewewant |
| 147 | afterward. (DLR) |
David Lawrence Ramsey | 658f7e6 | 2005-07-04 03:26:43 +0000 | [diff] [blame] | 148 | do_alt_speller() |
David Lawrence Ramsey | 892396b | 2005-07-04 03:43:54 +0000 | [diff] [blame] | 149 | - If we can't invoke the spell checker, use sprintf() instead of |
David Lawrence Ramsey | da50e73 | 2005-07-04 04:22:30 +0000 | [diff] [blame] | 150 | snprintf() to write the error string we return, as the one |
| 151 | formatted value is a simple string, and so altspell_error will |
| 152 | always be long enough to hold it. Also remove unnecessary |
David Lawrence Ramsey | 757f739 | 2005-07-08 01:49:43 +0000 | [diff] [blame] | 153 | initialization of altspell_error, refactor so that msglen is |
| 154 | no longer needed, and make the error message more similar to |
| 155 | what the internal spell checker returns under the same |
| 156 | circumstances. (DLR) |
David Lawrence Ramsey | 50a33db | 2005-07-17 03:50:22 +0000 | [diff] [blame] | 157 | do_spell() |
| 158 | - When displaying an error message from do_(int|alt)_speller(), |
| 159 | don't display the error message corresponding to errno if |
| 160 | errno is zero. (David Benbennick) |
David Lawrence Ramsey | 9d8396d | 2005-07-08 04:53:51 +0000 | [diff] [blame] | 161 | do_justify() |
| 162 | - If constant cursor position display is on, make sure the |
| 163 | cursor position is displayed properly when we finish. (DLR) |
David Lawrence Ramsey | a549a82 | 2005-07-01 23:11:52 +0000 | [diff] [blame] | 164 | allow_pending_sigwinch() |
| 165 | - Simplify by using the "?" operator instead of an if clause. |
| 166 | (DLR) |
David Lawrence Ramsey | 8f1afee | 2005-07-16 07:06:36 +0000 | [diff] [blame] | 167 | main() |
| 168 | - When opening files with "+LINE,COLUMN" arguments on the |
| 169 | command line, don't update the screen when moving to their |
| 170 | specified lines and columns. (DLR) |
David Lawrence Ramsey | da50e73 | 2005-07-04 04:22:30 +0000 | [diff] [blame] | 171 | - nano.h: |
| 172 | - Since we only use vsnprintf() now, remove the #ifdef block for |
| 173 | HAVE_SNPRINTF. (DLR) |
David Lawrence Ramsey | 5b44f37 | 2005-07-16 22:47:12 +0000 | [diff] [blame] | 174 | - Remove TOP from the topmidnone enum, and rename it centernone. |
| 175 | (DLR) |
David Lawrence Ramsey | 691698a | 2005-07-24 19:57:51 +0000 | [diff] [blame] | 176 | - Move stdlib.h, dirent.h, regex.h, and assert.h includes here, |
| 177 | as every source file needs them. (DLR) |
David Lawrence Ramsey | 61f5673 | 2005-07-21 22:12:03 +0000 | [diff] [blame] | 178 | proto.h: |
| 179 | - Add declarations for bad_mbchar and bad_mbchar_len, so that we |
| 180 | can use them in display_string() as well as chars.c. (DLR) |
David Lawrence Ramsey | db95802 | 2005-07-13 20:18:46 +0000 | [diff] [blame] | 181 | - rcfile.c: |
| 182 | nregcomp() |
| 183 | - Return TRUE when the compilation succeeds and FALSE otherwise, |
| 184 | instead of the other way around. (DLR) |
David Lawrence Ramsey | e3df878 | 2005-07-02 17:49:27 +0000 | [diff] [blame] | 185 | - search.c: |
David Lawrence Ramsey | 612b416 | 2005-07-02 17:56:29 +0000 | [diff] [blame] | 186 | search_init() |
| 187 | - Don't blank out last_replace anymore when we get a new string, |
| 188 | as it'll be blanked out in do_replace(). Also, consolidate |
| 189 | the cases for blank and new search strings, as they now differ |
| 190 | only in which string they pass to regexp_init(). (DLR) |
| 191 | replace_abort() |
| 192 | - Remove unnecessary update of placewewant. (DLR) |
David Lawrence Ramsey | e3df878 | 2005-07-02 17:49:27 +0000 | [diff] [blame] | 193 | do_replace() |
| 194 | - Blank out last_replace properly again just before displaying |
| 195 | the "Replace" prompt. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 0532296 | 2005-07-14 23:51:52 +0000 | [diff] [blame] | 196 | - Remove unnecessary renumber(). (DLR) |
David Lawrence Ramsey | 8f1afee | 2005-07-16 07:06:36 +0000 | [diff] [blame] | 197 | do_gotolinecolumn() |
| 198 | - Add parameter allow_update to control whether the screen is |
David Lawrence Ramsey | 5b44f37 | 2005-07-16 22:47:12 +0000 | [diff] [blame] | 199 | updated after moving. If it's TRUE, call edit_refresh() after |
| 200 | edit_update(). (DLR) |
David Lawrence Ramsey | 8f4762a | 2005-07-16 22:35:11 +0000 | [diff] [blame] | 201 | do_gotopos() |
| 202 | - Only include this function when DISABLE_SPELLER isn't defined, |
| 203 | as the alternate spell checking code is now the only place |
| 204 | where it's used. (DLR) |
David Lawrence Ramsey | 3a9a329 | 2005-07-21 02:20:01 +0000 | [diff] [blame] | 205 | do_find_bracket() |
| 206 | - Add comments and minor cleanups. (DLR) |
David Lawrence Ramsey | 96e6d56 | 2005-07-19 04:53:45 +0000 | [diff] [blame] | 207 | find_history(), get_history_completion() |
| 208 | - Make parameters const where possible. (DLR) |
David Lawrence Ramsey | 7293685 | 2005-07-25 03:47:08 +0000 | [diff] [blame^] | 209 | - text.c: |
| 210 | do_word_count() |
| 211 | - Expand to also count the number of lines and characters in the |
| 212 | file or selection, as wc does. (DLR) |
David Lawrence Ramsey | 9838a51 | 2005-07-06 19:12:41 +0000 | [diff] [blame] | 213 | - winio.c: |
David Lawrence Ramsey | 4d46437 | 2005-07-16 22:50:30 +0000 | [diff] [blame] | 214 | edit_redraw(), edit_refresh() |
David Lawrence Ramsey | b802a13 | 2005-07-14 22:15:09 +0000 | [diff] [blame] | 215 | - Clean up and simplify. (DLR) |
David Lawrence Ramsey | 5b44f37 | 2005-07-16 22:47:12 +0000 | [diff] [blame] | 216 | edit_update() |
| 217 | - Since we no longer use TOP, remove references to it. Also, |
David Lawrence Ramsey | 2786530 | 2005-07-23 20:39:41 +0000 | [diff] [blame] | 218 | don't call edit_refresh() anymore; it will call us. (DLR) |
David Lawrence Ramsey | 9d8396d | 2005-07-08 04:53:51 +0000 | [diff] [blame] | 219 | do_statusbar_next_word() |
| 220 | - Rework to be more like do_statusbar_prev_word(), to avoid a |
| 221 | potential problem if we start at the end of a line. (DLR) |
David Lawrence Ramsey | 157ce91 | 2005-07-16 23:36:10 +0000 | [diff] [blame] | 222 | do_statusbar_output() |
| 223 | - When adding a character, just add its length in bytes to |
| 224 | statusbar_x instead of calling do_statusbar_right(). (DLR) |
David Lawrence Ramsey | b386a90 | 2005-07-10 02:37:38 +0000 | [diff] [blame] | 225 | titlebar() |
| 226 | - Rework to display only one space after the version number, so |
| 227 | that there's more room for other things, and to not display |
| 228 | the status when we're in the file browser, since Pico doesn't. |
| 229 | (DLR) |
David Lawrence Ramsey | ec01074 | 2005-07-06 19:11:15 +0000 | [diff] [blame] | 230 | - configure.ac: |
David Lawrence Ramsey | da50e73 | 2005-07-04 04:22:30 +0000 | [diff] [blame] | 231 | - Since we only use vsnprintf() now, remove the tests for |
| 232 | snprintf(). (DLR) |
David Lawrence Ramsey | 7eb30a8 | 2005-07-17 02:40:07 +0000 | [diff] [blame] | 233 | - Change the description of "sufficient wide character support" |
| 234 | to "sufficient UTF-8 support", as the latter is clearer. (DLR) |
David Lawrence Ramsey | ec01074 | 2005-07-06 19:11:15 +0000 | [diff] [blame] | 235 | - doc/faq.html: |
David Lawrence Ramsey | 504ae90 | 2005-07-05 01:02:11 +0000 | [diff] [blame] | 236 | - Update section 4.10 to mention that pasting from the X |
| 237 | clipboard via the middle mouse button also works when the |
| 238 | Shift key is used. (DLR) |
David Lawrence Ramsey | ec01074 | 2005-07-06 19:11:15 +0000 | [diff] [blame] | 239 | - doc/nanorc.sample: |
David Lawrence Ramsey | 32263ed | 2005-07-03 22:00:29 +0000 | [diff] [blame] | 240 | - Add regexes for Bourne shell scripts. (Mike Frysinger, minor |
| 241 | tweaks by DLR) |
Jordi Mallach | e4b0742 | 2005-07-19 15:07:35 +0000 | [diff] [blame] | 242 | - doc/man/fr/nano.1, doc/man/fr/nanorc.1: |
| 243 | - Updated translation by Jean-Philippe Gérard. |
David Lawrence Ramsey | 691698a | 2005-07-24 19:57:51 +0000 | [diff] [blame] | 244 | - src/Makefile.am: |
| 245 | - Add text.c to nano_SOURCES. (DLR) |
David Lawrence Ramsey | d509229 | 2005-06-30 17:17:41 +0000 | [diff] [blame] | 246 | |
David Lawrence Ramsey | 665b1fb | 2005-06-30 17:16:16 +0000 | [diff] [blame] | 247 | GNU nano 1.3.8 - 2005.06.30 |
David Lawrence Ramsey | 6a244b6 | 2005-04-14 03:52:28 +0000 | [diff] [blame] | 248 | - General: |
| 249 | - Miscellaneous comment fixes. (DLR) |
David Lawrence Ramsey | e527e45 | 2005-04-15 18:07:26 +0000 | [diff] [blame] | 250 | - Various #include fixes. Since proto.h includes nano.h, only |
| 251 | include the former in source files. Also add an #include |
| 252 | guard to proto.h, and make the config.h #include in nano.h |
| 253 | match the config.h #includes everywhere else. (DLR) |
David Lawrence Ramsey | 5b2f17e | 2005-04-19 21:47:01 +0000 | [diff] [blame] | 254 | - Change all hardcoded instances of 128 bytes to MAX_BUF_SIZE, |
| 255 | and #define MAX_BUF_SIZE as 128 in nano.h. (DLR) |
David Lawrence Ramsey | 5e73eec | 2005-05-03 20:57:13 +0000 | [diff] [blame] | 256 | - Display the key to go to the previous strings in the |
David Lawrence Ramsey | 1e64db6 | 2005-06-14 23:38:41 +0000 | [diff] [blame] | 257 | search/replace history as "^P" instead of "Up". This makes |
| 258 | mouse clicks work properly on it. Changes to shortcut_init(), |
| 259 | help_init(), nanogetstr(), and do_statusbar_input(). (DLR) |
David Lawrence Ramsey | 6e925cf | 2005-05-15 19:57:17 +0000 | [diff] [blame] | 260 | - Update the Free Software Foundation's mailing address in |
| 261 | various comments. (DLR) |
David Lawrence Ramsey | 775eeba | 2005-05-16 18:38:16 +0000 | [diff] [blame] | 262 | - Add the ability to open a file on a specified column as well |
| 263 | as a specified line, by allowing an argument of the form |
David Lawrence Ramsey | b68c01b | 2005-05-16 23:23:15 +0000 | [diff] [blame] | 264 | +LINE,COLUMN. New function parse_line_column(); changes to |
David Lawrence Ramsey | d3d3743 | 2005-05-17 21:49:19 +0000 | [diff] [blame] | 265 | shortcut_init(), main(), do_gotoline() (renamed |
| 266 | do_gotolinecolumn()), do_gotoline_void() (renamed |
| 267 | do_gotolinecolumn_void()), nano.1, and nano.texi. (DLR, |
| 268 | suggested by PFTank) |
David Lawrence Ramsey | 934f968 | 2005-05-23 16:30:06 +0000 | [diff] [blame] | 269 | - Overhaul the history code to work more consistently, and clean |
David Lawrence Ramsey | 34bdc35 | 2005-06-02 18:41:31 +0000 | [diff] [blame] | 270 | up various parts of it. New function history_has_changed(); |
| 271 | changes to load_history(), writehist(), |
| 272 | thanks_for_all_the_fish(), history_init(), find_node() |
| 273 | (renamed find_history()), update_history(), |
| 274 | get_history_older(), get_history_newer(), |
| 275 | get_history_completion(), do_search(), do_replace(), |
| 276 | nanogetstr(), and statusq(); removal of remove_node() and |
| 277 | insert_node(). (DLR) |
David Lawrence Ramsey | 7a3f49c | 2005-06-22 00:24:11 +0000 | [diff] [blame] | 278 | - Remove all instances of charcpy() and replace them with |
| 279 | strncpy(), since there's no way to be sure that a charcpy()ed |
| 280 | string will always be properly null-terminated, and strcpy()'s |
| 281 | null termination is the only difference between it and |
| 282 | charcpy(). (DLR) |
David Lawrence Ramsey | b9b5722 | 2005-05-29 02:22:55 +0000 | [diff] [blame] | 283 | - When using a backup directory, make sure all the filenames |
| 284 | written are unique by using get_next_filename() when |
David Lawrence Ramsey | 527f174 | 2005-05-30 02:09:21 +0000 | [diff] [blame] | 285 | necessary. Changes to get_next_filename(), write_file(), |
| 286 | die(), usage(), nano.1, nanorc.5, nanorc.sample, and |
| 287 | nano.texi. (DLR, suggested by James Collings) |
David Lawrence Ramsey | 5e068c6 | 2005-05-31 04:28:15 +0000 | [diff] [blame] | 288 | - Rework the file-writing routines so that they can work |
| 289 | properly with already-opened files, such as the |
| 290 | mkstemp()-created files used by the spell-checking code. |
| 291 | Changes to safe_tempnam() (renamed safe_tempfile()), |
| 292 | write_file(), write_marked(), die(), do_spell(), and |
| 293 | do_exit(). (DLR) |
David Lawrence Ramsey | c10d8ff | 2005-06-03 20:51:39 +0000 | [diff] [blame] | 294 | - Remove the -R/--regexp command line option and enable the |
David Lawrence Ramsey | f3ecffd | 2005-06-16 18:48:30 +0000 | [diff] [blame] | 295 | toggle at the search prompt in tiny mode, as it already |
David Lawrence Ramsey | c10d8ff | 2005-06-03 20:51:39 +0000 | [diff] [blame] | 296 | allows the prepend and append toggles at the search prompt. |
| 297 | For consistency, rename TOGGLE_REGEXP_KEY to NANO_REGEXP_KEY, |
| 298 | and move it out of the toggles block to where NANO_PREPEND_KEY |
David Lawrence Ramsey | 84635cd | 2005-06-17 22:53:41 +0000 | [diff] [blame] | 299 | and NANO_APPEND_KEY are. Also, change the short command line |
| 300 | option for --restricted from -Z to -R. Changes to |
| 301 | shortcut_init(), usage(), main(), search_init(), nano.1, |
| 302 | nano.texi, etc. (DLR) |
David Lawrence Ramsey | d5d4dde | 2005-06-14 01:55:56 +0000 | [diff] [blame] | 303 | - Various cleanups and improvements in chars.c. Remove some |
David Lawrence Ramsey | e0a0d23 | 2005-06-20 20:58:41 +0000 | [diff] [blame] | 304 | unnecessary w?ctype wrappers and variables; change the wctype |
| 305 | wrappers to take wint_t instead of wchar_t to match the |
| 306 | functions they wrap; rename some functions for consistency; |
| 307 | add functions to detect blank characters in a string, for use |
David Lawrence Ramsey | 68c1096 | 2005-06-21 04:11:04 +0000 | [diff] [blame] | 308 | in rcfile option parsing; and don't count matches between |
| 309 | valid and invalid multibyte sequences anymore, as it causes |
| 310 | problems when doing a replace. New functions |
| 311 | is_valid_mbstring(), has_blank_chars(), and |
David Lawrence Ramsey | e0a0d23 | 2005-06-20 20:58:41 +0000 | [diff] [blame] | 312 | has_blank_mbchars(); changes to is_alnum_mbchar(), |
| 313 | is_blank_char() (renamed nisblank()), is_blank_mbchar(), |
| 314 | is_blank_wchar() (renamed niswblank()), is_cntrl_wchar(), |
| 315 | control_rep(), control_mbrep(), make_mbstring() (renamed |
| 316 | make_valid_mbstring()), mbstrncasecmp(), mbstrcasestr(), |
| 317 | mbrevstrcasestr(), etc.; removal of is_alnum_char() and |
| 318 | is_alnum_wchar(). (DLR) |
David Lawrence Ramsey | e010edd | 2005-06-12 22:31:03 +0000 | [diff] [blame] | 319 | - Implement word count via Meta-D at the main window. Note that |
David Lawrence Ramsey | a8824a1 | 2005-06-26 19:03:48 +0000 | [diff] [blame] | 320 | this is disabled when NANO_SMALL is defined. Also, convert |
| 321 | all word detection functions to use the same wrapper function |
| 322 | for ease of maintenance, and make them return more |
| 323 | information. New functions is_punct_mbchar(), |
| 324 | is_word_mbchar(), do_next_word_void(), do_prev_word_void(), |
| 325 | and do_word_count(); changes to shortcut_init(), |
David Lawrence Ramsey | 6728708 | 2005-06-13 02:40:04 +0000 | [diff] [blame] | 326 | do_next_word(), do_prev_word(), is_whole_word(), |
| 327 | do_statusbar_next_word(), and do_statusbar_prev_word(). (DLR) |
David Lawrence Ramsey | ab41ab9 | 2005-06-15 06:30:05 +0000 | [diff] [blame] | 328 | - Fix #ifdefs so that nano compiles with NANO_SMALL defined and |
| 329 | DISABLE_TABCOMP undefined. Changes to revstrstr() and |
| 330 | free_charptrarray() (renamed free_chararray()). (DLR) |
David Lawrence Ramsey | ed7ad33 | 2005-06-15 16:07:14 +0000 | [diff] [blame] | 331 | - Change the wctype wrappers to take wchar_t's again, as they |
| 332 | still work the same way with them. This also fixes |
| 333 | compilation on Mac OS X 10.4.1, which doesn't seem to define a |
David Lawrence Ramsey | 99466bf | 2005-06-21 15:47:39 +0000 | [diff] [blame] | 334 | wint_t type. (DLR, found by Emily Jackson) |
David Lawrence Ramsey | 6f143c8 | 2005-06-15 23:20:56 +0000 | [diff] [blame] | 335 | - Add the ability to convert typed tabs to spaces using |
| 336 | the -E/--tabstospaces command line options, the "tabstospaces" |
David Lawrence Ramsey | c3e52f1 | 2005-06-21 17:44:01 +0000 | [diff] [blame] | 337 | rcfile option, and the toggle Meta-Q (since QBasic did this by |
| 338 | default :)). Note that this doesn't affect tabs entered using |
| 339 | verbatim input, and that it's disabled when NANO_SMALL is |
| 340 | defined. Also, change the short command line option for |
| 341 | --backupdir from -E to -C. Changes to toggle_init(), usage(), |
| 342 | do_tab(), main(), nanorc.sample, nano.1, nanorc.5, and |
| 343 | nano.texi. (DLR, suggested by many people) |
David Lawrence Ramsey | 3435a0f | 2005-06-17 21:08:13 +0000 | [diff] [blame] | 344 | - Change the CONSTUPDATE, REVERSE_SEARCH, and SMOOTHSCROLL flags |
| 345 | to the CONST_UPDATE, BACKWARDS_SEARCH, and SMOOTH_SCROLL |
| 346 | flags, respectively. (DLR) |
David Lawrence Ramsey | b2b6976 | 2005-06-16 02:13:10 +0000 | [diff] [blame] | 347 | - Change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag. (DLR) |
David Lawrence Ramsey | 7a4aaa5 | 2005-06-16 02:09:57 +0000 | [diff] [blame] | 348 | - Change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its |
| 349 | meaning. (DLR) |
David Lawrence Ramsey | f3ecffd | 2005-06-16 18:48:30 +0000 | [diff] [blame] | 350 | - Add rcfile options "casesensitive" and "backwards", to do |
| 351 | case sensitive and backwards searches by default. Changes to |
| 352 | nanorc.sample and nanorc.5. (DLR) |
David Lawrence Ramsey | ea01474 | 2005-06-17 18:27:00 +0000 | [diff] [blame] | 353 | - Since the DISABLE_CURPOS flag is only used in winio.c, reduce |
| 354 | it to a static bool there. Changes to statusbar() and |
| 355 | disable_cursorpos(). (DLR) |
David Lawrence Ramsey | b725353 | 2005-06-21 16:19:47 +0000 | [diff] [blame] | 356 | - Add -U/--quickblank option and a "quickblank" rcfile option to |
| 357 | blank the statusbar after 1 keystroke instead of 25. Note |
| 358 | that this obviously has no effect when constant cursor |
| 359 | position display is turned on, and that this is disabled when |
| 360 | NANO_SMALL is defined. Changes to usage(), main(), |
| 361 | statusbar(), nanorc.sample, nano.1, and nanorc.5. (DLR, |
| 362 | suggested by CHAO Wei-Lun) |
David Lawrence Ramsey | 23555f2 | 2005-06-27 03:07:10 +0000 | [diff] [blame] | 363 | - Add support for case insensitive expression matching when |
| 364 | using color syntax highlighting, via the "icolor" directive, |
| 365 | and add it to those regexes that can use it. Changes to |
| 366 | parse_colors(), parse_rcfile(), nanorc.sample, and nanorc.5. |
| 367 | (Brand Huntsman, minor tweaks by DLR) |
David Lawrence Ramsey | 2cf6d71 | 2005-06-28 06:25:34 +0000 | [diff] [blame] | 368 | - Add various type changes to avoid problems on systems where |
| 369 | int and ssize_t are different sizes. Make filestruct->lineno |
| 370 | a ssize_t (so that we can avoid negative line numbers at the |
| 371 | "Go To Line" prompt), current_y a ssize_t (in order to hold |
| 372 | the maximum difference between two filestruct->lineno's), |
| 373 | totlines a size_t, and change related variables to match. |
| 374 | (DLR, initial problem with parse_line_column() found by Mike |
| 375 | Frysinger) |
David Lawrence Ramsey | 9905b6a | 2005-06-28 07:26:11 +0000 | [diff] [blame] | 376 | - Rework the credits handling to display Florian König's name |
David Lawrence Ramsey | b2072b0 | 2005-06-28 14:59:38 +0000 | [diff] [blame] | 377 | properly whether we're in a UTF-8 locale or not, and without |
| 378 | requiring a massive function that we only use once. Changes |
| 379 | to do_credits(); removal of make_valid_mbstring(). (DLR) |
David Lawrence Ramsey | 3925bda | 2005-06-07 03:20:35 +0000 | [diff] [blame] | 380 | - chars.c: |
| 381 | make_mbstring() |
| 382 | - Change erroneous ENABLE_EXTRA #ifdef to NANO_EXTRA to fix a |
| 383 | compilation problem when --enable-nanorc isn't used and |
| 384 | --enable-extra is. (DLR) |
David Lawrence Ramsey | a62e8e3 | 2005-06-19 21:10:48 +0000 | [diff] [blame] | 385 | - color.c: |
| 386 | update_color() |
| 387 | - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8 |
| 388 | color syntax names are properly detected. (DLR) |
David Lawrence Ramsey | 02173c0 | 2005-05-14 18:41:25 +0000 | [diff] [blame] | 389 | - cut.c: |
| 390 | cut_line() |
| 391 | - Set placewewant properly after cutting a line, to avoid a |
| 392 | problem where the screen won't be updated if (a) we're not on |
| 393 | the first page when we cut the line, and (b) immediately after |
| 394 | we cut the line, we hit End to move to the end of the line |
| 395 | after it. (DLR) |
David Lawrence Ramsey | 6a244b6 | 2005-04-14 03:52:28 +0000 | [diff] [blame] | 396 | - files.c: |
David Lawrence Ramsey | 50995bd | 2005-05-16 20:13:09 +0000 | [diff] [blame] | 397 | read_line() |
| 398 | - Rename variable prev to prevnode to avoid confusion. (DLR) |
David Lawrence Ramsey | 483f3ac | 2005-06-19 19:57:13 +0000 | [diff] [blame] | 399 | - Rename variable len to buf_len, for consistency. (DLR) |
David Lawrence Ramsey | ad11460 | 2005-04-16 18:27:57 +0000 | [diff] [blame] | 400 | load_open_file() |
| 401 | - Remove an unneeded clearok(FALSE). (DLR) |
David Lawrence Ramsey | 6a244b6 | 2005-04-14 03:52:28 +0000 | [diff] [blame] | 402 | get_next_filename() |
David Lawrence Ramsey | c596c0c | 2005-04-19 16:32:08 +0000 | [diff] [blame] | 403 | - Use an unsigned long instead of an int for the number |
| 404 | prepended to the filename. (DLR) |
David Lawrence Ramsey | 7e62d10 | 2005-06-06 19:25:29 +0000 | [diff] [blame] | 405 | do_insertfile() |
| 406 | - Set i to 0 when we get a filename via the file browser, so |
| 407 | that it's read in properly when we exit the file browser. |
| 408 | (DLR) |
David Lawrence Ramsey | d26f1eb | 2005-06-15 03:01:41 +0000 | [diff] [blame] | 409 | open_prevnext_file() |
| 410 | - Move up a misplaced assert. (DLR) |
| 411 | - Rename variable next to next_file, to avoid confusion. (DLR) |
David Lawrence Ramsey | 5b2f17e | 2005-04-19 21:47:01 +0000 | [diff] [blame] | 412 | write_file() |
| 413 | - Since lineswritten is a size_t, print its value as an unsigned |
| 414 | long instead of an unsigned int. (DLR) |
David Lawrence Ramsey | 15aaa2c | 2005-05-28 23:21:30 +0000 | [diff] [blame] | 415 | - Declare the size_t i only in the loop where it's used. (DLR) |
David Lawrence Ramsey | a62e8e3 | 2005-06-19 21:10:48 +0000 | [diff] [blame] | 416 | diralphasort() |
David Lawrence Ramsey | 68c1096 | 2005-06-21 04:11:04 +0000 | [diff] [blame] | 417 | - Use mbstrcasecmp() instead of strcasecmp(), so that UTF-8 |
| 418 | filenames are sorted properly. (DLR) |
David Lawrence Ramsey | 546f5b3 | 2005-05-14 23:14:47 +0000 | [diff] [blame] | 419 | cwd_tab_completion(), browser_init() |
| 420 | - Rename variable next to nextdir to avoid confusion. (DLR) |
David Lawrence Ramsey | 217f241 | 2005-05-27 03:57:01 +0000 | [diff] [blame] | 421 | input_tab() |
David Lawrence Ramsey | 01e13ea | 2005-06-21 04:16:12 +0000 | [diff] [blame] | 422 | - Since list is a bool, set it to FALSE instead of 0. (DLR) |
David Lawrence Ramsey | aff5a1c | 2005-05-27 13:06:18 +0000 | [diff] [blame] | 423 | - Add multibyte/wide character support, so that we don't end up |
| 424 | with a string that contains only part of a multibyte |
| 425 | character during tab completion. (DLR) |
David Lawrence Ramsey | 16799ba | 2005-06-21 22:32:50 +0000 | [diff] [blame] | 426 | - Rename variable buflen to buf_len, for consistency. (DLR) |
David Lawrence Ramsey | 9cf1df1 | 2005-04-19 03:15:21 +0000 | [diff] [blame] | 427 | do_browser() |
| 428 | - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for |
| 429 | consistency. (DLR) |
David Lawrence Ramsey | 16f8813 | 2005-05-26 03:32:41 +0000 | [diff] [blame] | 430 | - When displaying "(dir)" in the available screen space, make |
| 431 | sure that the string it's stored in is always null-terminated. |
| 432 | (DLR) |
David Lawrence Ramsey | 9c06f34 | 2005-06-15 07:18:30 +0000 | [diff] [blame] | 433 | - Rename variable selectedbackup to old_selected, for |
| 434 | consistency. (DLR) |
David Lawrence Ramsey | 42e271d | 2005-06-15 07:32:58 +0000 | [diff] [blame] | 435 | - Make mouse clicks in the browser window work properly when the |
| 436 | MORE_SPACE flag is set. (DLR) |
David Lawrence Ramsey | 16799ba | 2005-06-21 22:32:50 +0000 | [diff] [blame] | 437 | - Make foo_len a size_t instead of an int. (DLR) |
David Lawrence Ramsey | 30f164a | 2005-05-21 22:41:23 +0000 | [diff] [blame] | 438 | save_history() |
David Lawrence Ramsey | 2137458 | 2005-06-15 23:36:08 +0000 | [diff] [blame] | 439 | - Properly save history when we're in view mode. (DLR) |
David Lawrence Ramsey | 6439330 | 2005-04-25 21:48:22 +0000 | [diff] [blame] | 440 | - global.c: |
| 441 | shortcut_init() |
| 442 | - Move the "Refresh" and "Exit" shortcuts to the beginning of |
| 443 | the help browser shortcut list, for consistency. (DLR) |
David Lawrence Ramsey | 9b108c2 | 2005-06-06 18:38:16 +0000 | [diff] [blame] | 444 | - Remove unnecessary "Refresh" placeholder in the file browser |
| 445 | shortcut list. (DLR) |
David Lawrence Ramsey | a049c83 | 2005-06-12 23:53:28 +0000 | [diff] [blame] | 446 | - Allow the mark to be used in view mode, as Pico does. (DLR) |
David Lawrence Ramsey | fa6c29c | 2005-06-16 03:07:05 +0000 | [diff] [blame] | 447 | - Clarify the description of ^X when --enable-multibuffer is |
| 448 | used. (DLR) |
David Lawrence Ramsey | f3ecffd | 2005-06-16 18:48:30 +0000 | [diff] [blame] | 449 | - Change the description of the Meta-B toggle at the search |
| 450 | prompt from "Direction" to "Backwards", for consistency. (DLR) |
David Lawrence Ramsey | 3435a0f | 2005-06-17 21:08:13 +0000 | [diff] [blame] | 451 | toggle_init() |
David Lawrence Ramsey | d873447 | 2005-06-18 03:03:32 +0000 | [diff] [blame] | 452 | - Clarify the descriptions of M-C and M-L. (DLR) |
David Lawrence Ramsey | 26e637b | 2005-06-18 03:37:56 +0000 | [diff] [blame] | 453 | - Reorder the toggles to put more toggles with similar functions |
| 454 | together. (DLR) |
David Lawrence Ramsey | 31b159c | 2005-05-26 05:17:13 +0000 | [diff] [blame] | 455 | thanks_for_all_the_fish() |
| 456 | - Remove free_toggles() and move its code here verbatim, as it's |
| 457 | only called here anyway. (David Benbennick) |
| 458 | - Fix the code to free all open file buffers to work properly |
| 459 | with the previous overhaul of the multibuffer code instead of |
David Lawrence Ramsey | 40e4acf | 2005-05-26 06:09:07 +0000 | [diff] [blame] | 460 | going into an infinite loop. (David Benbennick) |
David Lawrence Ramsey | 31b159c | 2005-05-26 05:17:13 +0000 | [diff] [blame] | 461 | - Add additional checks for variables' not being NULL before we |
| 462 | try to free them, to avoid assertion failures. (DLR) |
David Lawrence Ramsey | c2b0747 | 2005-04-14 03:13:49 +0000 | [diff] [blame] | 463 | - nano.c: |
David Lawrence Ramsey | 15aaa2c | 2005-05-28 23:21:30 +0000 | [diff] [blame] | 464 | die() |
| 465 | - Rename variable ret to retval for consistency. (DLR) |
David Lawrence Ramsey | 54b74ce | 2005-05-29 23:03:28 +0000 | [diff] [blame] | 466 | - Tweak the message displayed when a backup file can't be |
David Lawrence Ramsey | 7385755 | 2005-06-03 04:09:45 +0000 | [diff] [blame] | 467 | written, so as to not duplicate a translated string. (DLR) |
David Lawrence Ramsey | f4595bb | 2005-06-06 16:27:18 +0000 | [diff] [blame] | 468 | - If the current filestruct's been partitioned, unpartition it |
| 469 | before saving the associated file. (DLR) |
David Lawrence Ramsey | c00f658 | 2005-06-12 15:19:11 +0000 | [diff] [blame] | 470 | resize_variables() |
David Lawrence Ramsey | 3db0dc3 | 2005-06-12 15:24:36 +0000 | [diff] [blame] | 471 | - Use charset() instead of memset() to initialize hblank. (DLR) |
David Lawrence Ramsey | 6d39f4b | 2005-05-14 21:19:15 +0000 | [diff] [blame] | 472 | copy_filestruct() |
| 473 | - Rename variable prev to copy to avoid confusion. (DLR) |
David Lawrence Ramsey | c2b0747 | 2005-04-14 03:13:49 +0000 | [diff] [blame] | 474 | print1opt_full() |
| 475 | - If desc should be empty, allow it to be NULL instead of |
| 476 | "", since the latter is not necessarily translated as "". |
| 477 | (DLR, found by Jordi) |
David Lawrence Ramsey | 86ce390 | 2005-05-21 17:15:46 +0000 | [diff] [blame] | 478 | usage() |
| 479 | - Add missing N_() around one message, so that it isn't |
| 480 | erroneously translated twice. (DLR) |
David Lawrence Ramsey | d1cc007 | 2005-06-16 17:26:01 +0000 | [diff] [blame] | 481 | - Remove inaccurate default listed for -Q/--quotestr. (DLR) |
David Lawrence Ramsey | 85c0b3c | 2005-06-29 17:10:58 +0000 | [diff] [blame] | 482 | version() |
| 483 | - Add --enable-utf8 to the displayed compilation options, put |
| 484 | the options in alphabetical order, and handle --enable-tiny |
| 485 | the same way as all the other options. (DLR) |
David Lawrence Ramsey | 6315e2f | 2005-06-12 16:45:37 +0000 | [diff] [blame] | 486 | do_tab() |
| 487 | - Remove unneeded variable kbinput. (DLR) |
David Lawrence Ramsey | 5a6caf0 | 2005-06-15 19:21:04 +0000 | [diff] [blame] | 488 | do_int_spell_fix() |
| 489 | - Display highlighted misspelled words using display_string(), |
| 490 | as do_replace_loop() does. (DLR) |
David Lawrence Ramsey | ad11460 | 2005-04-16 18:27:57 +0000 | [diff] [blame] | 491 | do_alt_speller() |
| 492 | - Replace a set_modified() with SET(MODIFIED) to avoid an |
| 493 | unnecessary update, and remove an unneeded clearok(FALSE). |
| 494 | (DLR) |
David Lawrence Ramsey | bd11c01 | 2005-06-21 01:33:31 +0000 | [diff] [blame] | 495 | - Move the spell checking error handling block down and refactor |
| 496 | it so that we go back into curses mode, reinitialize the |
| 497 | terminal, turn the cursor back on, and turn the mark back on |
| 498 | if necessary before returning the error message. (DLR) |
David Lawrence Ramsey | 072f86c | 2005-06-15 20:21:02 +0000 | [diff] [blame] | 499 | do_spell() |
David Lawrence Ramsey | cd0210f | 2005-06-18 14:05:21 +0000 | [diff] [blame] | 500 | - If the spell-checker printed any error messages onscreen, call |
David Lawrence Ramsey | bd11c01 | 2005-06-21 01:33:31 +0000 | [diff] [blame] | 501 | total_refresh() to make sure they're cleared off. (DLR, found |
David Lawrence Ramsey | cd0210f | 2005-06-18 14:05:21 +0000 | [diff] [blame] | 502 | by CHAO Wei-Lun) |
David Lawrence Ramsey | f816119 | 2005-06-29 01:27:33 +0000 | [diff] [blame] | 503 | find_paragraph() |
| 504 | - Reset placewewant as well as current_x to 0, in order to avoid |
| 505 | a potential screen update problem. (DLR) |
David Lawrence Ramsey | 18d6a7a | 2005-06-28 06:05:54 +0000 | [diff] [blame] | 506 | do_justify() |
| 507 | - Save placewewant, and restore it if we unjustify, in order to |
| 508 | avoid a potential screen update problem. (DLR) |
David Lawrence Ramsey | e4cb315 | 2005-04-25 22:48:58 +0000 | [diff] [blame] | 509 | do_output() |
David Lawrence Ramsey | 6595b71 | 2005-04-26 17:21:47 +0000 | [diff] [blame] | 510 | - Properly allow wrapping when we insert a tab, for consistency. |
| 511 | (DLR) |
David Lawrence Ramsey | 31b159c | 2005-05-26 05:17:13 +0000 | [diff] [blame] | 512 | - Don't set current_len until after it's been asserted that both |
| 513 | current and current->data aren't NULL. (DLR) |
David Lawrence Ramsey | d4471eb | 2005-06-26 20:05:01 +0000 | [diff] [blame] | 514 | do_toggle() |
| 515 | - Properly treat color syntax highlighting as enabled by |
| 516 | default, and only treat wrapping as enabled by default when |
| 517 | DISABLE_WRAPPING isn't defined. (DLR) |
David Lawrence Ramsey | 8bcac8a | 2005-06-09 04:02:57 +0000 | [diff] [blame] | 518 | disable_extended_input() |
| 519 | - Disable extended output processing as well as extended input |
| 520 | processing, and rename to disable_extended_io(). (DLR) |
David Lawrence Ramsey | 5e50e2f | 2005-06-23 22:28:56 +0000 | [diff] [blame] | 521 | disable_flow_control(), enable_flow_control() |
| 522 | - Only turn off flow control on output, as it might be needed |
| 523 | for input on slow terminals. (DLR) |
David Lawrence Ramsey | 3db0dc3 | 2005-06-12 15:24:36 +0000 | [diff] [blame] | 524 | - nano.h: |
| 525 | - Add macro charset(), a wrapper that calls memset(). (DLR) |
David Lawrence Ramsey | d864048 | 2005-06-12 17:48:46 +0000 | [diff] [blame] | 526 | - Readd #defines for the isblank() and iswblank() equivalents. |
| 527 | (DLR) |
David Lawrence Ramsey | 6ea410e | 2005-06-26 22:32:51 +0000 | [diff] [blame] | 528 | - In the colortype struct, make bright a bool instead of an int, |
| 529 | for consistency. (DLR) |
David Lawrence Ramsey | c4ca596 | 2005-06-16 20:58:19 +0000 | [diff] [blame] | 530 | - proto.h: |
| 531 | - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the |
| 532 | do_find_bracket() prototype. (DLR) |
David Lawrence Ramsey | 7c78b45 | 2005-06-08 21:17:32 +0000 | [diff] [blame] | 533 | - rcfile.c: |
David Lawrence Ramsey | 44491ac | 2005-06-09 14:04:08 +0000 | [diff] [blame] | 534 | color_to_int() |
| 535 | - Since colorname's being NULL is handled elsewhere now, assert |
| 536 | that it isn't NULL at the beginning of the function. (DLR) |
David Lawrence Ramsey | 7c78b45 | 2005-06-08 21:17:32 +0000 | [diff] [blame] | 537 | parse_colors() |
| 538 | - Properly parse a background color without a foreground color. |
| 539 | (DLR) |
David Lawrence Ramsey | a9d45bb | 2005-06-09 01:09:00 +0000 | [diff] [blame] | 540 | - Properly generate an error if we get a color directive without |
| 541 | a regex string. (DLR) |
David Lawrence Ramsey | 30d0a81 | 2005-06-13 14:50:32 +0000 | [diff] [blame] | 542 | parse_rcfile() |
| 543 | - Properly generate an error if we get an invalid multibyte |
| 544 | string for an option, instead of working around it. (DLR) |
David Lawrence Ramsey | d5d4dde | 2005-06-14 01:55:56 +0000 | [diff] [blame] | 545 | - Use has_blank_mbchars() to check for blank characters in the |
| 546 | "punct" and "brackets" options, and clarify the error message |
| 547 | displayed when we find blank characters. (DLR) |
David Lawrence Ramsey | e1ce92c | 2005-05-17 01:55:44 +0000 | [diff] [blame] | 548 | - search.c: |
| 549 | do_gotoline() |
| 550 | - Properly show an error message if we try to go to line 0, |
| 551 | since the first line in the file is 1. (DLR) |
David Lawrence Ramsey | 1727671 | 2005-05-17 22:01:55 +0000 | [diff] [blame] | 552 | - Start the search for a line from fileage instead of current |
| 553 | (again). (DLR) |
David Lawrence Ramsey | e3970f5 | 2005-05-26 03:47:24 +0000 | [diff] [blame] | 554 | replace_regexp() |
David Lawrence Ramsey | 16799ba | 2005-06-21 22:32:50 +0000 | [diff] [blame] | 555 | - Rename variables create_flag and new_size to create and |
| 556 | new_line_size, for consistency. (DLR) |
| 557 | - Make new_line_size, search_match_count, and i size_t's, for |
| 558 | consistency. (DLR) |
David Lawrence Ramsey | 16f8813 | 2005-05-26 03:32:41 +0000 | [diff] [blame] | 559 | replace_line() |
| 560 | - Make new_line_size and search_match_count size_t's, for |
| 561 | consistency. (DLR) |
David Lawrence Ramsey | c4dbdd5 | 2005-06-06 03:46:32 +0000 | [diff] [blame] | 562 | do_replace_loop() |
| 563 | - When moving to the next match, update the screen using |
| 564 | edit_refresh() instead of edit_redraw(), as the latter won't |
| 565 | work properly when we've replaced one or more instances of a |
| 566 | string in copy and haven't yet updated current->data to match |
| 567 | copy. (DLR) |
David Lawrence Ramsey | 5c8197d | 2005-06-16 20:41:20 +0000 | [diff] [blame] | 568 | do_find_bracket() |
| 569 | - Miscellaneous cleanups: rename variables for consistency, and |
| 570 | save the search direction and regexp setting in two bools |
| 571 | instead of one flags variable. (DLR) |
David Lawrence Ramsey | 6a244b6 | 2005-04-14 03:52:28 +0000 | [diff] [blame] | 572 | - utils.c: |
| 573 | num_of_digits() |
David Lawrence Ramsey | c596c0c | 2005-04-19 16:32:08 +0000 | [diff] [blame] | 574 | - Use a size_t instead of an int, and rename to digits(). (DLR) |
David Lawrence Ramsey | 6a0d5b8 | 2005-06-13 14:00:22 +0000 | [diff] [blame] | 575 | align() |
| 576 | - Rename variable strp to str for consistency. (DLR) |
David Lawrence Ramsey | 0465251 | 2005-04-16 18:07:37 +0000 | [diff] [blame] | 577 | - winio.c: |
David Lawrence Ramsey | 31b159c | 2005-05-26 05:17:13 +0000 | [diff] [blame] | 578 | do_statusbar_output() |
| 579 | - Don't set answer_len until after it's been asserted that |
| 580 | answer isn't NULL. (DLR) |
David Lawrence Ramsey | d29b9d5 | 2005-06-06 03:17:07 +0000 | [diff] [blame] | 581 | display_string() |
| 582 | - Avoid a memory corruption problem by allocating enough space |
| 583 | for len plus a trailing multibyte character and/or tab. (DLR) |
David Lawrence Ramsey | d0d5b8f | 2005-06-10 20:45:54 +0000 | [diff] [blame] | 584 | - Don't check for multicolumn characters if the NO_UTF8 flag |
| 585 | isn't set. (DLR) |
David Lawrence Ramsey | 6a0d5b8 | 2005-06-13 14:00:22 +0000 | [diff] [blame] | 586 | - Free buf_mb when we're done using it. (DLR) |
David Lawrence Ramsey | 6f25a67 | 2005-05-20 02:57:05 +0000 | [diff] [blame] | 587 | nanogetstr() |
| 588 | - Rename variable def to curranswer to avoid confusion. (DLR) |
| 589 | - Only declare and use the tabbed variable if DISABLE_TABCOMP |
| 590 | isn't defined. (DLR) |
David Lawrence Ramsey | e8bb90b | 2005-05-26 05:39:53 +0000 | [diff] [blame] | 591 | - Refactor to replace unnecessary variable answer_len with |
| 592 | curranswer_len, and hence avoid an assertion failure involving |
| 593 | the former. (DLR) |
David Lawrence Ramsey | 546f5b3 | 2005-05-14 23:14:47 +0000 | [diff] [blame] | 594 | statusq() |
| 595 | - Rename variable which_history to history_list, for |
| 596 | consistency. (DLR) |
David Lawrence Ramsey | 6f25a67 | 2005-05-20 02:57:05 +0000 | [diff] [blame] | 597 | - Rename variables def and ret to curranswer and retval to avoid |
| 598 | confusion. (DLR) |
David Lawrence Ramsey | 9c6d786 | 2005-06-18 22:33:24 +0000 | [diff] [blame] | 599 | - Call wnoutrefresh(bottomwin) after getting an answer and |
| 600 | blanking out the statusbar, to make sure that the blanking is |
| 601 | done. This fixes a problem where the statusbar is not |
| 602 | properly blanked after using the "Go To Line" prompt with the |
| 603 | NO_HELP flag set. (DLR) |
David Lawrence Ramsey | 8d5beb5 | 2005-06-21 20:37:04 +0000 | [diff] [blame] | 604 | titlebar() |
| 605 | - Use actual_x() to calculate the number of characters VERMSG |
| 606 | takes up, in case it's UTF-8. (DLR) |
David Lawrence Ramsey | 6ad6b85 | 2005-06-28 06:16:30 +0000 | [diff] [blame] | 607 | do_cursorpos() |
| 608 | - Properly display the value of totsize as unsigned. (DLR) |
David Lawrence Ramsey | 4e05b75 | 2005-06-28 20:04:14 +0000 | [diff] [blame] | 609 | - If constant is TRUE, only display the cursor position when |
| 610 | disable_cursorpos is FALSE. Don't refuse to display it when |
| 611 | the cursor position hasn't changed, as that doesn't always |
| 612 | keep it properly updated. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 9cf1df1 | 2005-04-19 03:15:21 +0000 | [diff] [blame] | 613 | do_help() |
| 614 | - Don't treat NANO_CANCEL_KEY as NANO_EXIT_KEY anymore, for |
| 615 | consistency. (DLR) |
David Lawrence Ramsey | 077d064 | 2005-06-17 18:14:03 +0000 | [diff] [blame] | 616 | statusbar() |
| 617 | - Set statusblank to 25 instead of 26, to match current Pico. |
| 618 | (DLR) |
David Lawrence Ramsey | 5423680 | 2005-06-28 05:56:16 +0000 | [diff] [blame] | 619 | edit_redraw() |
| 620 | - Make do_refresh a bool instead of an int. (DLR) |
David Lawrence Ramsey | da33153 | 2005-06-06 17:00:08 +0000 | [diff] [blame] | 621 | do_yesno() |
| 622 | - Allow refreshing the screen via Ctrl-L, as Pico does. (DLR) |
David Lawrence Ramsey | d4ea5b6 | 2005-06-21 21:03:06 +0000 | [diff] [blame] | 623 | - Add a missing assert, and use actual_x() to calculate the |
| 624 | number of characters buf takes up, in case it's UTF-8. (DLR) |
David Lawrence Ramsey | 44e0c03 | 2005-06-29 19:01:11 +0000 | [diff] [blame] | 625 | - Get input from bottomwin instead of edit, so that the cursor |
| 626 | isn't erroneously put in the edit window while we wait for an |
| 627 | answer. (DLR) |
David Lawrence Ramsey | 73bf89f | 2005-06-30 05:56:39 +0000 | [diff] [blame] | 628 | - Call wnoutrefresh(edit) to make sure that the edit window is |
| 629 | refreshed before we get input, as statusq() does. (DLR) |
David Lawrence Ramsey | c54c4d1 | 2005-06-18 15:49:17 +0000 | [diff] [blame] | 630 | total_redraw() |
David Lawrence Ramsey | 5cbe08f | 2005-06-30 16:18:35 +0000 | [diff] [blame] | 631 | - Simplify to just call wrefresh() on curscr, which updates the |
| 632 | entire screen in one function call without moving the cursor |
| 633 | from the window it's currently in. (DLR) |
David Lawrence Ramsey | 7431fe5 | 2005-06-18 15:15:48 +0000 | [diff] [blame] | 634 | - When using slang, use SLsmg_touch_screen() and SLsmg_refresh() |
David Lawrence Ramsey | 5cbe08f | 2005-06-30 16:18:35 +0000 | [diff] [blame] | 635 | to update the screen, as slang doesn't define curscr. (DLR) |
David Lawrence Ramsey | d16d0bf | 2005-06-13 02:24:17 +0000 | [diff] [blame] | 636 | do_replace_highlight() |
| 637 | - Use waddch() instead of waddstr() to display a space when we |
| 638 | have a zero-length regex. (DLR) |
David Lawrence Ramsey | 7bde053 | 2005-06-30 03:55:55 +0000 | [diff] [blame] | 639 | - Rename variable highlight_flag to highlight, for consistency. |
| 640 | (DLR) |
David Lawrence Ramsey | 3925bda | 2005-06-07 03:20:35 +0000 | [diff] [blame] | 641 | do_credits() |
| 642 | - Save the keystroke that breaks us out of the credits (if any) |
| 643 | and put it back so that it isn't lost. This is especially |
| 644 | needed if the keystroke is part of a multibyte character. |
| 645 | (DLR) |
David Lawrence Ramsey | 27ae93d | 2005-06-27 05:01:32 +0000 | [diff] [blame] | 646 | - nano.1: |
| 647 | - Clarify and consolidate the descriptions of --fill and |
| 648 | --tabsize. (DLR) |
David Lawrence Ramsey | a644af5 | 2005-06-08 21:30:50 +0000 | [diff] [blame] | 649 | - nanorc.5: |
| 650 | - Update the description of how the "color" regex works. (DLR) |
David Lawrence Ramsey | 9b494fa | 2005-06-17 18:00:16 +0000 | [diff] [blame] | 651 | - Clarify descriptions of the characters that aren't allowed |
| 652 | in the "punct" or "brackets" options. (DLR) |
| 653 | - Use .B instead of \fB ... \fP where possible, as nano.1 does. |
| 654 | (DLR) |
David Lawrence Ramsey | 27ae93d | 2005-06-27 05:01:32 +0000 | [diff] [blame] | 655 | - Clarify and consolidate the descriptions of "fill" and |
| 656 | "tabsize". (DLR) |
David Lawrence Ramsey | b2bff72 | 2005-06-19 22:22:01 +0000 | [diff] [blame] | 657 | - nano.texi: |
| 658 | - Update the "Feature Toggles" section to match current nano. |
| 659 | (DLR) |
David Lawrence Ramsey | 27ae93d | 2005-06-27 05:01:32 +0000 | [diff] [blame] | 660 | - Clarify and consolidate the descriptions of --fill and |
| 661 | --tabsize. (DLR) |
David Lawrence Ramsey | 86a9452 | 2005-05-24 22:20:39 +0000 | [diff] [blame] | 662 | - configure.ac: |
| 663 | - Minor tweaks to some of the test blocks to avoid XSI:isms. |
| 664 | (DLR, adapted from a Debian patch for GNU ed by David |
| 665 | Weinehall) |
David Lawrence Ramsey | 854b71d | 2005-06-03 01:43:56 +0000 | [diff] [blame] | 666 | - Don't refer to the built-in file browser as crappy anymore. |
| 667 | (DLR) |
David Lawrence Ramsey | 68c1096 | 2005-06-21 04:11:04 +0000 | [diff] [blame] | 668 | - Check for iswpunct() and mbstowcs(). (DLR) |
David Lawrence Ramsey | 203026c | 2005-06-15 18:53:47 +0000 | [diff] [blame] | 669 | - Change the behavior of --enable-extra to only define |
| 670 | NANO_EXTRA, instead of defining both it and |
| 671 | ENABLE_MULTIBUFFER. (DLR) |
David Lawrence Ramsey | 25799f6 | 2005-06-18 17:06:02 +0000 | [diff] [blame] | 672 | - Check for get_wch() instead of wget_wch() to determine if |
| 673 | there's a wide curses library, as it's a more generic |
| 674 | function. (DLR) |
David Lawrence Ramsey | b5aaf72 | 2005-06-18 20:08:43 +0000 | [diff] [blame] | 675 | - Check for possibly unavailable functions in alphabetical |
| 676 | order. (DLR) |
David Lawrence Ramsey | 23d3cf4 | 2005-06-08 18:46:51 +0000 | [diff] [blame] | 677 | - doc/faq.html: |
David Lawrence Ramsey | 3a4eb48 | 2005-06-14 02:32:37 +0000 | [diff] [blame] | 678 | - Update section 1.1 to mention the current maintainer. (DLR) |
David Lawrence Ramsey | 203026c | 2005-06-15 18:53:47 +0000 | [diff] [blame] | 679 | - Minor capitalization and wording fixes. (DLR) |
| 680 | - Update description of --enable-extra, and add missing line |
| 681 | breaks. (DLR) |
David Lawrence Ramsey | 7c78b45 | 2005-06-08 21:17:32 +0000 | [diff] [blame] | 682 | - doc/nanorc.sample: |
| 683 | - In the "nanorc" regexes, tweak the "color" regex to properly |
| 684 | color a line that specifies a background color without a |
David Lawrence Ramsey | b8351c1 | 2005-06-27 12:25:17 +0000 | [diff] [blame] | 685 | foreground color, and update the associated comments. (DLR) |
David Lawrence Ramsey | 9b494fa | 2005-06-17 18:00:16 +0000 | [diff] [blame] | 686 | - Clarify descriptions of the characters that aren't allowed |
| 687 | in the "punct" or "brackets" options. (DLR) |
David Lawrence Ramsey | 203026c | 2005-06-15 18:53:47 +0000 | [diff] [blame] | 688 | - Update comment referring to --enable-extra. (DLR) |
David Lawrence Ramsey | b8351c1 | 2005-06-27 12:25:17 +0000 | [diff] [blame] | 689 | - Add "cxx" and "hxx" to the list of extensions that the |
| 690 | "c-file" regexes apply to, and add "warning" and "error" to |
| 691 | them as well. (Mike Frysinger) |
| 692 | - Add regexes for assembler files. (Mike Frysinger) |
| 693 | - In the preprocessor directives regex string in the "c-file" |
| 694 | regexes, cover more whitespace characters than just " " by |
| 695 | using "[[:space:]]" instead. (Mike Frysinger) DLR: Extend |
| 696 | this to other regex strings whenever possible. |
| 697 | - Move some overly long split-up regex strings that cover |
| 698 | similar areas onto the same line. (DLR) |
| 699 | - Add GCC builtins to the "c-file" regexes. (Mike Frysinger) |
| 700 | - Simplify the file extension regex for groff. (DLR) |
| 701 | - Clarify and consolidate the descriptions of "fill" and |
| 702 | "tabsize". (DLR) |
David Lawrence Ramsey | 1ea5370 | 2005-06-18 19:56:30 +0000 | [diff] [blame] | 703 | - Makefile.am, m4/Makefile.am: |
| 704 | - Make sure that the files in EXTRA_DIST are in alphabetical |
| 705 | order, and that the lines are wrapped at 72 characters. (DLR) |
Jordi Mallach | 3da5580 | 2005-06-07 22:23:45 +0000 | [diff] [blame] | 706 | - doc/man/fr/Makefile.am: |
David Lawrence Ramsey | 092af14 | 2005-06-08 01:35:10 +0000 | [diff] [blame] | 707 | - Set mandir to @mandir@/fr, so French manpages get installed |
| 708 | where they belong (Jordi). |
Jordi Mallach | d4a1c0a | 2005-04-20 13:22:08 +0000 | [diff] [blame] | 709 | - THANKS: |
| 710 | - Add new translators to the credits. |
David Lawrence Ramsey | ddedf2d | 2005-04-10 03:59:53 +0000 | [diff] [blame] | 711 | |
David Lawrence Ramsey | c32a5e7 | 2005-04-10 03:58:44 +0000 | [diff] [blame] | 712 | GNU nano 1.3.7 - 2005.04.10 |
David Lawrence Ramsey | 2d825ba | 2005-03-20 21:20:47 +0000 | [diff] [blame] | 713 | - General: |
David Lawrence Ramsey | 78d0548 | 2005-03-26 20:53:40 +0000 | [diff] [blame] | 714 | - Miscellaneous comment fixes. (DLR) |
David Lawrence Ramsey | 2d825ba | 2005-03-20 21:20:47 +0000 | [diff] [blame] | 715 | - After (re)initializing the terminal, make sure the cursor is |
| 716 | always turned on. Changes to do_alt_speller(), |
| 717 | handle_sigwinch(), and main(). (DLR) |
David Lawrence Ramsey | b80d49f | 2005-03-26 22:49:46 +0000 | [diff] [blame] | 718 | - Make sure that all references to cut-to-end are left out when |
| 719 | NANO_SMALL is defined. Changes to cut_to_eol(), |
| 720 | do_cut_text(), and do_statusbar_cut_text(). (DLR) |
David Lawrence Ramsey | 263b447 | 2005-03-23 05:56:11 +0000 | [diff] [blame] | 721 | - chars.c: |
David Lawrence Ramsey | 5f3695b | 2005-03-26 06:54:36 +0000 | [diff] [blame] | 722 | make_mbchar() |
| 723 | - Remove unneeded assert. (DLR) |
David Lawrence Ramsey | 263b447 | 2005-03-23 05:56:11 +0000 | [diff] [blame] | 724 | move_mbleft() |
| 725 | - Fix assert to reference the proper variable, so that nano |
| 726 | builds with DEBUG defined again. (Mike Frysinger, found by |
| 727 | Dmitri Vassilenko) |
David Lawrence Ramsey | b9dec21 | 2005-03-21 06:14:45 +0000 | [diff] [blame] | 728 | - files.c: |
David Lawrence Ramsey | 88ad64d | 2005-03-30 23:52:02 +0000 | [diff] [blame] | 729 | do_insertfile() |
| 730 | - Fix problem where going into the help browser at the "Insert |
| 731 | File" prompt would always result in the current answer's being |
| 732 | used as the filename afterward. (DLR) |
David Lawrence Ramsey | 6e0ed3c | 2005-03-26 04:42:28 +0000 | [diff] [blame] | 733 | get_full_path() |
| 734 | - Rework handling of the results of getcwd() in order to avoid |
| 735 | segfaults if they fail, and to remove uses of the nonportable |
| 736 | GNU extension where passing a size of 0 will get a string as |
| 737 | long as we need. (DLR) |
David Lawrence Ramsey | b9dec21 | 2005-03-21 06:14:45 +0000 | [diff] [blame] | 738 | do_browser() |
| 739 | - Rename variable lineno to fileline to avoid confusion. (DLR) |
David Lawrence Ramsey | 6e0ed3c | 2005-03-26 04:42:28 +0000 | [diff] [blame] | 740 | do_browse_from() |
| 741 | - Rework handling of the results of getcwd() in order to avoid |
| 742 | segfaults if they fail, and to remove uses of the nonportable |
| 743 | GNU extension where passing a size of 0 will get a string as |
| 744 | long as we need. (DLR) |
David Lawrence Ramsey | 39e8ce6 | 2005-03-21 07:24:47 +0000 | [diff] [blame] | 745 | - nano.c: |
David Lawrence Ramsey | c4daf5d | 2005-03-22 02:51:01 +0000 | [diff] [blame] | 746 | help_init() |
| 747 | - When calculating allocsize, take multibyte characters into |
| 748 | account, and keep the column number limits consistent. (DLR) |
David Lawrence Ramsey | aa68385 | 2005-03-30 18:11:59 +0000 | [diff] [blame] | 749 | - Break htx up into three chunks, in case the string is too long |
| 750 | for the compiler to handle (e.g. an ISO C89 compiler that can |
| 751 | only handle up to 509 characters). (DLR) |
| 752 | - Minor wording fixes. (DLR) |
David Lawrence Ramsey | 39e8ce6 | 2005-03-21 07:24:47 +0000 | [diff] [blame] | 753 | print1opt() |
| 754 | - Don't include longflag if HAVE_GETOPT_LONG isn't defined. |
| 755 | Rename this function to print1opt_full(), leave out the |
| 756 | longflag parameter if HAVE_GETOPT_LONG isn't defined, and make |
| 757 | print1opt() a macro for print1opt_full() that does that |
| 758 | without the need for a lot of extra #ifdefs. (David |
| 759 | Benbennick) DLR: Rename print1opt_f() to print1opt_full(). |
| 760 | - Rework the special case of options that are ignored for Pico |
| 761 | compatibility so that they display more neatly when |
| 762 | HAVE_GETOPT_LONG isn't defined. (DLR) |
| 763 | usage() |
| 764 | - Fix erroneous #ifdef that resulted in the -d/--rebinddelete |
David Lawrence Ramsey | b80d49f | 2005-03-26 22:49:46 +0000 | [diff] [blame] | 765 | option's not being printed when NANO_SMALL was defined. (DLR) |
David Lawrence Ramsey | 6b94e95 | 2005-03-22 01:53:57 +0000 | [diff] [blame] | 766 | find_paragraph() |
| 767 | - Fix problem where a search for the next paragraph would skip |
| 768 | over certain cases of one-line paragraphs. (DLR) |
David Lawrence Ramsey | aad8515 | 2005-03-22 01:25:34 +0000 | [diff] [blame] | 769 | do_justify() |
| 770 | - Instead of breaking a line at a space and readding the space |
| 771 | afterwards, just break the line after the space, as it's more |
| 772 | efficient. (DLR) |
David Lawrence Ramsey | fe60524 | 2005-03-26 22:49:08 +0000 | [diff] [blame] | 773 | main() |
| 774 | - Change 0 to NULL in the option struct where needed. (David |
| 775 | Benbennick) |
David Lawrence Ramsey | 6e0ed3c | 2005-03-26 04:42:28 +0000 | [diff] [blame] | 776 | - nano.h: |
| 777 | - Define PATH_MAX as 4096 if it isn't defined, as passing a size |
| 778 | of 0 to get a string as long as we need is a nonportable GNU |
| 779 | extension, and hence it won't work on non-GNU systems that |
| 780 | don't define PATH_MAX. (DLR) |
David Lawrence Ramsey | caac920 | 2005-03-27 01:34:40 +0000 | [diff] [blame] | 781 | - rcfile.c: |
| 782 | parse_rcfile() |
| 783 | - Fix debugging message to display the long value of a flag |
| 784 | properly. (DLR) |
David Lawrence Ramsey | afbcf68 | 2005-03-21 06:33:41 +0000 | [diff] [blame] | 785 | - utils.c: |
| 786 | regexec_safe() |
| 787 | - Rename to safe_regexec() for consistency. (DLR) |
David Lawrence Ramsey | cf4db89 | 2005-03-22 03:59:32 +0000 | [diff] [blame] | 788 | - winio.c: |
David Lawrence Ramsey | c504dff | 2005-04-09 04:10:58 +0000 | [diff] [blame] | 789 | nanogetstr() |
| 790 | - Fix misplaced break. (DLR) |
David Lawrence Ramsey | 612caef | 2005-03-31 00:11:43 +0000 | [diff] [blame] | 791 | statusq() |
| 792 | - Make sure that the vsnprintf(foo) call and foo's subsequent |
| 793 | null termination both take the proper number of bytes when |
| 794 | using multibyte characters, so that multibyte prompt strings |
| 795 | aren't prematurely cut off. (DLR) |
David Lawrence Ramsey | 297851a | 2005-03-25 05:00:32 +0000 | [diff] [blame] | 796 | titlebar() |
| 797 | - Make sure that the (mv)?waddnstr() calls take the proper |
| 798 | number of bytes when using multibyte characters, so that |
| 799 | multibyte strings aren't prematurely cut off. (DLR, found by |
| 800 | Jordi) |
| 801 | - Allow the "View" state to be displayed when a filename is |
| 802 | passed in, in case we're in multibuffer mode and inside the |
| 803 | file browser. (DLR) |
David Lawrence Ramsey | cf4db89 | 2005-03-22 03:59:32 +0000 | [diff] [blame] | 804 | help_line_len() |
| 805 | - Make the text display more flexible, and closer to what nano |
| 806 | 1.2.x does. (DLR) |
David Lawrence Ramsey | 8ac9087 | 2005-03-25 22:25:24 +0000 | [diff] [blame] | 807 | - configure.ac: |
| 808 | - Allow more flexible handling of UTF-8 support by allowing |
| 809 | the --enable-utf8 and --disable-utf8 options. (Mike |
| 810 | Frysinger) DLR: Extend these options to work with slang as |
| 811 | well as curses, consolidate the warning and error messages |
| 812 | dealing with UTF-8 support as much as possible, and add a few |
| 813 | minor consistency fixes. |
David Lawrence Ramsey | a3e5fad | 2005-04-09 14:47:54 +0000 | [diff] [blame] | 814 | - Mention explicitly that the check for the broken regexec() is |
| 815 | needed for glibc 2.2.3. (DLR) |
David Lawrence Ramsey | 32a285c | 2005-03-26 23:15:51 +0000 | [diff] [blame] | 816 | - nanorc.sample: |
| 817 | - Fix the description for the whitespace option to mention that |
| 818 | only single-column characters are allowed. (DLR) |
David Lawrence Ramsey | 4811b81 | 2005-03-30 17:03:43 +0000 | [diff] [blame] | 819 | - Add C++ regexes. (Neil Brown, merged into c-file regexes by |
| 820 | DLR) |
David Lawrence Ramsey | 403e0fe | 2005-04-01 19:45:35 +0000 | [diff] [blame] | 821 | - Break up overly long perl and nanorc regexes into separate |
| 822 | regexes of no more than 256 bytes, as POSIX-compliant regexp |
| 823 | implementations can reject regexes of over 256 bytes. (DLR) |
David Lawrence Ramsey | 32a285c | 2005-03-26 23:15:51 +0000 | [diff] [blame] | 824 | - nano.1, nano.texi: |
David Lawrence Ramsey | 6a84684 | 2005-03-27 04:30:33 +0000 | [diff] [blame] | 825 | - Mention the -? alias for -h/--help, and add various |
| 826 | consistency fixes. (DLR) |
David Lawrence Ramsey | 32a285c | 2005-03-26 23:15:51 +0000 | [diff] [blame] | 827 | - nanorc.5: |
| 828 | - Fix the description for the whitespace option to mention that |
| 829 | only single-column characters are allowed. (DLR) |
David Lawrence Ramsey | 3dfc879 | 2005-03-20 20:04:59 +0000 | [diff] [blame] | 830 | |
David Lawrence Ramsey | bec01bd | 2005-03-20 20:02:51 +0000 | [diff] [blame] | 831 | GNU nano 1.3.6 - 2005.03.20 |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 832 | - General: |
David Lawrence Ramsey | 1b9d3f9 | 2005-02-11 20:09:11 +0000 | [diff] [blame] | 833 | - More int -> bool conversions. (DLR and David Benbennick) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 834 | - Overhaul the cutting and uncutting routines to use the |
| 835 | partitioning code, as it greatly simplifies how they work. |
| 836 | New functions move_to_filestruct(), copy_from_filestruct(), |
| 837 | cut_line(), cut_marked(), and cut_to_eol(); changes to |
| 838 | add_to_cutbuffer(), do_cut_text(), do_uncut_text(), etc.; |
| 839 | removal of functions get_cutbottom(), add_to_cutbuffer(), and |
| 840 | cut_marked_segment(). (DLR) |
| 841 | - Overhaul the justify-related routines to back up and restore |
| 842 | unjustified text to use the partitioning code, as it greatly |
| 843 | simplifies how they work, and to store such text in its own |
| 844 | buffer rather than the cutbuffer. Changes to backup_lines(), |
| 845 | do_justify(), etc. (DLR) |
David Lawrence Ramsey | 5b3dd0f | 2004-11-25 04:39:07 +0000 | [diff] [blame] | 846 | - Overhaul the multibuffer routines to increase efficiency, most |
| 847 | importantly making them use a doubly linked list for the open |
| 848 | files so that switching between them is no longer O(N), and |
| 849 | only including free_openfilestruct() when --enable-debug is |
| 850 | used. Also use some of the same efficiency tweaks when |
| 851 | dealing with filestruct nodes. New function |
| 852 | open_prevnext_file(); changes to make_new_opennode(), |
| 853 | splice_opennode(), unlink_opennode(), delete_opennode(), |
| 854 | free_openfilestruct(), add_open_file(), load_open_file(), |
| 855 | close_open_file(), shortcut_init(), die(), make_new_node(), |
| 856 | copy_node(), splice_node(), delete_node(), and |
| 857 | free_filestruct(); removal of open_prevfile() and |
| 858 | open_nextfile(). (David Benbennick, minor tweaks and additions |
| 859 | by DLR) |
David Lawrence Ramsey | 3ece0b9 | 2004-12-01 15:11:27 +0000 | [diff] [blame] | 860 | - Change references to "open files" to "open file buffers", for |
| 861 | consistency. (DLR) |
David Lawrence Ramsey | 9ec76e5 | 2004-12-23 19:55:57 +0000 | [diff] [blame] | 862 | - Add flag to disable UTF-8 sequence interpretation, so that |
| 863 | people using single-byte encodings such as KOI8-R can type |
| 864 | properly again. (DLR, found by Arthur Ivanov) |
David Lawrence Ramsey | 7483571 | 2004-12-04 17:41:52 +0000 | [diff] [blame] | 865 | - Massively overhaul the input and output routines to support |
David Lawrence Ramsey | 78ea5e4 | 2004-12-12 19:04:56 +0000 | [diff] [blame] | 866 | buffered input and output, the first steps toward |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 867 | wide/multibyte character input and output, and verbatim input |
| 868 | of double-byte Unicode characters instead of single-byte ASCII |
David Lawrence Ramsey | 9b95ca8 | 2005-01-14 06:02:10 +0000 | [diff] [blame] | 869 | characters. New functions is_byte(), get_buffer(), |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 870 | get_buffer_len(), buffer_to_keys(), unget_input(), |
| 871 | get_input(), parse_kbinput(), and parse_verbatim_kbinput(); |
| 872 | new macro charcpy(); changes to do_char() (renamed to |
| 873 | do_output()), get_edit_input() (renamed to do_input() and |
| 874 | moved to nano.c), get_edit_mouse() (renamed do_mouse() and |
| 875 | moved to nano.c), do_verbatim_input(), do_tab(), main(), and |
David Lawrence Ramsey | f647c48 | 2005-01-03 20:07:26 +0000 | [diff] [blame] | 876 | get_ascii_kbinput() (renamed to get_byte_kbinput()). The wide |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 877 | version of ncurses is required in order for wide/multibyte |
| 878 | input and output to work properly. (DLR; buffered input/output |
| 879 | based on ideas from mutt 1.4.2.1; input of Unicode characters |
| 880 | in hexadecimal suggested by Michael Piefel) |
David Lawrence Ramsey | fc69321 | 2004-12-23 17:43:27 +0000 | [diff] [blame] | 881 | - More steps toward wide character/multibyte character support. |
David Lawrence Ramsey | 40e211b | 2005-03-19 21:15:30 +0000 | [diff] [blame] | 882 | New functions control_rep(), parse_char(), move_left(), and |
| 883 | move_right(); changes to do_left(), do_right(), do_delete(), |
| 884 | breakable(), break_line(), do_output(), get_buffer(), |
| 885 | unget_input(), actual_x(), strnlenpt(), display_string(), |
| 886 | titlebar(), statusbar(), onekey(), edit_add(), |
| 887 | do_replace_highlight(), and do_credits(). (David Benbennick |
| 888 | and DLR) |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 889 | - Overhaul the high-level input routines for the statusbar to |
| 890 | make them read the shortcut lists for functions instead of |
| 891 | manually running them, to make nanogetstr() less complex, and |
| 892 | to increase flexibility. Note that currshortcut is now used |
David Lawrence Ramsey | b3aeb13 | 2005-01-14 21:19:06 +0000 | [diff] [blame] | 893 | regardless of #ifdefs, and that cutting text at the statusbar |
| 894 | now respects the CUT_TO_END flag. Changes to shortcut_init() |
| 895 | and nanogetstr(); new functions do_statusbar_input(), |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 896 | do_statusbar_mouse(), do_statusbar_home(), do_statusbar_end(), |
| 897 | do_statusbar_right(), do_statusbar_left(), |
| 898 | do_statusbar_backspace(), do_statusbar_delete(), |
| 899 | do_statusbar_cut_text(), and do_statusbar_output(). (DLR) |
| 900 | - Even more steps toward wide character/multibyte character |
David Lawrence Ramsey | 08cd7ef | 2005-01-02 20:30:15 +0000 | [diff] [blame] | 901 | support. Movement and cursor display at the statusbar prompt |
David Lawrence Ramsey | 68e3016 | 2005-01-03 22:23:00 +0000 | [diff] [blame] | 902 | should now (mostly) work properly with a string containing |
| 903 | multibyte characters, and text display of such strings should |
| 904 | now (mostly) work properly as well. Changes to search_init(), |
David Lawrence Ramsey | 08cd7ef | 2005-01-02 20:30:15 +0000 | [diff] [blame] | 905 | nanoget_repaint(), do_statusbar_right(), do_statusbar_left(), |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 906 | do_statusbar_backspace(), and do_statusbar_delete(). (David |
| 907 | Benbennick and DLR) |
David Lawrence Ramsey | 295d172 | 2005-01-01 07:43:32 +0000 | [diff] [blame] | 908 | - Implement cutting from the current position to the end of the |
| 909 | file, using Ctrl-X from the search prompt and Meta-T from the |
| 910 | edit window. New function do_cut_till_end(). Note that this |
| 911 | is disabled when NANO_SMALL is defined. (DLR, based on ideas |
| 912 | from a patch for Pico by Eduardo Chappa, suggested by Ryan |
| 913 | Dlugosz and Paul Adams) |
David Lawrence Ramsey | 11c83d3 | 2005-01-02 21:26:53 +0000 | [diff] [blame] | 914 | - Implement verbatim input for the statusbar prompt. Changes to |
David Lawrence Ramsey | d9ad76b | 2005-01-02 22:35:31 +0000 | [diff] [blame] | 915 | do_statusbar_input() and do_statusbar_output(); new functions |
| 916 | keys_to_buffer(), unparse_kbinput(), and |
David Lawrence Ramsey | 11c83d3 | 2005-01-02 21:26:53 +0000 | [diff] [blame] | 917 | do_statusbar_verbatim_input(). (DLR) |
David Lawrence Ramsey | b54155c | 2005-01-12 03:25:57 +0000 | [diff] [blame] | 918 | - Yet more steps toward full wide character/multibyte character |
| 919 | support. Overhaul the functions that already have support for |
| 920 | them to work with multibyte strings as much as possible, add |
| 921 | support to a few more functions as well, and move multibyte |
| 922 | character-specific functions to their own source file. New |
David Lawrence Ramsey | 1fe2eeb | 2005-01-14 21:33:47 +0000 | [diff] [blame] | 923 | file chars.c; new functions is_alnum_char(), |
David Lawrence Ramsey | efec641 | 2005-03-17 03:52:08 +0000 | [diff] [blame] | 924 | is_alnum_mbchar(), is_alnum_wchar(), is_blank_mbchar(), |
| 925 | is_blank_wchar(), is_cntrl_mbchar(), is_cntrl_wchar(), |
| 926 | control_mbrep(), control_wrep(), mbwidth(), mb_cur_max(), |
| 927 | make_mbchar(), mbstrlen(), mbstrnlen(), mbstrcasecmp(), |
| 928 | mbstrncasecmp(), mbstrcasestr(), and mbrevstrcasestr(); |
David Lawrence Ramsey | 40e211b | 2005-03-19 21:15:30 +0000 | [diff] [blame] | 929 | changes to help_init(), do_wrap(), break_line(), is_byte() |
| 930 | (moved to chars.c), is_blank_char() (moved to chars.c), |
| 931 | is_cntrl_char() (moved to chars.c), nstricmp() (renamed |
| 932 | nstrcasecmp() and moved to chars.c), nstrnicmp() (renamed |
| 933 | nstrncasecmp() and moved to chars.c), nstristr() (renamed |
| 934 | nstrcasestr() and moved to chars.c), revstrstr() (moved to |
| 935 | chars.c), revstristr() (renamed revstrcasestr() and moved to |
| 936 | chars.c), nstrnlen() (moved to chars.c), parse_char() (renamed |
| 937 | parse_mbchar() and moved to chars.c), move_left() (renamed |
| 938 | move_mbleft() and moved to chars.c), move_right() (renamed |
| 939 | move_mbright() and moved to chars.c), do_home(), |
| 940 | do_verbatim_input(), do_delete(), do_tab(), do_enter(), |
| 941 | indent_length(), do_next_word(), do_prev_word(), do_wrap(), |
| 942 | do_input(), do_output(), is_whole_word(), strstrwrapper(), |
| 943 | get_buffer(), unget_input(), unget_kbinput(), get_input(), |
| 944 | parse_kbinput(), unparse_kbinput(), parse_verbatim_kbinput(), |
David Lawrence Ramsey | 5f9acfe | 2005-03-04 17:09:41 +0000 | [diff] [blame] | 945 | do_statusbar_input(), do_statusbar_home(), |
David Lawrence Ramsey | 9bd5620 | 2005-03-18 21:29:33 +0000 | [diff] [blame] | 946 | do_statusbar_verbatim_kbinput(), do_statusbar_output(), |
| 947 | do_help(), help_line_len(), and display_string(); removal of |
| 948 | buffer_to_keys() and keys_to_buffer(). (DLR) |
David Lawrence Ramsey | 637b8bb | 2005-01-17 05:06:55 +0000 | [diff] [blame] | 949 | - Add -O/--morespace command line option, plus a corresponding |
| 950 | Meta-O toggle and a "morespace" rcfile option. When these are |
| 951 | used, the normally-unused blank line below the titlebar will |
| 952 | be treated as part of the edit window. New functions |
| 953 | no_more_space() and blank_topbar(); changes to global_init(), |
David Lawrence Ramsey | 7c60eab | 2005-01-27 06:35:56 +0000 | [diff] [blame] | 954 | window_init(), handle_sigwinch(), do_toggle(), do_mouse(), |
David Lawrence Ramsey | 798e67e | 2005-01-28 19:11:51 +0000 | [diff] [blame] | 955 | get_mouseinput(), etc. (DLR; suggested by Mike Frysinger, |
| 956 | Rocco, and Robert Schultz) |
David Lawrence Ramsey | b80077d | 2005-01-18 21:25:38 +0000 | [diff] [blame] | 957 | - Add support for moving to the next or previous word at the |
| 958 | statusbar prompt. New functions do_statusbar_next_word() and |
| 959 | do_statusbar_prev_word(); changes to do_statusbar_input(). |
| 960 | (DLR) |
David Lawrence Ramsey | 5040666 | 2005-01-19 19:52:42 +0000 | [diff] [blame] | 961 | - Make resizing more flexible. We now can work with as few as |
| 962 | one row, and with no limit on the number of columns (except of |
| 963 | course the curses-imposed limit that it be greater than zero). |
| 964 | New function resize_variables(); changes to die_too_small() |
| 965 | (renamed check_die_too_small()), global_init(), window_init(), |
David Lawrence Ramsey | 122ae84 | 2005-01-19 20:55:42 +0000 | [diff] [blame] | 966 | and handle_sigwinch(). (David Benbennick) |
David Lawrence Ramsey | 5040666 | 2005-01-19 19:52:42 +0000 | [diff] [blame] | 967 | - Use void instead of RETSIGTYPE, as signal handlers are |
| 968 | supposed to return void anyway. Also, the value of RETSIGTYPE |
| 969 | is sometimes misdetected as int, leading to compilation |
David Lawrence Ramsey | 42abfe0 | 2005-01-22 18:24:16 +0000 | [diff] [blame] | 970 | warnings or errors. Changes to cancel_fork(), |
David Lawrence Ramsey | b6e79fd | 2005-02-25 19:17:57 +0000 | [diff] [blame] | 971 | handle_hupterm(), do_suspend(), and do_cont(). (David |
David Lawrence Ramsey | 42abfe0 | 2005-01-22 18:24:16 +0000 | [diff] [blame] | 972 | Benbennick) |
David Lawrence Ramsey | 23c4450 | 2005-01-27 20:49:07 +0000 | [diff] [blame] | 973 | - Change flags to an unsigned long, and totsize to a size_t. |
| 974 | (DLR) |
| 975 | - Store the number of multibyte characters instead of the number |
| 976 | of single-byte characters in totsize, and use get_totals() to |
| 977 | get the value of totsize in a few more places. Changes to |
| 978 | read_line(), read_file(), do_delete(), do_input(), |
| 979 | get_totals(), and do_cursorpos(). (DLR) |
David Lawrence Ramsey | 7d36771 | 2005-02-14 05:00:15 +0000 | [diff] [blame] | 980 | - Overhaul the tab completion code, the file browser code, and |
| 981 | related functions to increase efficiency and support multibyte |
David Lawrence Ramsey | ad96aff | 2005-02-22 23:22:37 +0000 | [diff] [blame] | 982 | characters. New function is_dir(); changes to |
David Lawrence Ramsey | 7d36771 | 2005-02-14 05:00:15 +0000 | [diff] [blame] | 983 | get_full_path(), check_writable_directory(), safe_tempnam(), |
| 984 | diralphasort(), username_tab_completion(), |
| 985 | cwd_tab_completion(), input_tab(), tail(), striponedir(), |
| 986 | browser_init(), do_browser(), and do_browse_from(); removal of |
| 987 | append_slash_if_dir(), readable_dir(), and |
| 988 | check_wildcard_match(). (David Benbennick) DLR: Move the |
David Lawrence Ramsey | 65e6ecb | 2005-02-08 20:37:53 +0000 | [diff] [blame] | 989 | routine to get the current user's home directory into the new |
| 990 | function get_homedir(), and use it where necessary. Also add |
| 991 | a few miscellaneous tweaks. |
David Lawrence Ramsey | 202d3c2 | 2005-03-10 20:55:11 +0000 | [diff] [blame] | 992 | - Overhaul the rcfile parsing code to make it simpler and more |
| 993 | accurate, remove now-redundant checks from the color code, |
| 994 | change the COLOR_SYNTAX toggle to the NO_COLOR_SYMTAX toggle, |
| 995 | and improve various debugging messsages. Changes to |
| 996 | set_colorpairs(), do_colorinit(), parse_next_word(), |
| 997 | parse_argument(), colortoint(), parse_next_regex(), |
| 998 | parse_syntax(), parse_colors(), parse_rcfile(), do_rcfile(), |
| 999 | etc. (David Benbennick) DLR: Rename colortoint() to |
| 1000 | color_to_int(), and add a few miscellaneous tweaks. |
David Lawrence Ramsey | ff4a487 | 2005-03-13 21:12:25 +0000 | [diff] [blame] | 1001 | - Overhaul the paragraph-searching code to make it use the |
| 1002 | paragraph-searching utility functions when possible instead of |
| 1003 | duplicating code. Also overhaul the justify code to make it |
| 1004 | 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] | 1005 | paragraph, to make it support multibyte characters, and to |
| 1006 | make it simpler. Also, don't remove a space after a duplicate |
| 1007 | character in punct anymore, as it doesn't really make us more |
| 1008 | compatible with Pico. New functions mbstrchr(), |
| 1009 | do_para_begin_void(), and do_para_end_void(); changes to |
| 1010 | justify_format(), do_para_begin(), inpar(), do_para_end(), |
David Lawrence Ramsey | 9389ca2 | 2005-03-14 06:14:02 +0000 | [diff] [blame] | 1011 | break_line(), do_para_search() (renamed find_paragraph()), and |
| 1012 | do_justify(); removal of breakable(). (DLR) |
David Lawrence Ramsey | 6e60db6 | 2005-03-10 22:52:21 +0000 | [diff] [blame] | 1013 | - Still more steps toward full wide/multibyte character support. |
David Lawrence Ramsey | f0195a8 | 2005-03-14 18:47:21 +0000 | [diff] [blame] | 1014 | Make sure all rcfile arguments are valid multibyte strings, |
| 1015 | make whitespace display mode work with multibyte characters, |
David Lawrence Ramsey | e0fb4d5 | 2005-03-11 04:03:32 +0000 | [diff] [blame] | 1016 | and add a few related documentation updates. New function |
David Lawrence Ramsey | f0195a8 | 2005-03-14 18:47:21 +0000 | [diff] [blame] | 1017 | make_mbstring(); changes to make_mbchar(), make_mbstring(), |
David Lawrence Ramsey | 9bd5620 | 2005-03-18 21:29:33 +0000 | [diff] [blame] | 1018 | main(), parse_rcfile(), display_string(), and do_help(). (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 1019 | - cut.c: |
David Lawrence Ramsey | 4d6ec37 | 2004-11-23 17:59:32 +0000 | [diff] [blame] | 1020 | do_cut_text() |
| 1021 | - If keep_cutbuffer is FALSE, only blow away the text in the |
| 1022 | cutbuffer if the cutbuffer isn't empty. (DLR) |
David Lawrence Ramsey | eeec999 | 2004-11-24 20:12:57 +0000 | [diff] [blame] | 1023 | do_uncut_text() |
| 1024 | - No longer duplicate Pico's adding an extra magicline to the |
| 1025 | file if uncutting leaves the cursor on the current one. This |
| 1026 | behavior appears to be a bug, as inserting a file in the same |
| 1027 | manner doesn't add an extra magicline. (DLR) |
David Lawrence Ramsey | ca018c3 | 2004-11-26 20:14:19 +0000 | [diff] [blame] | 1028 | - files.c: |
| 1029 | get_full_path() |
| 1030 | - Remove unneeded NANO_SMALL #ifdef, so that it's included |
| 1031 | whenever its prototype is, and so it can compile when |
| 1032 | DISABLE_OPERATINGDIR isn't defined and NANO_SMALL is. (DLR) |
David Lawrence Ramsey | b349c80 | 2005-03-17 19:10:29 +0000 | [diff] [blame] | 1033 | do_browser() |
| 1034 | - Refresh the screen when Ctrl-L is pressed in the file browser, |
| 1035 | as Pico does. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 1036 | - global.c: |
David Lawrence Ramsey | 3041293 | 2004-11-23 20:42:35 +0000 | [diff] [blame] | 1037 | shortcut_init() |
| 1038 | - Fix misplaced #endif keeping the "Full Justify" shortcut in |
| 1039 | the search shortcut list from being included when NANO_SMALL |
| 1040 | is defined but DISABLE_JUSTIFY isn't. (DLR) |
David Lawrence Ramsey | 35e9713 | 2005-01-08 06:04:19 +0000 | [diff] [blame] | 1041 | - Use NULL instead of 0 when a shortcut has no associated |
| 1042 | function. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 1043 | thanks_for_all_the_fish() |
| 1044 | - Free the justify buffer if it isn't empty. (DLR) |
David Lawrence Ramsey | b5a7a5a | 2004-11-23 03:42:43 +0000 | [diff] [blame] | 1045 | - nano.c: |
David Lawrence Ramsey | f647c48 | 2005-01-03 20:07:26 +0000 | [diff] [blame] | 1046 | help_init() |
| 1047 | - Clarify the text describing double-escape character input. |
| 1048 | Since ASCII is technically only seven bits wide, characters |
| 1049 | 128-255 aren't ASCII. (DLR, suggested by Michael Piefel) |
David Lawrence Ramsey | 846658e | 2004-12-05 04:18:26 +0000 | [diff] [blame] | 1050 | do_toggle() |
| 1051 | - When we get the whitespace display toggle, update the titlebar |
| 1052 | as well as the edit window, in case the filename displayed on |
| 1053 | the titlebar contains spaces or tabs. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 1054 | handle_sigwinch() |
| 1055 | - If the justify buffer isn't empty, blow it away and don't |
| 1056 | display "UnJustify" in the shortcut list anymore. (DLR) |
David Lawrence Ramsey | 45edf36 | 2005-02-14 05:38:06 +0000 | [diff] [blame] | 1057 | usage() |
| 1058 | - Typo fix. (DLR) |
David Lawrence Ramsey | b5a7a5a | 2004-11-23 03:42:43 +0000 | [diff] [blame] | 1059 | do_wrap() |
| 1060 | - 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] | 1061 | break_line() |
| 1062 | - Fix compilation problem caused by its returning int when it |
| 1063 | should return ssize_t according to its prototype. (Jeremy |
| 1064 | Huddleston) |
David Lawrence Ramsey | 22a3564 | 2005-03-18 05:26:54 +0000 | [diff] [blame] | 1065 | indent_length() |
| 1066 | - Make the #ifdef around it match that of its prototype to avoid |
| 1067 | compilation problems when compiling with --enable-tiny and |
| 1068 | without DISABLE_JUSTIFY's being defined. (DLR) |
David Lawrence Ramsey | 93c8405 | 2004-11-23 04:08:28 +0000 | [diff] [blame] | 1069 | do_justify() |
| 1070 | - For consistency, preserve placewewant if we didn't unjustify |
| 1071 | instead of setting it to 0. (DLR) |
David Lawrence Ramsey | 68ebb61 | 2004-12-04 17:36:14 +0000 | [diff] [blame] | 1072 | - When justifying the entire file, properly break out of the |
David Lawrence Ramsey | 102d01d | 2005-03-17 04:48:14 +0000 | [diff] [blame] | 1073 | loop if we've found at least one paragraph, there are no more |
| 1074 | paragraphs after the current one, and the paragraph search |
| 1075 | left us on the magicline. This avoids a segfault. (DLR) |
David Lawrence Ramsey | c13b7f0 | 2005-01-01 07:28:15 +0000 | [diff] [blame] | 1076 | do_input() |
| 1077 | - Add finished parameter, used to indicate when we run or try to |
| 1078 | run a function associated with a shortcut. (DLR) |
David Lawrence Ramsey | fc69321 | 2004-12-23 17:43:27 +0000 | [diff] [blame] | 1079 | main() |
| 1080 | - Try to automatically detect whether UTF-8 support is needed by |
| 1081 | setting the NO_UTF8 flag if setlocale() returns a string that |
David Lawrence Ramsey | d456bfa | 2005-03-18 19:07:25 +0000 | [diff] [blame] | 1082 | doesn't contain "UTF8" or "UTF-8", case insensitively. When |
| 1083 | using slang 2.x, enable UTF-8 support with SLutf8_enable(). |
| 1084 | (DLR, string checks beyond case-sensitive "UTF-8" adapted from |
| 1085 | Debian's UTF-8 patch for slang) |
David Lawrence Ramsey | 2bd2276 | 2005-01-18 16:43:18 +0000 | [diff] [blame] | 1086 | - nano.h: |
| 1087 | - Remove now-unneeded #defines for functions that now have |
| 1088 | multibyte equivalents. (DLR) |
David Lawrence Ramsey | 5040666 | 2005-01-19 19:52:42 +0000 | [diff] [blame] | 1089 | - Remove now-unneeded MIN_EDITOR_COLS. (David Benbennick) |
David Lawrence Ramsey | 1307aae | 2005-01-07 19:02:47 +0000 | [diff] [blame] | 1090 | - utils.c: |
| 1091 | regexec_safe() |
| 1092 | - Remove redundant regexec #define, and move the regexec #undef |
| 1093 | to nano.h. (DLR) |
| 1094 | is_blank_char() |
| 1095 | - Rewrite to use ctype functions instead of checking directly |
| 1096 | for spaces and tabs. (DLR) |
David Lawrence Ramsey | 116c828 | 2005-01-14 03:22:54 +0000 | [diff] [blame] | 1097 | revstrstr(), revstristr() |
| 1098 | - Add asserts. (DLR) |
David Lawrence Ramsey | 698263c | 2004-11-25 05:05:41 +0000 | [diff] [blame] | 1099 | - winio.c: |
David Lawrence Ramsey | c275dc5 | 2005-03-08 17:45:36 +0000 | [diff] [blame] | 1100 | get_buffer() |
| 1101 | - If we get ERR when using blocking input, it means that the |
| 1102 | input source that we were using is gone. In this case, call |
| 1103 | handle_hupterm(), so that nano dies gracefully instead of |
| 1104 | going into an infinite loop. (DLR, found by Jim Uhl) |
David Lawrence Ramsey | f326ed7 | 2004-12-05 05:42:46 +0000 | [diff] [blame] | 1105 | titlebar() |
David Lawrence Ramsey | 2c70a4e | 2004-12-05 06:03:46 +0000 | [diff] [blame] | 1106 | - Rename some variables for consistency, make space an int |
| 1107 | instead of a size_t, properly handle the case where the prefix |
| 1108 | length plus the path length is greater than the amount of |
| 1109 | space available, and fix a typo in an assert. (DLR) |
David Lawrence Ramsey | c109549 | 2004-11-27 15:18:34 +0000 | [diff] [blame] | 1110 | unget_kbinput() |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 1111 | - Remove the wide character handling, as it didn't work properly |
| 1112 | with respect to function keys. (DLR) |
David Lawrence Ramsey | 698263c | 2004-11-25 05:05:41 +0000 | [diff] [blame] | 1113 | get_kbinput(), get_translated_kbinput(), get_ascii_kbinput(), |
| 1114 | get_untranslated_kbinput() |
| 1115 | - Make the ascii_digits variables ints instead of size_t's, |
| 1116 | since they will only hold very small values. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 1117 | get_kbinput() |
| 1118 | - Remove the wide character handling, as it didn't work properly |
| 1119 | with respect to adding multiple wide characters at once, and |
| 1120 | ungetting them just caused other problems elsewhere. (DLR) |
| 1121 | get_translated_kbinput() |
| 1122 | - Remove the wide character handling, as it didn't work properly |
| 1123 | with respect to adding multiple wide characters at once, and |
| 1124 | ungetting them just caused other problems elsewhere. (DLR) |
| 1125 | - Use if statements instead of switch/case statements to handle |
| 1126 | ASCII character sequence mode, as they take up less room. |
| 1127 | get_ascii_kbinput() |
| 1128 | - Use if statements instead of switch/case statements to handle |
| 1129 | ASCII character sequence mode, as they take up less room. |
David Lawrence Ramsey | c82997d | 2004-11-27 15:00:18 +0000 | [diff] [blame] | 1130 | get_verbatim_kbinput() |
| 1131 | - Don't pass v_kbinput in as a parameter, since we're |
| 1132 | dynamically allocating it and then returning it. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 1133 | - Remove v_first parameter, and go back to the old behavior of |
| 1134 | putting back the first character of the escape sequence, as it |
| 1135 | worked just as well and was less complicated. (DLR) |
David Lawrence Ramsey | f4a799a | 2005-01-08 06:16:19 +0000 | [diff] [blame] | 1136 | get_mouseinput() |
| 1137 | - Return TRUE instead of FALSE only when we have a control key, |
| 1138 | a prinary meta key sequence, or both. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 1139 | get_shortcut() |
David Lawrence Ramsey | bfcba16 | 2004-12-05 06:11:01 +0000 | [diff] [blame] | 1140 | - Add a debug message. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 1141 | - Take kbinput as a reference instead of a value, so that it's |
| 1142 | translated when the key is translated to its equivalent |
| 1143 | control key or meta key shortcut. (DLR) |
David Lawrence Ramsey | f4a799a | 2005-01-08 06:16:19 +0000 | [diff] [blame] | 1144 | - Return s instead of NULL only when we have a control key, a |
| 1145 | prinary meta key sequence, or both. (DLR) |
David Lawrence Ramsey | 1483ee3 | 2004-11-29 00:30:07 +0000 | [diff] [blame] | 1146 | get_toggle() |
David Lawrence Ramsey | bfcba16 | 2004-12-05 06:11:01 +0000 | [diff] [blame] | 1147 | - Add a debug message. (DLR) |
David Lawrence Ramsey | f4a799a | 2005-01-08 06:16:19 +0000 | [diff] [blame] | 1148 | bottombars() |
| 1149 | - Initialize foo, in case a keystroke meets none of the handled |
| 1150 | cases. (DLR) |
David Lawrence Ramsey | 637b8bb | 2005-01-17 05:06:55 +0000 | [diff] [blame] | 1151 | total_refresh() |
| 1152 | - Refresh bottomwin using the value of currshortcut, and change |
| 1153 | the code around do_refresh() calls to accommodate this. (DLR) |
David Lawrence Ramsey | 85616c4 | 2005-03-17 18:11:08 +0000 | [diff] [blame] | 1154 | - Split out the code that updates the screen before refreshing |
David Lawrence Ramsey | c54c4d1 | 2005-06-18 15:49:17 +0000 | [diff] [blame] | 1155 | it into the new function total_redraw(). |
David Lawrence Ramsey | b9ddb80 | 2005-03-17 17:56:48 +0000 | [diff] [blame] | 1156 | do_help() |
| 1157 | - Refresh the screen when Ctrl-L is pressed in the help browser, |
| 1158 | as Pico does. (DLR) |
David Lawrence Ramsey | 6ecbdd3 | 2004-11-27 21:39:01 +0000 | [diff] [blame] | 1159 | - configure.ac: |
| 1160 | - Remove specific references to control key shortcuts. (DLR) |
David Lawrence Ramsey | ba1ab86 | 2005-03-20 02:50:31 +0000 | [diff] [blame] | 1161 | - Check for the wide versions of ncurses or slang, without which |
| 1162 | multibyte strings don't seem to be displayed properly, and |
| 1163 | associated multibyte/wide character functions. (DLR) |
David Lawrence Ramsey | 4fd76ba | 2004-12-24 18:11:53 +0000 | [diff] [blame] | 1164 | - Check for wchar.h, for those systems that need it for the |
| 1165 | wcwidth() prototype. (DLR) |
| 1166 | - Remove checks for all include files that we include |
| 1167 | unconditionally. (DLR) |
| 1168 | - Remove references to termio.h here and elsewhere, since it's |
| 1169 | obsolete and it defines a struct termio that we don't use |
| 1170 | anywhere. (DLR) |
| 1171 | - Typo fixes. (DLR) |
David Lawrence Ramsey | 496488c | 2005-03-16 15:34:22 +0000 | [diff] [blame] | 1172 | - Add checks for isascii(), iswalnum(), iswblank() or |
| 1173 | iswspace(), mblen(), and wctype.h. (DLR) |
David Lawrence Ramsey | 1fc55a2 | 2005-03-19 21:33:13 +0000 | [diff] [blame] | 1174 | - README: |
| 1175 | - Updated for the 1.3 branch. (DLR) |
| 1176 | - README.CVS: |
| 1177 | - Updated to mention the need for a wide character-supporting |
| 1178 | 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] | 1179 | - doc/faq.html: |
| 1180 | - Remove now-inaccurate note about verbatim input's not working |
David Lawrence Ramsey | f0a53f0 | 2005-01-03 19:56:56 +0000 | [diff] [blame] | 1181 | at prompts, and update its description to mention that it |
| 1182 | handles hexadecimal values now. (DLR) |
David Lawrence Ramsey | 256a890 | 2005-03-09 22:53:11 +0000 | [diff] [blame] | 1183 | - Add question about opening files with names beginning with |
| 1184 | '+'s, and add a few more miscellaneous cosmetic fixes. |
David Lawrence Ramsey | 5cc14f2 | 2005-01-17 05:24:26 +0000 | [diff] [blame] | 1185 | - nanorc.sample: |
David Lawrence Ramsey | 9c3edc0 | 2004-12-04 18:14:12 +0000 | [diff] [blame] | 1186 | - Add return to the "c-file" regexes. (DLR) |
David Lawrence Ramsey | f647c48 | 2005-01-03 20:07:26 +0000 | [diff] [blame] | 1187 | - Clarify the text describing good values for whitespace |
| 1188 | display. Since ASCII is technically only seven bits wide, |
| 1189 | characters 128-255 aren't ASCII. (DLR, suggested by Michael |
| 1190 | Piefel) |
David Lawrence Ramsey | 5cc14f2 | 2005-01-17 05:24:26 +0000 | [diff] [blame] | 1191 | - Add the "morespace" option. (DLR) |
David Lawrence Ramsey | 159bdfd | 2005-01-20 16:40:24 +0000 | [diff] [blame] | 1192 | - Add support for characters to the "c-file" regexes. (DLR) |
David Lawrence Ramsey | 6e60db6 | 2005-03-10 22:52:21 +0000 | [diff] [blame] | 1193 | - Add the hexadecimal equivalents of the decimal values |
| 1194 | suggested for whitespace display, now that it can handle |
| 1195 | multibyte characters. (DLR) |
David Lawrence Ramsey | bca59d6 | 2005-03-11 20:22:48 +0000 | [diff] [blame] | 1196 | - Add "manpage" regex. (Mike Frysinger, minor tweaks by DLR) |
David Lawrence Ramsey | 5cc14f2 | 2005-01-17 05:24:26 +0000 | [diff] [blame] | 1197 | - nano.1. nanorc.5, nano.texi: |
| 1198 | - Add the "morespace" option, and sync with the descriptions in |
| 1199 | nanorc.sample in a few places. (DLR) |
David Lawrence Ramsey | bca59d6 | 2005-03-11 20:22:48 +0000 | [diff] [blame] | 1200 | - Miscellaneous wording tweaks. (DLR) |
David Lawrence Ramsey | b54155c | 2005-01-12 03:25:57 +0000 | [diff] [blame] | 1201 | - src/Makefile.am: |
| 1202 | - Add chars.c to nano_SOURCES. (DLR) |
David Lawrence Ramsey | e3013e3 | 2005-01-14 18:47:42 +0000 | [diff] [blame] | 1203 | - If we're installing and the "rnano" symlink already exists, |
| 1204 | remove it so that we can create it again without an error. |
| 1205 | (DLR) |
David Lawrence Ramsey | 543ecf6 | 2005-03-19 21:20:20 +0000 | [diff] [blame] | 1206 | - AUTHORS: |
| 1207 | - Updated to mention UTF-8 support. |
David Lawrence Ramsey | 962202e | 2004-11-22 17:58:06 +0000 | [diff] [blame] | 1208 | |
David Lawrence Ramsey | 2c86dc6 | 2004-11-22 17:55:17 +0000 | [diff] [blame] | 1209 | GNU nano 1.3.5 - 2004.11.22 |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 1210 | - General: |
| 1211 | - Convert more ints that hold only TRUE and FALSE values to |
| 1212 | bools. (DLR) |
David Lawrence Ramsey | c7ca28a | 2004-09-07 21:51:49 +0000 | [diff] [blame] | 1213 | - Consolidate the code for finding and running a shortcut in a |
| 1214 | shortcut list, the code for finding and toggling a toggle in a |
| 1215 | toggle list, and the code for doing both of those and |
| 1216 | interpreting mouse clicks in the edit window. Also move the |
| 1217 | code for do_mouse() to get_edit_mouse() and tweak it to |
| 1218 | properly handle cases where a shortcut isn't clicked. New |
| 1219 | functions get_shortcut(), get_toggle(), get_edit_input(), and |
| 1220 | get_edit_mouse(); changes to do_browser(), do_justify(), |
| 1221 | do_help(), and main(). (DLR) |
David Lawrence Ramsey | d132210 | 2004-08-26 04:22:54 +0000 | [diff] [blame] | 1222 | - Simplify a few more translated messages. (DLR) |
Jordi Mallach | cc79a9a | 2004-08-31 00:23:16 +0000 | [diff] [blame] | 1223 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 8bf0809 | 2004-09-01 22:08:57 +0000 | [diff] [blame] | 1224 | - Remove reference to @includedir@ in src/Makefile.am, as it's |
| 1225 | unneeded and can break cross-compilation. (DLR, found by Mike |
| 1226 | Frysinger) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 1227 | - Overhaul the file opening, reading, and loading operations to |
| 1228 | increase efficiency, avoid problems on invalid filenames |
| 1229 | specified on the command line, and eliminate corner cases that |
| 1230 | erroneously leave edittop or current NULL when they shouldn't |
| 1231 | be. Also split out the code to execute a command into a |
| 1232 | separate function, eliminate a workaround for one of the |
| 1233 | aforementioned corner cases, handle files with a mix of DOS |
| 1234 | and Mac format lines, and remove the code to turn on the |
| 1235 | NO_CONVERT flag when opening a binary file, as it's not always |
| 1236 | reliable and will cause problems with UTF-8 text files. New |
| 1237 | functions open_file(), execute_command(), and mallocstrassn(); |
| 1238 | changes to read_line(), load_file(), read_file(), open_file(), |
| 1239 | get_next_filename(), do_insertfile(), do_insertfile_void(), |
David Lawrence Ramsey | 5423680 | 2005-06-28 05:56:16 +0000 | [diff] [blame] | 1240 | do_alt_speller(), and edit_refresh(). (David Benbennick) DLR: |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 1241 | Add a few minor fixes to make sure that current is set |
| 1242 | properly in all cases, indicate on the statusbar when the file |
| 1243 | has a mix of DOS and Mac format lines, move the test for DOS |
| 1244 | line endings from read_line() to read_file() to avoid |
| 1245 | inaccurate statusbar messages and to reduce fileformat to a |
| 1246 | local variable in read_file(), eliminate another workaround in |
| 1247 | edit_update(), rename open_the_file() to open_file() since the |
| 1248 | latter has been removed, and rename load_a_file() to |
| 1249 | load_buffer(). |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 1250 | - Add alternative shortcuts to the main and search shortcut |
| 1251 | lists for moving to the beginning and end of a paragraph and |
| 1252 | justifying the entire file: Meta-( (Meta-9), Meta-) (Meta-0), |
| 1253 | and Meta-J, respectively. Do this because Pico's practice of |
| 1254 | putting these shortcuts only in the search shortcut list is |
| 1255 | rather odd. (DLR) |
David Lawrence Ramsey | 013344c | 2004-09-22 22:45:08 +0000 | [diff] [blame] | 1256 | - Turn off extended input processing (the IEXTEN termios flag) |
| 1257 | as nano 1.2.x does. New function disable_extended_input(); |
| 1258 | changes to terminal_init(). (DLR) |
David Lawrence Ramsey | f3ca80e | 2004-09-23 21:52:58 +0000 | [diff] [blame] | 1259 | - Remove redundant include of limits.h from nano.c. nano.c |
| 1260 | includes nano.h and nano.h includes limits.h. (DLR) |
David Lawrence Ramsey | eb16f43 | 2004-09-27 01:04:50 +0000 | [diff] [blame] | 1261 | - Add a func_key flag to the low-level input functions and the |
| 1262 | currently existing high-level input functions, to indicate |
| 1263 | extended keypad values. This is needed for UTF-8 support. |
David Lawrence Ramsey | c59979f | 2004-10-23 02:47:39 +0000 | [diff] [blame] | 1264 | Changes to unget_kbinput(), get_kbinput(), |
| 1265 | get_translated_kbinput(), get_shortcut(), get_edit_input(), |
| 1266 | etc. (DLR) |
David Lawrence Ramsey | 04a8d1c | 2004-09-28 22:14:58 +0000 | [diff] [blame] | 1267 | - Add a multibuffer mode toggle to the "Execute Command" prompt, |
| 1268 | for consistency with the "Read File" prompt. Changes to |
| 1269 | do_insertfile() and shortcut_init(). (DLR) |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 1270 | - Add an ^X toggle to the "Execute Command" prompt to go back to |
| 1271 | the "Insert File" prompt, and add a ^T toggle to the "Go To |
| 1272 | Line" prompt to go back to the "Where Is" prompt. Changes to |
| 1273 | do_insertfile(), shortcut_init(), do_gotoline(), etc. |
| 1274 | - Make sure a few uninitialized static variables are initialized |
| 1275 | to sane values. (DLR) |
David Lawrence Ramsey | 7c1f17a | 2004-10-03 13:47:26 +0000 | [diff] [blame] | 1276 | - After reading in a file and detecting the format it's in, set |
| 1277 | the file format flags (DOS_FILE and MAC_FILE) to match, and |
| 1278 | preserve them across multiple file buffers. Changes to |
David Lawrence Ramsey | 53d7bce | 2005-04-05 14:18:41 +0000 | [diff] [blame] | 1279 | read_file(), add_open_file(), and load_open_file(). (DLR, |
David Lawrence Ramsey | 7c1f17a | 2004-10-03 13:47:26 +0000 | [diff] [blame] | 1280 | suggested by Bill Soudan) |
David Lawrence Ramsey | 28caf14 | 2004-10-07 20:54:52 +0000 | [diff] [blame] | 1281 | - 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] | 1282 | aren't much use with the new file format autodetection. Also |
| 1283 | remove the global versions of the toggles, so that they can |
| 1284 | only be used at the "Write File" prompt as similar options |
| 1285 | can. Finally, change the Mac format toggle to Meta-M, since |
| 1286 | that no longer conflicts with the global -m/--mouse toggle. |
| 1287 | (DLR) |
David Lawrence Ramsey | fc965a4 | 2004-10-15 01:51:36 +0000 | [diff] [blame] | 1288 | - Add support for reading in UTF-8 sequences to the low-level |
| 1289 | input routines. Changes to get_kbinput() and |
David Lawrence Ramsey | 4e8e495 | 2004-10-14 21:59:45 +0000 | [diff] [blame] | 1290 | get_translated_kbinput(). (DLR) |
David Lawrence Ramsey | e5e88fd | 2004-10-31 13:20:30 +0000 | [diff] [blame] | 1291 | - Reduce search_last_line to a static variable in search.c, and |
| 1292 | allow it to be set to FALSE via a function. New function |
| 1293 | findnextstr_wrap_reset(); changes to do_int_spell_fix(), |
| 1294 | findnextstr(), do_search(), do_research(), do_replace_loop(), |
| 1295 | do_replace(), and do_find_bracket(). (DLR, problem with making |
| 1296 | search_last_line local to findnextstr() found by Rocco) |
David Lawrence Ramsey | 2eb7459 | 2004-10-21 16:25:44 +0000 | [diff] [blame] | 1297 | - When saving or changing file positions, be sure not to ignore |
| 1298 | placewewant. Changes to do_int_spell_fix(), findnextstr(), |
| 1299 | do_replace_loop(), and do_replace(). (DLR) |
David Lawrence Ramsey | 687776b | 2004-10-30 01:16:08 +0000 | [diff] [blame] | 1300 | - Convert current_x and mark_beginx to size_t's, and convert |
| 1301 | some functions that use them as a parameter to use size_t as |
| 1302 | well. Also change some related assertions to handle them. |
| 1303 | (David Benbennick and DLR) |
David Lawrence Ramsey | 40bdb68 | 2004-11-03 22:03:41 +0000 | [diff] [blame] | 1304 | - Add code to partition a filestruct between a set of arbitrary |
| 1305 | coordinates. Given the coordinates of the beginning and end |
| 1306 | of the mark, this allows proper and easier handling of saving |
| 1307 | marked selections, replacing text only in marked selections |
| 1308 | (suggested by Joseph Birthisel), and spell-checking marked |
| 1309 | selections using either the internal or alternate spell |
| 1310 | checker. Do all these using a global partition structure. |
| 1311 | New functions partition_filestruct(), |
| 1312 | unpartition_filestruct(), remove_magicline(), and |
| 1313 | get_totals(); changes to write_marked(), do_int_spell_fix(), |
| 1314 | do_alt_speller(), handle_sigwinch(), and do_replace_loop(). |
| 1315 | (DLR) |
David Lawrence Ramsey | 84d0d59 | 2004-11-04 03:53:11 +0000 | [diff] [blame] | 1316 | - Remove most redundant includes of sys/stat.h. It's included |
| 1317 | in nano.h, so it doesn't need to be included in files that |
| 1318 | include nano.h. (DLR) |
David Lawrence Ramsey | 3e0c8a6 | 2004-11-04 04:08:18 +0000 | [diff] [blame] | 1319 | - Remove the DOS_FILE and MAC_FILE flags, as they're only used |
| 1320 | in files.c, and replace them with a static file_format enum. |
| 1321 | Change the openfilestruct structure accordingly in order to |
David Lawrence Ramsey | be246c0 | 2004-11-04 13:40:58 +0000 | [diff] [blame] | 1322 | handle this. (DLR) |
David Lawrence Ramsey | 00cca05 | 2004-11-06 20:33:43 +0000 | [diff] [blame] | 1323 | - Convert some ints with predefined boundaries to enums. (DLR) |
Jordi Mallach | 55381aa | 2004-11-17 23:17:05 +0000 | [diff] [blame] | 1324 | - Include config.h only if HAVE_CONFIG_H. (Jordi) |
David Lawrence Ramsey | 07e2589 | 2004-11-04 13:47:28 +0000 | [diff] [blame] | 1325 | - cut.c: |
David Lawrence Ramsey | 649b431 | 2004-11-13 01:32:17 +0000 | [diff] [blame] | 1326 | cut_marked_segment() |
| 1327 | - Respect concatenate_cut, as we need to use it if we do a |
| 1328 | marked cut and immediately follow it with a cut-to-end (which |
| 1329 | uses this function). (DLR) |
David Lawrence Ramsey | bfb98f8 | 2004-11-12 21:46:14 +0000 | [diff] [blame] | 1330 | do_cut_text() |
| 1331 | - Set concatenate_cut to TRUE unconditionally when doing a |
| 1332 | marked cut. This fixes an incompatibility with Pico where an |
| 1333 | extra line is uncut if we do a marked cut that includes the |
| 1334 | magicline and immediately follow it with an unmarked cut. |
| 1335 | (DLR) |
David Lawrence Ramsey | 00cca05 | 2004-11-06 20:33:43 +0000 | [diff] [blame] | 1336 | do_uncut_text() |
| 1337 | - Maintain current_y's value when uncutting blocks so that |
| 1338 | smooth scrolling works correctly. (DLR) |
David Lawrence Ramsey | 146bb60 | 2004-08-27 21:02:38 +0000 | [diff] [blame] | 1339 | - files.c: |
David Lawrence Ramsey | 3e0c8a6 | 2004-11-04 04:08:18 +0000 | [diff] [blame] | 1340 | read_file() |
| 1341 | - Rename variable fileformat to format, to avoid confusion with |
| 1342 | the file_format enum type. (DLR) |
David Lawrence Ramsey | 78d644a | 2004-11-05 16:24:35 +0000 | [diff] [blame] | 1343 | load_buffer() |
| 1344 | - Don't change the file format when we insert another file into |
| 1345 | the current one. (DLR) |
David Lawrence Ramsey | 146bb60 | 2004-08-27 21:02:38 +0000 | [diff] [blame] | 1346 | do_insertfile() |
David Lawrence Ramsey | be908f6 | 2004-10-01 18:34:30 +0000 | [diff] [blame] | 1347 | - Simplify by reusing variables whereever possible, and add a |
| 1348 | parameter execute to indicate whether or not to be in "Execute |
| 1349 | Command" mode. (DLR) |
David Lawrence Ramsey | 045883a | 2004-10-05 20:11:31 +0000 | [diff] [blame] | 1350 | - Rework so that goto is no longer needed, using do_writeout() |
| 1351 | as a model. (DLR) |
| 1352 | - If file browsing succeeds, call statusq_abort() so that the |
| 1353 | cursor position at the statusbar is reset. (DLR) |
David Lawrence Ramsey | 487149e | 2004-10-05 20:24:48 +0000 | [diff] [blame] | 1354 | - Add missing #ifdefs around the wrap_reset() call so that nano |
| 1355 | compiles with wrapping disabled again. (DLR) |
David Lawrence Ramsey | b73c0c0 | 2004-11-05 15:25:53 +0000 | [diff] [blame] | 1356 | - If we're not inserting a file into a new buffer, partition the |
| 1357 | current buffer so that it's effectively a new buffer just |
| 1358 | before inserting the file, and only restore placewewant |
| 1359 | afterwards. This is the same behavior we would get if we |
David Lawrence Ramsey | 3d67c11 | 2004-11-05 15:39:36 +0000 | [diff] [blame] | 1360 | opened the file, added all of it to the cutbuffer, closed the |
| 1361 | file, and uncut at the current cursor position. (DLR) |
David Lawrence Ramsey | 97b9046 | 2004-11-15 23:10:56 +0000 | [diff] [blame] | 1362 | - Maintain current_y's value when inserting so that smooth |
| 1363 | scrolling works correctly. (DLR) |
David Lawrence Ramsey | 045883a | 2004-10-05 20:11:31 +0000 | [diff] [blame] | 1364 | do_writeout() |
| 1365 | - Restructure if blocks for greater efficiency, using |
| 1366 | do_insertfile() as a model. (DLR) |
| 1367 | - Simplify where possible, and use an int retval to hold the |
| 1368 | return value instead of i. (DLR) |
| 1369 | - If file browsing succeeds, call statusq_abort() so that the |
| 1370 | cursor position at the statusbar is reset. (DLR) |
| 1371 | - Remove unneeded calls to display_main_list(). (DLR) |
| 1372 | do_writeout_void() |
| 1373 | - Call display_main_list(), for consistency with |
| 1374 | do_insertfile_void(). (DLR) |
David Lawrence Ramsey | ca92bec | 2004-10-22 03:33:54 +0000 | [diff] [blame] | 1375 | write_file() |
| 1376 | - If we've tried to write to an unwritable file and we're not |
| 1377 | prepending, tempname is NULL when it's passed to unlink(). |
| 1378 | This can cause problems if unlink() can't handle NULL, so |
| 1379 | don't call it in that case. (David Benbennick) |
David Lawrence Ramsey | 4b7e3c3 | 2004-10-15 16:25:56 +0000 | [diff] [blame] | 1380 | write_marked() |
| 1381 | - Remove check for MARK_ISSET's not being set. (DLR) |
David Lawrence Ramsey | f1c395d | 2004-10-03 19:26:13 +0000 | [diff] [blame] | 1382 | open_prevfile(), open_nextfile() |
David Lawrence Ramsey | 3e189a8 | 2004-10-03 19:18:48 +0000 | [diff] [blame] | 1383 | - Translate the "New Buffer" string when displaying "Switched |
| 1384 | to" messages on the statusbar. (DLR) |
David Lawrence Ramsey | 8091d33 | 2004-11-16 02:23:10 +0000 | [diff] [blame] | 1385 | input_tab() |
| 1386 | - 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] | 1387 | complete a filename containing %'s. (Ulf Härnhammar) |
David Lawrence Ramsey | a16b27f | 2004-08-26 01:29:25 +0000 | [diff] [blame] | 1388 | - global.c: |
| 1389 | shortcut_init() |
| 1390 | - Remove redundant NANO_SMALL #ifdef. (DLR) |
David Lawrence Ramsey | 1e72971 | 2004-09-28 15:17:47 +0000 | [diff] [blame] | 1391 | - Change an erroneous _() around the "New Buffer" string to |
| 1392 | N_(). (DLR) |
David Lawrence Ramsey | 8381fdd | 2004-11-01 22:40:02 +0000 | [diff] [blame] | 1393 | - Add new key aliases: F15 for "Mark Text" (DLR) and F16 for |
| 1394 | "Where Is Next" (Chris). |
David Lawrence Ramsey | 4b4b608 | 2004-11-01 22:54:40 +0000 | [diff] [blame] | 1395 | - Leave "Mark Text" and "Where Is Next" out entirely when |
| 1396 | NANO_SMALL is defined. Since they aren't in the visible main |
| 1397 | 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] | 1398 | - In the search prompt shortcut list, move "Full Justify" to |
| 1399 | after "History", so that the latter is visible onscreen |
| 1400 | again. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 1401 | - nano.c: |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 1402 | die_save_file() |
| 1403 | - Clarify the error message when there are too many backup files |
| 1404 | and the current one can't be written. (DLR) |
David Lawrence Ramsey | db6015c | 2004-09-11 21:41:13 +0000 | [diff] [blame] | 1405 | help_init() |
| 1406 | - Rework to be a bit more flexible. Only add tabs for shortcut |
| 1407 | key entries if those entries exist, and if there's only one |
| 1408 | 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] | 1409 | to put that entry at the end. Also, make sure a function key |
| 1410 | is displayed in the middle if it's the first entry. These |
| 1411 | changes allow e.g. the miscellaneous meta key sequence to be |
| 1412 | displayed in a shortcut that has a control key, a primary meta |
| 1413 | key sequence, and a miscellaneous meta key sequence, but no |
| 1414 | function key. (DLR) |
David Lawrence Ramsey | 381d483 | 2004-10-18 01:51:43 +0000 | [diff] [blame] | 1415 | - Update the help text to mention replacing and spell checking |
| 1416 | only selected text, and also add a few cosmetic fixes to it. |
| 1417 | (DLR) |
David Lawrence Ramsey | fdd3bec | 2004-11-07 21:30:55 +0000 | [diff] [blame] | 1418 | - Update the help text to mention how to get a blank buffer at |
| 1419 | the "Execute Command" prompt. (DLR) |
David Lawrence Ramsey | 7a97e18 | 2004-10-30 01:03:15 +0000 | [diff] [blame] | 1420 | do_prev_word() |
| 1421 | - Tweak to avoid an infinite loop, since current_x is now a |
| 1422 | size_t and hence is unsigned. (DLR) |
David Lawrence Ramsey | d93ee68 | 2004-10-09 16:59:43 +0000 | [diff] [blame] | 1423 | do_int_spell_fix() |
| 1424 | - Move the REVERSE_SEARCH flag toggling into the NANO_SMALL |
| 1425 | #ifdef, since the tiny version of nano doesn't support reverse |
David Lawrence Ramsey | 49d5c1b | 2004-10-11 13:55:33 +0000 | [diff] [blame] | 1426 | searching. Move the CASE_SENSITIVE flag toggling out in order |
David Lawrence Ramsey | 646bf91 | 2004-10-11 14:00:46 +0000 | [diff] [blame] | 1427 | to allow the internal spell checker to work properly when |
| 1428 | NANO_SMALL is defined and DISABLE_SPELLER isn't. Also, turn |
| 1429 | the USE_REGEXP flag off during spell checking in order to |
| 1430 | avoid a potential segfault. (DLR) |
David Lawrence Ramsey | 410efe9 | 2004-10-26 16:54:19 +0000 | [diff] [blame] | 1431 | - Fix a problem where if the cursor is in the middle of a file, |
| 1432 | the spell checker will sometimes only correct the misspelled |
| 1433 | word instances that appear before the cursor position and then |
| 1434 | stop. (Rocco) |
David Lawrence Ramsey | 9bf486f | 2004-10-26 20:58:30 +0000 | [diff] [blame] | 1435 | - Use do_replace_loop()'s canceled parameter in order to ensure |
| 1436 | that the spell checking stops if we canceled at the replace |
| 1437 | prompt. (DLR) |
David Lawrence Ramsey | 439fbe3 | 2004-10-16 04:56:34 +0000 | [diff] [blame] | 1438 | do_alt_speller() |
| 1439 | - Call terminal_init() unconditionally after running the |
| 1440 | alternate spell checker, so that the terminal state is |
| 1441 | properly restored in all cases. (DLR) |
David Lawrence Ramsey | fd73c46 | 2004-09-11 21:28:36 +0000 | [diff] [blame] | 1442 | justify_format() |
| 1443 | - For more compatibility with Pico, remove extra space after a |
| 1444 | character in punct if that character is the same as the one |
| 1445 | before it. For example, with the default values of punct and |
| 1446 | brackets, only one space will be left after "...". (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 1447 | do_para_begin(), do_para_end() |
David Lawrence Ramsey | c510042 | 2004-08-27 20:28:34 +0000 | [diff] [blame] | 1448 | - Maintain current_y's value when moving up or down lines so |
| 1449 | that smooth scrolling works correctly. (DLR) |
David Lawrence Ramsey | d08348b | 2004-09-18 22:02:21 +0000 | [diff] [blame] | 1450 | breakable(), break_line() |
| 1451 | - Make goal a ssize_t instead of an int, since fill is now a |
| 1452 | ssize_t, and the position at which a line is broken can be |
| 1453 | greater than COLS. (DLR) |
David Lawrence Ramsey | bf1346f | 2004-10-22 20:25:56 +0000 | [diff] [blame] | 1454 | main() |
| 1455 | - Tweak the command line parsing routine so that multiple +LINE |
| 1456 | flags are properly interpreted in multibuffer mode. (DLR) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 1457 | - nano.h: |
| 1458 | - Add WIDTH_OF_TAB #define, containing the default width of a |
| 1459 | tab. (DLR) |
David Lawrence Ramsey | be246c0 | 2004-11-04 13:40:58 +0000 | [diff] [blame] | 1460 | - Move the PATH_MAX #define here from files.c. |
David Lawrence Ramsey | 3e0c8a6 | 2004-11-04 04:08:18 +0000 | [diff] [blame] | 1461 | - Remove unused COPYFILEBLOCKSIZE #define. (DLR) |
David Lawrence Ramsey | 50af6ea | 2004-11-07 15:29:40 +0000 | [diff] [blame] | 1462 | - proto.h: |
| 1463 | - Add missing NANO_SMALL #ifdef around the cut_marked_segment() |
| 1464 | prototype. (DLR) |
David Lawrence Ramsey | 19420aa | 2004-08-18 16:14:18 +0000 | [diff] [blame] | 1465 | - rcfile.c: |
| 1466 | parse_rcfile() |
| 1467 | - Add missing brackets around an if statement block so that |
| 1468 | parsing the numeric argument after "tabsize" works properly |
| 1469 | again. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 1470 | - Since flag values are longs, use "%ld" instead of "%d" in the |
| 1471 | debugging messages indicating when a flag is set or unset. |
| 1472 | (DLR) |
David Lawrence Ramsey | c510042 | 2004-08-27 20:28:34 +0000 | [diff] [blame] | 1473 | - search.c: |
David Lawrence Ramsey | 49d5c1b | 2004-10-11 13:55:33 +0000 | [diff] [blame] | 1474 | regexp_init() |
| 1475 | - If NANO_SMALL is defined, don't bother checking the |
| 1476 | CASE_SENSITIVE flag or using its value when compiling a list |
| 1477 | of matching regular expressions. (DLR) |
David Lawrence Ramsey | d532f19 | 2004-10-04 22:37:56 +0000 | [diff] [blame] | 1478 | search_init() |
| 1479 | - Add parameter use_answer. When it's TRUE, only set |
| 1480 | backupstring to answer. This is needed to preserve the text |
| 1481 | of the statusbar when switching to the search prompt from |
| 1482 | the "Go To Line" prompt. Also, set backupstring before doing |
| 1483 | anything else, add one minor efficiency tweak, and preserve |
| 1484 | the text of the statusbar no matter what when switching from |
| 1485 | the search prompt to the "Go To Line" prompt, since the |
| 1486 | toggling works both ways now and non-numeric text shouldn't be |
| 1487 | lost when going only one of those ways. (DLR) |
David Lawrence Ramsey | e1ee22f | 2004-11-03 23:05:11 +0000 | [diff] [blame] | 1488 | - When we're replacing and the mark is on, display a prompt |
| 1489 | indicating that we're replacing text only in the selection |
| 1490 | instead of the usual prompt. (DLR) |
David Lawrence Ramsey | 2eb7459 | 2004-10-21 16:25:44 +0000 | [diff] [blame] | 1491 | findnextstr() |
| 1492 | - Take the no_sameline parameter after can_display_wrap and |
| 1493 | wholewords, not after all other parameters. (DLR) |
| 1494 | - Maintain current_y's value when moving up or down lines so |
| 1495 | that smooth scrolling works correctly. (DLR) |
| 1496 | - Fix handling of the wholewords flag so that it works with |
| 1497 | regular expressions and in conjunction with the no_sameline |
David Lawrence Ramsey | 85f8f46 | 2004-10-31 13:13:19 +0000 | [diff] [blame] | 1498 | flag, and add new parameter needle_len (used to return the |
| 1499 | length of the match). (DLR) |
David Lawrence Ramsey | 491cad3 | 2004-10-08 23:06:01 +0000 | [diff] [blame] | 1500 | do_replace_loop() |
David Lawrence Ramsey | 3de81bc | 2004-11-22 17:08:41 +0000 | [diff] [blame] | 1501 | - Miscellaneous cleanups: treat real_current as current and |
| 1502 | 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] | 1503 | edit_refresh() if the mark was originally on, and make |
| 1504 | length_change a ssize_t. (DLR) |
David Lawrence Ramsey | 53752e8 | 2004-10-18 22:19:22 +0000 | [diff] [blame] | 1505 | - Return ssize_t instead of int. (DLR) |
David Lawrence Ramsey | 9bf486f | 2004-10-26 20:58:30 +0000 | [diff] [blame] | 1506 | - Add new parameter canceled, set to TRUE if we canceled at the |
| 1507 | prompt and FALSE otherwise. (DLR) |
David Lawrence Ramsey | 381d483 | 2004-10-18 01:51:43 +0000 | [diff] [blame] | 1508 | - utils.c: |
| 1509 | regexp_bol_or_eol() |
| 1510 | - Don't assume any longer that string will be found if |
| 1511 | REG_NOTBOL and REG_NOTEOL are not set. (DLR) |
David Lawrence Ramsey | 4a1fc55 | 2004-11-02 15:18:30 +0000 | [diff] [blame] | 1512 | mallocstrncpy() |
| 1513 | - New function, used as a malloc()ing equivalent of strncpy(). |
| 1514 | (DLR) |
| 1515 | mallocstrcpy() |
| 1516 | - Refactor to be a wrapper for mallocstrncpy(). (DLR) |
David Lawrence Ramsey | 90e59c1 | 2004-11-05 23:03:03 +0000 | [diff] [blame] | 1517 | mark_order() |
| 1518 | - Add new parameter right_side_up. Set it to TRUE If the mark |
| 1519 | begins with (mark_beginbuf, mark_beginx) and ends with |
| 1520 | (current, current_x), or FALSE otherwise. (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 1521 | - winio.c: |
David Lawrence Ramsey | dfca1c4 | 2004-08-25 16:37:06 +0000 | [diff] [blame] | 1522 | unget_kbinput() |
| 1523 | - New function used as a wrapper for ungetch(). (DLR) |
David Lawrence Ramsey | 6da969e | 2004-08-28 15:51:07 +0000 | [diff] [blame] | 1524 | get_kbinput() |
| 1525 | - When reading an escape sequence, set get_verbatim_kbinput()'s |
| 1526 | new first parameter to the first character of the sequence |
| 1527 | instead of putting that character back and reading the entire |
| 1528 | sequence afterwards. (DLR) |
David Lawrence Ramsey | 5780b24 | 2004-10-14 20:48:38 +0000 | [diff] [blame] | 1529 | get_escape_seq_kbinput() |
| 1530 | - Make the escape_seq parameter a const int*, since it's never |
| 1531 | modified. (DLR) |
David Lawrence Ramsey | 8381fdd | 2004-11-01 22:40:02 +0000 | [diff] [blame] | 1532 | - Support the escape sequences for F15 and F16. (DLR) |
David Lawrence Ramsey | 6da969e | 2004-08-28 15:51:07 +0000 | [diff] [blame] | 1533 | get_verbatim_kbinput() |
| 1534 | - Add new parameter first. If first isn't ERR, make it the |
| 1535 | first character in the returned sequence instead of reading |
| 1536 | the first character in via blocking input. (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 1537 | get_mouseinput() |
| 1538 | - Consolidate two if statements to increase efficiency. (DLR) |
David Lawrence Ramsey | fe0d366 | 2004-08-26 01:43:16 +0000 | [diff] [blame] | 1539 | - Check kbinput against metaval instead of (erroneously) ctrlval |
| 1540 | when putting back a meta sequence. (DLR) |
| 1541 | - If there are more than MAIN_VISIBLE shortcuts available, only |
| 1542 | register clicks on the first MAIN_VISIBLE shortcuts, since |
| 1543 | bottombars() only shows that many shortcuts. (DLR) |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 1544 | check_statblank() |
| 1545 | - Rename to check_statusblank(), and rename its associated |
| 1546 | global int statusblank too. (DLR) |
David Lawrence Ramsey | 72d8e54 | 2004-09-25 00:45:07 +0000 | [diff] [blame] | 1547 | nanogetstr() |
| 1548 | - Refresh the screen when Ctrl-L is pressed at the statusbar |
| 1549 | prompt, as Pico does. (DLR) |
David Lawrence Ramsey | e5d8f32 | 2004-09-30 22:07:21 +0000 | [diff] [blame] | 1550 | - Always return the key pressed by the user. (DLR) |
| 1551 | statusq() |
| 1552 | - Rework slightly to reset the cursor position when the user |
| 1553 | hits Enter as well as Cancel. This means that resetstatuspos |
| 1554 | no longer needs to be global. (DLR) |
David Lawrence Ramsey | 045883a | 2004-10-05 20:11:31 +0000 | [diff] [blame] | 1555 | statusq_abort() |
| 1556 | - New function to set resetstatuspos to FALSE when we don't |
| 1557 | properly exit the statusbar prompt, e.g. when we get a file |
| 1558 | from the file browser). (DLR) |
David Lawrence Ramsey | 0ff01a9 | 2004-10-25 15:00:38 +0000 | [diff] [blame] | 1559 | bottombars() |
| 1560 | - For efficiency, no longer dynamically allocate space for each |
| 1561 | visible shortcut, as they're all of a constant short length. |
| 1562 | (David Benbennick) |
David Lawrence Ramsey | 02517e0 | 2004-09-05 21:40:31 +0000 | [diff] [blame] | 1563 | reset_cursor() |
| 1564 | - If this is called before any files have been opened, as it can |
| 1565 | be by statusbar(), put the cursor at the top left corner of |
| 1566 | the edit window before getting out. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 1567 | edit_refresh() |
| 1568 | - Call edit_update() with NONE instead of CENTER when smooth |
| 1569 | scrolling is on, for consistency with the movement routines. |
| 1570 | (DLR) |
David Lawrence Ramsey | 20b8350 | 2004-08-26 18:07:58 +0000 | [diff] [blame] | 1571 | edit_update() |
| 1572 | - Simplify so as not to require the fileptr parameter anymore, |
| 1573 | since it's set to current in all calls. (DLR) |
David Lawrence Ramsey | 50c7f2d | 2004-08-27 17:02:05 +0000 | [diff] [blame] | 1574 | - Add comments better explaining what the update actually does, |
David Lawrence Ramsey | 4aece06 | 2004-08-28 16:34:28 +0000 | [diff] [blame] | 1575 | and avoid an infinite loop when location is NONE and current_y |
| 1576 | is greater than (editwinrows - 1). (DLR) |
David Lawrence Ramsey | a0b5ba2 | 2004-08-25 15:39:10 +0000 | [diff] [blame] | 1577 | do_yesno() |
| 1578 | - Don't bother assigning the value of get_mouseinput() to |
| 1579 | anything. Since allow_shortcuts is FALSE, its return value |
| 1580 | will always be FALSE. (DLR) |
David Lawrence Ramsey | 1a5c4c6 | 2004-09-07 00:48:49 +0000 | [diff] [blame] | 1581 | - configure.ac: |
| 1582 | - When calling AC_TRY_RUN() to test for a broken regexec() |
| 1583 | function, set the fourth parameter to default to "no" (since |
| 1584 | it apparently only occurs on glibc 2.2.3-based systems) so |
| 1585 | that cross-compiling will work. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | a870ca2 | 2004-10-14 21:59:00 +0000 | [diff] [blame] | 1586 | - Simplify the curses library tests by only checking for |
| 1587 | initscr(), which ncurses, curses, and pdcurses should all |
| 1588 | have, and not tgetent(), which is a termcap-specific function. |
| 1589 | (DLR) |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 1590 | - Check only for glib 2.x, as it's much more common than |
| 1591 | glib 1.2.x now, and it has a better v?snprintf() |
| 1592 | implementation. (DLR, suggested by Jordi) |
Jordi Mallach | 1fabded | 2004-08-31 18:26:28 +0000 | [diff] [blame] | 1593 | - nanorc.sample: |
David Lawrence Ramsey | 2a60ea8 | 2004-08-29 14:42:03 +0000 | [diff] [blame] | 1594 | - Remove specific references to control key shortcuts other than |
| 1595 | XON and XOFF. (DLR) |
David Lawrence Ramsey | be908f6 | 2004-10-01 18:34:30 +0000 | [diff] [blame] | 1596 | - Add continue and goto to the "c-file" regexes. (DLR) |
David Lawrence Ramsey | fe65657 | 2004-10-21 17:11:40 +0000 | [diff] [blame] | 1597 | - Change the included speller value to "aspell -x -c". The -x |
| 1598 | option makes aspell not create backup files, and this is |
| 1599 | consistent with the internal spell checker's behavior. (DLR) |
Jordi Mallach | 1fabded | 2004-08-31 18:26:28 +0000 | [diff] [blame] | 1600 | - doc/man/fr/nano.1, doc/man/fr/nanorc.1: |
| 1601 | - Updated manpage translations by Jean-Philippe Guérard. |
David Lawrence Ramsey | db85ac7 | 2004-10-18 14:13:28 +0000 | [diff] [blame] | 1602 | - README.CVS: |
| 1603 | - Mention the requirement for glib 2.x on systems lacking |
| 1604 | v?snprintf(), and add minor formatting changes. |
David Lawrence Ramsey | 188f169 | 2004-11-20 16:16:47 +0000 | [diff] [blame] | 1605 | - Mention the requirement for groff in order to create html |
| 1606 | versions of the manpages. (DLR) |
David Lawrence Ramsey | 831c640 | 2004-11-21 18:44:23 +0000 | [diff] [blame] | 1607 | - Update the given cvs commands so that they work again, and |
| 1608 | mention the need for ssh to do cvs checkouts. (DLR) |
David Lawrence Ramsey | e56d936 | 2004-11-21 18:51:30 +0000 | [diff] [blame] | 1609 | - List sh as an example of a Bourne shell. (DLR) |
David Lawrence Ramsey | 0432e70 | 2004-11-05 17:09:11 +0000 | [diff] [blame] | 1610 | - faq.html: |
| 1611 | - Fixed inaccuracy: Pico compatibility mode was made the default |
| 1612 | in nano 1.1.99pre1, not 1.2.2. (DLR) |
David Lawrence Ramsey | 93eb293 | 2004-11-05 18:01:33 +0000 | [diff] [blame] | 1613 | - Added question about how to type F13-F16 on terminals lacking |
| 1614 | keys past F12 (suggested by Chris), question about how to |
| 1615 | select text for the clipboard in X terminals with nano's mouse |
| 1616 | support turned on (answer found by Joseph Birthisel), and |
| 1617 | miscellaneous fixes and link updates. (DLR) |
David Lawrence Ramsey | cfa4a9c | 2004-10-24 17:20:31 +0000 | [diff] [blame] | 1618 | - nano.1: |
David Lawrence Ramsey | e93e03e | 2004-10-24 16:47:54 +0000 | [diff] [blame] | 1619 | - Eliminate references to the now removed -D/--dos and -M/--mac |
| 1620 | command line options. (DLR) |
David Lawrence Ramsey | cfa4a9c | 2004-10-24 17:20:31 +0000 | [diff] [blame] | 1621 | - nano.texi: |
| 1622 | - Eliminate references to the now removed -D/--dos and -M/--mac |
| 1623 | command line options, and their corresponding toggles. (DLR) |
David Lawrence Ramsey | e3016d9 | 2004-11-11 14:35:31 +0000 | [diff] [blame] | 1624 | - m4/Makefile.am: |
| 1625 | - Add glib-2.0.m4 to EXTRA_DIST, so that nano builds from CVS |
| 1626 | with automake 1.7.x again. For some reason, automake 1.9.x |
| 1627 | didn't have a problem with its (erroneously) being left out. |
| 1628 | (DLR, problem found by Chris) |
David Lawrence Ramsey | b802e70 | 2004-10-18 19:28:10 +0000 | [diff] [blame] | 1629 | - m4/glib-2.0.m4: |
| 1630 | - New file imported from glib 2.4.7. This is needed to detect |
| 1631 | glib 2.x on systems that may not have it installed. (DLR, |
| 1632 | suggested by Jordi) |
Jordi Mallach | d7b6325 | 2004-11-18 00:05:14 +0000 | [diff] [blame] | 1633 | - src/Makefile.am: |
| 1634 | - Don't use DEFS to define things. Use INCLUDES instead. (Jordi) |
David Lawrence Ramsey | 013e8d1 | 2004-08-17 20:44:31 +0000 | [diff] [blame] | 1635 | |
David Lawrence Ramsey | c6718cf | 2004-08-17 20:38:44 +0000 | [diff] [blame] | 1636 | GNU nano 1.3.4 - 2004.08.17 |
David Lawrence Ramsey | ebd0d7c | 2004-07-01 18:59:52 +0000 | [diff] [blame] | 1637 | - General: |
| 1638 | - More minor comment cleanups. (DLR) |
David Lawrence Ramsey | ce62e82 | 2004-08-05 22:10:22 +0000 | [diff] [blame] | 1639 | - Convert more ints and functions using 0 and 1 to bools using |
| 1640 | TRUE and FALSE. (David Benbennick and DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 1641 | - Change more instances of ints that have large enough upper |
| 1642 | bounds and which can never be negative to size_t's, and |
| 1643 | convert nano to handle them properly. (DLR) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 1644 | - Convert the shortcut list functions and most related functions |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 1645 | 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] | 1646 | those functions are essentially unused. Changes to |
| 1647 | sc_init_one(), shortcut_init(), etc. (David Benbennick and |
| 1648 | DLR) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 1649 | - Make flags and all variables meant to store the value of flags |
| 1650 | longs for consistency. (David Benbennick) |
| 1651 | - Rename the TEMP_OPT flags to TEMP_FILE, as it's more |
| 1652 | descriptive. (DLR) |
David Lawrence Ramsey | a5dda84 | 2004-07-08 15:27:04 +0000 | [diff] [blame] | 1653 | - Remove unused global variable search_offscreen. (David |
| 1654 | Benbennick) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1655 | - Add new N_() macro to mark strings that aren't translated |
| 1656 | immediately, and convert nano to use it in cases where the |
David Lawrence Ramsey | 76f63ff | 2004-08-05 15:45:09 +0000 | [diff] [blame] | 1657 | translated string is stored in a const char*. Changes |
| 1658 | to sc_init_one(), print1opt(), help_init(), rcfile_error(), |
| 1659 | do_credits(), etc. (David Benbennick) DLR: Do this for |
| 1660 | toggle_init_one() too. |
| 1661 | - Minor tweaks and clarifications to some option descriptions. |
| 1662 | (DLR) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1663 | - Overhaul the shortcut list and toggle list initialization |
| 1664 | code for efficiency. Changes to shortcut_init() and |
| 1665 | toggle_init(). (David Benbennick) DLR: Move "Cancel" to just |
| 1666 | after "Get Help" in the file browser list, for consistency |
| 1667 | with all the other lists, have the replace list accept all the |
| 1668 | same function keys as the search list, and clarify a few |
| 1669 | shortcut descriptions. |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 1670 | - Convert nano to use the new parse_num() function to read in |
| 1671 | numeric values at the command line and in the rcfile, and |
| 1672 | duplicate the messages used in the rcfile in the command line |
David Lawrence Ramsey | c53ab2a | 2004-08-04 18:24:53 +0000 | [diff] [blame] | 1673 | for consistency. (David Benbennick) DLR: Tweak parse_num() to |
| 1674 | parse ssize_t values instead of ints and to return a bool |
| 1675 | indicating whether parsing succeeded. Convert tabsize, |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 1676 | wrap_at, and fill to ssize_t in order to work with |
| 1677 | parse_num() properly and also to increase their capacity |
| 1678 | while keeping the ability to hold negative numbers in case of |
| 1679 | errors. Also exit instead of calling usage() in the event of |
| 1680 | an invalid fill value, for consistency with how an invalid |
David Lawrence Ramsey | 36dd87b | 2004-07-18 17:43:43 +0000 | [diff] [blame] | 1681 | tabsize value is handled. Finally, handle invalid tabsize |
David Lawrence Ramsey | 04419b9 | 2004-07-18 18:13:54 +0000 | [diff] [blame] | 1682 | entries in the rcfile the same way as on the command line, |
| 1683 | and reset tabsize and wrap_at to their default values if |
| 1684 | invalid rcfile entries are specified for them. |
David Lawrence Ramsey | aea4dab | 2004-07-13 17:09:24 +0000 | [diff] [blame] | 1685 | - Remove several unnecessary reset_cursor() calls. (David |
| 1686 | Benbennick) |
David Lawrence Ramsey | fd3039a | 2004-07-17 19:49:12 +0000 | [diff] [blame] | 1687 | - Include <sys/types.h> in proto.h. (David Benbennick) DLR: |
| 1688 | Remove some redundant inclusions of <sys/types.h> elsewhere. |
David Lawrence Ramsey | 8aaf030 | 2004-07-27 16:46:35 +0000 | [diff] [blame] | 1689 | - Move the main terminal initialization functions, aside from |
| 1690 | initscr(), into a new terminal_init() function, and convert |
| 1691 | nano to use it. (DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 1692 | - Convert placewewant to a size_t, and convert some functions |
| 1693 | that use it as a parameter to use size_t as well. (David |
| 1694 | Benbennick and DLR) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 1695 | - Overhaul the paragraph searching code and some of the justify |
| 1696 | code to clarify it and fix a bug where searches from the |
| 1697 | previous paragraph would move up too far. Also make |
| 1698 | quotestr-related variables global so that they only have to be |
| 1699 | compiled once, and remove the no-longer-needed IFREG() macro. |
| 1700 | New functions begpar() and inpar(); changes to quote_length(), |
| 1701 | quotes_match(), do_para_search(), do_para_begin(), |
| 1702 | do_para_end(), and do_justify(). (David Benbennick) |
David Lawrence Ramsey | a6d26d0 | 2004-07-30 22:52:44 +0000 | [diff] [blame] | 1703 | - Readded the errors flag and moved the ending prompt from |
| 1704 | rcfile_error() to parse_rcfile() so that we only get prompted |
| 1705 | once for all errors instead of separately for each error. |
David Lawrence Ramsey | 7dfec43 | 2004-08-12 15:20:14 +0000 | [diff] [blame] | 1706 | (DLR) David Benbennick: Make sure that no rcfile error |
| 1707 | messages end in newlines, and show the ending prompt if we |
| 1708 | can't read the .nano_history file while starting nano. |
David Lawrence Ramsey | b8c479a | 2004-07-31 14:10:23 +0000 | [diff] [blame] | 1709 | - Don't treat the return value of strn?(case)?cmp() as boolean. |
| 1710 | (DLR and David Benbennick) |
David Lawrence Ramsey | 76fb3ec | 2004-08-01 16:09:15 +0000 | [diff] [blame] | 1711 | - Automatically install a symlink "rnano" pointing to nano. |
| 1712 | Changes to src/Marefile.am. (DLR) |
David Lawrence Ramsey | 22fac78 | 2004-08-05 15:16:19 +0000 | [diff] [blame] | 1713 | - Move the static int pid to the beginning of nano.c with all |
| 1714 | the other static variables. (DLR) |
David Lawrence Ramsey | 00d7798 | 2004-08-07 21:27:37 +0000 | [diff] [blame] | 1715 | - Consolidate some if blocks to remove some redundant code. |
| 1716 | (David Benbennick) |
David Lawrence Ramsey | 73cd1a5 | 2004-08-05 21:57:48 +0000 | [diff] [blame] | 1717 | - Fix warnings when compiling with ENABLE_NLS undefined and with |
David Lawrence Ramsey | be908f6 | 2004-10-01 18:34:30 +0000 | [diff] [blame] | 1718 | the fwritable-strings option. (David Benbennick) |
David Lawrence Ramsey | 00d7798 | 2004-08-07 21:27:37 +0000 | [diff] [blame] | 1719 | - Add various #ifdefs to fix warnings and compilation problems |
| 1720 | when compiling with every option manually turned on, including |
| 1721 | NANO_SMALL. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1722 | - Simplify some of the rcfile and statusbar error messages, and |
| 1723 | make some of them more consistent. (David Benbennick and DLR) |
| 1724 | - Change some functions to take const char*'s instead of char*'s |
| 1725 | where possible. (David Benbennick) |
David Lawrence Ramsey | bb50b30 | 2004-08-12 21:43:00 +0000 | [diff] [blame] | 1726 | - Tweak some #ifdefs around indent_length() and references to |
| 1727 | fill_flag_used to avoid warnings when compiling with |
David Lawrence Ramsey | df13e3b | 2004-08-12 19:48:21 +0000 | [diff] [blame] | 1728 | --disable-wrapping, --disable-justify, or a combination of the |
| 1729 | two. (DLR) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1730 | - Overhaul the routines used to read the rcfiles and history |
| 1731 | files for efficiency, make them work properly on lines over |
| 1732 | 1023 characters long and on lines containing nulls, and make |
| 1733 | them properly handle the case where the user's home directory |
| 1734 | changes in the middle of a session. New functions |
| 1735 | histfilename() and writehist(); changes to |
| 1736 | thanks_for_all_the_fish(), load_history(), save_history(), and |
| 1737 | do_rcfile(). (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 1738 | - files.c: |
David Lawrence Ramsey | 049e4a5 | 2004-08-10 23:05:59 +0000 | [diff] [blame] | 1739 | get_next_filename() |
| 1740 | - Tweak for efficiency, and add the ".save" suffix to the file |
| 1741 | here. (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 1742 | close_open_file() |
| 1743 | - Tweak to no longer rely on the return values of |
| 1744 | open_(prev|next)file(). (DLR) |
David Lawrence Ramsey | c8c69d5 | 2004-07-03 03:22:23 +0000 | [diff] [blame] | 1745 | write_file() |
| 1746 | - For consistency with nano 1.2.x and with other editors, make |
| 1747 | the mode of newly created files 666 instead of 600 before |
David Lawrence Ramsey | add6508 | 2004-10-31 14:40:40 +0000 | [diff] [blame] | 1748 | it's modified by the umask. (DLR, found by Toni Suokas) |
David Lawrence Ramsey | f7b5d93 | 2004-07-05 14:27:29 +0000 | [diff] [blame] | 1749 | do_writeout() |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1750 | - 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] | 1751 | blank, we can't change it, so disable tab completion in that |
| 1752 | case. (DLR) |
David Lawrence Ramsey | 1536f86 | 2004-07-24 16:50:20 +0000 | [diff] [blame] | 1753 | - Fix spacing problem in the "Save Under Different Name" |
| 1754 | prompt. (DLR) |
David Lawrence Ramsey | a539fce | 2004-06-29 00:43:56 +0000 | [diff] [blame] | 1755 | - global.c: |
| 1756 | shortcut_init() |
| 1757 | - Fix erroneous #ifdef so that nano compiles with |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1758 | --disable-justify again. (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1759 | - Change the Cancel shortcut in the file browser to an Exit |
| 1760 | shortcut, to be more compatible with the current version of |
| 1761 | Pico. (DLR) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1762 | thanks_for_all_the_fish() |
| 1763 | - Delete topwin, edit, and bottomwin. (David Benbennick) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 1764 | - nano.c: |
David Lawrence Ramsey | 049e4a5 | 2004-08-10 23:05:59 +0000 | [diff] [blame] | 1765 | die() |
| 1766 | - Don't add the ".save" suffix to a saved file here anymore, |
| 1767 | since get_next_filename() does that now. (David Benbennick) |
| 1768 | die_save_file() |
| 1769 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | ce62e82 | 2004-08-05 22:10:22 +0000 | [diff] [blame] | 1770 | help_init() |
| 1771 | - Fix the display of the translated key descriptions "Up" and |
| 1772 | "Space" under all circumstances, and make the help browser |
| 1773 | work properly when there are fewer than 24 columns available. |
| 1774 | (David Benbennick) |
David Lawrence Ramsey | 22fac78 | 2004-08-05 15:16:19 +0000 | [diff] [blame] | 1775 | usage() |
| 1776 | - Don't translate the option strings for -Z/--restricted. |
| 1777 | (David Benbennick) |
David Lawrence Ramsey | 9ef3adb | 2004-07-30 17:30:17 +0000 | [diff] [blame] | 1778 | do_enter() |
| 1779 | - Don't treat it as a special case when the user presses Enter |
| 1780 | on the last line of the screen and smooth scrolling is on, for |
| 1781 | consistency. (DLR) |
David Lawrence Ramsey | 8aaf030 | 2004-07-27 16:46:35 +0000 | [diff] [blame] | 1782 | do_alt_speller() |
| 1783 | - When reloading the newly spell-checked temporary file, call |
| 1784 | terminal_init() to make sure that all the original terminal |
| 1785 | settings are restored, as a curses-based alternative spell |
| 1786 | checker (e.g. aspell) can change them. (DLR) |
David Lawrence Ramsey | b8c479a | 2004-07-31 14:10:23 +0000 | [diff] [blame] | 1787 | quote_length() |
| 1788 | - Fix problem where quoted justify wouldn't work if HAVE_REGEX_H |
| 1789 | wasn't set. (David Benbennick) |
David Lawrence Ramsey | 01a6bf4 | 2004-07-03 05:23:19 +0000 | [diff] [blame] | 1790 | do_justify() |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1791 | - 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] | 1792 | the next line after justifying the current line, and only run |
| 1793 | the respacing routine when it's true. This keeps the |
| 1794 | respacing routine from erroneously being run more than once on |
| 1795 | the same line. (DLR) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1796 | - Check for first_par_line's not being NULL and only run the |
| 1797 | renumbering and cutbuffer-splicing routines depending on that |
| 1798 | if that's the case. This fixes a segfault occurring when |
| 1799 | trying to do full justification on a file with no paragraphs |
| 1800 | (in which case there are no normal lines to renumber and no |
| 1801 | backed-up lines to be stored in the cutbuffer or spliced back |
| 1802 | in during unjustify). (DLR) |
David Lawrence Ramsey | 72e51ab | 2004-07-02 14:31:03 +0000 | [diff] [blame] | 1803 | do_exit() |
| 1804 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | aea4dab | 2004-07-13 17:09:24 +0000 | [diff] [blame] | 1805 | main() |
| 1806 | - Move the reset_cursor() call to the beginning of the main |
| 1807 | input loop, and remove the apparently unnecessary wrefresh() |
| 1808 | call. (David Benbennick) |
David Lawrence Ramsey | ad1fd0d | 2004-07-27 15:46:58 +0000 | [diff] [blame] | 1809 | - Call setlocale() outside the ENABLE_NLS #ifdef, since UTF-8 |
| 1810 | support won't work properly if the locale isn't set, whether |
| 1811 | NLS is enabled or not. (Junichi Uekawa) |
David Lawrence Ramsey | 6b24856 | 2004-08-07 22:33:14 +0000 | [diff] [blame] | 1812 | - Add titlebar() calls before all open_file() calls and remove |
| 1813 | the titlebar() call after them, so that the titlebar is |
David Lawrence Ramsey | 69a2812 | 2004-08-12 04:34:00 +0000 | [diff] [blame] | 1814 | displayed properly for all file(s) loaded. Also call |
| 1815 | display_main_list() after adding the first file to open_files, |
| 1816 | so that "Close" is properly displayed then instead of "Exit". |
| 1817 | (DLR) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1818 | - nano.h: |
| 1819 | - Reassign the key for full justification to Ctrl-U, for |
| 1820 | compatibility with the current version of Pico. (DLR) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 1821 | - Remove justbegend enum, as it's no longer needed. (DLR) |
David Lawrence Ramsey | ebd0d7c | 2004-07-01 18:59:52 +0000 | [diff] [blame] | 1822 | - proto.h: |
David Lawrence Ramsey | f708037 | 2004-07-08 17:15:10 +0000 | [diff] [blame] | 1823 | - Change the variables in the prototypes for do_justify(), |
| 1824 | get_verbatim_kbinput(), and get_mouseinput() to match the ones |
| 1825 | used in the actual functions. (DLR) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 1826 | - Remove unused declaration of temp_opt. (David Benbennick) |
David Lawrence Ramsey | 819c7f0 | 2004-07-30 03:54:34 +0000 | [diff] [blame] | 1827 | - Add missing copy_file() prototype. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1828 | - Move the load_history() and save_history() prototypes up to |
| 1829 | match their corresponding location in files.c. (DLR) |
David Lawrence Ramsey | db357a1 | 2004-06-29 12:36:25 +0000 | [diff] [blame] | 1830 | - rcfile.c: |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1831 | rcfile_msg() |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1832 | - Removed and replaced with calls to rcfile_error(). (David |
| 1833 | Benbennick) |
David Lawrence Ramsey | 576bf33 | 2004-07-12 03:10:30 +0000 | [diff] [blame] | 1834 | - Removed the reference to "starting nano" in the statusbar |
| 1835 | message, as it may be called when we exit if the history file |
| 1836 | can't be saved. (DLR) |
David Lawrence Ramsey | db357a1 | 2004-06-29 12:36:25 +0000 | [diff] [blame] | 1837 | parse_rcfile() |
| 1838 | - Have whitespace display default to off instead of on. (Mike |
| 1839 | Frysinger) |
David Lawrence Ramsey | edab0cc | 2004-07-03 03:09:12 +0000 | [diff] [blame] | 1840 | nregcomp() |
| 1841 | - Rename the variable flags to eflags so as not to conflict with |
| 1842 | the global flags. (DLR) |
David Lawrence Ramsey | f56cc9e | 2004-07-29 14:32:17 +0000 | [diff] [blame] | 1843 | - search.c: |
| 1844 | do_replace_loop() |
| 1845 | - Make sure old_pww is updated to the current value of |
| 1846 | placewewant when a new match is found, so that edit_redraw() |
| 1847 | will redraw the screen properly when only placewewant changes. |
| 1848 | (DLR, found by Mike Frysinger) |
David Lawrence Ramsey | 9062579 | 2004-07-30 20:21:34 +0000 | [diff] [blame] | 1849 | do_replace() |
| 1850 | - Instead of using edit_update() to redraw the screen with |
| 1851 | edittop at the top, set edittop beforehand and call |
| 1852 | edit_refresh(). (DLR) |
| 1853 | do_gotoline() |
| 1854 | - Use parse_num() to interpret a line entered by the user, and |
| 1855 | start the search for a line from current instead of fileage. |
| 1856 | (DLR) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1857 | do_gotopos(), find_node(), free_history() |
David Lawrence Ramsey | 9062579 | 2004-07-30 20:21:34 +0000 | [diff] [blame] | 1858 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1859 | free_history() |
| 1860 | - Only include when DEBUG is defined. (David Benbennick) |
David Lawrence Ramsey | 49c3f24 | 2004-07-12 16:07:14 +0000 | [diff] [blame] | 1861 | - utils.c: |
| 1862 | parse_num() |
| 1863 | - New function to parse numeric values, so that we don't have to |
| 1864 | duplicate code that calls strtol() all over the place. (David |
| 1865 | Benbennick) DLR: Renamed from parse_int() to parse_num() and |
| 1866 | converted to use ssize_t instead of int. |
David Lawrence Ramsey | 6420d44 | 2004-08-11 05:13:08 +0000 | [diff] [blame] | 1867 | nstrnicmp() |
| 1868 | - Remove code chacking for n's being less than 0 that will never |
| 1869 | be run, since n is a size_t and is hence unsigned. (David |
| 1870 | Benbennick) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1871 | ngetdelim(), ngetline() |
| 1872 | - New functions equivalent to getdelim() and getline(), which |
| 1873 | are both GNU extensions. (DLR, adapted from GNU mailutils |
David Lawrence Ramsey | b4041d6 | 2004-08-17 16:04:48 +0000 | [diff] [blame] | 1874 | 0.5 with minor changes to better integrate with nano and |
| 1875 | increase efficiency) |
David Lawrence Ramsey | cff5558 | 2004-06-30 12:28:15 +0000 | [diff] [blame] | 1876 | - winio.c: |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 1877 | get_kbinput() |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1878 | - 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] | 1879 | convert it to an int. (DLR) |
David Lawrence Ramsey | cff5558 | 2004-06-30 12:28:15 +0000 | [diff] [blame] | 1880 | get_control_kbinput() |
| 1881 | - Fix erroneous debugging statement so that nano compiles with |
| 1882 | --enable-debug again. (Jon Oberheide) |
David Lawrence Ramsey | 0fb841a | 2004-07-01 17:04:23 +0000 | [diff] [blame] | 1883 | nanogetstr() |
| 1884 | - Tweak the code to update the edit window just before getting |
| 1885 | statusbar input for efficiency, and update bottomwin just |
| 1886 | before then too. (David Benbennick) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1887 | - Don't delete the statusbar line on UnCut, since the current |
| 1888 | version of Pico doesn't. (DLR) |
David Lawrence Ramsey | 86e851b | 2004-07-28 20:46:25 +0000 | [diff] [blame] | 1889 | do_cursorpos() |
| 1890 | - Add assert to check whether totsize is correct. (David |
| 1891 | Benbennick) |
David Lawrence Ramsey | 8037fe0 | 2004-07-23 12:30:40 +0000 | [diff] [blame] | 1892 | line_len() |
| 1893 | - Rename to help_line_len() so as not to conflict with the |
| 1894 | line_len variable used elsewhere, and move inside the |
| 1895 | DISABLE_HELP #ifdef surrounding do_help() since it's only |
| 1896 | called in do_help(). (DLR) |
| 1897 | do_help() |
| 1898 | - Have help_line_len() properly return an int again, since its |
| 1899 | value can't be larger than COLS. (DLR) |
| 1900 | - Allow the user to exit the help browser via Ctrl-C as well as |
| 1901 | Ctrl-X, for consistency with the file browser. (DLR) |
David Lawrence Ramsey | 76fb3ec | 2004-08-01 16:09:15 +0000 | [diff] [blame] | 1902 | - configure.ac: |
| 1903 | - Add AC_PROG_LN_S, so that we can portably create symlinks. |
| 1904 | (DLR) |
David Lawrence Ramsey | a27bd65 | 2004-08-17 05:23:38 +0000 | [diff] [blame] | 1905 | - Check for getdelim() and getline(), which are both GNU |
| 1906 | extensions. (DLR) |
David Lawrence Ramsey | 7d3817f | 2004-07-28 13:03:06 +0000 | [diff] [blame] | 1907 | - nanorc.sample: |
| 1908 | - Add sample regexes for patch files. (Mike Frysinger) |
David Lawrence Ramsey | 2d140c2 | 2004-07-28 13:50:43 +0000 | [diff] [blame] | 1909 | - Various improvements to the "c-file" regexes. Add double, |
| 1910 | typedef, extern, union, unsigned, inline, and long to the |
| 1911 | green list. (Mike Frysinger) DLR: Also add signed, short, and |
| 1912 | enum to the green list. |
David Lawrence Ramsey | 8bf9ba0 | 2004-08-01 22:00:29 +0000 | [diff] [blame] | 1913 | - nano.spec.in: |
| 1914 | - Tweak to include all files in %{_bindir} instead of just nano, |
| 1915 | so that the "rnano" symlink will be properly packaged. (DLR) |
David Lawrence Ramsey | d36715e | 2004-06-28 13:23:37 +0000 | [diff] [blame] | 1916 | |
David Lawrence Ramsey | e115156 | 2004-06-28 13:17:33 +0000 | [diff] [blame] | 1917 | GNU nano 1.3.3 - 2004.06.28 |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 1918 | - General: |
| 1919 | - Minor comment cleanups. (DLR) |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 1920 | - Convert more ints used as boolean values to use TRUE and |
| 1921 | FALSE. (David Benbennick) |
David Lawrence Ramsey | 5520e85 | 2004-04-07 00:44:35 +0000 | [diff] [blame] | 1922 | - Make sure the special control keys are handled the same way |
| 1923 | after the window is resized or we come out of suspend mode. |
| 1924 | Changes to do_cont() and handle_sigwinch(). (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1925 | - Change some instances of ints that can never be negative to |
| 1926 | size_t's. (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 1927 | - Add better explanations for and in the "Terminal breakage" |
| 1928 | comments, and handle missing key #ifdefs inside the functions |
| 1929 | that use those keys. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 1930 | - Add restricted mode, accessible via the -Z/--restricted |
| 1931 | command line option or by invoking nano with any name |
| 1932 | beginning with 'r' (e.g. "rnano"). In restricted mode, nano |
| 1933 | will not read or write to any file not specified on the |
| 1934 | command line, read any nanorc files, allow suspending, or |
| 1935 | allow a file to be appended to, prepended to, or saved under a |
| 1936 | different name if it already has one. (IO ERROR) DLR: Also |
| 1937 | disable backup files and spell checking (since the latter can |
| 1938 | leave a pre-spell-checked version of the file in a temporary |
| 1939 | directory), use tail() to get the program name so that the |
| 1940 | check for its beginning with 'r' will work when a path is |
| 1941 | specified, disable toggles that are only useful with options |
| 1942 | that are disabled in restricted mode, call nano_disabled_msg() |
| 1943 | when trying to read or spell check a file instead of leaving |
| 1944 | the shortcuts out of the main list, and instead of acting as |
| 1945 | though TEMP_OPT is enabled when exiting with a modified file |
| 1946 | (which caused problems if the filename was blank), only allow |
| 1947 | a filename to be modified at the writeout prompt if it's blank |
| 1948 | beforehand. Changes to do_writeout(), toggle_init(), |
| 1949 | shortcut_init(), die_save_file(), and nanogetstr(). |
| 1950 | - Call nano_disabled_msg() directly from the shortcut list |
| 1951 | instead of inside the disabled functions. (David Benbennick) |
David Lawrence Ramsey | 0381c21 | 2004-05-01 01:21:38 +0000 | [diff] [blame] | 1952 | - Clarifications to comments explaining exactly what control |
| 1953 | characters and escape sequences are supported. (DLR) |
David Lawrence Ramsey | 5aa3983 | 2004-05-05 21:36:50 +0000 | [diff] [blame] | 1954 | - Disable "Where Is Next" in tiny mode. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 1955 | - Added the ability to justify the entire file at once, which |
David Lawrence Ramsey | 91bc83a | 2004-06-25 01:52:10 +0000 | [diff] [blame] | 1956 | Pico has via ^W^J. Changes to backup_lines() and |
| 1957 | do_justify(); new functions do_justify_void() and |
| 1958 | do_full_justify(). (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 1959 | - Modify the justification algorithm to work the same way as in |
| 1960 | 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] | 1961 | each line of the justified paragraph except for the last one, |
| 1962 | 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] | 1963 | it. Changes to justify_format() and do_justify(). Note that |
| 1964 | we can no longer reliably detect the first modified line in a |
| 1965 | paragraph, since a line unmodified by justify_format() may get |
| 1966 | a space tacked onto the end of it or removed from the end of |
| 1967 | it later. The entire original paragraph is now always backed |
| 1968 | up, and justify_format() no longer has a non-modifying mode, |
| 1969 | so it's now only called in backup_lines(). (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 1970 | - Wrap the long jump code in NANO_SMALL #ifdefs, since we only |
| 1971 | use it if we're resizing the window, which is disabled when |
| 1972 | NANO_SMALL is defined. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 1973 | - Add smart home key option, accessible via -A/--smarthome on |
| 1974 | the command line, "set smarthome" in the rcfile, and the |
| 1975 | Meta-H toggle in the edit window. Smart home works as |
| 1976 | follows: When Home is pressed anywhere but at the very |
| 1977 | beginning of non-whitespace characters on a line, the cursor |
| 1978 | will jump to that beginning (either forwards or backwards). |
| 1979 | If the cursor is already at that position, it will jump to the |
| 1980 | true beginning of the line. This option is disabled in tiny |
| 1981 | mode. Changes to do_home(), nanogetstr(), etc. (DLR; |
| 1982 | suggested by Stephan T. Lavavej) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 1983 | - Minor tweaks to the punctuation in some statusbar messages. |
| 1984 | (DLR) |
David Lawrence Ramsey | 48ae986 | 2004-05-28 17:23:33 +0000 | [diff] [blame] | 1985 | - Overhaul the low-level input routines into main routines that |
| 1986 | actually get the input and state machines that interpret the |
| 1987 | input. This allows better handling of the input (e.g. ignored |
| 1988 | keys are now always ignored instead of just being ignored when |
| 1989 | there are no escapes prefixing them) and will make it easier |
| 1990 | to port to interfaces that don't have blocking input. New |
| 1991 | functions reset_kbinput(), get_translated_kbinput(), |
| 1992 | get_control_kbinput(), and get_untranslated_kbinput(); changes |
| 1993 | to do_verbatim_input(), handle_sigwinch(), get_kbinput(), |
| 1994 | get_ascii_kbinput(), get_escape_seq_kbinput(), and |
David Lawrence Ramsey | 7ea39ef | 2004-06-04 22:36:42 +0000 | [diff] [blame] | 1995 | get_verbatim_kbinput(); removal of get_ignored_kbinput() and |
| 1996 | get_accepted_kbinput(). (DLR) |
David Lawrence Ramsey | 2ed225f | 2004-05-28 20:44:09 +0000 | [diff] [blame] | 1997 | - Overhaul all the movement functions in order to avoid |
| 1998 | redundant screen redraws (and regexec()s when color support is |
| 1999 | available) whenever possible during ordinary cursor movement |
| 2000 | when the text doesn't change. Do the same for moving in |
| 2001 | do_char(), do_delete(), do_next_word(), do_prev_word(), |
| 2002 | do_search(), do_research(), and do_replace_loop. Changes to |
| 2003 | do_first_line(), do_last_line(), do_home(), do_end(), |
| 2004 | do_page_up(), do_page_down(), do_up(), do_down(), do_left(), |
| 2005 | do_right(), do_delete(), do_backspace(), do_search(), |
| 2006 | do_research(), do_replace_loop(), do_find_bracket(), and |
| 2007 | edit_refresh(). New functions do_left_void(), |
| 2008 | do_right_void(), need_horizontal_update(), |
David Lawrence Ramsey | c21790d | 2004-05-30 03:19:52 +0000 | [diff] [blame] | 2009 | need_vertical_update(), edit_scroll(), and edit_redraw(). All |
| 2010 | of these functions but the first two require the previous |
David Lawrence Ramsey | ce1d765 | 2004-06-01 18:32:36 +0000 | [diff] [blame] | 2011 | versions of current and/or placewewant as parameters, so that |
| 2012 | they can redraw properly when the location has changed. Also |
David Lawrence Ramsey | c21790d | 2004-05-30 03:19:52 +0000 | [diff] [blame] | 2013 | rename the int refresh in do_delete() and do_backspace() to |
| 2014 | do_refresh so as not to conflict with refresh(). (DLR) |
David Lawrence Ramsey | 32e3b88 | 2004-05-29 01:20:17 +0000 | [diff] [blame] | 2015 | - Add some comments better explaining what is disabled in |
| 2016 | restricted mode and why. (DLR) |
David Lawrence Ramsey | c833d9e | 2004-05-29 15:36:58 +0000 | [diff] [blame] | 2017 | - Since KEEP_CUTBUFFER is only used in cut.c, make it a static |
| 2018 | variable in cut.c instead of a flag, and unset it in other |
| 2019 | files via the new function cutbuffer_reset(). (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 2020 | - Add the ability to change the characters used to display the |
| 2021 | beginning characters of tabs and spaces via the rcfile entry |
| 2022 | "whitespace". This is disabled if nanorc support is disabled |
David Lawrence Ramsey | f521b60 | 2004-05-30 03:56:52 +0000 | [diff] [blame] | 2023 | 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] | 2024 | 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] | 2025 | Frysinger; minor changes and adaptations by DLR) |
David Lawrence Ramsey | 2c62b07 | 2004-05-29 16:38:57 +0000 | [diff] [blame] | 2026 | - Add the ability to change the closing punctuation and closing |
| 2027 | brackets used to control justification, via the rcfile |
| 2028 | entries "punct" and "brackets". (DLR) |
Jordi Mallach | 0675c2f | 2004-06-01 15:29:31 +0000 | [diff] [blame] | 2029 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 85529b3 | 2004-06-22 15:38:47 +0000 | [diff] [blame] | 2030 | - Make the former flag same_line_wrap use TRUE and FALSE |
| 2031 | instead of 1 and 0. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 2032 | - files.c: |
| 2033 | add_open_file() |
| 2034 | - Rearrange the NANO_SMALL #ifdef so that the code to set the |
| 2035 | MODIFIED flag in open_files->flags is included only once. |
| 2036 | (DLR) |
David Lawrence Ramsey | 2f0d03b | 2004-05-28 00:15:28 +0000 | [diff] [blame] | 2037 | write_marked() |
| 2038 | - Call write_file() with nonamechange set to TRUE so that we |
| 2039 | don't erroneously change the current filename when writing a |
| 2040 | selection, and don't take a nonamechange parameter anymore |
| 2041 | since we don't use it. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 2042 | do_writeout() |
| 2043 | - Refactor so that no recursion is needed if we try to exit with |
| 2044 | 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] | 2045 | - Add spaces to the ends of the "Overwrite" and "Different Name" |
| 2046 | prompts, for consistency. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2047 | do_browser() |
| 2048 | - Call check_statblank() instead of blanking the statusbar |
| 2049 | unconditionally, for consistency. (David Benbennick) |
David Lawrence Ramsey | be26561 | 2004-05-29 20:38:08 +0000 | [diff] [blame] | 2050 | - global.c: |
| 2051 | shortcut_init() |
| 2052 | - Don't assign any handler functions to the help browser keys, |
| 2053 | as the help browser handles them all internally. (David |
| 2054 | Benbennick) |
David Lawrence Ramsey | 4be15f0 | 2004-05-23 21:33:23 +0000 | [diff] [blame] | 2055 | - move.c: |
| 2056 | do_first_line(), do_last_line() |
| 2057 | - Move these functions here from winio.c. (DLR) |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 2058 | - nano.c: |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 2059 | finish() |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2060 | - Call blank_statusbar() and blank_bottombars() to blank out |
| 2061 | the statusbar and shortcut list in bottomwin. (DLR) |
David Lawrence Ramsey | da14106 | 2004-05-25 19:41:11 +0000 | [diff] [blame] | 2062 | - Since all of the calls to finish() use 0 for the value of |
| 2063 | sigage, and the return value of finish() is never used, make |
| 2064 | it accept and return void. (David Benbennick) |
David Lawrence Ramsey | 2f0d03b | 2004-05-28 00:15:28 +0000 | [diff] [blame] | 2065 | die_save_file() |
| 2066 | - Call write_file() with nonamechange set to TRUE since we don't |
| 2067 | need to change the current filename if we're writing emergency |
| 2068 | backup files. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2069 | do_early_abort() |
| 2070 | - Removed, as it's no longer called anywhere. (David Benbennick) |
David Lawrence Ramsey | 4525137 | 2004-06-09 08:36:46 +0000 | [diff] [blame] | 2071 | usage() |
| 2072 | - Add missing "[dir]" and two missing _()'s around the strings |
| 2073 | describing the -E [dir]/--backupdir=[dir]" option. (CHAO |
| 2074 | Wei-Lun) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2075 | open_pipe() |
| 2076 | - Call enable_signals() at the beginning and disable_signals() |
| 2077 | at the end, so that we get a SIGINT when Ctrl-C is pressed |
| 2078 | during wait() and can then call cancel_fork() properly. (DLR) |
David Lawrence Ramsey | 228148b | 2004-05-27 20:09:52 +0000 | [diff] [blame] | 2079 | do_delete(), do_enter() |
David Lawrence Ramsey | 604caf3 | 2004-04-19 02:44:13 +0000 | [diff] [blame] | 2080 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 1b525e9 | 2004-05-24 02:35:02 +0000 | [diff] [blame] | 2081 | do_prev_word() |
| 2082 | - Switch the last test (current != NULL or not) around to match |
| 2083 | the order of the same test in do_next_word() (current == |
| 2084 | NULL). The results are the same either way. (DLR) |
David Lawrence Ramsey | 9a527f5 | 2004-05-31 14:58:59 +0000 | [diff] [blame] | 2085 | do_wrap() |
| 2086 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2087 | do_spell() |
| 2088 | - Tweak for efficiency. (David Benbennick) |
| 2089 | - Change the statusbar entries used in cases of failure so that |
| 2090 | they all display the actual error that occurred. (David |
| 2091 | Benbennick and DLR) |
| 2092 | do_int_speller(), do_alt_speller() |
| 2093 | - Make these functions return const char*'s instead of char*'s. |
| 2094 | (David Benbennick) |
David Lawrence Ramsey | d4693cb | 2004-05-14 01:17:25 +0000 | [diff] [blame] | 2095 | justify_format() |
| 2096 | - Remove redundant assignment. (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 2097 | do_para_search() |
| 2098 | - Remove unneeded edit_update() calls. (David Benbennick) |
David Lawrence Ramsey | 2e3aeae | 2004-05-24 05:52:35 +0000 | [diff] [blame] | 2099 | - Convert to use an enum to specify the search type: JUSTIFY, |
| 2100 | BEGIN, or END. (DLR) |
David Lawrence Ramsey | dbde9d7 | 2004-06-27 00:54:08 +0000 | [diff] [blame] | 2101 | - Refactor to properly do searches for beginnings of paragraphs |
| 2102 | in the same way as searches for endings of paragraphs, without |
| 2103 | needing the old (and somewhat inaccurate) recursive approach. |
| 2104 | (DLR) |
David Lawrence Ramsey | 1cadddd | 2004-05-17 20:32:51 +0000 | [diff] [blame] | 2105 | do_justify() |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2106 | - Remove unneeded edit_update() calls, and add a few minor |
| 2107 | efficiency tweaks. (David Benbennick) |
David Lawrence Ramsey | 7097d7b | 2004-05-17 16:11:18 +0000 | [diff] [blame] | 2108 | - Simplify an if statement. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 2109 | do_exit() |
| 2110 | - Refactor so that no recursion is needed if we try to exit with |
| 2111 | 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] | 2112 | print_numlock_warning() |
| 2113 | - Removed, as it's no longer needed and was never called |
| 2114 | anywhere after the input overhaul. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2115 | signal_init() |
| 2116 | - Don't use termios and _POSIX_VDISABLE to disable keys anymore, |
| 2117 | as there's no real equivalent of it when the latter isn't |
| 2118 | defined. (DLR) |
| 2119 | handle_sigwinch() |
| 2120 | - Call resetty() to get the original terminal settings back. |
| 2121 | (DLR) |
| 2122 | - Rework so that nano properly redraws the screen on systems |
| 2123 | that don't have resizeterm() and/or wresize(). In curses, we |
| 2124 | now leave and immediately reenter curses mode via endwin() and |
| 2125 | refresh(), and then reinitialize all windows via |
| 2126 | window_init(). In slang, the above routine will only work if |
| 2127 | the resize made the window smaller, so we now leave and |
| 2128 | immediately reenter screen management mode via |
| 2129 | SLsmg_reset_smg() and SLsmg_init_smg(), and then reinitialize |
| 2130 | all windows via window_init(). (DLR, adapted from code in |
| 2131 | 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] | 2132 | do_toggle() |
| 2133 | - Call blank_statusbar() and blank_bottombars() to blank out |
| 2134 | the statusbar and shortcut list in bottomwin. (DLR) |
David Lawrence Ramsey | d4693cb | 2004-05-14 01:17:25 +0000 | [diff] [blame] | 2135 | do_verbatim_input() |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2136 | - If PRESERVE is set, disable flow control characters before |
| 2137 | getting input and reenable them after getting input. (DLR) |
| 2138 | disable_signals(), enable_signals(), disable_flow_control(), |
| 2139 | enable_flow_control() |
| 2140 | - New functions that allow more fine-grained control of the |
| 2141 | terminal: disabling and enabling signals without having to use |
| 2142 | _POSIX_VDISABLE and disabling and enabling flow control |
| 2143 | characters. (DLR) |
David Lawrence Ramsey | 97133f5 | 2004-05-14 17:39:19 +0000 | [diff] [blame] | 2144 | main() |
| 2145 | - Don't open the first file in quiet mode, since if we do, an |
| 2146 | error message won't be shown if it's unreadable. (DLR; found |
| 2147 | by Jaap Eldering) |
David Lawrence Ramsey | 1d43db8 | 2004-05-14 17:57:00 +0000 | [diff] [blame] | 2148 | - If we've specified multiple files on the command line and |
| 2149 | multibuffer support is compiled in, turn multibuffer mode on |
| 2150 | when reading those files and turn it off afterward if it was |
| 2151 | off before. This allows us to open multiple files without |
| 2152 | having to turn multibuffer mode on at the command line or in |
| 2153 | the nanorc first, both of which are unintuitive. Multibuffer |
| 2154 | mode should only affect how the "Read File" command behaves |
| 2155 | anyway. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2156 | - Remove the disabling of implementation-defined input |
David Lawrence Ramsey | e608f94 | 2004-05-19 16:04:27 +0000 | [diff] [blame] | 2157 | processing, as cbreak mode appears to turn it off anyway. |
| 2158 | (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2159 | - After noecho(), call disable_signals() and |
| 2160 | disable_flow_control(), the latter only if PRESERVE is not |
| 2161 | set. (DLR) |
| 2162 | - Move the savetty() call down from just after initscr() to just |
| 2163 | after the terminal is properly set up, so that we can restore |
| 2164 | it easily after a resize. (DLR) |
David Lawrence Ramsey | 570ea89 | 2004-05-28 21:02:32 +0000 | [diff] [blame] | 2165 | - Add missing cast to char when calling do_char(). (DLR) |
David Lawrence Ramsey | dd7cc72 | 2004-05-28 23:45:25 +0000 | [diff] [blame] | 2166 | - Don't initialize the backup directory if we're in restricted |
| 2167 | mode, since backups are disabled then. (DLR) |
David Lawrence Ramsey | 3aedb36 | 2004-05-28 22:42:41 +0000 | [diff] [blame] | 2168 | - 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] | 2169 | one from the command line and/or rcfile, as Pico does. Don't |
| 2170 | do this if we're in restricted mode, since spell checking is |
| 2171 | disabled then. (DLR) |
David Lawrence Ramsey | 74af3a7 | 2004-06-12 21:03:14 +0000 | [diff] [blame] | 2172 | - Add some cleanups for greater readability, and remove a few |
| 2173 | bits of redundant code. (DLR and David Benbennick) |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 2174 | - nano.h: |
| 2175 | - Since REGEXP_COMPILED is only used in search.c, convert it |
| 2176 | from a flag to a static int there. (DLR) |
David Lawrence Ramsey | 2e3aeae | 2004-05-24 05:52:35 +0000 | [diff] [blame] | 2177 | - Add justbegend enum, used in do_para_search(). (DLR) |
David Lawrence Ramsey | 2ed225f | 2004-05-28 20:44:09 +0000 | [diff] [blame] | 2178 | - Add updown enum, used in edit_scroll(). (DLR) |
David Lawrence Ramsey | f38230a | 2004-04-21 22:25:16 +0000 | [diff] [blame] | 2179 | - proto.h: |
David Lawrence Ramsey | d62b634 | 2004-04-28 21:49:30 +0000 | [diff] [blame] | 2180 | - Remove unused xpt() and add_marked_sameline() prototypes. |
| 2181 | (DLR) |
David Lawrence Ramsey | 14bf803 | 2004-05-22 20:19:15 +0000 | [diff] [blame] | 2182 | - Add missing #ifdefs around the nstristr() and get_mouseinput() |
| 2183 | prototypes. (DLR) |
David Lawrence Ramsey | f38230a | 2004-04-21 22:25:16 +0000 | [diff] [blame] | 2184 | - rcfile.c: |
| 2185 | - Move "rebinddelete" up in the list of options so that the list |
| 2186 | is in alphabetical order. (DLR) |
David Lawrence Ramsey | b6a4b10 | 2004-05-29 17:20:01 +0000 | [diff] [blame] | 2187 | - Cosmetic reorganization of the order in which some options are |
| 2188 | interpreted. (DLR) |
David Lawrence Ramsey | 8d91199 | 2004-05-29 17:05:52 +0000 | [diff] [blame] | 2189 | - Explicitly check for rcopts[i].name's being "tabsize" to avoid |
| 2190 | a spurious error under some circumstances about tabsize's |
| 2191 | 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] | 2192 | - search.c: |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 2193 | regexp_init() |
| 2194 | - Overhaul for efficiency. Also check if regcomp() failed, and |
| 2195 | if so, display "Bad regex" message on the statusbar, so that |
| 2196 | we don't have to display it separately after every call to |
| 2197 | this function. (David Benbennick) |
| 2198 | search_init() |
| 2199 | - Only check whether USE_REGEXP is set, and hence whether or not |
| 2200 | to display "[Regexp]" on the search prompt, if HAVE_REGEX_H is |
| 2201 | defined. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 2202 | not_found_msg() |
| 2203 | - Convert to properly handle strings generated by |
| 2204 | display_string() that have been used in the search prompt |
| 2205 | since 1.3.0. (David Benbennick) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 2206 | - Use display_string() directly to display the text that we |
| 2207 | didn't find instead of relying on statusbar() to do it |
| 2208 | indirectly, since the latter won't display its text with the |
| 2209 | user-specified whitespace characters and the former will. |
| 2210 | (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 2211 | - utils.c: |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 2212 | is_blank_char() |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2213 | - New function used as an isblank() equivalent, since isblank() |
| 2214 | is a GNU extension. (DLR) |
David Lawrence Ramsey | a3370c4 | 2004-04-05 01:08:14 +0000 | [diff] [blame] | 2215 | nstricmp(), nstrnicmp() |
| 2216 | - Add extra blank lines for greater readability, and remove |
| 2217 | unneeded test for n's being less than zero (since it's already |
| 2218 | been tested for being greater than zero or equal to zero at |
| 2219 | that point) from nstrnicmp(). (DLR) |
| 2220 | stristr() |
| 2221 | - Rename to nstristr() to avoid a potential conflict with an |
| 2222 | existing stristr() function, and move up to just after |
| 2223 | nstrnicmp(). (DLR) David Benbennick: Tweak for efficiency. |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 2224 | - Include and use only when strcasestr() is unavailable, since |
| 2225 | strcasestr() is a GNU extension. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2226 | nstrnlen() |
| 2227 | - New function used as a strnlen() equivalent, since strnlen() |
| 2228 | is a GNU extension. (DLR) |
David Lawrence Ramsey | e1e7cb2 | 2004-04-15 06:15:55 +0000 | [diff] [blame] | 2229 | - winio.c: |
| 2230 | get_verbatim_kbinput() |
| 2231 | - Refactor the output in the DEBUG #ifdef. It didn't work |
| 2232 | properly ever since this function was changed to use an int* |
| 2233 | instead of a char*. (DLR) |
David Lawrence Ramsey | 805547f | 2004-04-22 03:41:04 +0000 | [diff] [blame] | 2234 | - When reading characters from input, properly reallocate |
| 2235 | verbatim_kbinput via (int*)nrealloc() instead of an uncast |
| 2236 | realloc(). (DLR) |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 2237 | get_accepted_kbinput() |
| 2238 | - Add proper support for the keypad values and escape sequences |
David Lawrence Ramsey | 16eb518 | 2004-06-03 20:26:12 +0000 | [diff] [blame] | 2239 | generated by the NumLock glitch and by certain keys on the |
| 2240 | numeric keypad. (DLR) |
David Lawrence Ramsey | d897445 | 2004-06-04 22:28:55 +0000 | [diff] [blame] | 2241 | - Add an extra break and move an #endif down to fix a potential |
| 2242 | problem when NANO_SMALL is defined or KEY_RESIZE isn't, and |
| 2243 | when PDCURSES isn't defined. (DLR) |
David Lawrence Ramsey | 805547f | 2004-04-22 03:41:04 +0000 | [diff] [blame] | 2244 | get_escape_seq_kbinput() |
David Lawrence Ramsey | 0a25808 | 2004-04-23 18:02:37 +0000 | [diff] [blame] | 2245 | - Add proper support for the keypad values and escape sequences |
| 2246 | generated by the NumLock glitch. (DLR) |
David Lawrence Ramsey | e65e639 | 2004-06-04 18:18:17 +0000 | [diff] [blame] | 2247 | - Add ignore_seq parameter. If a sequence is recognized but |
| 2248 | ignored, we will now return ERR and set ignore_seq to TRUE, and |
| 2249 | if a sequence is unrecognized, we will now return ERR and set |
| 2250 | ignore_seq to FALSE. Also, here and elsewhere, don't bother |
| 2251 | assigning ERR to retval when that's its initial value. (DLR) |
David Lawrence Ramsey | 973a96b | 2004-06-22 14:30:18 +0000 | [diff] [blame] | 2252 | - Fix problem where the escape sequence for F3 on the FreeBSD |
| 2253 | console would not be interpreted properly. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2254 | get_mouseinput() |
| 2255 | - Don't ungetch() anything if there's no control key and no meta |
| 2256 | key defined in the shortcut we clicked. (DLR) |
David Lawrence Ramsey | 8d3e7f3 | 2004-05-13 17:28:03 +0000 | [diff] [blame] | 2257 | bottombars() |
| 2258 | - Don't display any more than MAIN_VISIBLE shortcuts. Adding |
| 2259 | justification of the entire file above made the search |
| 2260 | shortcut list longer than this and hence made the shortcuts in |
| 2261 | it so short as to be almost incomprehensible. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2262 | - Tweak for efficiency and to better handle shorter screen |
| 2263 | widths. (David Benbennick) |
| 2264 | - Restructure the if block used for the sentinel key values, |
| 2265 | dynamically allocate keystr based on the number of columns |
| 2266 | available, and make sure we can display shortcuts even when |
| 2267 | the number of available columns is too short for any complete |
| 2268 | one. (DLR) |
| 2269 | onekey() |
| 2270 | - Don't bother padding the displayed shortcuts with spaces. |
| 2271 | (David Benbennick) |
| 2272 | - Convert len to a size_t. (DLR) |
David Lawrence Ramsey | e5b2f83 | 2004-04-29 06:30:36 +0000 | [diff] [blame] | 2273 | edit_add() |
| 2274 | - Minor cosmetic reformatting. Also remove unused int |
| 2275 | searched_later_lines. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2276 | blank_bottomwin() |
| 2277 | - Removed, as it does the same thing as blank_bottombars(). |
| 2278 | (David Benbennick) |
| 2279 | blank_titlebar() |
| 2280 | - New function used to blank the titlebar in topwin. (DLR) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2281 | blank_statusbar_refresh() |
| 2282 | - Removed, as it's now unnecessary. (David Benbennick) |
| 2283 | titlebar() |
| 2284 | - Overhaul to use display_string() to display the filename, and |
| 2285 | to better handle shorter screen widths. Also remove |
| 2286 | now-unneeded wrefresh(topwin) calls. (David Benbennick) |
David Lawrence Ramsey | 8328fc2 | 2004-05-25 23:34:43 +0000 | [diff] [blame] | 2287 | DLR: Tweak to reserve enough space for "Modified", plus |
| 2288 | padding, in all cases, to make sure that the version message |
| 2289 | takes up no more more than 1/3 of the available width, minus |
| 2290 | padding, and to include a reset_cursor() call so that the |
| 2291 | cursor is always in the right place. |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2292 | bottombars() |
| 2293 | - Call blank_bottombars() instead of blank_bottomwin(). (David |
| 2294 | Benbennick) |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2295 | check_statblank() |
| 2296 | - Overhaul for efficiency, (David Benbennick) DLR: Add |
| 2297 | reset_cursor() call to ensure that the cursor is always in the |
| 2298 | right place. |
David Lawrence Ramsey | 228148b | 2004-05-27 20:09:52 +0000 | [diff] [blame] | 2299 | update_cursor() |
| 2300 | - Removed, as it's no longer called anywhere. (David Benbennick) |
David Lawrence Ramsey | 07d3feb | 2004-04-16 05:15:11 +0000 | [diff] [blame] | 2301 | edit_refresh() |
| 2302 | - Remove apparently unneeded leaveok() calls. (David Benbennick) |
David Lawrence Ramsey | c279a63 | 2004-05-25 01:49:58 +0000 | [diff] [blame] | 2303 | edit_refresh_clearok(), center_cursor() |
| 2304 | - Removed, as they are now unnecessary. (David Benbennick) |
David Lawrence Ramsey | d12fd4b | 2004-05-28 15:05:56 +0000 | [diff] [blame] | 2305 | statusq() |
| 2306 | - Don't allow "Full Justify" when in view mode. (DLR) |
David Lawrence Ramsey | 4b741b9 | 2004-04-30 19:40:03 +0000 | [diff] [blame] | 2307 | statusbar() |
| 2308 | - Call reset_cursor() just before refreshing the edit window, so |
| 2309 | that slang and other non-ncurses versions of curses will |
| 2310 | properly place the cursor back in the edit window instead of |
| 2311 | leaving it at the end of the statusbar. (DLR) |
David Lawrence Ramsey | be26561 | 2004-05-29 20:38:08 +0000 | [diff] [blame] | 2312 | do_help() |
| 2313 | - Overhaul for efficiency, and allow scrolling through the help |
| 2314 | via the arrow keys as well as the paging keys. (David |
David Lawrence Ramsey | ae064bf | 2004-06-01 20:38:00 +0000 | [diff] [blame] | 2315 | Benbennick) DLR: Revert the use of the return value of |
| 2316 | curs_set() to restore the previous state of the cursor, as |
| 2317 | some curses implementations (including slang) get it wrong, |
| 2318 | and explicitly turn the cursor off where needed instead. |
David Lawrence Ramsey | dc35cb8 | 2004-04-24 18:30:23 +0000 | [diff] [blame] | 2319 | do_credits() |
| 2320 | - Use napms() instead of nanosleep(), as it does the same thing |
| 2321 | (aside from taking an argument in milliseconds instead of |
| 2322 | microseconds) and curses includes it. (DLR) |
David Lawrence Ramsey | 837a02b | 2004-05-18 15:23:31 +0000 | [diff] [blame] | 2323 | - Overhaul for efficiency, and make sure the xlcredits |
| 2324 | translations are done after initialization in order to avoid |
| 2325 | an error when compiling with -pedantic. (David Benbennick) |
Jordi Mallach | 21ad762 | 2004-06-25 22:43:09 +0000 | [diff] [blame] | 2326 | do_yesno() |
| 2327 | - Add a comment to encourage translators to use both native and |
| 2328 | English shortcuts, if possible. (Jordi) |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 2329 | - configure.ac: |
David Lawrence Ramsey | fa39404 | 2004-05-23 21:11:14 +0000 | [diff] [blame] | 2330 | - Add tests for isblank(), strcasestr(), and strnlen(), and |
| 2331 | define _GNU_SOURCE so that the tests work properly. Increase |
| 2332 | the minimum required autoconf version to 2.54. (DLR) |
David Lawrence Ramsey | 1122c85 | 2004-05-13 17:46:57 +0000 | [diff] [blame] | 2333 | - Reformat the test programs so that they aren't packed into |
| 2334 | fewer lines than usual, so as to make them easier to read, and |
| 2335 | remove unnecessary inclusion of stdio.h in the slang test |
| 2336 | programs. (DLR) |
David Lawrence Ramsey | d7fd200 | 2004-05-18 01:20:36 +0000 | [diff] [blame] | 2337 | - Remove the checks for resizeterm() and wresize(), as they're |
| 2338 | no longer needed. (DLR) |
Jordi Mallach | d350727 | 2004-06-25 22:34:18 +0000 | [diff] [blame] | 2339 | - config.rpath: |
| 2340 | - Replace usage of egrep with grep -E, avoiding a XSI:ism (David |
| 2341 | Weinehall) |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 2342 | - faq.html: |
| 2343 | - Removed question about the NumLock glitch, as it's no longer |
| 2344 | needed. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 2345 | - nano.1: |
| 2346 | - Document restricted mode. (IO ERROR) DLR: Add minor |
| 2347 | modifications to account for the above changes. |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 2348 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 498e13d | 2004-06-01 22:56:34 +0000 | [diff] [blame] | 2349 | - Document the use of the SPELL environment variable. (DLR) |
David Lawrence Ramsey | 12e066f | 2004-05-29 14:13:02 +0000 | [diff] [blame] | 2350 | - nanorc.5: |
| 2351 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 2352 | - Document the whitespace option. (DLR, adapted from |
| 2353 | documentation by Mike Frysinger) |
David Lawrence Ramsey | 2c62b07 | 2004-05-29 16:38:57 +0000 | [diff] [blame] | 2354 | - Document the punct and brackets options. (DLR) |
David Lawrence Ramsey | 9be546b | 2004-04-20 19:19:21 +0000 | [diff] [blame] | 2355 | - nano.texi: |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 2356 | - Fix toggle inaccuracies: Meta-L now toggles line wrapping, and |
| 2357 | Meta-< and Meta-> aren't toggles. (DLR) |
David Lawrence Ramsey | d893fa9 | 2004-04-30 04:49:02 +0000 | [diff] [blame] | 2358 | - Document restricted mode. (IO ERROR) DLR: Add minor |
| 2359 | modifications to account for the above changes. |
David Lawrence Ramsey | 2c4c788 | 2004-05-07 18:00:20 +0000 | [diff] [blame] | 2360 | - Fix version number inaccuracies: Search/replace history and |
| 2361 | sorting/uniqueness filtering for the internal spell chacker |
| 2362 | were added in nano 1.1.99pre1. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 2363 | - Document the smart home key option. (DLR) |
David Lawrence Ramsey | 498e13d | 2004-06-01 22:56:34 +0000 | [diff] [blame] | 2364 | - Document the use of the SPELL environment variable. (DLR) |
David Lawrence Ramsey | 71d0a1f | 2004-05-08 00:06:15 +0000 | [diff] [blame] | 2365 | - nanorc.sample: |
| 2366 | - Add missing mouse entry, and update the nanorc sample regexes |
| 2367 | to account for the backupdir and mouse options. (DLR) |
David Lawrence Ramsey | c7acf69 | 2004-05-22 20:15:20 +0000 | [diff] [blame] | 2368 | - Add smarthome description. (DLR) |
David Lawrence Ramsey | 483ea32 | 2004-05-29 16:25:30 +0000 | [diff] [blame] | 2369 | - Document the whitespace option. (DLR, adapted from |
| 2370 | documentation by Mike Frysinger) |
David Lawrence Ramsey | 9830d75 | 2004-05-13 17:19:54 +0000 | [diff] [blame] | 2371 | - README.CVS: |
| 2372 | - Increase the minimum required autoconf version to 2.54, and |
| 2373 | change the recommended automake version 1.7 to the minimum |
| 2374 | required automake version. Note that autoconf 2.54 will |
| 2375 | technically also work with automake 1.6c, but that is a CVS |
| 2376 | version as opposed to a stable release version, and automake |
| 2377 | 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] | 2378 | - TODO: |
| 2379 | - Added entry for justifying the entire file at once, since Pico |
| 2380 | can do it, and with "[DONE]" since it's already been |
| 2381 | implemented. (DLR) |
David Lawrence Ramsey | befb25a | 2004-03-31 18:53:07 +0000 | [diff] [blame] | 2382 | |
David Lawrence Ramsey | f70f0cf | 2004-03-31 18:42:52 +0000 | [diff] [blame] | 2383 | GNU nano 1.3.2 - 2004.03.31 |
David Lawrence Ramsey | 760a2dc | 2004-01-14 06:38:00 +0000 | [diff] [blame] | 2384 | - General: |
| 2385 | - Change instances in the code that refresh the entire edit |
| 2386 | window when color support is enabled (in order to properly |
| 2387 | handle multi-line color regexes) to only do so when |
| 2388 | it's necessary, i.e, when COLOR_SYNTAX is set. (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 2389 | - Minor cosmetic tweaks to the code involving direction keys. |
| 2390 | NANO_UP_KEY and NANO_DOWN_KEY are now NANO_PREVLINE_KEY and |
| 2391 | NANO_NEXTLINE_KEY, and the help messages for them have been |
| 2392 | changed accordingly. Also remove extraneous references to |
| 2393 | NANO_DOWN_KEY in the search history shortcut entries. (DLR) |
David Lawrence Ramsey | c91696e | 2004-01-29 04:16:23 +0000 | [diff] [blame] | 2394 | - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the |
| 2395 | shortcut list, and tweak the unjustify routine to use it. |
David Lawrence Ramsey | d7f5ad9 | 2004-03-04 19:30:53 +0000 | [diff] [blame] | 2396 | Also add NANO_FIRSTLINE_FKEY and NANO_LASTLINE_FKEY, and tweak |
| 2397 | the statusbar input routines to handle them and NANO_HELP_FKEY |
| 2398 | properly. (DLR) |
David Lawrence Ramsey | 369732f | 2004-02-16 20:32:40 +0000 | [diff] [blame] | 2399 | - Block SIGWINCH after setting up its handler, and only unblock |
| 2400 | and handle it when we're in a stable state, i.e, when we're |
| 2401 | waiting for input from the user. New function |
| 2402 | allow_pending_sigwinch(); changes to signal_init(), |
| 2403 | get_kbinput(), and get_verbatim_kbinput(). (DLR) |
David Lawrence Ramsey | 281e056 | 2004-02-27 18:54:04 +0000 | [diff] [blame] | 2404 | - Decouple the paragraph searching code and the justifying code. |
| 2405 | Removed function do_para_operation(); new function |
| 2406 | do_para_search(); changes to do_justify(). (DLR) |
David Lawrence Ramsey | 04e42a6 | 2004-02-28 16:24:31 +0000 | [diff] [blame] | 2407 | - Add -E/--backupdir option. When used with -B/--backup, backup |
| 2408 | files will be saved in the specified directory with their |
| 2409 | canonical pathnames encoded in their names (all '/'s replaced |
| 2410 | with '!'s). Changes to write_file(). (Martin Ehmsen) DLR: |
| 2411 | Add function init_backup_dir() to handle relative paths |
| 2412 | correctly, use get_full_path() to get the canonical pathname, |
| 2413 | 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] | 2414 | - Port to the Tandem NonStop Kernel (nsr-tandem-nsk). (Tom |
| 2415 | Bates; minor tweaks by DLR) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 2416 | - Change some instances of boolean 0 and 1 to TRUE and FALSE. |
| 2417 | (David Benbennick) |
| 2418 | - Fix memory corruption problem occurring when answer is used as |
| 2419 | the value of def; if the realloc() of answer leads to its |
| 2420 | pointing to a different memory block, there will be a segfault |
David Lawrence Ramsey | 7947544 | 2004-03-19 20:47:57 +0000 | [diff] [blame] | 2421 | when the value of def is copied into it via strcpy(). |
David Lawrence Ramsey | b882340 | 2004-04-27 21:06:11 +0000 | [diff] [blame] | 2422 | (bort@alltel.net, Christian Weisgerber, David Benbennick, and |
David Lawrence Ramsey | 7947544 | 2004-03-19 20:47:57 +0000 | [diff] [blame] | 2423 | DLR) |
David Lawrence Ramsey | b977515 | 2004-03-19 02:15:42 +0000 | [diff] [blame] | 2424 | - Remove the last editbot references, to avoid any potential |
| 2425 | segfaults related to them. Also remove fix_editbot(), as it's |
| 2426 | no longer needed. (David Benbennick) |
David Lawrence Ramsey | 1576d53 | 2004-03-19 21:46:34 +0000 | [diff] [blame] | 2427 | - Rename several variables to make their use clearer and to |
| 2428 | avoid conflicts. (DLR) |
David Lawrence Ramsey | ce991bb | 2004-03-29 18:36:39 +0000 | [diff] [blame] | 2429 | - Set the input mode before turning the keypad on. (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 2430 | - cut.c: |
| 2431 | add_to_cutbuffer() |
| 2432 | - Add parameter allow_concat to determine whether we're allowed |
| 2433 | to concatenate strings in the cutbuffer. (DLR) |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 2434 | - files.c: |
David Lawrence Ramsey | da35251 | 2004-03-05 20:04:44 +0000 | [diff] [blame] | 2435 | do_insertfile() |
| 2436 | - Wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef. |
| 2437 | (DLR) |
David Lawrence Ramsey | c6908f2 | 2004-03-11 02:20:25 +0000 | [diff] [blame] | 2438 | - Save the already-typed answer when switching from "Insert |
| 2439 | File" to "Execute Command" mode via Ctrl-X, just in case we |
| 2440 | started typing a command before switching. (DLR) |
David Lawrence Ramsey | cb34a67 | 2004-02-06 21:20:05 +0000 | [diff] [blame] | 2441 | add_open_files() |
| 2442 | - Make the saving of marked status in open_files->file_flags |
| 2443 | work properly again; a tweak to the ISSET() macro in 1.3.0 |
| 2444 | to make it only return 0 or 1 broke it. (DLR) |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 2445 | write_marked() |
| 2446 | - New function used to write the current marked selection to a |
| 2447 | file, split out from do_writeout(). (DLR) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 2448 | do_writeout() |
| 2449 | - Tweak for efficiency. (David Benbennick) DLR: Modify to have |
| 2450 | the current answer preserved between toggles again. |
David Lawrence Ramsey | 3af54d3 | 2004-02-25 04:43:27 +0000 | [diff] [blame] | 2451 | filestat() |
| 2452 | - Removed, as it is only called in one place and is |
| 2453 | redundant. (DLR) |
| 2454 | do_browser() |
| 2455 | - Replace the filestat() call with an equivalent stat() call. |
| 2456 | (DLR) |
David Lawrence Ramsey | 00c2054 | 2004-02-01 06:27:59 +0000 | [diff] [blame] | 2457 | - global.c: |
| 2458 | shortcut_init() |
| 2459 | - 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] | 2460 | - Set the associated function for unjustify to 0 instead of |
| 2461 | do_uncut_text(), since it's currently unused. (DLR) |
David Lawrence Ramsey | c53a92d | 2004-01-12 03:28:06 +0000 | [diff] [blame] | 2462 | - nano.c: |
David Lawrence Ramsey | a7c9364 | 2004-02-25 03:19:29 +0000 | [diff] [blame] | 2463 | usage() |
| 2464 | - Clarify the description for -T/--tabsize a bit. (DLR) |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 2465 | do_verbatim_input() |
| 2466 | - Remove the now-unneeded code to disable XON, XOFF, and |
| 2467 | suspend, since we now go into raw mode in |
| 2468 | get_verbatim_kbinput() and bypass them. (DLR) |
David Lawrence Ramsey | bf3c93e | 2004-03-13 19:42:58 +0000 | [diff] [blame] | 2469 | do_next_word() |
| 2470 | - Simplify and remove references to editbot so as to avoid a |
| 2471 | segfault. (David Benbennick) |
David Lawrence Ramsey | b6aa428 | 2004-03-14 01:42:17 +0000 | [diff] [blame] | 2472 | do_prev_word() |
| 2473 | - Simplify and remove references to edittop. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 2474 | do_int_speller(), do_alt_speller(), do_spell() |
David Lawrence Ramsey | 35961c4 | 2004-01-23 19:34:03 +0000 | [diff] [blame] | 2475 | - Modify to write only the current selection from a file to the |
| 2476 | temporary file used for spell checking when the mark is on, |
| 2477 | and add a few miscellaneous cosmetic cleanups. (DLR) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 2478 | do_int_spell_fix() |
| 2479 | - Store the value of current_x in a size_t instead of an int, |
| 2480 | and add a few minor efficiency tweaks. (David Benbennick) |
| 2481 | - Remove comment explaining why findnextstr() is called with |
| 2482 | bracket_mode set to TRUE even though we aren't doing a bracket |
| 2483 | search, since after the above efficiency tweaks, it's now more |
| 2484 | accurately called can_display_wrap. (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 2485 | indent_length() |
| 2486 | - Remove unneeded #ifdef. (David Benbennick) |
| 2487 | do_justify() |
| 2488 | - Remove references to the now-unneeded JUSTIFY_MODE flag. (DLR) |
David Lawrence Ramsey | 2897d2b | 2004-01-26 20:56:20 +0000 | [diff] [blame] | 2489 | signal_init() |
| 2490 | - Trap SIGQUIT in addition to turning it off via termios in |
| 2491 | main(). This is consistent with SIGINT, which we trap here |
| 2492 | and turn off via termios in main(), as well as with the |
| 2493 | associated comment. (DLR) |
David Lawrence Ramsey | 273d2ce | 2004-01-30 04:20:28 +0000 | [diff] [blame] | 2494 | handle_sigwinch() |
David Lawrence Ramsey | 5380944 | 2004-01-30 04:29:52 +0000 | [diff] [blame] | 2495 | - Set keypad() to TRUE and switch to cbreak mode just before |
| 2496 | calling siglongjmp(), in case we resized during verbatim |
| 2497 | input. (DLR) |
David Lawrence Ramsey | c53a92d | 2004-01-12 03:28:06 +0000 | [diff] [blame] | 2498 | main() |
| 2499 | - Move the call to raw() on systems that don't define |
| 2500 | _POSIX_VDISABLE outside the main input/output loop, as it |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 2501 | doesn't need to be called every time through the loop. Call it |
| 2502 | instead of cbreak() on such systems, as it overrides cbreak() |
| 2503 | anyway. (DLR) |
David Lawrence Ramsey | 369732f | 2004-02-16 20:32:40 +0000 | [diff] [blame] | 2504 | - Add more descriptive comments explaining the termios and |
| 2505 | curses setup routines, and turn the keypad on before setting |
| 2506 | the input mode. (DLR) |
David Lawrence Ramsey | aca5d04 | 2004-03-19 01:35:57 +0000 | [diff] [blame] | 2507 | - Remove stray HAVE_GETOPT_LONG #ifdefs. (DLR) |
David Lawrence Ramsey | ce991bb | 2004-03-29 18:36:39 +0000 | [diff] [blame] | 2508 | - Don't call keypad() before initializing the windows it needs |
| 2509 | via window_init(). |
David Lawrence Ramsey | 24ae56c | 2004-02-27 03:06:28 +0000 | [diff] [blame] | 2510 | - nano.h: |
| 2511 | - Move the NANO_H include guard up before the first #include. |
| 2512 | (DLR) |
David Lawrence Ramsey | 44e7f82 | 2004-03-30 04:17:10 +0000 | [diff] [blame] | 2513 | - Remove the now-unneeded JUSTIFY_MODE flag. (DLR) |
David Lawrence Ramsey | 41151ac | 2004-01-15 05:47:03 +0000 | [diff] [blame] | 2514 | - search.c: |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 2515 | regexp_cleanup() |
| 2516 | - Only do anything if REGEXP_COMPILED is set. (David Benbennick) |
| 2517 | search_abort() |
| 2518 | - Only test if the mark is set when NANO_SMALL isn't defined. |
| 2519 | (David Benbennick) |
| 2520 | search_init() |
| 2521 | - Add some more comments and comment tweaks, don't indicate that |
| 2522 | the search has been canceled when we enter a blank string in |
| 2523 | replace mode, only call regexp_init() when USE_REGEXP is set, |
| 2524 | and return -1 instead of -3 since a canceled search and a |
| 2525 | canceled replace should be mostly equivalent. (David |
| 2526 | Benbennick) DLR: Tweak to use the old behavior if we try to |
| 2527 | search for invalid regexes. |
| 2528 | findnextstr() |
| 2529 | - Refactor to use a loop invariant, and tweak for greater |
| 2530 | efficiency and simplicity. Also modify so that all searches |
| 2531 | start one character after (or before, if we're doing a |
| 2532 | backwards search) the current one, as opposed to all searches |
| 2533 | except for regex searches for "^" and the like, for |
| 2534 | consistency with other searches. (David Benbennick) |
| 2535 | do_search() |
| 2536 | - Handle search_init()'s no longer returning -3 above. (David |
| 2537 | Benbennick) |
| 2538 | - Port the code from do_replace_loop() to skip the current line |
| 2539 | if we're searching for a regex with "^" and/or "$" in it and |
| 2540 | end up on the same line to this function. This fixes a |
| 2541 | problem where doing a forward search for "^" on a file with |
| 2542 | more than one line would erroneously stop at the magicline and |
| 2543 | indicate that that was the only occurrence. (DLR) |
| 2544 | do_research() |
| 2545 | - Port David Benbennick's efficiency tweaks and the |
| 2546 | aforementioned code ported from do_replace_loop() to this |
| 2547 | function. (DLR) |
| 2548 | replace_regexp() |
| 2549 | - Completely refactor for increased efficiency. (David |
| 2550 | Benbennick) |
| 2551 | replace_line() |
| 2552 | - Use a char* parameter for the replacement string instead of |
| 2553 | last_search, and add minor efficiency tweaks. (David |
| 2554 | Benbennick) |
David Lawrence Ramsey | 41151ac | 2004-01-15 05:47:03 +0000 | [diff] [blame] | 2555 | do_replace_loop() |
| 2556 | - Fix segfault when doing a regex replace of a string that |
| 2557 | matches inside a line (e.g. replace the "b" in "abc" with |
| 2558 | anything). (David Benbennick) |
David Lawrence Ramsey | 1122c85 | 2004-05-13 17:46:57 +0000 | [diff] [blame] | 2559 | - If the mark is on at the beginning of the function, turn it |
| 2560 | off and turn it back on just before returning. Also overhaul |
| 2561 | 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] | 2562 | invariant, to not need to take an int* parameter, and store |
| 2563 | the beginning x-coordinate in a size_t instead of an int. |
| 2564 | (David Benbennick) |
| 2565 | do_replace() |
| 2566 | - Handle search_init()'s no longer returning -3 above, and add |
| 2567 | efficiency tweaks. (David Benbennick) DLR: Tweak to follow |
| 2568 | the old behavior of adding non-blank strings entered at the |
| 2569 | "Replace: " prompt to the search history. (DLR) |
David Lawrence Ramsey | c6908f2 | 2004-03-11 02:20:25 +0000 | [diff] [blame] | 2570 | do_gotoline() |
| 2571 | - Simplify the edit_update() call depending on the value of |
| 2572 | save_pos. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 2573 | do_bracket() |
| 2574 | - Add efficiency tweaks. (David Benbennick) DLR: Remove |
| 2575 | reliance on the hardcoded bracket string length; instead, only |
| 2576 | require that the bracket string length be even. |
| 2577 | - utils.c: |
| 2578 | regexec_safe() |
| 2579 | - Wrap in HAVE_REGEX_H #ifdefs. (DLR) |
| 2580 | regexp_bol_or_eol() |
| 2581 | - New function used to check if a regex contains "^" and/or "$", |
| 2582 | assuming that the regex would be found if the REG_NOT(BOL|EOL) |
| 2583 | flags aren't used in the regexec() call; it replaces the |
| 2584 | direct regexec()s used before. (DLR) |
| 2585 | strstrwrapper() |
| 2586 | - Refactor for increased efficiency, and eliminate the need for |
| 2587 | the line_pos parameter. (David Benbennick) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 2588 | mallocstrcpy() |
| 2589 | - Tweak so that when src is "", "" is allocated and returned |
| 2590 | instead of NULL. (David Benbennick) |
David Lawrence Ramsey | e97c8d5 | 2004-01-14 19:26:29 +0000 | [diff] [blame] | 2591 | - winio.c: |
David Lawrence Ramsey | 58f6d83 | 2004-01-27 07:12:47 +0000 | [diff] [blame] | 2592 | get_verbatim_kbinput() |
David Lawrence Ramsey | d03216a | 2004-01-28 18:21:21 +0000 | [diff] [blame] | 2593 | - Set keypad() to FALSE and switch to raw mode while reading |
David Lawrence Ramsey | 273d2ce | 2004-01-30 04:20:28 +0000 | [diff] [blame] | 2594 | input, and set it back to TRUE and go back into cbreak mode |
| 2595 | mode afterwards. (Note that if _POSIX_VDISABLE isn't defined, |
| 2596 | we don't need to change to or from raw mode since we're |
| 2597 | already in it exclusively.) This ensures that we don't end up |
| 2598 | reading in extended keypad values that are outside the ASCII |
| 2599 | range or having to deal with interrupt-generating key values. |
| 2600 | Also, with keypad() set to TRUE, xterm generates KEY_BACKSPACE |
| 2601 | when the user hits Ctrl-H, which, when cut down to ASCII |
| 2602 | range, ends up being Ctrl-G, which can be confusing. (DLR) |
David Lawrence Ramsey | ee383db | 2004-02-06 03:07:10 +0000 | [diff] [blame] | 2603 | - For consistency with get_kbinput(), use an int* to store and |
| 2604 | return the input instead of a char*, and tweak the functions |
| 2605 | that call it to handle this. (DLR) |
David Lawrence Ramsey | 2506136 | 2004-01-16 19:12:46 +0000 | [diff] [blame] | 2606 | get_accepted_kbinput() |
| 2607 | - Don't use "kbinput = wgetch(win)" as a switch value. (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 2608 | get_escape_seq_kbinput() |
| 2609 | - Add support for the escape sequences for F1-F14 whenever |
| 2610 | possible (i.e, whenever a conflict doesn't occur), some |
| 2611 | additional comments, and a few cosmetic cleanups. (DLR) |
David Lawrence Ramsey | ee383db | 2004-02-06 03:07:10 +0000 | [diff] [blame] | 2612 | - Use switch statements instead of strncmp() to read in the long |
| 2613 | xterm sequences for Ctrl-[arrow key] and Shift-[arrow key]. |
| 2614 | (DLR) |
David Lawrence Ramsey | c2c5a51 | 2004-01-23 19:26:17 +0000 | [diff] [blame] | 2615 | get_escape_seq_abcd() |
| 2616 | - A resurrected version of the old abcd() function, readded in |
| 2617 | order to simplify get_escape_seq_kbinput(). (DLR) |
David Lawrence Ramsey | 0b047c5 | 2004-03-29 23:09:08 +0000 | [diff] [blame] | 2618 | get_mouseinput() |
David Lawrence Ramsey | 1576d53 | 2004-03-19 21:46:34 +0000 | [diff] [blame] | 2619 | - Interpret shortcut key values slightly more stringently when |
| 2620 | ungetch()ing them. (DLR) |
David Lawrence Ramsey | 0b047c5 | 2004-03-29 23:09:08 +0000 | [diff] [blame] | 2621 | strlenpt() |
| 2622 | - Properly cast the second parameter of the strnlenpt() call to |
| 2623 | size_t. (DLR) |
David Lawrence Ramsey | 66081d4 | 2004-01-22 07:25:31 +0000 | [diff] [blame] | 2624 | get_page_start() |
| 2625 | - For consistency, tweak so that scrolling always occurs when we |
| 2626 | try to move onto the "$" at the end of the line, as opposed to |
| 2627 | (a) when we move onto the "$" at the end of the line on the |
| 2628 | first page and (b) when we move onto the character just before |
| 2629 | the "$" on subsequent pages. (DLR) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 2630 | reset_cursor() |
| 2631 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 1044d74 | 2004-02-24 20:41:39 +0000 | [diff] [blame] | 2632 | edit_refresh() |
| 2633 | - Tweak for efficiency. (David Benbennick) |
David Lawrence Ramsey | 6aec4b8 | 2004-03-15 20:26:30 +0000 | [diff] [blame] | 2634 | statusq() |
| 2635 | - Rename "tabs" to "allowtabs". (David Benbennick) |
David Lawrence Ramsey | e97c8d5 | 2004-01-14 19:26:29 +0000 | [diff] [blame] | 2636 | do_credits() |
| 2637 | - Use nanosleep() instead of usleep(). The latter is only |
| 2638 | standard under BSD, whereas the former is POSIX compliant. |
David Lawrence Ramsey | f5300af | 2004-02-24 20:48:12 +0000 | [diff] [blame] | 2639 | Accordingly, only include time.h if we use this function, i.e, |
| 2640 | if NANO_EXTRA is defined. (DLR) |
David Lawrence Ramsey | fdece46 | 2004-01-19 18:15:03 +0000 | [diff] [blame] | 2641 | - Add explanatory comment. (DLR) |
David Lawrence Ramsey | 35557c5 | 2004-03-07 15:14:56 +0000 | [diff] [blame] | 2642 | - configure.ac: |
| 2643 | - Change instances of "int main ()" to "int main(void)". (DLR) |
David Lawrence Ramsey | be66a6b | 2004-01-30 21:31:57 +0000 | [diff] [blame] | 2644 | - faq.html: |
| 2645 | - Fixed inaccuracy: multibuffer mode was first in nano 1.1.0, |
| 2646 | not 1.1.12. (DLR) |
David Lawrence Ramsey | 475a2a7 | 2004-02-25 03:58:46 +0000 | [diff] [blame] | 2647 | - nano.1, nanorc.5, nano.texi |
| 2648 | - Clarify the description for -T/--tabsize a bit. (DLR) |
David Lawrence Ramsey | 04e42a6 | 2004-02-28 16:24:31 +0000 | [diff] [blame] | 2649 | - Add -E/--backupdir description. (Martin Ehmsen; minor cosmetic |
| 2650 | fixes by DLR) |
| 2651 | - nanorc.sample: |
| 2652 | - Add backupdir description. (Martin Ehmsen; minor cosmetic |
| 2653 | fixes by DLR) |
David Lawrence Ramsey | f0b3009 | 2004-01-10 06:02:05 +0000 | [diff] [blame] | 2654 | - README: |
| 2655 | - Reformat to 72 characters per line, fix wording in one spot, |
David Lawrence Ramsey | ce364e2 | 2004-03-03 01:25:46 +0000 | [diff] [blame] | 2656 | and fix spacing and capitalization in several spots. (DLR) |
David Lawrence Ramsey | 1eadebe | 2004-01-25 21:36:38 +0000 | [diff] [blame] | 2657 | - NEWS: |
| 2658 | - Capitalization fix. (DLR) |
David Lawrence Ramsey | 5ae684f | 2004-03-04 23:48:26 +0000 | [diff] [blame] | 2659 | - TODO: |
| 2660 | - Clarify the paragraph searching item, and add item for |
| 2661 | filename searches in the file browser. (DLR) |
David Lawrence Ramsey | 606dfda | 2004-01-09 23:26:54 +0000 | [diff] [blame] | 2662 | |
David Lawrence Ramsey | fa1497b | 2004-01-09 23:22:02 +0000 | [diff] [blame] | 2663 | GNU nano 1.3.1 - 2004.01.09 |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 2664 | - General: |
| 2665 | - Minor overhaul and abstraction of the lowest level of mouse |
| 2666 | input, mostly adapted from the code in do_mouse() that handles |
| 2667 | clicking on the shortcut list. New function do_mouseinput(); |
| 2668 | changes to do_mouse(). (DLR) David Benbennick: Add a few |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2669 | efficiency/extensibility tweaks. |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 2670 | - Modify the shortcut structure so that instead of having two |
| 2671 | miscellaneous key values (misc1 and misc2), there is one key |
| 2672 | value reserved for function keys (func_key) and one |
| 2673 | miscellaneous key value (misc), and tweak the |
| 2674 | shortcut-handling code to deal with this. These changes allow |
| 2675 | NANO_OPEN(PREV|NEXT)_ALTKEY to work properly when added to the |
| 2676 | shortcut entries for NANO_OPEN(PREV|NEXT)_KEY. Also remove |
David Lawrence Ramsey | d291460 | 2003-11-30 02:22:22 +0000 | [diff] [blame] | 2677 | the values in the shortcut list and elsewhere that were made |
| 2678 | redundant by the low-level input overhaul, use toupper() |
| 2679 | instead of subtracting 32 from values for greater code |
| 2680 | readability, and eliminate use of adding 32 to values when |
| 2681 | testing for toggles, as get_kbinput_accepted() converts toggle |
| 2682 | values to lowercase before returning them. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2683 | - Remove the workarounds for missing KEY_UP and KEY_DOWN, as |
| 2684 | they appear to be holdovers of the old way of denoting the |
| 2685 | search history shortcuts; if they aren't defined, KEY_LEFT and |
| 2686 | KEY_RIGHT probably shouldn't work either, and all four appear |
| 2687 | to be standard keys in termcap/terminfo in any case. Add new |
| 2688 | special sentinel key values NANO_NO_KEY (for no shortcut key) |
| 2689 | and NANO_HISTORY_KEY (for search history keys, both Up and |
| 2690 | Down), modify the shortcut list to use them, and modify the |
| 2691 | shortcut display routines to handle them. Also modify the |
| 2692 | shortcut list code to not treat non-control character values |
| 2693 | of val as Meta-sequences, and fix dependencies on that |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2694 | behavior. Also rename several variables: "alt" -> "meta", |
| 2695 | "altval" -> "metaval". (DLR) |
David Lawrence Ramsey | a593f53 | 2003-11-28 19:47:42 +0000 | [diff] [blame] | 2696 | - Hook up the verbatim input functions so that verbatim input |
| 2697 | can be used in the edit window. New function |
| 2698 | do_verbatim_input(); changes to do_char(). (DLR) Additional |
| 2699 | minor tweaks to do_char() by David Benbennick. |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2700 | - Clarify the description of the --rebinddelete option. (DLR) |
David Lawrence Ramsey | 6481c3f | 2004-01-09 23:06:54 +0000 | [diff] [blame] | 2701 | - Miscellaneous comment tweaks, and copyright year updates in |
| 2702 | the comments and in do_credits(). (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2703 | - cut.c: |
| 2704 | - Overhaul to increase efficiency and add various cleanups. |
| 2705 | Changes to add_to_cutbuffer(), cut_marked_segment(), and |
| 2706 | do_uncut_text(). (David Benbennick) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 2707 | - files.c: |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2708 | check_operating_dir() |
| 2709 | - Add an assert to ensure that full_operatingdir isn't NULL, |
| 2710 | a fix for reporting nonexistent (incomplete) directory names |
| 2711 | as being outside the operating directory when tab completion |
| 2712 | is being used, and cosmetic cleanups. (David Benbennick) |
| 2713 | copy_file() |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 2714 | - 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] | 2715 | do_writeout(). (David Benbennick) |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 2716 | write_file() |
| 2717 | - Completely overhauled to properly ignore appending/prepending |
| 2718 | to symlinks when NOFOLLOW_SYMLINKS is defined, to properly |
| 2719 | support writing a selection to a file under the changed |
| 2720 | cutting code, to have more concise error messages, to add |
| 2721 | various cleanups, and so on. (David Benbennick) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 2722 | do_writeout() |
David Lawrence Ramsey | bc503c8 | 2003-11-19 23:59:14 +0000 | [diff] [blame] | 2723 | - Prompt the user if we're trying to save an existing file (and |
| 2724 | not just a selection of it) under a different name. (DLR; |
| 2725 | suggested by Jean-Philippe Guérard) |
David Lawrence Ramsey | 3e3fab5 | 2004-01-15 05:12:41 +0000 | [diff] [blame] | 2726 | - Overhaul the code used to write a selection of a file to |
| 2727 | temporarily set fileage and filebot to the top and bottom of |
| 2728 | the selection and then call write_file(), instead of following |
| 2729 | the old hackish behavior with cut_marked_segment() (which |
| 2730 | won't work after the cutting code changes anyway). (David |
David Lawrence Ramsey | 70bd6e0 | 2004-01-15 16:08:42 +0000 | [diff] [blame] | 2731 | Benbennick) DLR: Tweak to not add an extra blank line to the |
| 2732 | end of the written selection if the cursor is at the beginning |
| 2733 | of the last line of the selection. |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2734 | open_prevfile(), open_nextfile() |
| 2735 | - For consistency with the rest of the multibuffer code, change |
| 2736 | "No more open files" to "No more open file buffers". (DLR) |
| 2737 | do_browser() |
| 2738 | - Allow '?' to open the help browser, and readd the ability of |
| 2739 | 'G'/'g' to open the "Go to Directory" prompt (which was |
| 2740 | erroneously removed before), for compatibility with Pico. |
| 2741 | (DLR) |
David Lawrence Ramsey | 8fa1976 | 2003-11-03 00:13:21 +0000 | [diff] [blame] | 2742 | - global.c: |
| 2743 | shortcut_init() |
| 2744 | - Allow WHEREIS_NEXT_KEY to be used in view mode. (DLR) |
David Lawrence Ramsey | 3255929 | 2003-12-28 03:56:04 +0000 | [diff] [blame] | 2745 | - nano.c: |
| 2746 | do_int_spell_fix() |
| 2747 | - Add comment explaining why findnextstr() is called with |
| 2748 | bracket_mode set to TRUE even though we aren't doing a bracket |
| 2749 | search. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2750 | do_para_operation() |
| 2751 | - Convert to use the new low-level input functions. (DLR) |
| 2752 | main() |
| 2753 | - Remove unused variable option_index. (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2754 | - Fix omission of NANO_NO_KEY in the shortcut list scanning |
| 2755 | code. (DLR) |
David Lawrence Ramsey | f8ddf31 | 2004-01-09 22:38:09 +0000 | [diff] [blame] | 2756 | - Remove now-unnecessary initialization of kbinput. (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2757 | - nano.h: |
| 2758 | - Comment additions and cosmetic tweaks. (DLR) |
David Lawrence Ramsey | 7127857 | 2003-10-31 17:58:44 +0000 | [diff] [blame] | 2759 | - search.c: |
David Lawrence Ramsey | 45cfbec | 2003-11-28 16:04:24 +0000 | [diff] [blame] | 2760 | findnextstr(), do_replace_loop() |
David Lawrence Ramsey | 18394ac | 2003-12-24 03:13:44 +0000 | [diff] [blame] | 2761 | - Fix potential infinite loops and other misbehavior when doing |
David Lawrence Ramsey | e190ff3 | 2004-01-03 21:42:25 +0000 | [diff] [blame] | 2762 | beginning-of-line or end-of-line regex replacements ("^", "$", |
| 2763 | and "^$"). Add a no_sameline parameter to findnextstr(), and |
| 2764 | set it in the calls in do_replace_loop() when such regexes are |
| 2765 | found, so that such regexes are only found once per line. |
| 2766 | Also change length_change from a long to an int; size_t is |
| 2767 | unsuitable due to its being unsigned. (DLR; found by Mike |
| 2768 | Frysinger and DLR) David Benbennick: Add a few minor cleanups |
| 2769 | to do_replace_loop(). |
David Lawrence Ramsey | 7776ef9 | 2003-11-04 18:32:35 +0000 | [diff] [blame] | 2770 | - winio.c: |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2771 | get_kbinput(), get_accepted_kbinput() |
| 2772 | - Don't pass in the value of the REBIND_DELETE flag anymore. |
| 2773 | Instead, handle it directly inside the functions. (DLR) |
David Lawrence Ramsey | 7776ef9 | 2003-11-04 18:32:35 +0000 | [diff] [blame] | 2774 | get_accepted_kbinput() |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2775 | - Translate Ctrl-8 into NANO_DELETE_KEY (or NANO_BACKSPACE_KEY |
| 2776 | if REBIND_DELETE is set), since it apparently is generated |
| 2777 | sometimes even when keypad() is TRUE. (DLR) |
| 2778 | - Translate KEY_SLEFT into NANO_BACK_KEY and KEY_SRIGHT into |
| 2779 | NANO_FORWARD_KEY, since they are sometimes generated by |
| 2780 | Shift-Left and Shift-Right. (DLR) |
| 2781 | get_ascii_kbinput() |
| 2782 | - Tweak to make it slightly more readable. (DLR) |
| 2783 | get_verbatim_kbinput() |
| 2784 | - Modify to take an extra parameter indicating if we should |
| 2785 | interpret ASCII codes or not. (DLR) |
| 2786 | get_escape_seq_kbinput() |
| 2787 | - Expand to deal with more broken terminals that don't generate |
| 2788 | keypad values. Support the escape sequences for Insert, |
| 2789 | Delete, Home, End, PageUp, and PageDown, [arrow key], |
| 2790 | Ctrl-[arrow key], and Shift-[arrow key] when needed in the |
| 2791 | Linux console, the FreeBSD console, the Hurd console, xterm, |
| 2792 | rxvt, and Eterm. Also, use get_verbatim_kbinput(), with ASCII |
| 2793 | interpretation disabled, to read in the sequences. (DLR) |
| 2794 | get_skip_tilde_kbinput() |
| 2795 | - Removed, as it is unneeded due to the expansion of |
| 2796 | get_escape_seq_kbinput(). (DLR) |
| 2797 | get_mouseinput() |
| 2798 | - Modify to take an extra parameter indicating if we should |
| 2799 | ungetch() the key equivalents of shortcuts we click on or not. |
| 2800 | (DLR) |
David Lawrence Ramsey | 8213850 | 2003-12-24 08:03:54 +0000 | [diff] [blame] | 2801 | nanogetstr() |
| 2802 | - Properly interpret the Meta key value in misc if we hit it at |
| 2803 | the statusbar prompt. (DLR) |
David Lawrence Ramsey | f427694 | 2003-12-24 03:33:09 +0000 | [diff] [blame] | 2804 | do_yesno() |
| 2805 | - Add a few efficiency/extensibility tweaks. (David Benbennick) |
| 2806 | - Convert to use the new low-level input functions, and remove |
| 2807 | two last hardcoded widths left after the above tweaks. (DLR) |
David Lawrence Ramsey | 76c4b33 | 2003-12-24 08:17:54 +0000 | [diff] [blame] | 2808 | do_replace_highlight() |
| 2809 | - Display a highlighted space if the word length is zero, so |
| 2810 | that we can see zero-length regexes we're replacing. (DLR; |
| 2811 | suggested by Mike Frysinger) |
David Lawrence Ramsey | 4dca76f | 2003-11-20 00:15:52 +0000 | [diff] [blame] | 2812 | - configure.ac: |
| 2813 | - 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] | 2814 | - faq.html: |
| 2815 | - Add question explaining how verbatim input works, as well as a |
| 2816 | few minor fixes. (DLR) |
David Lawrence Ramsey | 9e45a47 | 2004-01-06 17:12:28 +0000 | [diff] [blame] | 2817 | - nano.1, nanorc.5: |
| 2818 | - Add nano version numbers (minus any "-cvs" suffixes). (DLR) |
David Lawrence Ramsey | 637f6e5 | 2003-11-04 18:34:44 +0000 | [diff] [blame] | 2819 | - nano.spec.in: |
| 2820 | - Update for the 1.3 branch of nano. (DLR) |
David Lawrence Ramsey | 9e45a47 | 2004-01-06 17:12:28 +0000 | [diff] [blame] | 2821 | - NEWS: |
| 2822 | - Reformat so all lines are limited to 72 columns, add a few |
| 2823 | typo fixes, and make a few minor cosmetic cleanups. (DLR) |
Jordi Mallach | a5d8e54 | 2003-11-06 10:47:44 +0000 | [diff] [blame] | 2824 | - THANKS: |
| 2825 | - Add Danilo Segan, for the Serbian translation. |
| 2826 | |
David Lawrence Ramsey | 133f7b1 | 2003-10-22 17:15:12 +0000 | [diff] [blame] | 2827 | GNU nano 1.3.0 - 2003.10.22 |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2828 | - General: |
| 2829 | - Complete overhaul and abstraction of the lowest level of |
| 2830 | keyboard input, mostly rewritten but incorporating a few bits |
| 2831 | from the old functions and adding support for Pico's Esc Esc |
| 2832 | [three-digit decimal ASCII code] input method. New functions |
| 2833 | get_kbinput(), get_verbatim_kbinput(), get_ignored_kbinput(), |
| 2834 | get_accepted_kbinput(), get_ascii_kbinput(), |
| 2835 | get_escape_seq_kbinput(), and get_skip_tilde_kbinput(). These |
| 2836 | should work properly on FreeBSD (due to code and input |
| 2837 | provided by Lee Nelson and Wouter van Hemel, respectively). |
| 2838 | (DLR) |
| 2839 | - The -K/--keypad command line/rcfile option has been removed, |
| 2840 | and keypad() is now always TRUE. keypad_on() in winio.c and |
| 2841 | the check for _use_keypad in configure.ac have both been |
| 2842 | removed. (DLR) |
| 2843 | - The -d/--rebinddelete command line/rcfile option, equivalent |
| 2844 | to Pico's -d, has been added. It is intended to work around |
| 2845 | the problem with Backspace/Delete confusion on some terminals, |
| 2846 | notably FreeBSD; if your Backspace key acts like Delete, this |
| 2847 | option will fix that. (DLR) |
David Lawrence Ramsey | a9cebd8 | 2003-08-17 03:31:57 +0000 | [diff] [blame] | 2848 | - Remove unneeded breaks at the ends of default: clauses. (DLR) |
David Lawrence Ramsey | e049706 | 2003-08-23 21:11:06 +0000 | [diff] [blame] | 2849 | - Add the ability to repeat the last search without prompting |
| 2850 | via Meta-W, and move the line wrapping toggle to Meta-L. New |
| 2851 | function do_research(). (Wouter van Hemel) |
David Lawrence Ramsey | 8faf305 | 2003-09-04 20:25:29 +0000 | [diff] [blame] | 2852 | - Added the ability to move to the beginning or end of the |
| 2853 | paragraph, which Pico has via ^W^W (previous paragraph) |
David Lawrence Ramsey | 4510834 | 2004-04-21 23:04:55 +0000 | [diff] [blame] | 2854 | and ^W^O (next paragraph). Changes to do_justify(); new |
| 2855 | functions do_para_operation(), do_para_begin(), and |
David Lawrence Ramsey | 8faf305 | 2003-09-04 20:25:29 +0000 | [diff] [blame] | 2856 | do_para_end(). Note that the last three functions are |
| 2857 | disabled if justification is disabled. (DLR) |
David Lawrence Ramsey | 417b03a | 2003-09-06 21:44:37 +0000 | [diff] [blame] | 2858 | - Make sure the "historylog" option isn't included at all if |
| 2859 | NANO_SMALL is defined. (DLR) |
Jordi Mallach | 3a42087 | 2003-10-19 23:30:48 +0000 | [diff] [blame] | 2860 | - Source reorganization: move code to src/, docs to doc/. |
| 2861 | (Jordi) |
Jordi Mallach | 298b975 | 2003-09-07 00:44:12 +0000 | [diff] [blame] | 2862 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | c97acfb | 2003-09-10 20:08:00 +0000 | [diff] [blame] | 2863 | - Since SAMELINEWRAP is only used in nano.c, make it a static |
| 2864 | variable in nano.c instead of a flag, and surround all |
David Lawrence Ramsey | 1356a0a | 2003-09-10 20:31:02 +0000 | [diff] [blame] | 2865 | wrap_reset() calls with DISABLE_WRAPPING #ifdefs. (DLR) |
| 2866 | - Change enum "topmidbotnone" to "topmidnone", as there's no |
| 2867 | BOTTOM option anymore. (DLR) |
David Lawrence Ramsey | 5ffbec5 | 2003-09-16 01:16:49 +0000 | [diff] [blame] | 2868 | - Split out the string-displaying routine from update_line() |
| 2869 | into a separate function; convert the edit window, statusbar |
| 2870 | display, and statusbar prompt to use it, so that they can all |
| 2871 | properly display control characters and tabs; free and NULL |
| 2872 | the backup search string in one place in the search code |
| 2873 | instead of several; and do some other minor refactoring of |
| 2874 | related display functions to simplify them. New functions |
| 2875 | mark_order() and display_string(); changes to actual_x(), |
David Lawrence Ramsey | 2dd7ed1 | 2003-09-29 05:15:24 +0000 | [diff] [blame] | 2876 | strnlenpt(), blank_bottombars(), blank_edit(), |
| 2877 | get_page_start(), edit_add(), update_line(), statusbar(), and |
| 2878 | do_replace_highlight(). (David Benbennick) DLR: Add minor |
| 2879 | cosmetic tweaks, add missing NANO_SMALL #ifdef around the text |
| 2880 | for a backwards search in the refactored code, and enclose |
| 2881 | dump_buffer() and dump_buffer_reverse() in one ENABLE_DEBUG |
| 2882 | #ifdef instead of two. |
David Lawrence Ramsey | 9eff746 | 2003-09-16 02:04:00 +0000 | [diff] [blame] | 2883 | - Convert memmove() function calls to charmove() macro calls, as |
| 2884 | the former all work on char*'s. (DLR) |
David Lawrence Ramsey | f5b256b | 2003-10-03 20:26:25 +0000 | [diff] [blame] | 2885 | - Miscellaneous #define cleanups: only include the prototype for |
| 2886 | and definition of wrap_at if wrapping and/or justification are |
| 2887 | enabled, remove duplicate wrap_at prototype, and define |
| 2888 | DISABLE_MOUSE if NCURSES_MOUSE_VERSION isn't defined in nano.h |
| 2889 | instead of all over the code. (DLR) |
Jordi Mallach | 3a42087 | 2003-10-19 23:30:48 +0000 | [diff] [blame] | 2890 | - Autogenerate the html versions of the manpages in the |
| 2891 | Makefile.am's in doc/man/, make sure that they're properly |
| 2892 | installed via "make dist", and make sure that "make distcheck" |
David Lawrence Ramsey | 13dfdb2 | 2003-10-22 15:37:13 +0000 | [diff] [blame] | 2893 | works too. Also be sure to set EXTRA_DIST properly. (Jordi, |
| 2894 | DLR and Jeff Bailey) |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2895 | - files.c: |
David Lawrence Ramsey | 7bf00de | 2003-09-23 04:25:05 +0000 | [diff] [blame] | 2896 | read_file() |
| 2897 | - After we've read in a file and possibly converted it from |
| 2898 | DOS/Mac format, set fileformat back to 0 to prevent erroneous |
| 2899 | conversion messages when we read other files in. (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2900 | do_browser() |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2901 | - Some of the Pico compatibility options in the file browser |
David Lawrence Ramsey | 1018761 | 2003-08-17 05:40:45 +0000 | [diff] [blame] | 2902 | that don't work properly for current Pico have been removed. |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2903 | Backspace, 'g', 'l', 'q', and 'u' are invalid. 'd' deletes |
| 2904 | the highlighted file, and 'r' renames the highlighted file; |
| 2905 | neither of these are implemented. (DLR) |
David Lawrence Ramsey | ba6fd42 | 2003-08-23 21:16:02 +0000 | [diff] [blame] | 2906 | - global.c: |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2907 | toggle_init() |
David Lawrence Ramsey | ba6fd42 | 2003-08-23 21:16:02 +0000 | [diff] [blame] | 2908 | - Change the message for the line wrapping toggle from "Auto |
| 2909 | wrap" to "Auto line wrap", to more clearly associate it with |
| 2910 | Meta-L. (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2911 | shortcut_init() |
David Lawrence Ramsey | cb7ee0e | 2003-08-31 17:08:59 +0000 | [diff] [blame] | 2912 | - Change multibuffer-enabled references to |
| 2913 | opening/closing/toggling the previous/next loaded file to |
| 2914 | toggling/switching to/closing the previous/next file buffer, |
| 2915 | for consistency with other references. (DLR) |
David Lawrence Ramsey | 2786366 | 2003-08-29 21:31:37 +0000 | [diff] [blame] | 2916 | - nano.c: |
| 2917 | window_init() |
| 2918 | - Set keypad() to TRUE regardless of whether PDCurses is being |
| 2919 | used, as Meta-X apparently turns it off even under ncurses. |
| 2920 | (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2921 | do_backspace() |
| 2922 | - Vastly simplify, and remove dependency on page_up(). (David |
| 2923 | Benbennick) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2924 | help_init() |
| 2925 | - Document the support for Esc Esc [character]'s being |
| 2926 | interpreted as Ctrl-[character], and the support for Pico's |
| 2927 | Esc Esc [three-digit decimal ASCII code] input method. (DLR) |
David Lawrence Ramsey | f03c78b | 2003-09-28 21:26:49 +0000 | [diff] [blame] | 2928 | do_mark() |
David Lawrence Ramsey | cb34a67 | 2004-02-06 21:20:05 +0000 | [diff] [blame] | 2929 | - Toggle MARK_ISSET at the beginning of the function instead of |
| 2930 | setting it in one place and unsetting it in another place. |
David Lawrence Ramsey | f03c78b | 2003-09-28 21:26:49 +0000 | [diff] [blame] | 2931 | (David Benbennick) |
David Lawrence Ramsey | 99bede3 | 2003-09-29 07:21:11 +0000 | [diff] [blame] | 2932 | do_suspend() |
| 2933 | - Use handle_hupterm() to handle SIGHUP and SIGTERM so we can |
| 2934 | properly deal with them while nano is suspended. (DLR; problem |
| 2935 | found by David Benbennick) |
David Lawrence Ramsey | f0b7dca | 2003-09-22 15:46:21 +0000 | [diff] [blame] | 2936 | abcd() |
| 2937 | - Removed, as it's unneeded due to the low-level input overhaul. |
| 2938 | (DLR) |
David Lawrence Ramsey | 4d7c260 | 2003-08-17 02:48:43 +0000 | [diff] [blame] | 2939 | - nano.h: |
David Lawrence Ramsey | e0a9f50 | 2003-09-07 05:32:24 +0000 | [diff] [blame] | 2940 | - Define KEY_RESIZE and KEY_SUSPEND as -1 when slang is used, as |
| 2941 | slang has no equivalent of either. When nano is compiled with |
| 2942 | slang support, resizing the window doesn't generate |
| 2943 | KEY_RESIZE, and pressing Ctrl-Z to suspend nano at the Linux |
| 2944 | console with keypad(TRUE) generates Ctrl-Z instead of |
| 2945 | KEY_SUSPEND, both unlike ncurses. (DLR) |
David Lawrence Ramsey | 2530725 | 2003-10-10 04:42:48 +0000 | [diff] [blame] | 2946 | - 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] | 2947 | 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] | 2948 | KEY_SUSPEND as -1 if it isn't defined, in case it isn't in |
| 2949 | more than just Slang. (DLR) |
David Lawrence Ramsey | f6cf4a7 | 2003-10-22 16:20:47 +0000 | [diff] [blame] | 2950 | - Define all potentially missing keys as different negative |
| 2951 | values (ERR is -1, so use -2, -3, etc.) so as to avoid having |
| 2952 | duplicate case values when keys are missing. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2953 | - move.c: |
| 2954 | - Remove unneeded inclusion of stdio.h, make various cleanups, |
| 2955 | and preserve the cursor's coordinates when paging up and down. |
| 2956 | (David Benbennick) DLR: Readd the ability to behave the old |
| 2957 | way while paging, make it so the new behavior is only used in |
| 2958 | smooth-scrolling mode, and modify page_down() to always go |
| 2959 | down a full page (even when there's less than one page of text |
| 2960 | left) for consistency. |
| 2961 | page_up() |
| 2962 | - Removed due to rewrite of movement functions. (David |
| 2963 | Benbennick) |
David Lawrence Ramsey | c97acfb | 2003-09-10 20:08:00 +0000 | [diff] [blame] | 2964 | - proto.h: |
| 2965 | - Surround the do_prev_word() and do_next_word() prototypes with |
| 2966 | NANO_SMALL #ifdefs, since the actual functions aren't included |
| 2967 | in tiny mode. (DLR) |
David Lawrence Ramsey | 3bd9628 | 2003-09-06 05:09:32 +0000 | [diff] [blame] | 2968 | - rcfile.c: |
| 2969 | parse_colors() |
| 2970 | - Generate an error if we try to use a bright background color |
| 2971 | in a nanorc file. (DLR; found by Brand Huntsman) |
| 2972 | - Make sure all rcfile error messages are capitalized, for |
| 2973 | consistency. (DLR) |
David Lawrence Ramsey | ec290f2 | 2003-08-30 19:05:40 +0000 | [diff] [blame] | 2974 | - winio.c: |
David Lawrence Ramsey | da8fd8f | 2003-09-16 01:22:31 +0000 | [diff] [blame] | 2975 | get_verbatim_kbinput() |
| 2976 | - Fix a silly memory corruption bug that would occur when trying |
| 2977 | to read a sequence of more than one key verbatim. (DLR) |
| 2978 | get_accepted_kbinput() |
| 2979 | Handle Ctrl-{ to Ctrl-~ correctly, and drop support for |
| 2980 | converting Esc ` to Esc Space, since making Meta-[key] |
| 2981 | correspond to Ctrl-[key] in all cases is inconsistent due to |
| 2982 | the different natures of Contol and Meta key sequences. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2983 | do_first_line() |
| 2984 | - Call edit_update() with TOP instead of CENTER; both do the |
| 2985 | same thing, but it works faster with TOP. (DLR) |
David Lawrence Ramsey | 7f47d42 | 2003-09-08 18:01:49 +0000 | [diff] [blame] | 2986 | nanogetstr() |
| 2987 | - Don't let the user type in ASCII 127 at the statusbar prompt. |
| 2988 | (DLR) |
David Lawrence Ramsey | ec290f2 | 2003-08-30 19:05:40 +0000 | [diff] [blame] | 2989 | titlebar() |
| 2990 | - Fix problem with the available space for a filename on the |
| 2991 | titlebar's being short by one. (DLR) |
David Lawrence Ramsey | 4dcd070 | 2003-10-03 04:20:28 +0000 | [diff] [blame] | 2992 | edit_add() |
| 2993 | - Fix problems with the marking highlight's being drawn |
| 2994 | improperly in some cases. (DLR) |
David Lawrence Ramsey | d91ab6e | 2003-09-07 23:57:24 +0000 | [diff] [blame] | 2995 | edit_update() |
| 2996 | - Tweak for efficiency and remove the fix_editbot() call. (David |
| 2997 | Benbennick) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 2998 | do_credits() |
| 2999 | - Update the copyright years to "1999-2003", to match those |
| 3000 | given in the rest of the code. (DLR) |
David Lawrence Ramsey | a3831ab | 2003-09-22 16:26:40 +0000 | [diff] [blame] | 3001 | - configure.ac: |
| 3002 | - Change instances of "GNU Nano" to "GNU nano" for consistency. |
| 3003 | (DLR) |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 3004 | - nano.1, nanorc.5, nano.texi: |
| 3005 | - Change all instances of $SYSCONFDIR to SYSCONFDIR, since |
| 3006 | SYSCONFDIR is set at compile time and can't be overridden by |
| 3007 | setting SYSCONFDIR in the environment. (David Benbennick) |
| 3008 | - Remove -K/--keypad, and document -d/--rebinddelete. (DLR) |
| 3009 | - Document the support for Esc Esc [character]'s being |
| 3010 | interpreted as Ctrl-[character], and the support for Pico's |
| 3011 | Esc Esc [three-digit decimal ASCII code] input method, if |
| 3012 | applicable. (DLR) |
Jordi Mallach | 298b975 | 2003-09-07 00:44:12 +0000 | [diff] [blame] | 3013 | - French translation by Jean-Philippe Guérard. |
David Lawrence Ramsey | aaad3af | 2003-08-31 16:44:10 +0000 | [diff] [blame] | 3014 | - nano.1.html, nanorc.5.html: |
| 3015 | - Regenerated. (DLR) |
| 3016 | - nanorc.sample: |
| 3017 | - Remove duplicate "historylog" entry, remove "keypad" entry, |
| 3018 | and add "rebinddelete" entry. (DLR) |
David Lawrence Ramsey | dc9c40a | 2003-09-07 23:54:57 +0000 | [diff] [blame] | 3019 | - Update and add comments to the regexes for nanorc files. |
| 3020 | (Brand Huntsman) |
David Lawrence Ramsey | 21cc550 | 2003-09-06 19:04:02 +0000 | [diff] [blame] | 3021 | - Fix an attempt at a bright background color in the sample Java |
| 3022 | source regexes. (DLR) |
| 3023 | - Since tabs are shown as groups of spaces, they are interpreted |
| 3024 | as such when parsed by color regexes. Accordingly, simplify |
| 3025 | regexes that handle both spaces and tabs to just handle |
| 3026 | spaces, as the results are the same. (DLR) |
David Lawrence Ramsey | 0c3d3c9 | 2005-07-02 22:12:27 +0000 | [diff] [blame] | 3027 | - AUTHORS: |
Chris Allegretta | f3fee5d | 2003-08-12 02:40:47 +0000 | [diff] [blame] | 3028 | - Updated to show 1.2/1.3 maintainers. |
| 3029 | |
Chris Allegretta | 6954f05 | 2003-08-12 02:34:03 +0000 | [diff] [blame] | 3030 | - 1.3 tree forks here |
| 3031 | |
Chris Allegretta | 3364214 | 2003-08-12 01:49:20 +0000 | [diff] [blame] | 3032 | GNU nano 1.2.2 - 2003.08.11 |
Jordi Mallach | 5b63eaf | 2003-06-11 10:17:20 +0000 | [diff] [blame] | 3033 | - General: |
| 3034 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 3035 | - Change uncast nrealloc()s assigned to char pointers/arrays to |
| 3036 | charealloc()s, and cast all other nrealloc()s and all |
| 3037 | nmalloc()s. (David Benbennick and DLR) |
Jordi Mallach | f9390af | 2003-08-05 19:31:12 +0000 | [diff] [blame] | 3038 | - Remove gettext marks from all debug messages. Good for developers, |
| 3039 | better for translators. (Jordi) |
| 3040 | - Add translator comments on strings that should be short, like in |
| 3041 | status bar strings, etc. (Jordi) |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 3042 | - utils.c: |
| 3043 | align() |
| 3044 | - Tweak to avoid a potential problem when strp is non-NULL but |
| 3045 | *strp is NULL. (David Benbennick) |
Chris Allegretta | 4f5335d | 2003-08-04 02:51:12 +0000 | [diff] [blame] | 3046 | nstricmp(), nstrnicmp() |
| 3047 | - Add these functions, equivalent to strcasecmp() and |
| 3048 | strncasecmp(), and convert nano to use them when strcasecmp() |
| 3049 | and/or strncasecmp() are unavailable. (DLR) |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 3050 | - winio.c: |
Chris Allegretta | 653d614 | 2003-08-04 02:12:03 +0000 | [diff] [blame] | 3051 | do_help() |
| 3052 | - Get rid of keypad_on() call for bottomwin, which should not be |
| 3053 | needed (DLR). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 3054 | nanogetstr() |
| 3055 | - Fix problem with search history where a temporary string |
| 3056 | added at the bottom of the history (but which was not in the |
| 3057 | history) would not be preserved after scrolling down to the |
| 3058 | blank bottom entry and then scrolling back up. (DLR) |
Chris Allegretta | c30fc24 | 2003-08-11 00:32:45 +0000 | [diff] [blame] | 3059 | - Fix problem where pressing down,up,down does not blank the |
| 3060 | search prompt but keeps the previous search (DLR). |
Chris Allegretta | 653d614 | 2003-08-04 02:12:03 +0000 | [diff] [blame] | 3061 | - Handle Alt-[-F and H (DLR, fixed home and end not working with |
| 3062 | -K in statusbar). |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 3063 | - configure.ac: |
| 3064 | - Change the program used to detect a broken regexec() function |
| 3065 | so that it works properly, using information found at |
| 3066 | http://sources.redhat.com/ml/libc-hacker/2001-06/msg00015.html. |
| 3067 | (DLR) |
| 3068 | - nanorc.sample: |
| 3069 | - Revised comment explaining the non-escaping of quotes to cover |
| 3070 | non-escaping of all shell-interpreted characters. (DLR) |
| 3071 | - Fixes to the descriptions and examples in the comments, and |
| 3072 | changes to some default values. (David Benbennick and DLR) |
| 3073 | - Add regexes for Perl syntax. (Richard Smith, tweaked for |
| 3074 | greater efficiency by David Benbennick) |
| 3075 | - Add regexes for Java source syntax. (David Benbennick) |
| 3076 | Regex for C++-style comments (colored the same way as C-style |
| 3077 | comments) added by DLR. |
Jordi Mallach | 2e6d0ca | 2003-04-24 18:23:56 +0000 | [diff] [blame] | 3078 | - THANKS: |
| 3079 | - Added Laurentiu Buzdugan, for Romanian. |
Jordi Mallach | 9e74ade | 2003-06-11 15:52:34 +0000 | [diff] [blame] | 3080 | - Added Geir Helland, for Norwegian Bokmål. |
David Lawrence Ramsey | 70047ee | 2003-06-14 20:41:34 +0000 | [diff] [blame] | 3081 | - TODO: |
| 3082 | - Move the items for nano 1.2 to the "Old Requests" section, |
| 3083 | and mark color syntax highlighting as done. (David Benbennick) |
David Lawrence Ramsey | 6d97d18 | 2003-07-02 14:20:11 +0000 | [diff] [blame] | 3084 | - faq.html: |
| 3085 | - Added question about nano's not showing color when it's |
| 3086 | compiled with color support. (DLR; suggested by Jordi) |
Jordi Mallach | d995e9a | 2003-06-11 16:38:35 +0000 | [diff] [blame] | 3087 | - nano.1, nanorc.5: |
Jordi Mallach | 5b63eaf | 2003-06-11 10:17:20 +0000 | [diff] [blame] | 3088 | - Formatting improvements by Jean-Philippe Guérard. |
David Lawrence Ramsey | b764eb6 | 2003-06-29 02:25:46 +0000 | [diff] [blame] | 3089 | - Minor fixes by DLR. |
| 3090 | - nano.1.html, nanorc.5.html: |
| 3091 | - Regenerated from nano.1 and nanorc.5. (DLR) |
Chris Allegretta | ffe575f | 2003-04-20 16:25:46 +0000 | [diff] [blame] | 3092 | |
Chris Allegretta | aa45931 | 2003-04-20 16:20:15 +0000 | [diff] [blame] | 3093 | GNU nano 1.2.1 - 2003.04.19 |
Jordi Mallach | 723399a | 2003-02-23 19:12:54 +0000 | [diff] [blame] | 3094 | - General: |
| 3095 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3096 | - Work around broken regexec() on some systems that segfaults |
David Lawrence Ramsey | 1a5c4c6 | 2004-09-07 00:48:49 +0000 | [diff] [blame] | 3097 | when passed an empty string. This is known to be in glibc |
| 3098 | 2.2.3. New function regexec_safe(). (David Benbennick) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3099 | - Fix various bugs with search string history logging: don't |
| 3100 | print a broken error message and freeze if ~/.nano_history is |
| 3101 | unreadable, actually show an error message in save_history() |
| 3102 | if ~/.nano_history is unwritable, and prevent ~/.nano_history |
| 3103 | from being completely overwritten by save_history() if it's |
| 3104 | unreadable but writable. (David Benbennick) |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 3105 | - Only unset KEEP_CUTBUFFER in main() when we do something other |
| 3106 | than cut text in the main input loop, instead of unsetting it |
| 3107 | all over the place (which, as written, didn't handle cases |
| 3108 | like a cut followed by M-Space properly). Also, instead of |
| 3109 | checking for keyhandled's not being set inside the for loops, |
| 3110 | do it in if blocks surrounding the for loops to increase |
| 3111 | efficiency. (David Benbennick) DLR: Also unset KEEP_CUTBUFFER |
| 3112 | if we hit a shortcut key other than the one for cutting text. |
| 3113 | - Make it so a marked cut immediately followed by an unmarked |
| 3114 | cut tacks the latter's text onto the end of the former's text |
| 3115 | instead of putting it on a new line, as Pico does. (DLR) |
| 3116 | - Convert instances of "(char *)nrealloc()" to the macro |
| 3117 | charealloc(), which does the same thing. (DLR) |
Chris Allegretta | 8151ba5 | 2003-04-19 19:34:05 +0000 | [diff] [blame] | 3118 | - Change justify_mode from a boolean int to a flag (DLR). |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 3119 | - cut.c: |
| 3120 | do_cut_text() |
| 3121 | - Tweak where KEEP_CUTBUFFER is set so that a marked cut |
| 3122 | immediately followed by an unmarked cut preserves the |
| 3123 | cutbuffer between the two. (David Benbennick) DLR: Also |
| 3124 | properly set KEEP_CUTBUFFER in tiny mode. |
| 3125 | do_uncut_text() |
| 3126 | - If we're about to uncut on the magicline, always make a new |
| 3127 | magicline in advance, as Pico does. (DLR) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3128 | - global.c: |
| 3129 | shortcut_init() |
| 3130 | - Simplify the #ifdef used to enable file insertion in view mode |
| 3131 | if multibuffer support has been compiled in. (DLR) |
| 3132 | - nano.c: |
| 3133 | justify_format() |
| 3134 | - If we shave spaces off the end of the line, make sure totsize |
| 3135 | is properly updated. (DLR; much simplified by David |
| 3136 | Benbennick) |
| 3137 | - nano.h: |
| 3138 | - Simplify #ifdefs relating to HAVE_STRCASECMP and |
| 3139 | HAVE_STRNCASECMP. (David Benbennick) |
Chris Allegretta | e1e0fd6 | 2003-04-15 01:15:09 +0000 | [diff] [blame] | 3140 | - search.c: |
| 3141 | goto_abort() |
| 3142 | - Removed, with all instances replaced with display_main_list(), |
| 3143 | since with the removal of all the scattered calls to |
| 3144 | SET(KEEP_CUTBUFFER), that function was all that was left of |
| 3145 | it. (DLR) |
| 3146 | do_find_bracket() |
| 3147 | - If a matching bracket wasn't found, call update_line() after |
| 3148 | setting current and current_x back to their original values, |
| 3149 | in case current_x's original value is greater than the width |
| 3150 | of the screen. (DLR) |
Chris Allegretta | 4b376a4 | 2003-04-16 02:08:23 +0000 | [diff] [blame] | 3151 | - winio.c: |
| 3152 | nanogetstr() |
| 3153 | - Remove a few unnecessary breaks occurring immediately after |
| 3154 | gotos, and properly interpret the up and down arrow keys when |
| 3155 | ALT_KEYPAD is set. (DLR) |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3156 | - configure.ac: |
| 3157 | - Enable autodetection of broken regexec(). (DLR) Re-added |
| 3158 | regex.h check to ensure compile under Debian w/autoconf 1.6. |
Jordi Mallach | db469d8 | 2003-03-24 13:08:16 +0000 | [diff] [blame] | 3159 | - README: |
| 3160 | - Update obsolete 1.1.x information. |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3161 | - TODO: |
| 3162 | - Fix typo. (David Benbennick) |
| 3163 | - faq.html: |
| 3164 | - Update RPM links for nano 1.2.x. (DLR) |
Chris Allegretta | dbc3ec7 | 2003-02-20 03:14:37 +0000 | [diff] [blame] | 3165 | |
Chris Allegretta | 2b4ead9 | 2003-02-20 01:56:02 +0000 | [diff] [blame] | 3166 | GNU nano 1.2.0 - 2003.02.19 |
Jordi Mallach | 07e2000 | 2003-02-14 22:10:14 +0000 | [diff] [blame] | 3167 | - General: |
| 3168 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 33ac7b9 | 2003-02-16 03:13:47 +0000 | [diff] [blame] | 3169 | - files.c: |
| 3170 | read_file() |
| 3171 | - If the file we're loading has already been detected as a DOS |
| 3172 | or Mac formatted file, don't turn on NOCONVERT if we find |
| 3173 | binary chars in it. This is because if it's detected as |
| 3174 | DOS/Mac format, at least one line has already been converted, |
| 3175 | so setting NOCONVERT (which is supposed to signal that none |
| 3176 | of the file should be converted) makes no sense. (DLR) |
Chris Allegretta | a7a78de | 2003-02-19 22:27:53 +0000 | [diff] [blame] | 3177 | - nano.c: |
| 3178 | justify_format() |
| 3179 | - Fix ugly behavior when wrapping spaces at the end of long |
| 3180 | words (David Benbennick). |
Jordi Mallach | 07e2000 | 2003-02-14 22:10:14 +0000 | [diff] [blame] | 3181 | - nanorc.5: |
| 3182 | - Fix formatting error and update copyright year (Jordi). |
Jordi Mallach | fc71eb5 | 2003-02-15 13:34:03 +0000 | [diff] [blame] | 3183 | - Several enhancements (David Benbennick). |
Chris Allegretta | 3d33251 | 2003-02-14 03:10:12 +0000 | [diff] [blame] | 3184 | |
Chris Allegretta | 7ba3279 | 2003-02-14 03:09:35 +0000 | [diff] [blame] | 3185 | GNU nano 1.1.99pre3 - 2003.02.13 |
Jordi Mallach | a577d5a | 2003-02-04 14:13:36 +0000 | [diff] [blame] | 3186 | - General: |
| 3187 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 201f1d9 | 2003-02-05 02:51:19 +0000 | [diff] [blame] | 3188 | - Fix globals and externs such that nano will compile with |
| 3189 | DISABLE_SPELLER (David Benbennick). |
Chris Allegretta | f8f2d58 | 2003-02-10 02:43:48 +0000 | [diff] [blame] | 3190 | - Fix unreasonable fill values by wrapping at length 0 instead |
| 3191 | of erroring out, and don't start up if the window size is too |
| 3192 | small but fill is set reasonably. Changes to |
| 3193 | nano.c:global_init(), window_init(), and handle_sigwinch(). |
| 3194 | New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH |
| 3195 | (David Benbennick). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3196 | - Change ngettext macro to P_(), to avoid a clash with the |
| 3197 | reserved C __ identifier (Jordi). |
Chris Allegretta | fdcb9e9 | 2003-02-12 02:52:04 +0000 | [diff] [blame] | 3198 | - Memory leak fixes for files.c:do_insertfile(),do_browser(), |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3199 | nano.c:do_spell(), and search.c:do_replace() (David |
| 3200 | Benbennick). |
Chris Allegretta | bcc8688 | 2003-02-13 01:54:41 +0000 | [diff] [blame] | 3201 | - Remove do_preserve_msg, as using -p still gives Pico-style |
| 3202 | string behavior, so an annoying message every invocation is |
| 3203 | probably unneeded (all cheer). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3204 | - Change resetpos function to be global (now called |
Chris Allegretta | 65f075d | 2003-02-13 03:03:49 +0000 | [diff] [blame] | 3205 | resetstatuspos. Fixes annoying but small odd problem with |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3206 | cursor placement when inserting a file. This needs to be done |
| 3207 | better in 1.3 (originally by David Lawrence Ramsey). Added |
| 3208 | this issue to TODO. |
Chris Allegretta | 3cdf6ff | 2003-02-08 02:02:02 +0000 | [diff] [blame] | 3209 | - files.c: |
Chris Allegretta | bcaeeb4 | 2003-02-08 02:03:26 +0000 | [diff] [blame] | 3210 | cwd_tab_completion() |
| 3211 | - Memory leak fix (David Benbennick). |
David Lawrence Ramsey | 9591ee5 | 2004-01-14 16:51:06 +0000 | [diff] [blame] | 3212 | input_tab() |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3213 | - Fix assumption that matches is null terminated (David |
Chris Allegretta | 3cdf6ff | 2003-02-08 02:02:02 +0000 | [diff] [blame] | 3214 | Benbennick). |
Chris Allegretta | a0449d9 | 2003-02-12 23:58:01 +0000 | [diff] [blame] | 3215 | load_history() |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3216 | - Fix segfault on loading huge strings from history file |
Chris Allegretta | a0449d9 | 2003-02-12 23:58:01 +0000 | [diff] [blame] | 3217 | (David Benbennick). |
Chris Allegretta | 1debce2 | 2003-02-13 22:00:19 +0000 | [diff] [blame] | 3218 | load_history(), save_history() |
| 3219 | - Changed to look at $HOME before getpwuid(geteuid()), see |
| 3220 | details in comment for rcfile.c:do_rcfile(). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3221 | real_dir_from_tilde() |
Chris Allegretta | 1debce2 | 2003-02-13 22:00:19 +0000 | [diff] [blame] | 3222 | - Change check for the running user's home dir to use |
| 3223 | getpwuid(geteuid()) rather than a getpwent() loop |
| 3224 | (suggested by Jordi). |
Chris Allegretta | 5ec6862 | 2003-02-05 02:39:34 +0000 | [diff] [blame] | 3225 | - nano.c: |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 3226 | breakable() |
| 3227 | - Fix incorrect return value on short lines (David Benbennick). |
Chris Allegretta | 4640fe3 | 2003-02-10 03:10:03 +0000 | [diff] [blame] | 3228 | do_help() |
| 3229 | - Fix line lengths not being computed properly, causes display |
| 3230 | glitches most noticeable with < 20 rows. New function |
| 3231 | nano.c:line_len(). (David Benbennick). |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 3232 | do_justify() |
| 3233 | - Add regfree() to quote regex (David Benbennick). |
Chris Allegretta | d845193 | 2003-03-11 03:50:40 +0000 | [diff] [blame] | 3234 | - Only copy previous indent if AUTOINDENT is set (David |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 3235 | Benbennick). |
Chris Allegretta | 7641708 | 2003-02-12 23:54:34 +0000 | [diff] [blame] | 3236 | do_suspend() |
| 3237 | - Fix untranslated message (David Benbennick). |
Chris Allegretta | d127c71 | 2003-02-12 23:20:45 +0000 | [diff] [blame] | 3238 | do_wrap() |
| 3239 | - Fix isspace() call to operate on int. |
Chris Allegretta | 428f620 | 2003-02-12 03:21:45 +0000 | [diff] [blame] | 3240 | help_init() |
| 3241 | - Fix crashing in do_help when COLS < 23 (David Benbennick). |
| 3242 | main() |
| 3243 | - Fix nano not compiling with ENABLE_RCFILE and DISABLE_TABCOMP |
| 3244 | (David Benbennick). |
Chris Allegretta | fe1d072 | 2003-02-13 00:52:49 +0000 | [diff] [blame] | 3245 | - Silence annoying compiler messages about clobbering and |
| 3246 | uninitialized variables by moving variable inits to the top |
| 3247 | of main() and re-initializing them after the sigsetjmp(). |
Chris Allegretta | d6e8436 | 2003-02-07 00:02:00 +0000 | [diff] [blame] | 3248 | - rcfile.c: |
| 3249 | colortoint() |
| 3250 | - Don't bomb after invalid color and print bad color name |
| 3251 | (David Benbennick). |
Chris Allegretta | 17ec14b | 2003-02-07 00:19:05 +0000 | [diff] [blame] | 3252 | colortoint, parse_colors() |
| 3253 | - Don't add strings with invalid fg colors at all. |
Chris Allegretta | 2e39c1c | 2003-02-13 03:36:15 +0000 | [diff] [blame] | 3254 | do_rcfile() |
| 3255 | - Revert (somewhat) previous behavior of looking at |
| 3256 | $HOME, and only run getpw* if it is NULL. Most *nix programs |
| 3257 | seem to only care about $HOME, and at the user-level |
| 3258 | getpw* may not be reliable (and its slower). |
Chris Allegretta | a90d0cf | 2003-02-10 02:55:03 +0000 | [diff] [blame] | 3259 | - search.c: |
| 3260 | do_gotoline() |
| 3261 | - Only goto_abort() if we *didnt* abort the command, making |
| 3262 | the function seem horribly misnamed ;-) (David Benbennick). |
Chris Allegretta | bfc8b2a | 2003-02-08 21:49:13 +0000 | [diff] [blame] | 3263 | - winio.c: |
Chris Allegretta | e9b5c6f | 2003-02-12 23:49:56 +0000 | [diff] [blame] | 3264 | browser_init(), striponedir(), do_browse_from() |
| 3265 | - Various memory leak fixes (David Benbennick). |
Chris Allegretta | b2cd248 | 2003-02-12 23:18:19 +0000 | [diff] [blame] | 3266 | do_yesno(), do_help() |
| 3267 | - Add defined(NCURSES_MOUSE_VERSION) to macro so systems that |
| 3268 | don't understand MEVENT will compile. |
Chris Allegretta | bfc8b2a | 2003-02-08 21:49:13 +0000 | [diff] [blame] | 3269 | nanogetstr() |
| 3270 | - Remove unnecessary reset of x since it is now handled |
| 3271 | elsewhere (David Lawrence Ramsey). |
Chris Allegretta | a90d0cf | 2003-02-10 02:55:03 +0000 | [diff] [blame] | 3272 | statusq() |
| 3273 | - Always blank the statusbar on exit (David Benbennick). |
Chris Allegretta | 5ea694e | 2003-02-04 14:24:54 +0000 | [diff] [blame] | 3274 | - nano.1, nano.1.html: |
| 3275 | - Add initialization file comments, change some options from |
| 3276 | bracketed to underlined to emphasize that they are not |
| 3277 | optional. |
Jordi Mallach | a66a8f7 | 2003-02-09 01:28:40 +0000 | [diff] [blame] | 3278 | - Add SEE ALSO section (Jordi). |
Chris Allegretta | 4f989fa | 2003-02-13 04:01:49 +0000 | [diff] [blame] | 3279 | - Moved nano.1 color and syntax sections to nanorc, pointed |
| 3280 | nano.1 to nanorc.5 for initialization file. Changed |
| 3281 | nanorc.5 variables to be italics to match nano.1. Added |
| 3282 | nanorc.5.html to CVS tree. |
Jordi Mallach | a66a8f7 | 2003-02-09 01:28:40 +0000 | [diff] [blame] | 3283 | - nanorc.5: |
| 3284 | - Add nanorc manpage, with descriptions of all available commands |
| 3285 | (Jordi). |
Chris Allegretta | a3daf3a | 2003-02-07 00:11:55 +0000 | [diff] [blame] | 3286 | - nanorc.sample: |
| 3287 | - Make nanorc entry less tolerant of invalid colors. |
Chris Allegretta | 97e10b5 | 2003-02-08 22:05:50 +0000 | [diff] [blame] | 3288 | - nano.spec.in: |
| 3289 | - Change default flags to --enable-all. |
Jordi Mallach | 2ddd75e | 2003-02-09 23:51:17 +0000 | [diff] [blame] | 3290 | - THANKS: |
| 3291 | - Add Kalle Kivimaa and Kalle Olavi Niemitalo, for Finnish (Jordi). |
Jordi Mallach | aebfac8 | 2003-02-13 12:50:53 +0000 | [diff] [blame] | 3292 | - UPGRADE: |
| 3293 | - Add upgrading information document for 1.0 users (Jordi). |
Chris Allegretta | cddbfd0 | 2003-02-03 15:29:56 +0000 | [diff] [blame] | 3294 | |
Chris Allegretta | 5c8c276 | 2003-02-03 15:21:27 +0000 | [diff] [blame] | 3295 | GNU nano 1.1.99pre2 - 2003.02.03 |
Jordi Mallach | a577d5a | 2003-02-04 14:13:36 +0000 | [diff] [blame] | 3296 | - General: |
Chris Allegretta | 0e86e60 | 2003-01-23 04:27:23 +0000 | [diff] [blame] | 3297 | - Changed some translatable debug messages to use %s |
| 3298 | instead of the function name, and removed gettext from |
| 3299 | two strings that had no actual words in them that |
| 3300 | should be translated. Suggested originally by |
| 3301 | Christian Rose. |
Chris Allegretta | 9090f2e | 2003-01-26 04:45:05 +0000 | [diff] [blame] | 3302 | - Fix subexpression replacement to work consistently. |
| 3303 | Affects search.c:replace_regexp() and |
| 3304 | utils.c:strstrwrapper() (David Benbennick). |
Chris Allegretta | 47fcfe5 | 2003-01-26 21:01:16 +0000 | [diff] [blame] | 3305 | - Fix cursor position being saved when escaping out |
| 3306 | of nanogetstr with keys like ^Y and ^V. New arg |
| 3307 | resetpos to nanogetstr(), added static int |
| 3308 | resetpos in statusq() (bug found by DLR). |
Chris Allegretta | d26ab91 | 2003-01-28 01:16:47 +0000 | [diff] [blame] | 3309 | - Fix constant curos updates from obliterating other |
| 3310 | system messages, and fix statusbar message length. |
| 3311 | Affects files.c:load_open_file(), nano.c:main(), |
| 3312 | search.c:findnextstr(), winio.c:statusbar() and |
| 3313 | do_cursorpos() (David Benbennick). |
Chris Allegretta | 5d71514 | 2003-01-29 04:18:37 +0000 | [diff] [blame] | 3314 | - Fix nano crashing when searching/replacing an invalid |
| 3315 | regex (try "^*"). Changed regexp_init() to return |
| 3316 | 1 or 0 based on regcomp()'s return value and search_init |
Chris Allegretta | d89eb91 | 2003-02-03 07:07:40 +0000 | [diff] [blame] | 3317 | to exit with an error message (sorry Jordi!). Added |
| 3318 | another check when using last_search instead of answer. |
Chris Allegretta | ce452fb | 2003-02-03 02:56:44 +0000 | [diff] [blame] | 3319 | - Move regcomp into rcfile.c rather than each display refresh |
| 3320 | of winio.c. New function rcfile.c:nregcomp(). |
| 3321 | This fixes much of nano's resource hogging behavior |
| 3322 | in syntax higlighting. (David Benbennick). |
Chris Allegretta | cff6e6f | 2003-02-03 03:22:02 +0000 | [diff] [blame] | 3323 | - Fix justify failing for certain lines, new function |
| 3324 | nano.c:breakable() (David Benbennick). |
Chris Allegretta | a0d8997 | 2003-02-03 03:32:08 +0000 | [diff] [blame] | 3325 | - Fix screen getting trashed on signals nano can catch |
| 3326 | (TERM and HUP). New global variable curses_ended, |
Chris Allegretta | dbfc56c | 2003-02-03 03:33:04 +0000 | [diff] [blame] | 3327 | changes to winio.c:statubar() and nano.c:die() |
| 3328 | (David Benbennick). |
Chris Allegretta | 149781d | 2003-01-26 03:54:00 +0000 | [diff] [blame] | 3329 | - cut.c: |
| 3330 | do_cut_text() |
| 3331 | - Fix incorrect cursor location when cutting long lines |
| 3332 | (David Benbennick). |
Chris Allegretta | 54c1f79 | 2003-01-26 04:11:09 +0000 | [diff] [blame] | 3333 | - files.c: |
Chris Allegretta | 858d9d9 | 2003-01-30 00:53:32 +0000 | [diff] [blame] | 3334 | - Set a default PATH_MAX for getcwd() etc calls (David |
| 3335 | Benbennick). |
| 3336 | do_browse_from() |
| 3337 | - Fix path checking to fix bad paths, escaping |
| 3338 | the operating directory, new function readable_dir() (David |
| 3339 | Benbennick). |
Chris Allegretta | b698c35 | 2003-01-26 22:05:07 +0000 | [diff] [blame] | 3340 | do_browser() |
| 3341 | - Fix incorrect path check for check_operating_dir() |
| 3342 | (David Benbennick). |
Chris Allegretta | f80a59c | 2003-01-30 00:57:33 +0000 | [diff] [blame] | 3343 | - Fix goto directory operating dir check and tilde expansion |
| 3344 | (David Benbennick). |
Chris Allegretta | 0eab236 | 2003-02-03 03:39:05 +0000 | [diff] [blame] | 3345 | - Even more checks and operating dir fixes (David Benbennick). |
Chris Allegretta | 434d686 | 2003-02-03 04:55:17 +0000 | [diff] [blame] | 3346 | do_insertfile() |
| 3347 | - Add some more checks and fix recursion when toggling |
| 3348 | multibuffer (David Benbennick). |
Chris Allegretta | 54c1f79 | 2003-01-26 04:11:09 +0000 | [diff] [blame] | 3349 | open_file() |
| 3350 | - Fix FD leak with file load error (David Benbennick). |
Chris Allegretta | 5c63f27 | 2003-02-02 04:26:54 +0000 | [diff] [blame] | 3351 | add_open_file() |
| 3352 | - Revert the fix for the supposed minor logic error from before; |
| 3353 | it was keeping some updates from happening when they should, |
| 3354 | which was leading to segfaults with both multibuffer and view |
| 3355 | mode on. (DLR; found by David Benbennick) |
Chris Allegretta | 77e726d | 2003-01-26 19:36:08 +0000 | [diff] [blame] | 3356 | save_history() |
| 3357 | - Fix nrealloc return value being ignored (David Benbennick). |
Chris Allegretta | c453357 | 2003-02-03 05:04:09 +0000 | [diff] [blame] | 3358 | - Fix off-by-one bug causing write to unallocated memory |
| 3359 | (David Benbennick). |
Chris Allegretta | ce452fb | 2003-02-03 02:56:44 +0000 | [diff] [blame] | 3360 | - global.c: |
| 3361 | thanks_for_all_the_fish() |
| 3362 | - Fix compiling with DEBUG and multibuffer (David Benbennick). |
Jordi Mallach | eeb5004 | 2003-01-18 22:42:34 +0000 | [diff] [blame] | 3363 | - nano.c: |
Chris Allegretta | a340766 | 2003-01-26 21:13:03 +0000 | [diff] [blame] | 3364 | do_char() |
| 3365 | - Remove unneeded check_statblank() (David Benbennick). |
Chris Allegretta | 64fc78c | 2003-01-26 19:57:44 +0000 | [diff] [blame] | 3366 | do_int_spell_fix(), do_int_speller() |
| 3367 | - Fix crashes with mark position, current_x position, |
| 3368 | and edit_update args (David Benbennick). |
Chris Allegretta | 2a7b8b2 | 2003-01-30 00:42:20 +0000 | [diff] [blame] | 3369 | do_justify() |
| 3370 | - Unset KEEP_CUTBUFFER so nano won't crash with subsequent |
| 3371 | ^K cuts and justifies (David Benbennick). |
Chris Allegretta | e92a7bc | 2003-01-28 01:36:38 +0000 | [diff] [blame] | 3372 | do_mouse() |
| 3373 | - Fix the mouse code to work with lines longer than COLS and |
| 3374 | with the proper positioning, including special characters |
| 3375 | (David Benbennick). |
| 3376 | do_preserve_msg(): |
| 3377 | - Unsplit error message into a single fprintf call (Jordi). |
Chris Allegretta | 3d459ad | 2003-01-22 01:09:40 +0000 | [diff] [blame] | 3378 | main() |
| 3379 | - Call load_file with arg 0 for insert, as we aren't really |
| 3380 | doing an insert, allows new_file() to run if we open a |
| 3381 | non-file at startup. |
| 3382 | usage() |
Jordi Mallach | eeb5004 | 2003-01-18 22:42:34 +0000 | [diff] [blame] | 3383 | - Remove gettext markings from -p/--preserve (Jordi). |
Chris Allegretta | 36fec72 | 2003-01-22 01:13:25 +0000 | [diff] [blame] | 3384 | - Revamp -H option message to fit in 80 column terminal. |
Chris Allegretta | 1a128af | 2003-01-26 04:15:56 +0000 | [diff] [blame] | 3385 | window_init() |
| 3386 | - Fix leaking *WINDOWs (no pun intended) (David Benbennick). |
Chris Allegretta | 1939c35 | 2003-01-26 04:26:25 +0000 | [diff] [blame] | 3387 | - search.c: |
Chris Allegretta | 8a85aa0 | 2003-01-26 20:02:15 +0000 | [diff] [blame] | 3388 | do_search(), do_replace_loop() |
| 3389 | - Fix edit_update call to use CENTER instead of current_x |
| 3390 | (related to David Benbennick's fixes for spelling). |
Chris Allegretta | 1939c35 | 2003-01-26 04:26:25 +0000 | [diff] [blame] | 3391 | do_replace_loop() |
| 3392 | - Fix various bugs having to do with replace string length |
| 3393 | and positioning (David Benbennick). |
Chris Allegretta | 63d0b48 | 2003-01-26 19:47:10 +0000 | [diff] [blame] | 3394 | edit_refresh() |
| 3395 | - Fix cursor being above as well as below the current screen |
| 3396 | (David Benbennick). |
Chris Allegretta | 3bbc416 | 2003-01-23 00:46:12 +0000 | [diff] [blame] | 3397 | - winio.c: |
| 3398 | bottombars() |
| 3399 | - Change strcpy of gettext() "Up" string to strncpy of max |
| 3400 | width 8, to stop stupid strcpy crash. |
Chris Allegretta | db28e96 | 2003-01-28 01:23:40 +0000 | [diff] [blame] | 3401 | do_yesno() |
| 3402 | - Fix mouse interaction bugs with yes/no prompt (David Benbennick). |
Chris Allegretta | f22e8bf | 2003-01-23 01:21:26 +0000 | [diff] [blame] | 3403 | - nanorc.sample: |
| 3404 | - Change comment to say magenta instead of purple. |
| 3405 | |
Chris Allegretta | d46f544 | 2003-01-17 21:47:33 +0000 | [diff] [blame] | 3406 | GNU nano 1.1.99pre1 - 2003.01.17 |
David Lawrence Ramsey | dc60b72 | 2002-10-25 16:08:53 +0000 | [diff] [blame] | 3407 | - General: |
Chris Allegretta | d46f544 | 2003-01-17 21:47:33 +0000 | [diff] [blame] | 3408 | - New date format for NEWS and ChangeLog. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3409 | - Completely removed PICO_MODE, as with the search/replace |
| 3410 | history patch we should have the extended functionality we can |
| 3411 | without being incompatible with Pico. Removed all code for |
| 3412 | different search/replace string editing and alternate shortcut |
| 3413 | list. I'm sure I won't even have to ask for feedback on this |
| 3414 | one :-) |
| 3415 | - Add in Pico's -p flag, (-p, --preserve). To preserve the XON |
| 3416 | and XOFF keys (^Q and ^S). Add warning if we invoke -p and |
| 3417 | add checks for using --preserve (to skip warning) and --pico |
| 3418 | (to force showing it). New flag PRESERVE, function |
| 3419 | do_preserve_msg(), changes to main(), signal_init(). |
| 3420 | - Search history and replace history up/down cursor arrows, |
| 3421 | w/history tab completion, not available w/NANO_SMALL. Changes |
| 3422 | to statusq(), others (Ken Tyler). Added shortcut to |
| 3423 | search/replace shortcuts so people will know it's there, |
| 3424 | forced KEY_UP and KEY_DOWN defs in nano.h (Chris, in case |
| 3425 | blame needs to be placed later). Minor fixes by DLR: allow ^P |
| 3426 | and ^N as alternatives to the up and down arrows, make sure |
| 3427 | the "Up" shortcut is displayed properly in the help menu, |
| 3428 | remove a few bits of unneeded and/or warning-generating code, |
| 3429 | and fix some missing statusq() prompts with --enable-tiny. |
Chris Allegretta | f3de8b5 | 2003-01-16 23:44:46 +0000 | [diff] [blame] | 3430 | - Added search/replace history log. Flag -H, --historylog. |
| 3431 | Flags HISTORY_CHANGED and HISTORYLOG (only room for one more |
| 3432 | flag!), added entries in nanorc.sample, new functions |
| 3433 | log_history and save_history (Ken Tyler). |
Jordi Mallach | 5e4b8cf | 2002-10-26 15:02:14 +0000 | [diff] [blame] | 3434 | - Translation updates (see po/ChangeLog for details). |
David Lawrence Ramsey | dc60b72 | 2002-10-25 16:08:53 +0000 | [diff] [blame] | 3435 | - Forward-ported Chris' --disable-wrapping-as-root option from |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3436 | 1.0.9. Per Jordi's suggestions, have it override |
| 3437 | $SYSCONFDIR/nanorc but not ~/.nanorc. (DLR) |
| 3438 | - Change all references to /etc/nanorc in the documentation to |
| 3439 | $SYSCONFDIR/nanorc. (DLR) |
David Lawrence Ramsey | 99519ae | 2002-11-04 16:12:19 +0000 | [diff] [blame] | 3440 | - Minor cosmetic tweaks to the ngettext() macro, and fix to |
| 3441 | properly detect systems lacking ngettext() and correctly |
| 3442 | compile on them; the previous fix didn't work. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3443 | - Fix problems with some code sections' not being #ifdef'ed out |
| 3444 | when they should be, or being #ifdef'ed out improperly. (David |
| 3445 | Benbennick and DLR) |
| 3446 | - Change FOLLOW_SYMLINKS to NOFOLLOW_SYMLINKS, and rework the |
| 3447 | associated logic accordingly, throughout the code. (David |
| 3448 | Benbennick) |
| 3449 | - Rework #ifdefs to not include mouse_init() at all if |
| 3450 | DISABLE_MOUSE is defined or NCURSES_MOUSE_VERSION isn't. (DLR) |
| 3451 | - For consistency, change many references of (!x) to (x == NULL) |
| 3452 | and (x) to (x != NULL). (DLR) |
| 3453 | - Define KEY_IC properly (and KEY_DC more portably) when slang |
| 3454 | support is enabled, and remove the hack to work around the |
| 3455 | former's not being defined. (David Benbennick and DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3456 | - Miscellaneous tweaks to update_color() calls, to make sure |
| 3457 | they're called at the right times and that refreshes are done |
| 3458 | afterwards only when needed. (David Benbennick) |
| 3459 | - Renamed [have_]past_editbuff [have_]search_offscreen. (DLR) |
| 3460 | - Add the "preserve" option to the nanorc file, to match |
| 3461 | nanorc.sample. (DLR) |
Chris Allegretta | 0e7a3f5 | 2003-01-15 03:06:25 +0000 | [diff] [blame] | 3462 | - Fixed awful scrolling in do_int_speller. Problem was |
| 3463 | findnextstr() calling edit_update(), though screen updating |
| 3464 | is not its business. Added checks in do_search() and |
| 3465 | do_replace_loop() to do the checks. It really should not be |
| 3466 | done here, as some function in winio.c should handle this, |
| 3467 | 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] | 3468 | - Updated all copyright notices to say 2003 rather than 2002, as |
| 3469 | nearly all the source files have been worked on this year |
| 3470 | (DLR). |
Jordi Mallach | 3e5ad63 | 2002-12-14 22:15:35 +0000 | [diff] [blame] | 3471 | - configure.ac: |
Jordi Mallach | a0e829c | 2003-01-15 17:43:59 +0000 | [diff] [blame] | 3472 | - Added tr and eu to ALL_LINGUAS (Jordi). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3473 | - Fix now inaccurate description of --enable-tiny's effects; it |
| 3474 | no longer disables NLS support. (DLR) |
| 3475 | - Fix typo. (David Benbennick) |
| 3476 | - Check for strcasecmp() and strncasecmp(), since they are |
| 3477 | apparently only standard under BSD. (DLR) |
Jordi Mallach | 631ee1f | 2003-01-15 17:40:35 +0000 | [diff] [blame] | 3478 | - Small cleanups. Add copyright header, add autopoint support and |
| 3479 | define bug report address and full package name in AC_INIT. Move |
| 3480 | ALL_LINGUAS to po/LINGUAS, recommended place for gettext 0.11. |
Chris Allegretta | d957f59 | 2003-01-17 00:17:45 +0000 | [diff] [blame] | 3481 | - Added --enable-all option to compile in all the extra stuff |
| 3482 | we'd normally need extra flags for. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3483 | - color.c: |
| 3484 | update_color(): |
| 3485 | - Remove an unneeded edit_refresh() call after do_colorinit(). |
| 3486 | (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3487 | - cut.c: |
| 3488 | do_cut_text() |
| 3489 | - Fix a memory corruption problem caused by accessing edittop |
| 3490 | after it was freed but before it was reset to a sane value |
| 3491 | from current. (David Benbennick) |
| 3492 | do_uncut_text() |
| 3493 | - If uncutting more than one line of unmarked text at editbot, |
| 3494 | don't center the screen, since Pico doesn't. (DLR) |
Chris Allegretta | 688c8eb | 2003-01-14 23:36:11 +0000 | [diff] [blame] | 3495 | - If uncutting previously unmarked text, uncut to end if we're |
| 3496 | not at the beginning of the line, and set placewewant to 0 if |
| 3497 | we are. This matches Pico's behavior. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3498 | - files.c: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3499 | load_file() |
| 3500 | - Remove unneeded wmove() call. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3501 | read_line() |
| 3502 | - Miscellaneous cleanups. (David Benbennick) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3503 | open_file() |
| 3504 | - If we're in multibuffer mode and there's an error opening the |
| 3505 | file in read-only mode, display the error message on the |
| 3506 | statusbar regardless of the value of quiet. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3507 | read_file() |
| 3508 | - Miscellaneous cleanups. (David Benbennick) |
| 3509 | - Fix len's being off by one when reading in Mac-format files, |
| 3510 | exposed by one of David Benbennick's cleanups. (DLR) |
| 3511 | - If NO_CONVERT isn't set when we first enter, and it gets set |
| 3512 | while reading in the file, unset it again afterwards. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3513 | do_insertfile() |
| 3514 | - If we're in multibuffer mode and there's an error opening the |
| 3515 | file that we're trying to insert, close the new buffer that we |
| 3516 | made to hold it and reload the buffer we had open before. |
| 3517 | (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3518 | add_open_file() |
| 3519 | - Fix minor logic error when determining when to resave fileage |
| 3520 | and filebot. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3521 | load_open_file() |
| 3522 | - If switching between files when CONSTUPDATE is set, only force |
| 3523 | a cursor position display update if DISABLE_CURPOS isn't set. |
| 3524 | This will ensure that the "Switching to [file]" messages are |
| 3525 | shown. (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3526 | write_file() |
| 3527 | - Change lineswritten from a long to an int, to match |
| 3528 | filestruct->lineno. (DLR; mismatch found by David Benbennick) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3529 | real_dir_from_tilde() |
| 3530 | - Since this is needed for proper interpretation of paths |
| 3531 | containing tildes and not just for tab completion, include and |
| 3532 | use it regardless of whether tab completion is disabled. |
| 3533 | (David Benbennick and DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3534 | input_tab() |
| 3535 | - Variable name change: matchBuf -> matchbuf. (DLR) |
| 3536 | diralphasort() |
| 3537 | - Remove the HAVE_STRCASECMP #ifdef block; see the changes to |
| 3538 | configure.ac and nano.h for why. (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3539 | - global.c: |
| 3540 | thanks_for_all_the_fish() |
| 3541 | - Miscellaneous cleanups. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3542 | - move.c: |
| 3543 | do_page_down() |
| 3544 | - If there's a page or less of text, do an edit_update() if the |
| 3545 | mark is on; otherwise, the highlight won't be displayed. (DLR) |
David Lawrence Ramsey | 9e050ad | 2002-11-04 16:18:52 +0000 | [diff] [blame] | 3546 | - nano.c: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3547 | - Added free_history() list calls clean up, added init of list |
| 3548 | headers, and modified statusq() calls (Ken Tyler). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3549 | do_prev_word() |
| 3550 | - Make the assert match that in do_next_word(). (DLR) |
| 3551 | do_enter() |
| 3552 | - If smooth scrolling is on, and Enter is pressed on the |
| 3553 | magicline, don't center the screen. (DLR) |
| 3554 | do_justify() |
| 3555 | - Fix memory corruption problem triggered when edittop and |
| 3556 | current->next pointed to the same value and current->next was |
| 3557 | destroyed during justification. (DLR) |
| 3558 | - Center the screen when justification moves the cursor entirely |
| 3559 | off the bottom of the screen, instead of when it moves the |
| 3560 | cursor near the bottom of the screen, to more closely match |
| 3561 | Pico's behavior. (DLR) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3562 | version() |
| 3563 | - Remove obsolete reference to --enable-undo. (David Benbennick) |
Chris Allegretta | e660037 | 2003-01-17 03:39:41 +0000 | [diff] [blame] | 3564 | - Move up check for --disable-nls as it's independent of |
| 3565 | --enable-tiny now (DLR). |
Chris Allegretta | 5ad92ac | 2002-12-09 00:58:51 +0000 | [diff] [blame] | 3566 | do_int_speller() |
Chris Allegretta | 5af5889 | 2003-01-17 21:07:38 +0000 | [diff] [blame] | 3567 | - Make internal spell program use sort -f and uniq to create a |
| 3568 | less redundant word list. [The only reason this is going in |
| 3569 | during feature freeze is because the int speller is useless as |
| 3570 | is and should either be improved or removed. I chose |
| 3571 | improved]. |
Chris Allegretta | 3f1b685 | 2003-01-12 23:54:05 +0000 | [diff] [blame] | 3572 | - Change all child error checks to use one goto (gasp!) called |
| 3573 | close_pipes_and_exit, so we don't leak FDs. |
Chris Allegretta | 2d5fc3a | 2003-01-16 03:11:23 +0000 | [diff] [blame] | 3574 | - Fix FD leaks which occur outside of errors (David Benbennick). |
Chris Allegretta | 334a940 | 2002-12-16 04:25:53 +0000 | [diff] [blame] | 3575 | do_int_speller(), do_alt_speller() |
| 3576 | - Programs now return char *, NULL for successful completion, |
| 3577 | otherwise the error string to display. This allows us to give |
| 3578 | more useful feedback to the user when spell checking fails. |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3579 | ABCD() |
| 3580 | - Renamed abcd(). (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3581 | main() |
| 3582 | - Remove an unneeded do_colorinit() call, do major cleanups, and |
| 3583 | allow loading of multiple files on the command line when |
| 3584 | multibuffers are used. (David Benbennick) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3585 | - nano.h: |
| 3586 | - Make sure NO_RCFILE and COLOR_SYNTAX aren't set to the same |
| 3587 | value. (DLR; discovered by Ken Tyler) |
| 3588 | - If strcasecmp() and/or strncasecmp() aren't available, use |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3589 | strcmp() and/or strncmp() instead. (DLR) |
| 3590 | - proto.h: |
| 3591 | - Fix the #ifdef block for DISABLE_TABCOMP's being undefined |
| 3592 | so that functions only used with tab completion are properly |
| 3593 | #ifdef'ed out. (DLR) |
| 3594 | - search.c: |
Chris Allegretta | 2ad0f6c | 2003-01-16 03:51:02 +0000 | [diff] [blame] | 3595 | do_gotoline() |
| 3596 | - Don't call blank_statusbar_refresh() so if there's an error |
| 3597 | returned in multibuffer mode, we can actually see it. |
Chris Allegretta | 688c8eb | 2003-01-14 23:36:11 +0000 | [diff] [blame] | 3598 | do_search() |
| 3599 | - Remove erroneously introduced near-duplicate call to |
| 3600 | update_history(). (DLR) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3601 | print_replaced() |
| 3602 | - Remove and replace with an equivalent ngettext() call. (DLR) |
| 3603 | do_replace_loop() |
| 3604 | - Fix bug where if text on the magicline was replaced (which can |
| 3605 | be done via a regexp replace of "^$" with something other than |
| 3606 | ""), a new magicline wouldn't be created. (DLR) |
Chris Allegretta | ca7113a | 2003-01-14 23:35:24 +0000 | [diff] [blame] | 3607 | - Remove check for answer being a blank string, presumed to be |
| 3608 | a PICO_MODE holdover, but it stops us from doing a blank |
| 3609 | spelling replacement. |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3610 | do_replace() |
| 3611 | - For greater Pico compatibility, when an attempt to replace a |
| 3612 | string results in 0 replacements due to the string's not being |
| 3613 | found, display "[string] not found" instead of "Replaced 0 |
| 3614 | occurrences". (DLR) |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3615 | - utils.c: |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 3616 | is_cntrl_char() |
| 3617 | - Rework to fix a problem with displaying certain high-bit |
| 3618 | characters. (David Benbennick; reported by Andrzej Marecki) |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3619 | align() |
| 3620 | - Don't just assert that the string passed in isn't NULL; check |
| 3621 | that it isn't and only do the alignment when it isn't. (David |
| 3622 | Benbennick) |
| 3623 | nmalloc(), nrealloc() |
| 3624 | - If the size passed to nmalloc() or nrealloc() is zero, don't |
| 3625 | die with an erroneous out-of-memory error. Also, change |
| 3626 | their dying messages to "nano is out of memory!". (David |
| 3627 | Benbennick) |
| 3628 | charalloc() |
| 3629 | - Removed and redefined as a macro that calls nmalloc(). (David |
| 3630 | Benbennick) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3631 | - winio.c: |
Chris Allegretta | 09fc430 | 2003-01-16 22:16:38 +0000 | [diff] [blame] | 3632 | nanogetstr() |
| 3633 | - Tweak to make the cursor stay in the same place if we hit a |
| 3634 | prompt-changing toggle while it's in the middle of the string. |
Chris Allegretta | 5af5889 | 2003-01-17 21:07:38 +0000 | [diff] [blame] | 3635 | Reset it to -1 (so next time we come here, it'll be set to the |
| 3636 | 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] | 3637 | Also fix minor problem with search history where the current |
| 3638 | search item could be at the bottom of the history twice in a |
| 3639 | row under certain conditions. (DLR) |
Chris Allegretta | 327abda | 2003-01-17 05:04:17 +0000 | [diff] [blame] | 3640 | - Remove parens in NANO_CONTROL_I check so nano won't complain if |
| 3641 | just NANO_SMALL is defined (David Benbennick). |
David Lawrence Ramsey | 9b13ff3 | 2002-12-22 16:30:00 +0000 | [diff] [blame] | 3642 | edit_refresh() |
| 3643 | - Miscellaneous cleanups that fix a bug where the screen |
| 3644 | isn't updated after uncutting chunks of upwardly marked cut |
| 3645 | text that are over a page in length. (David Benbennick) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3646 | do_credits() |
| 3647 | - Add David Benbennick to credits. (DLR) |
| 3648 | - nanorc.sample: |
| 3649 | - Added comment to explain the non-escaping of quotes in |
| 3650 | color regexes, based on info provided by David Benbennick. |
| 3651 | (DLR) |
Chris Allegretta | ed4fb2c | 2003-01-11 01:14:07 +0000 | [diff] [blame] | 3652 | - Added some examples for groff and the nanorc courtesy of |
| 3653 | Robert D. Goulding. |
| 3654 | - Added double hash marks to comment lines, so people who |
| 3655 | uncomment the beginning of every line won't get syntax errors. |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3656 | - faq.html: |
Chris Allegretta | 7662c86 | 2003-01-13 01:35:15 +0000 | [diff] [blame] | 3657 | - Miscellaneous fixes and updates for typos, broken links, and |
| 3658 | slashes at the end of directories. It is now fully compliant |
| 3659 | with HTML 4.01 Transitional. (DLR and David Benbennick) |
Chris Allegretta | 3f8a63c | 2003-01-17 02:49:23 +0000 | [diff] [blame] | 3660 | - Added docs about the new unified search string interface and |
| 3661 | search histories, and added --enable-all into configure docs. |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3662 | - nano.texi: |
| 3663 | - Typo fixes and updates. (David Benbennick) |
Chris Allegretta | 9fa5fbd | 2003-01-13 02:56:29 +0000 | [diff] [blame] | 3664 | - Updates for the most recent and not so recent changes. |
Chris Allegretta | f9ab3f7 | 2003-01-17 03:06:28 +0000 | [diff] [blame] | 3665 | - nano.1, nano.1.html |
| 3666 | - Updated for the --preserve and --historylog options. |
Chris Allegretta | 916a8ec | 2003-01-05 21:51:16 +0000 | [diff] [blame] | 3667 | - TODO |
| 3668 | - Added some wishlist stuff. |
Jordi Mallach | 3e5ad63 | 2002-12-14 22:15:35 +0000 | [diff] [blame] | 3669 | - THANKS: |
Jordi Mallach | a0e829c | 2003-01-15 17:43:59 +0000 | [diff] [blame] | 3670 | - Added Doruk Fisek and Peio Ziarsolo (Jordi). |
Chris Allegretta | e8ad5ed | 2002-10-25 03:15:48 +0000 | [diff] [blame] | 3671 | |
Chris Allegretta | 2257893 | 2002-10-25 03:14:11 +0000 | [diff] [blame] | 3672 | GNU nano 1.1.12 - 10/24/2002 |
Jordi Mallach | dab0299 | 2002-10-06 23:35:19 +0000 | [diff] [blame] | 3673 | - General: |
| 3674 | - Translation updates (see po/ChangeLog for details). |
Chris Allegretta | 1dd0bc9 | 2002-10-13 18:43:45 +0000 | [diff] [blame] | 3675 | - 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] | 3676 | *BSD systems. Added stdlib.h to global.c. |
Chris Allegretta | 1dd0bc9 | 2002-10-13 18:43:45 +0000 | [diff] [blame] | 3677 | - Added Meta-Y toggle to disable/enable color syntax highlighting |
| 3678 | completely. This may eventually be per-buffer, but that's too |
| 3679 | complicated for a feature freeze. |
Chris Allegretta | e42df73 | 2002-10-15 00:27:55 +0000 | [diff] [blame] | 3680 | - Disable VSTOP keystroke. Stops people accidentally locking up |
| 3681 | nano (suggested by David Benbennick). |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 3682 | - Pluralize messages with ngettext() where needed. (David |
Chris Allegretta | d45c599 | 2002-10-25 01:41:31 +0000 | [diff] [blame] | 3683 | Benbennick) Tweaked to compile on systems lacking ngettext() |
| 3684 | by DLR (problem found by Ken Tyler). |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 3685 | - Update nano.1 and nano.1.html to show that nano now does an |
| 3686 | emergency save on receiving SIGHUP or SIGTERM. (DLR) |
| 3687 | - Don't include "nowrap" in the long options if |
| 3688 | DISABLE_WRAPPING is defined. (DLR) |
| 3689 | - files.c: |
| 3690 | read_file() |
| 3691 | - Minor efficiency fixes, some of which fit in with the change |
| 3692 | to ngettext() usage mentioned above. (David Benbennick) |
| 3693 | do_browser() |
| 3694 | - Make sure the value of path is mallocstrcpy()ed into retval |
| 3695 | and not just assigned to it, to avoid memory corruption |
| 3696 | problems. (DLR) |
| 3697 | - nano.c: |
Chris Allegretta | 2a15c58 | 2002-10-25 01:51:13 +0000 | [diff] [blame] | 3698 | version() |
| 3699 | - If ENABLE_NLS isn't defined, display "--disable-nls" |
| 3700 | (suggested by Ken Tyler). (DLR) |
David Lawrence Ramsey | 2ab03f6 | 2002-10-17 02:19:31 +0000 | [diff] [blame] | 3701 | justify_format() |
| 3702 | - Make sure the double space maintained after sentence-ending |
| 3703 | punctuation is done when that punctuation is immediately |
| 3704 | followed by a bracket-type character, so justifying e.g. |
| 3705 | sentences in parentheses works properly. (David Benbennick) |
| 3706 | handle_hup() |
| 3707 | - Renamed handle_hupterm() to show that it now handles SIGTERM |
| 3708 | as well as SIGHUP. (DLR) |
| 3709 | signal_init() |
| 3710 | - Do an emergency save on receiving either SIGHUP or SIGTERM, |
| 3711 | not just SIGHUP. (David Benbennick) |
| 3712 | main() |
| 3713 | - Fix a problem where control key commands were printed |
| 3714 | literally instead of interpreted after a failed search of a |
| 3715 | one-line file. (David Benbennick) |
| 3716 | - proto.h: |
| 3717 | handle_hup() |
| 3718 | - Renamed handle_hupterm(); see above for why. (DLR) |
| 3719 | - winio.c: |
| 3720 | edit_add() |
| 3721 | - Fix a potential infinite loop occurring with certain |
| 3722 | zero-length regexes. (David Benbennick) |
Chris Allegretta | 71fb1f5 | 2002-10-02 00:21:31 +0000 | [diff] [blame] | 3723 | |
Chris Allegretta | 136a38a | 2002-10-02 00:05:40 +0000 | [diff] [blame] | 3724 | GNU nano 1.1.11 - 10/01/2002 |
Jordi Mallach | 25daa05 | 2002-07-29 00:16:38 +0000 | [diff] [blame] | 3725 | - General: |
| 3726 | - Translation updates (see po/ChangeLog for details). |
Jordi Mallach | 1f1022f | 2002-08-21 18:19:53 +0000 | [diff] [blame] | 3727 | - Upgraded to gettext 0.11.5 (Jordi). |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3728 | - Updated nano.1, nano.1.html, and nano.texi to fix an |
| 3729 | inaccuracy in the description of -Q/--quotestr. (DLR) |
| 3730 | - Set REG_EXTENDED in all regcomp() calls. (DLR) |
| 3731 | - Minor cosmetic code cleanups. (DLR) |
Chris Allegretta | f7c6811 | 2002-09-03 22:58:40 +0000 | [diff] [blame] | 3732 | - Changed do_insertfile to (a) report multibuffer status at the |
| 3733 | prompt and allowing it to be toggled, taking into account the |
| 3734 | need to keep the translatable strings, and (b) added a |
| 3735 | variable inspath to keep track of what the string was before |
| 3736 | toggling. I'm sure there's bugs, have at it. |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3737 | - Make sure all functions have prototypes in proto.h, and swap |
| 3738 | some functions around to put similar functions closer |
| 3739 | together (for this, rename clear_bottombars() to |
| 3740 | blank_bottombars()). (DLR; suggested by David Benbennick) |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3741 | - More changes of char *'s to const char *'s when possible. |
| 3742 | (David Benbennick) |
| 3743 | - Fix various minor memory leaks in files.c. (David Benbennick) |
| 3744 | - Fix minor problems with the operating directory code: set the |
| 3745 | operating directory properly if it's specified only in a |
| 3746 | nanorc file, and handle an operating directory of "/" |
| 3747 | properly. New function init_operating_dir() to handle |
| 3748 | setting it both on the command line and in the nanorc file. |
| 3749 | (David Benbennick) |
David Lawrence Ramsey | 1f28b8f | 2002-09-27 14:21:59 +0000 | [diff] [blame] | 3750 | - Major rewrite of color and screen update routines to fix |
| 3751 | minor bugs and increase efficiency. New function |
| 3752 | set_colorpairs() for the former. (David Benbennick) |
Jordi Mallach | cb7c8d8 | 2002-07-27 02:49:46 +0000 | [diff] [blame] | 3753 | - configure.ac: |
| 3754 | - Added pt_BR to ALL_LINGUAS (Jordi). |
Chris Allegretta | 82559b3 | 2002-08-22 01:12:41 +0000 | [diff] [blame] | 3755 | - Changed --enable-color warning to be slightly less severe. |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3756 | - Put the configure options in more or less alphabetical order, |
| 3757 | and remove --enable-undo, since it doesn't do anything. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3758 | - files.c: |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3759 | open_file() |
| 3760 | - String change: "File "x" is a directory" -> ""x" is a |
| 3761 | directory". (Jordi) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3762 | do_insertfile() |
| 3763 | - Disallow multibuffer toggling at the "Insert File" prompt if |
| 3764 | we're in both view and multibuffer mode, so as to keep proper |
| 3765 | integration between the two, and make sure the toggle |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3766 | actually works all the time otherwise. Also, make sure |
| 3767 | TOGGLE_LOAD_KEY isn't referenced when NANO_SMALL and |
| 3768 | ENABLE_MULTIBUFFER are both defined. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3769 | open_prevfile_void(), open_nextfile_void() |
| 3770 | - Return the return values of open_prevfile() and |
| 3771 | open_nextfile(), respectively, instead of (incorrectly) |
| 3772 | calling them and returning 0. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3773 | real_dir_from_tilde() |
| 3774 | - Rework to use getpwent() exclusively and end reliance on |
| 3775 | $HOME. Adapted from equivalent code in do_rcfile(). (DLR) |
| 3776 | input_tab() |
| 3777 | - Most likely fixed the check marked with FIXME, so that tab |
| 3778 | completion works properly when we're trying to tab-complete a |
| 3779 | username and the string already contains data. (DLR) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3780 | - global.c: |
| 3781 | shortcut_init() |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3782 | - Disable the new multibuffer toggle at the file insertion |
| 3783 | prompt when NANO_SMALL and ENABLE_MULTIBUFFER are both |
| 3784 | defined. (DLR) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3785 | thanks_for_all_the_fish() |
| 3786 | - Make sure the reference to help_text is #ifdefed out when |
| 3787 | --disable-help is used. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3788 | - move.c: |
| 3789 | page_up() |
| 3790 | - Fix bug where current is moved up two lines when the up arrow |
| 3791 | is pressed on the top line of the edit window; this causes a |
| 3792 | segfault is the top line in the edit window is the second |
| 3793 | 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] | 3794 | exist. (Jeff DeFouw) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3795 | do_down() |
| 3796 | - Fix bug where, if the last line in the edit window is the |
| 3797 | line before the magicline, and smooth scrolling is turned |
| 3798 | off, pressing the down arrow on that last line centers the |
| 3799 | cursor without updating the edit window. (Jeff DeFouw) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3800 | - nano.c: |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3801 | version() |
| 3802 | - Put the listed configure options in more or less alphabetical |
| 3803 | order. (DLR) |
| 3804 | open_pipe() |
| 3805 | - If we're in view mode here (in which case we're also in |
| 3806 | multibuffer mode), don't set the modification flag. (DLR) |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3807 | do_next_word(), do_prev_word() |
| 3808 | - If we're on the last/first line of the file, don't center the |
| 3809 | screen; Pico doesn't in the former case. (DLR) |
| 3810 | do_backspace() |
| 3811 | - Rework to call edit_refresh() regardless of the value of |
| 3812 | current_x if ENABLE_COLOR is defined, so that multiple-line |
| 3813 | color regexes are properly updated onscreen as they are in |
| 3814 | do_delete(). (DLR) |
| 3815 | do_delete() |
| 3816 | - Rework to only call edit_refresh() unconditionally if |
| 3817 | ENABLE_COLOR is defined; if it isn't, and we're not deleting |
| 3818 | the end of the line, only call update_line(). (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3819 | do_wrap() |
| 3820 | - Make sure wrapping is done properly when the number of |
| 3821 | characters on the line is exactly one over the limit. (David |
| 3822 | Benbennick) |
Chris Allegretta | 0ae5c72 | 2002-09-19 23:20:26 +0000 | [diff] [blame] | 3823 | - Restore the previous wrapping point behavior (pre 1.1.10) |
Chris Allegretta | 4300092 | 2002-09-21 15:41:33 +0000 | [diff] [blame] | 3824 | (David Benbennick). Minor fix by DLR to prevent spaces from |
| 3825 | being added to the ends of lines ending in spaces or lines |
| 3826 | ending in tabs (the latter case found by David Benbennick). |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3827 | do_alt_speller() |
| 3828 | - Readd DLR's fix to preserve marking when using the alternate |
| 3829 | spell checker; it was accidentally dropped. (David |
| 3830 | Benbennick) |
| 3831 | do_justify() |
| 3832 | - Fix cosmetic problems caused when justifying on the |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3833 | magicline, and a minor problem where the cursor would |
| 3834 | sometimes be moved to the wrong line after justification. |
| 3835 | (David Benbennick) |
David Lawrence Ramsey | ad40fdb | 2002-09-06 20:35:28 +0000 | [diff] [blame] | 3836 | main() |
| 3837 | - When searching through the main shortcut list looking for a |
| 3838 | shortcut key, stop searching after finding one; this avoids a |
| 3839 | rare segfault. (DLR) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3840 | - nano.h: |
| 3841 | - Change search toggles for case sensitive searching and regexp |
| 3842 | searching to M-C and M-R, respectively. (DLR; suggested by |
| 3843 | Chris) |
Chris Allegretta | 515ba32 | 2002-09-14 21:16:40 +0000 | [diff] [blame] | 3844 | - Add support for HP-UX's curses, which doesn't seem to support |
| 3845 | KEY_HOME and KEY_END. |
Chris Allegretta | 79cdfdc | 2002-08-22 02:58:55 +0000 | [diff] [blame] | 3846 | - nanorc.sample: |
| 3847 | - Fix the c-file regex for all caps words to be extended regex |
| 3848 | format ({} instead of \{\}) (found by DLR). |
Chris Allegretta | 3f9c3bf | 2002-09-18 00:00:12 +0000 | [diff] [blame] | 3849 | - Add a better string matching sequence that includes escaped |
| 3850 | 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] | 3851 | helped ;-). Some unneeded \'s in that sequence removed, and |
| 3852 | a new sequence to handle multi-line quotes added, by David |
| 3853 | Benbennick. |
Chris Allegretta | 136a38a | 2002-10-02 00:05:40 +0000 | [diff] [blame] | 3854 | - Add some examples for HTML and TeX files (David Benbennick). |
Chris Allegretta | de85262 | 2002-09-18 00:28:57 +0000 | [diff] [blame] | 3855 | - rcfile.c: |
| 3856 | parse_colors() |
| 3857 | - Stop infinite loop when syntax doesn't begin with " char. |
David Lawrence Ramsey | e21adfa | 2002-09-13 18:14:04 +0000 | [diff] [blame] | 3858 | - utils.c: |
| 3859 | charalloc() |
| 3860 | - Switch from using calloc() to using malloc(). (David |
| 3861 | Benbennick) |
David Lawrence Ramsey | 605165e | 2002-09-11 01:48:14 +0000 | [diff] [blame] | 3862 | - faq.html: |
| 3863 | - Typo fix. (DLR) |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3864 | - AUTHORS: |
| 3865 | - Add David Benbennick. (Jordi and Chris) |
David Lawrence Ramsey | 0341b58 | 2002-08-21 16:10:37 +0000 | [diff] [blame] | 3866 | - TODO: |
| 3867 | - Add entry in the 1.4 section for Pico's paragraph searching |
| 3868 | ability (at the search prompt, ^W goes to the paragraph's |
| 3869 | beginning, and ^O goes to the paragraph's end). (DLR) |
Chris Allegretta | 52069c6 | 2002-07-25 22:27:50 +0000 | [diff] [blame] | 3870 | |
Chris Allegretta | 720a9e0 | 2002-07-25 22:26:33 +0000 | [diff] [blame] | 3871 | GNU nano 1.1.10 - 07/25/2002 |
Jordi Mallach | cb7c8d8 | 2002-07-27 02:49:46 +0000 | [diff] [blame] | 3872 | - General: |
Jordi Mallach | 1f22687 | 2002-05-13 15:05:38 +0000 | [diff] [blame] | 3873 | - Translation updates (see po/ChangeLog for details). |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 3874 | - Upgraded to gettext 0.11.2 (Jordi). |
Jordi Mallach | bd33865 | 2002-06-03 12:32:28 +0000 | [diff] [blame] | 3875 | Removed intl/ entirely, and a few more tweaks by gettextize. |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3876 | - i18nized a few strings used in DEBUG mode. (DLR) |
| 3877 | - Some chars being assigned 0 are now assigned '\0'. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 3878 | - Put header file #includes in a more consistent order. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3879 | - Remove some unneeded blank lines and spaces, and make some |
| 3880 | spacing more consistent. (DLR) |
| 3881 | - When possible, use iscntrl() to determine whether a character |
| 3882 | is a control character or not. (DLR) |
| 3883 | - Miscellaneous typo fixes. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 3884 | - Many fixes to the help browser and shortcut lists: efficiency |
| 3885 | updates, consistency fixes, help text fixes and improvements, |
| 3886 | and spacing improvements. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3887 | - Make some functions use const variables when possible, and |
| 3888 | also make them static when necessary. (David Benbennick, |
| 3889 | necessary redefined by Chris ;-) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 3890 | - Add Carl Drinkwater's backup file option (-B or --backup on the |
| 3891 | command line, M-B in nano's global shortcuts). If the original |
| 3892 | file is unchanged from when it was loaded, it is backed up to |
| 3893 | filename~; if the original file has been changed or deleted |
| 3894 | since it was originally loaded, it isn't backed up. The backup |
| 3895 | file retains the permissions, owner/group, and |
| 3896 | access/modification times of the original file. This option is |
| 3897 | disabled when --enable-tiny is used. It will not back up |
| 3898 | temporary files. Minor fixes to it by David Benbennick and |
| 3899 | DLR. Changes to open_file(), add_open_file(), |
| 3900 | load_open_file(), write_file(), and do_writeout(). |
| 3901 | - Add \n's to the ends of "filename is %s" debugging strings. |
| 3902 | (Carl Drinkwater) |
| 3903 | - Add the long option --quotestr as an alternative for -Q, and |
| 3904 | --regexp as an alternative for -R; they were listed in nano's |
| 3905 | usage information, but weren't actually in nano. Also, display |
| 3906 | "-?" as an alternative for "-h" in nano's usage information, |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3907 | 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] | 3908 | alphabetical) order in nano, put the long options in a more |
| 3909 | consistent order in rcfile.c and nanorc.sample, don't include |
| 3910 | rcfile options if their equivalent command line options are |
| 3911 | disabled, and remove obsolete relative option from |
| 3912 | nanorc.sample. (DLR) |
| 3913 | - Change "File Name to Append/Prepend" to "File Name to |
| 3914 | Append/Prepend to". The original prompt could confusingly |
| 3915 | imply that we are appending/prepending another file to the |
| 3916 | current file, when we are actually appending/prepending the |
| 3917 | current file to another file. (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3918 | - Put nano.1, nano.1.html, and nano.texi up to date, and fix a |
| 3919 | few inconsistencies in them. (DLR) |
| 3920 | - Typo fixes for the ChangeLog. (David Benbennick and DLR) |
| 3921 | - Complete rewrite of justification code to fix some bugs and |
| 3922 | improve its functionality. (David Benbennick) |
| 3923 | - If a variable isn't going to be used in tiny mode, #define it |
| 3924 | out when possible. (David Benbennick) |
| 3925 | - Major reworking of the cutting/screen-updating code in cut.c, |
| 3926 | some functions in utils.c, the cursor placement code in |
| 3927 | winio.c, and many, many other areas to increase efficiency. |
| 3928 | (David Benbennick) |
| 3929 | - Rework handling of prompts when there's a list of partial |
| 3930 | filename matches on the screen: remove kludgy case-by-case |
| 3931 | handling (which didn't even handle every case), and have |
| 3932 | statusq() handle it directly for all cases. (David Benbennick |
| 3933 | and DLR) |
| 3934 | - Fix some warnings and errors that show up when using gcc's |
| 3935 | -pedantic option. (DLR) |
| 3936 | - Add a comment to nanorc.sample warning that an out-of-range |
| 3937 | negative value for fill can make nano die complaining that |
| 3938 | the screen is too small (which may not be immediately |
Chris Allegretta | d865da1 | 2002-07-29 23:46:38 +0000 | [diff] [blame] | 3939 | obvious). (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3940 | - There were some opendir() calls in files.c without |
| 3941 | corresponding closedir() calls; add them. (DLR) |
| 3942 | - Move align() and null_at() from nano.c to utils.c, and move |
| 3943 | the openfilestruct handling functions from nano.c to files.c. |
| 3944 | (DLR) |
| 3945 | - In color.c, start the "#ifdef ENABLE_COLOR" block after |
| 3946 | including all the header files, as rcfile.c does; this fixes |
| 3947 | a warning about ANSI C'S inability to handle blank files. |
| 3948 | (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 3949 | - Add new function is_cntrl_char() as a wrapper for iscntrl(); |
| 3950 | this is needed to treat ASCII 0x80-0x9f as control characters |
| 3951 | consistently. (Without this, they will only be treated as |
| 3952 | such when gettext is used; when it isn't used, they will be |
| 3953 | printed as-is and be interpreted as commands by xterm, which |
| 3954 | will corrupt the display.) (DLR) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3955 | - Add command line option -I/--ignorercfiles to ignore |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 3956 | $SYSCONFDIR/nanorc and ~/.nanorc. (Carl Drinkwater). Fix to |
| 3957 | parsing getopt args (DLR). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3958 | - Fix minor bugs with importing certain text files in Mac |
| 3959 | format. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3960 | - files.c: |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3961 | append_slash_if_dir(), input_tab() |
| 3962 | - Changed variable names: lastWasTab -> lastwastab, matchBuf -> |
| 3963 | matchbuf. (DLR) |
| 3964 | check_operating_dir() |
| 3965 | - Memory leak fix. (David Benbennick) |
| 3966 | check_writable_directory() |
| 3967 | - Optimizations (David Benbennick). |
| 3968 | cwd_tab_completion() |
| 3969 | - Changed a variable name: dirName -> dirname. (DLR) |
| 3970 | do_browser() |
| 3971 | - Optimizations and mouse selection fixes (David Benbennick). |
| 3972 | do_writeout() |
| 3973 | - Fix problem with formatstr's being defined as NULL when |
| 3974 | --enable-tiny is used. Since formatstr isn't ever used in tiny |
| 3975 | mode, don't bother even creating the variable. (David |
| 3976 | Benbennick and DLR) |
| 3977 | do_insertfile() |
| 3978 | - Memory leak fix (accidentally dropped 1st time). |
| 3979 | (David Benbennick). |
| 3980 | get_full_path() |
| 3981 | - Memory leak fix. Also, make it properly interpret ~/ notation |
| 3982 | so, among other things, the option "--operatingdir ~" works. |
| 3983 | (David Benbennick) |
| 3984 | - More optimizations (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3985 | new_file() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 3986 | - Make sure current_x is zero; this fixes a problem where the |
| 3987 | current cursor position wasn't reset when reading in a file in |
| 3988 | multibuffer mode. (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 3989 | - Use make_new_node rather than setting up fileage by hand |
| 3990 | (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3991 | read_file(), read_line() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3992 | - Rework to properly handle nulls in the input file, fix |
| 3993 | detection of binary files to properly mark a file as binary if |
| 3994 | the only binary characters it contains are ASCII 127's, and |
| 3995 | after reading the last line of a file that doesn't end in a |
| 3996 | newline, increment totsize. Remove previous kludge to set |
| 3997 | totsize properly. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 3998 | write_file() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 3999 | - Rework to properly handle nulls in the input file. When |
| 4000 | appending/prepending, don't change the current file's name to |
| 4001 | the name of the file it's being appended/prepended to. When |
| 4002 | writing a marked selection to a file, save and restore totsize |
| 4003 | so it isn't decreased by the size of the selection afterward. |
| 4004 | (DLR) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 4005 | - Optimizations (David Benbennick). |
Chris Allegretta | 6fe98d7 | 2002-05-16 23:30:14 +0000 | [diff] [blame] | 4006 | - global.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4007 | free_toggles() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4008 | - Only include if we're not using tiny mode. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4009 | toggle_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4010 | - Remove global entries for search toggles, as they aren't really |
| 4011 | global. (DLR) |
| 4012 | - Don't reinititialize the toggles if they've already been |
| 4013 | initialized; it's unnecessary and even causes a segfault in |
| 4014 | do_toggle() if Pico emulation mode is the toggle in question. |
| 4015 | Don't free the toggles here, either; it's unnecessary after the |
| 4016 | above change. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4017 | - If wrapping is disabled, don't include the toggle for it. |
| 4018 | (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4019 | shortcut_init() |
Chris Allegretta | 6fe98d7 | 2002-05-16 23:30:14 +0000 | [diff] [blame] | 4020 | - Rework IFHELP macro (David Benbennick). |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4021 | - move.c |
| 4022 | page_down(), page_up() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4023 | - Put sanity checks for current_x back in, to avoid rare |
| 4024 | segfaults (oops). Now, however, they are only called when |
| 4025 | placewewant is zero instead of being called unconditionally; |
| 4026 | see changes to winio.c:actual_x_from_start() below. (DLR) |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 4027 | - nanorc.sample: |
Chris Allegretta | 5c6379d | 2002-05-18 03:13:03 +0000 | [diff] [blame] | 4028 | - Put in much less crappy example regex rules for c-file. |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4029 | - nano.c: |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 4030 | clear_filename() |
| 4031 | - Remove this function, as it has unneeded functionality, is |
| 4032 | short enough to be inlined, and is only called in two spots |
| 4033 | anyway. (DLR) |
| 4034 | die() |
| 4035 | - Rework slightly to remove redundant printing of last message |
| 4036 | and print all messages after resetting the terminal. (DLR) |
| 4037 | do_backspace() |
| 4038 | - Make sure placewewant is set properly, and that the mark is |
| 4039 | moved backwards. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4040 | do_char() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4041 | - Fix a problem where, if ENABLE_COLOR wasn't used, typing |
| 4042 | characters on a marked line before the beginning of the mark |
| 4043 | would make the highlight short by one. (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 4044 | do_cont() |
| 4045 | - Handle the case where the window was resized while we were |
| 4046 | stopped. (David Benbennick) |
| 4047 | do_delete() |
| 4048 | - Make sure placewewant is set properly, to match Pico's |
| 4049 | behavior. (DLR) |
| 4050 | do_int_spell(), do_alt_spell() |
| 4051 | - Rework to save the marked selection before doing spell checking |
| 4052 | and restore it afterward. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4053 | do_next_word(), do_prev_word() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4054 | - Fix a problem where highlighting isn't done properly after |
| 4055 | calling either of these, and another problem where the cursor |
| 4056 | would move back too far in certain cases with do_prev_word(). |
| 4057 | (David Benbennick) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 4058 | do_toggle() |
| 4059 | - Since the search mode toggles aren't global anymore, we don't |
| 4060 | need to explicitly block them here anymore (which will end up |
| 4061 | blocking the global backup mode toggle, which is the same as |
| 4062 | the backwards search toggle). (DLR) |
| 4063 | do_wrap() |
| 4064 | - fill fixes and 'two short word wrap' bug (David Benbennick). |
| 4065 | global_init() |
| 4066 | - Call die_too_small() when fill is 0. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4067 | handle_sigwinch() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4068 | - Make sure we adjust fill when the window is resized. (David |
| 4069 | Benbennick) |
| 4070 | - Call die_too_small() when fill is 0. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4071 | help_init() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4072 | - Since the return value of snprintf() isn't well defined, use |
| 4073 | sprintf() instead. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4074 | main() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4075 | - Rework to blank out filename manually before doing anything |
| 4076 | with it, instead of calling clear_filename() in two places. |
| 4077 | Make startline an int instead of a long, since it's supposed to |
| 4078 | hold a line number. (DLR) |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 4079 | - Properly handle multiple -r settings on the command line. (Carl |
| 4080 | Drinkwater) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4081 | - Fix a bug that prevented file insertion via the Insert key |
| 4082 | from working at all when --enable-multibuffer wasn't used |
| 4083 | (oops). (DLR) |
| 4084 | - Adapt David Benbennick's fix to get fill to accept negative |
| 4085 | numbers properly in parse_rcfile() (see below) to the |
| 4086 | handlers for the -r and -T options as well, so that -r/-T 0 |
| 4087 | can be treated separately from -r/-T string. (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 4088 | - Fix so that Esc-Esc-Space is properly treated as Ctrl-Space. |
| 4089 | (DLR) |
Chris Allegretta | dffa207 | 2002-07-24 01:02:26 +0000 | [diff] [blame] | 4090 | usage() |
| 4091 | - List the options that are ignored for the purpose of Pico |
| 4092 | compatibility, and make some minor consistency fixes. (DLR) |
Chris Allegretta | c46337b | 2002-07-23 00:34:48 +0000 | [diff] [blame] | 4093 | - nano.h: |
| 4094 | - Fix some space/tab formatting for flags (DLR). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4095 | - proto.h: |
| 4096 | - Remove external declaration of the global int fill, since |
| 4097 | it's now static. (DLR) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4098 | - rcfile.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4099 | parse_rcfile() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4100 | - Add David Benbennick's fix that allows fill to accept |
| 4101 | negative numbers properly. Specifically, use strtol() there |
| 4102 | instead of atoi() so that errors can be detected. Also |
| 4103 | adapted for tabsize by DLR. |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4104 | parse_next_regex(), colortoint() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4105 | - Only include if ENABLE_COLOR is defined. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4106 | - search.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4107 | search_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4108 | - Since the search mode toggles aren't global anymore, rework the |
| 4109 | part of this function referencing them so that they still work. |
| 4110 | (DLR) |
| 4111 | - Remove unneeded toggles variable. (David Benbennick) |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4112 | - Fix a problem where the first character of buf was overwritten |
| 4113 | if the last search string was one third the number of columns |
| 4114 | plus one. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4115 | findnextstr() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4116 | - 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] | 4117 | Also, pass current_x_find to strstrwrapper() so we know whether |
| 4118 | we're at the beginning of a string or not (see changes to |
| 4119 | strstrwrapper() below), and reset it between lines. (DLR) |
| 4120 | do_gotoline(): |
| 4121 | - Make sure placewewant is zero after we go to a line. (David |
| 4122 | Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4123 | do_gotopos() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4124 | - Simplify the sanity check to only put x within the range of the |
| 4125 | current line; don't call actual_x() anymore. (DLR) |
| 4126 | - utils.c: |
| 4127 | - Add sunder() and unsunder(). These functions convert nulls |
| 4128 | other than the terminating null in strings to newlines and |
| 4129 | back; they're used to handle null characters in files properly. |
| 4130 | (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4131 | lowercase() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4132 | - Remove, since it isn't actually used anywhere. (David |
| 4133 | Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4134 | strstrwrapper() |
| 4135 | - 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] | 4136 | string, to avoid false positives when searching for regular |
| 4137 | expressions prefixed with ^. Make it take a new parameter, |
| 4138 | line_pos, to determine where we are in the string. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4139 | check_wildcard_match() |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4140 | - Changed variable names: retryPat -> retrypat, retryText -> |
| 4141 | retrytext. (DLR) |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4142 | - winio.c: |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4143 | actual_x_from_start() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4144 | - Overhaul to make cursor placement more like that of Pico: add |
| 4145 | sanity check for i, and then place i as close to the value of |
| 4146 | xplus column as possible. This change is most noticeable when |
| 4147 | moving down through binary files. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4148 | do_credits() |
| 4149 | - Fix for the i18ned credits so it will compile with -pedantic |
| 4150 | (DLR & Chris). |
Chris Allegretta | 079b549 | 2002-09-19 23:54:53 +0000 | [diff] [blame] | 4151 | do_help() |
| 4152 | - Add support for the handled keyboard escape sequences in the |
| 4153 | help menu, as they are needed with some terminals (e.g. xterm |
| 4154 | with TERM=ansi). (DLR) |
| 4155 | edit_refresh() |
| 4156 | - Turn on leaveok() so the cursor doesn't bounce around the |
| 4157 | screen while we're updating it (most noticeable when using |
| 4158 | color syntax over a very slow connection). |
| 4159 | do_replace_highlight() |
| 4160 | - When using regexps, make sure the highlight is the length of |
| 4161 | the search result and not the regexp string. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4162 | nanogetstr() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4163 | - After the user presses Enter at the prompt, refresh the edit |
| 4164 | window in case there's a list of possible filename matches |
| 4165 | (left over from attempted tab completion) on it. (DLR) |
Chris Allegretta | 079b549 | 2002-09-19 23:54:53 +0000 | [diff] [blame] | 4166 | statusbar() |
| 4167 | - Limit statusbar display to the number of columns less four, and |
| 4168 | don't allow it to go over its original row. (David Benbennick) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4169 | titlebar() |
David Lawrence Ramsey | c596755 | 2002-06-21 03:20:06 +0000 | [diff] [blame] | 4170 | - Tweak text spacing and printing so that the titlebar text looks |
| 4171 | better on smaller terminals. (Carl Drinkwater) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4172 | update_line() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4173 | - When marking control characters, make sure the mark moves |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4174 | forward by two characters instead of one. Rework control |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4175 | character display routine to display newlines within the line |
| 4176 | (which should never occur under normal circumstances; they will |
| 4177 | only be there if the line had nulls in it and was unsunder()ed |
| 4178 | beforehand) as ^@'s. (DLR) |
Chris Allegretta | cf287c8 | 2002-07-20 13:57:41 +0000 | [diff] [blame] | 4179 | - Fix to properly treat ASCII 128-159 as control characters. |
| 4180 | (DLR) |
Jordi Mallach | 7d40134 | 2002-07-05 23:46:31 +0000 | [diff] [blame] | 4181 | - configure.ac: |
| 4182 | - Added ms to ALL_LINGUAS (Jordi). |
| 4183 | - Merged acconfig.h in (Jordi). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4184 | - Fixed so that --enable-debug defines DEBUG and undefines |
| 4185 | NDEBUG. (Carl Drinkwater) |
Jordi Mallach | 790d362 | 2002-06-03 12:44:05 +0000 | [diff] [blame] | 4186 | - THANKS: |
| 4187 | - Completed a bit (Jordi). |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4188 | - Fixed David Benbennick's email address. (David Benbennick) |
| 4189 | - Typo fix. (DLR) |
Chris Allegretta | c4e3d9e | 2002-07-21 15:44:13 +0000 | [diff] [blame] | 4190 | |
Chris Allegretta | 8b75a78 | 2002-05-13 00:09:30 +0000 | [diff] [blame] | 4191 | GNU nano 1.1.9 - 05/12/2002 |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 4192 | - General: |
| 4193 | - Typos n misspellings all over the place (David Benbennick). |
| 4194 | - Allow --tiny and --multibuffer to cooperate (who the heck |
| 4195 | would want this is beyond me but ;-). Changes to |
| 4196 | configure.ac, global.c, , (David Benbennick). |
Chris Allegretta | f2387fb | 2002-04-10 02:31:20 +0000 | [diff] [blame] | 4197 | - Change to openfilestruct for multibuffer mode by DLR. |
| 4198 | New functions nano.c:make_new_opennode(), free_openfilestruct(), |
| 4199 | delete_opennode(), unlink_opennode(), splice_opennode(), |
| 4200 | new struct openfilestruct in nano.h. |
Chris Allegretta | 0e9b7aa | 2002-04-16 03:15:47 +0000 | [diff] [blame] | 4201 | - Preliminary prepend code. This may be a bad idea, but I've |
| 4202 | been wanting it for awhile now and we'll see how bad it messes |
| 4203 | everything up. Changes to files.c:do_writeout(), write_file(). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4204 | Fixes for O_CREAT & append compatibility by David Benbennick. |
Chris Allegretta | 0547eb3 | 2002-04-22 23:52:34 +0000 | [diff] [blame] | 4205 | - Change from read() and write() to file streams by Jay Carlson. |
| 4206 | Allows OS to implement read and write ahead rather than making |
| 4207 | us do it. Hopefully merged properly. |
Chris Allegretta | dab017e | 2002-04-23 10:56:06 +0000 | [diff] [blame] | 4208 | - More cleanups with DISABLE flags, better free_shortcutage and |
| 4209 | free_toggle, and get rid of unnecessary variable decls with |
| 4210 | NANO_SMALL in shortcut_init() by David Benbennick. |
Chris Allegretta | b6c5dc2 | 2002-05-04 03:47:33 +0000 | [diff] [blame] | 4211 | - Added "syntax" command to .nanorc file, to allow multiple |
| 4212 | syntaxes. New function color.c:update_color(), calls in various |
| 4213 | files.c places, syntaxtype struct, global variables syntaxes, |
Chris Allegretta | 21c433d | 2002-05-04 04:24:29 +0000 | [diff] [blame] | 4214 | syntaxfile_regexp and synfilematches. Global flag -Y ,--syntax |
Chris Allegretta | 09900ff | 2002-05-04 04:23:30 +0000 | [diff] [blame] | 4215 | to specify the type on the command line, if there's no good |
| 4216 | filename regex to use. Global variable syntaxstr. |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 4217 | - Changed many strcmp()s and strcpy()s to their equivalent |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4218 | '\0' counterparts (David Lawrence Ramsey). |
| 4219 | - Many changes to allow marked cutting to work with multiple |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 4220 | file buffers: changes to openfilestruct type in nano.h and |
| 4221 | files.c (David Lawrence Ramsey). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 4222 | - Changed NANO_SMALL to ENABLE_NLS for gettext disabling |
| 4223 | (David Benbennick). |
| 4224 | - Move next_key and pev_key definitions out of main() and into |
| 4225 | global.c where they belong (David Benbennick). |
Chris Allegretta | 5e76fe9 | 2002-05-12 20:54:16 +0000 | [diff] [blame] | 4226 | - color.c: |
| 4227 | update_color() |
| 4228 | - Add regfree call here to avoid memory leaks. |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 4229 | - configure.ac: |
| 4230 | - Define NDEBUG to silence asserts (David Benbennick). |
| 4231 | - files.c: |
| 4232 | get_next_filename() |
| 4233 | - Optimizations (David Benbennick). |
| 4234 | - global.c: |
| 4235 | shortcut_init() |
| 4236 | - Add missing free_shortcutage()s (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 4237 | thanks_for_all_the_fish() |
| 4238 | - Only defined when using DEBUG, makes sense (David Benbennick). |
Chris Allegretta | 7162e3d | 2002-04-06 05:02:14 +0000 | [diff] [blame] | 4239 | - nano.c: |
| 4240 | die_save_file() |
| 4241 | - Add missing free (David Benbennick). |
| 4242 | do_justify() |
| 4243 | - Optimizations (David Benbennick). |
| 4244 | do_wrap() |
| 4245 | - Complete rewrite (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 4246 | help_init() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4247 | - A little less readable, a lot shorter :-) (David Benbennick). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 4248 | - Fix Meta-A not getting capitalized, and convert the ASCII |
| 4249 | #s to their character equivalent. |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 4250 | main() |
| 4251 | - Changed charalloc(), strcpy()s to mallocstrcpy()s. |
Chris Allegretta | 66f373f | 2002-04-05 23:33:09 +0000 | [diff] [blame] | 4252 | - nano.h: |
| 4253 | - NANO_ALT_COMMAND and NANO_ALT_PERIOD were reversed (lol) |
| 4254 | (David Benbennick). |
Chris Allegretta | 8902eba | 2002-03-30 18:02:54 +0000 | [diff] [blame] | 4255 | - nano.spec.in: |
| 4256 | - Don't put Chris' name as the Packager in the distribution |
| 4257 | by default (Im an idiot). |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 4258 | - Fixed Source line (David Lawrence Ramsey). |
Jordi Mallach | 42c6405 | 2002-04-30 02:33:14 +0000 | [diff] [blame] | 4259 | - nano.1: |
| 4260 | - Changed references to Debian GNU/Linux to Debian GNU (Jordi). |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 4261 | - nano.1.html: |
| 4262 | - Updated for -Y option (David Lawrence Ramsey). |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 4263 | - rcfile.c: |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 4264 | - Made some rc file errors less fatal. |
Chris Allegretta | 4dc03d5 | 2002-05-11 03:04:44 +0000 | [diff] [blame] | 4265 | - Added in my patch for getpwent instead of relying on $HOME |
| 4266 | (David Lawrence Ramsey). |
Chris Allegretta | 7c27be4 | 2002-05-05 23:03:54 +0000 | [diff] [blame] | 4267 | - winio.c: |
| 4268 | edit_add() |
David Lawrence Ramsey | f21cd10 | 2002-06-13 00:40:19 +0000 | [diff] [blame] | 4269 | - Changed some syntax highlight computations for the sake of COLS. |
Chris Allegretta | 3674c1d | 2002-05-12 20:43:49 +0000 | [diff] [blame] | 4270 | - Add in the necessary regfree() calls to stop nano from leaking |
| 4271 | memory like a sieve when using color syntax highlighting :-) |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4272 | bottombars(), onekey() |
Chris Allegretta | 6232d66 | 2002-05-12 19:52:15 +0000 | [diff] [blame] | 4273 | - Cleanups (David Benbennick). |
Jordi Mallach | 0ab011f | 2002-04-05 11:25:00 +0000 | [diff] [blame] | 4274 | - po/gl.po: |
| 4275 | - Galician translation updates (Jacobo Tarrio). |
| 4276 | - po/de.po: |
| 4277 | - German translation updates (Michael Piefel). |
| 4278 | - po/fr.po: |
| 4279 | - French translation updates (Jean-Philippe Guérard). |
| 4280 | - po/ca.po, po/es.po: |
| 4281 | - Catalan and Spanish translation updates (Jordi). |
Jordi Mallach | b18bc69 | 2002-04-10 16:26:17 +0000 | [diff] [blame] | 4282 | - po/sv.po: |
| 4283 | - Swedish translation updates (Christian Rose). |
Jordi Mallach | d301e10 | 2002-04-13 14:46:26 +0000 | [diff] [blame] | 4284 | - po/nl.po: |
| 4285 | - Dutch translation updates (Guus Sliepen). |
Jordi Mallach | 7f80e66 | 2002-04-13 16:31:03 +0000 | [diff] [blame] | 4286 | - po/it.po: |
| 4287 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 0417a7b | 2002-04-19 21:59:35 +0000 | [diff] [blame] | 4288 | - po/ru.po, po/uk.po: |
| 4289 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | 934b76b | 2002-04-25 22:24:48 +0000 | [diff] [blame] | 4290 | - po/id.po: |
| 4291 | - Indonesian translation updates (Tedi Heriyanto). |
Jordi Mallach | ca76fa9 | 2002-05-05 15:04:26 +0000 | [diff] [blame] | 4292 | - po/sv.po: |
| 4293 | - Swedish translation updates (Christian Rose). |
David Lawrence Ramsey | 233f336 | 2004-10-27 02:15:44 +0000 | [diff] [blame] | 4294 | |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 4295 | GNU nano 1.1.8 - 03/30/2002 |
Chris Allegretta | bef1297 | 2002-03-06 03:30:40 +0000 | [diff] [blame] | 4296 | - General |
| 4297 | - Type misalignments and mem leaks in renumber_all, do_justify |
| 4298 | and do_spell (Rocco & Steven Kneizys). |
Chris Allegretta | bb88ece | 2002-03-25 13:40:39 +0000 | [diff] [blame] | 4299 | - New "External Command" code, originally by Dwayne Rightler, |
Chris Allegretta | 77777d4 | 2002-03-29 16:31:29 +0000 | [diff] [blame] | 4300 | various fixes and changes by Chris, Rocco and David Benbennick. |
| 4301 | New function nano.c:open_pipe() and signal handler cancel_fork(), |
| 4302 | changes to do_insertfile(), new list extcmd_list, cmd is |
| 4303 | ^X after ^R. |
Chris Allegretta | 3533a34 | 2002-03-24 23:19:32 +0000 | [diff] [blame] | 4304 | - Added separate regex variable (color_regex and colormatches) |
| 4305 | so that color syntax and regex search/replace can coexist. |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 4306 | - Added new nano.spec file from Brett <brett@bad-sports.com>, |
| 4307 | added because maintaining the spec file is getting to be a large |
| 4308 | hassle ;) |
Chris Allegretta | 564535a | 2002-03-06 15:32:17 +0000 | [diff] [blame] | 4309 | - files.c: |
| 4310 | check_writable_directory() |
| 4311 | - Stat full_path, not path (Steven Kneizys). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 4312 | open_pipe() |
| 4313 | - I18nize the pipe error (DLR). |
Chris Allegretta | e373909 | 2002-03-29 15:06:05 +0000 | [diff] [blame] | 4314 | do_insertfile() |
| 4315 | - Handle cancel from ExtCmd properly (David Benbennick). |
Chris Allegretta | 52c5a6e | 2002-03-21 05:07:28 +0000 | [diff] [blame] | 4316 | read_file() |
| 4317 | - 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] | 4318 | - Reverse tests to stop segfault on editing a new file of 0 |
| 4319 | lines (David Benbennick) |
| 4320 | - Change input var to one char instead of array (David Benbennick). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 4321 | - Move NO_CONVERT check up so chars get read in properly (DLR). |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 4322 | - nano.c: |
Chris Allegretta | cf1d812 | 2002-03-21 19:53:36 +0000 | [diff] [blame] | 4323 | do_justify() |
| 4324 | - More fixes for indented justify (David Benbennick). |
Chris Allegretta | f21f3fc | 2002-03-25 03:26:27 +0000 | [diff] [blame] | 4325 | do_int_speller() |
| 4326 | - Fix zombie processes and spelling buffer issues (Rocco Corsi). |
Chris Allegretta | 5902f96 | 2002-03-07 12:40:39 +0000 | [diff] [blame] | 4327 | help_init() |
| 4328 | - Capitalize Meta altkeys. |
Chris Allegretta | b479c89 | 2002-03-09 20:03:10 +0000 | [diff] [blame] | 4329 | - Various fixes and string changes. |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 4330 | main() |
| 4331 | - Put NANO_SMALL defines around toggle pointer (noticed by Jordi); |
Chris Allegretta | 97e6fe6 | 2002-03-09 17:38:47 +0000 | [diff] [blame] | 4332 | usage() |
Chris Allegretta | 3fc5d57 | 2002-03-09 18:51:58 +0000 | [diff] [blame] | 4333 | - Rewritten to encompass systems with and without GETOPT_LONG. |
| 4334 | New function print1opt does most of the dirty work, stops |
| 4335 | duplication of effort and eases translator's jobs. Also |
| 4336 | breaks all the current translations ;-) |
Chris Allegretta | 45329a1 | 2002-03-10 01:22:21 +0000 | [diff] [blame] | 4337 | - proto.h: |
| 4338 | - Missing externs (Rocco). |
Chris Allegretta | 1596d38 | 2002-03-07 00:46:17 +0000 | [diff] [blame] | 4339 | - rcfile.c: |
Chris Allegretta | 78f0fc6 | 2002-03-29 19:41:57 +0000 | [diff] [blame] | 4340 | do_rcfile() |
| 4341 | - Reset lineno between system and local .nanorc file. |
| 4342 | - Fix errno->strerror(errno) mismatch. |
Chris Allegretta | e8e1034 | 2002-03-07 00:47:22 +0000 | [diff] [blame] | 4343 | parse_rcfile() |
| 4344 | - 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] | 4345 | potential crashes, 1st reported by Jean-Philippe Guérard. |
Chris Allegretta | 78f0fc6 | 2002-03-29 19:41:57 +0000 | [diff] [blame] | 4346 | rcfile_error() |
| 4347 | - Don't print out the file name if we haven't opened the file |
| 4348 | yet (lineno == 0). |
Chris Allegretta | 45329a1 | 2002-03-10 01:22:21 +0000 | [diff] [blame] | 4349 | - search.c: |
| 4350 | search_init() |
| 4351 | - Fix a missing free (Rocco). |
Chris Allegretta | d1c2c1c | 2002-03-26 17:58:42 +0000 | [diff] [blame] | 4352 | do_gotoline() |
| 4353 | - Set placewewant if we actually move to a different line. |
Chris Allegretta | 40ecbad | 2002-03-06 15:27:44 +0000 | [diff] [blame] | 4354 | - utils.c: |
Chris Allegretta | dce44ab | 2002-03-16 01:03:41 +0000 | [diff] [blame] | 4355 | stristr() |
| 4356 | - Defined regardless of NANO_SMALL (noticed by Jordi). |
Chris Allegretta | 77777d4 | 2002-03-29 16:31:29 +0000 | [diff] [blame] | 4357 | nperror() |
| 4358 | - New wrapper for perror (David Benbennick). |
Chris Allegretta | dce44ab | 2002-03-16 01:03:41 +0000 | [diff] [blame] | 4359 | - winio.c: |
| 4360 | do_credits() |
| 4361 | - Add Thomas Dickey. |
Chris Allegretta | f3a07b2 | 2002-03-29 15:15:38 +0000 | [diff] [blame] | 4362 | do_cursorpos() |
| 4363 | - Make col numbering start from 1 (suggested by Andrew Ho). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 4364 | update_line(), xpt() |
| 4365 | - Add check for 127 (DLR). |
Jordi Mallach | 4951c66 | 2002-03-07 14:12:53 +0000 | [diff] [blame] | 4366 | - po/sv.po: |
| 4367 | - Swedish translation updates (Christian Rose). |
| 4368 | - po/de.po: |
| 4369 | - German translation updates (Michael Piefel). |
Jordi Mallach | 4e803aa | 2002-03-09 18:05:53 +0000 | [diff] [blame] | 4370 | - po/id.po: |
| 4371 | - Indonesian translation updates (Tedi Heriyanto). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 4372 | - po/it.po: |
Chris Allegretta | 06d6237 | 2002-03-30 16:51:38 +0000 | [diff] [blame] | 4373 | - Serious typo. |
Jordi Mallach | 4e803aa | 2002-03-09 18:05:53 +0000 | [diff] [blame] | 4374 | - po/ca.po, po/es.po: |
| 4375 | - Catalan and Spanish translation updates (Jordi). |
Chris Allegretta | 2598c66 | 2002-03-28 01:59:34 +0000 | [diff] [blame] | 4376 | - Typo (DLR). |
Jordi Mallach | 558b5d8 | 2002-03-11 13:23:33 +0000 | [diff] [blame] | 4377 | - po/fr.po: |
| 4378 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 5477e10 | 2002-03-12 16:15:50 +0000 | [diff] [blame] | 4379 | - po/gl.po: |
| 4380 | - Galician translation updates (Jacobo Tarrio). |
Jordi Mallach | 057c3c4 | 2002-03-14 11:00:56 +0000 | [diff] [blame] | 4381 | - po/uk.po, po/ru.po: |
| 4382 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | b83e61a | 2002-03-15 15:15:13 +0000 | [diff] [blame] | 4383 | - po/pl.po: |
| 4384 | - Polish translation updates (Wojciech Kotwica). |
Jordi Mallach | 7fa082d | 2002-03-17 00:35:41 +0000 | [diff] [blame] | 4385 | - po/fr.po: |
| 4386 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 7afc6d9 | 2002-03-27 16:34:46 +0000 | [diff] [blame] | 4387 | - po/it.po: |
| 4388 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 465a0ff | 2002-03-29 00:46:05 +0000 | [diff] [blame] | 4389 | - po/da.po: |
| 4390 | - Danish translation updates (Keld Simonsen). |
Chris Allegretta | bef1297 | 2002-03-06 03:30:40 +0000 | [diff] [blame] | 4391 | |
Chris Allegretta | 97489d2 | 2002-03-05 23:47:44 +0000 | [diff] [blame] | 4392 | GNU nano 1.1.7 - 03/05/2002 |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4393 | - General |
| 4394 | - malloc->calloc, etc cleanups (DLR). |
| 4395 | - New option, noconvert (-N, --noconvert) to completely stop |
| 4396 | the translation of files from DOS or Mac format (DLR). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4397 | - New functions check_writable_directory() and safe_tempnam() |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 4398 | to get around the tempnam warning. More improvements (DLR) |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 4399 | Still needs testing. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4400 | - Added DOS and Mac format options to write file routine. |
| 4401 | Changes to shortcut_init() and do_writeout(). |
| 4402 | - Removed stupid static definitions of toggles and shortcut |
| 4403 | lists. Many changes to shortcut_init(), toggle_init(), |
| 4404 | statusq(), nanogetstr(), main(), and many other places. |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 4405 | - Multibuffer mode now allows multiple empty filenames. |
| 4406 | Changes to add_open_files(), removed open_file_dup_search(), |
| 4407 | open_file_dup_fix(), etc (DLR). |
| 4408 | - New code to handle multiple .save files. Changes to |
| 4409 | die_save_file(), new function files.c:get_next_filename() |
| 4410 | and utils.c:num_of_digits(). (Dwayne Rightler, DLR & Chris) |
Chris Allegretta | f5de33a | 2002-02-27 04:14:16 +0000 | [diff] [blame] | 4411 | - Many malloc() cleanups and files.c tweaks by Steven Kneizys, |
| 4412 | new functions utils.c:free_shortcutage() (got to love that |
| 4413 | name!) & free_toggles(), and big cleanup program |
| 4414 | thanks_for_all_the_fish() (originally |
| 4415 | thanks_for_the_memories()). Mods to shortcut_init() by Chris. |
Chris Allegretta | e4f940d | 2002-03-03 22:36:36 +0000 | [diff] [blame] | 4416 | - Preliminary quoting support for justify. New arg -Q, --quotestr, |
| 4417 | changes to do_justify(), global variable quotestr(). |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 4418 | - Makefile.am: |
David Lawrence Ramsey | 0084eaa | 2002-11-04 16:05:42 +0000 | [diff] [blame] | 4419 | - Add SYSCONFDIR to DEFS, so we can have an $SYSCONFDIR/nanorc. |
Chris Allegretta | 40b85e7 | 2002-02-09 21:56:09 +0000 | [diff] [blame] | 4420 | - Change localedir line to 1.0's version. |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 4421 | - Moved m4/ stuff to its own m4/Makefile.am. |
Jordi Mallach | 87435d9 | 2002-03-05 17:58:34 +0000 | [diff] [blame] | 4422 | - m4/aclocal_inc.m4: |
| 4423 | - New macro AM_ACLOCAL_INCLUDE, tells configure.ac where to look for |
| 4424 | macros (Gergely Nagy). |
Jordi Mallach | 3c5653d | 2002-02-23 18:23:43 +0000 | [diff] [blame] | 4425 | - configure.in: |
| 4426 | - Renamed to configure.ac. |
| 4427 | - configure.ac: |
| 4428 | - Moved to autoconf 2.52 (Jeff Bailey). |
Jordi Mallach | 87435d9 | 2002-03-05 17:58:34 +0000 | [diff] [blame] | 4429 | - Added call to AM_ACLOCAL_INCLUDE. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4430 | - files.c: |
| 4431 | read_byte() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4432 | - Added check for control characters (indicative of a binary |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 4433 | file), set NO_CONVERT if found (fixes by DLR). |
Chris Allegretta | f5de33a | 2002-02-27 04:14:16 +0000 | [diff] [blame] | 4434 | do_insertfile() |
| 4435 | - Added support for -o in prompt (Steven Kneizys). |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4436 | - global.c: |
| 4437 | - Move openprev and opennext functions to shortcuts, they really |
| 4438 | aren't toggles (DLR). |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 4439 | - rcfile.c: |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4440 | parse_next_regex() |
Chris Allegretta | 3d8e759 | 2002-02-02 07:13:02 +0000 | [diff] [blame] | 4441 | - Allow " symbol to be in regex without leading \ by checking |
| 4442 | for *ptr+1 is not the end of the regex. |
Chris Allegretta | ff8a68c | 2002-02-16 20:34:57 +0000 | [diff] [blame] | 4443 | do_rcfile() |
| 4444 | - Parse rcfile in $SYSCONFDIR as well (Dwayne Rightler). |
Chris Allegretta | 48b0670 | 2002-02-22 04:30:50 +0000 | [diff] [blame] | 4445 | - nano.1: |
| 4446 | - Added Noconvert option to man page (DLR). |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4447 | - nano.c: |
Chris Allegretta | d4fa0d3 | 2002-03-05 19:55:55 +0000 | [diff] [blame] | 4448 | justify_format(), do_justify() |
| 4449 | - Various fixes for starting blank spaces, spaces after |
| 4450 | punctuation, & segfault with quoting strings (David Benbennick). |
Chris Allegretta | 46c1b9e | 2002-03-05 19:58:45 +0000 | [diff] [blame] | 4451 | do_justify() |
| 4452 | - Don't continue to justify string if it's indented more |
| 4453 | (quoting wise) than the beginning of the justification. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4454 | help_init() |
| 4455 | - Added message re: having multiple blank buffers (DLR). |
Chris Allegretta | 9caa193 | 2002-02-15 20:08:05 +0000 | [diff] [blame] | 4456 | main() |
| 4457 | - Add 407 as equiv of 26, this seems to be sent when using |
| 4458 | ^Z in linux console with keypad() enabled. |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 4459 | - rcfile.c: |
| 4460 | - Get rid of unneeded relativechars from rcopts (DLR). |
| 4461 | - search.c |
| 4462 | do_replace(), findnextstr() |
| 4463 | - Fixes for various search issues (Ken Tyler) |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 4464 | - winio.c: |
| 4465 | do_cursorpos() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4466 | - Rewritten to show col place as well as character place, without |
Chris Allegretta | f27c697 | 2002-02-12 01:57:24 +0000 | [diff] [blame] | 4467 | needing an entirely separate flag. |
Chris Allegretta | a8c2257 | 2002-02-15 19:17:02 +0000 | [diff] [blame] | 4468 | bottombars(), onekey() |
| 4469 | - Make bottom list dynamic with screen size (Guus Sliepen & Chris). |
Chris Allegretta | bc72e36 | 2002-02-16 20:03:44 +0000 | [diff] [blame] | 4470 | - More cleanups w/width of shortcut. |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 4471 | - utils.c: |
Chris Allegretta | 99ed9dc | 2002-02-28 00:57:18 +0000 | [diff] [blame] | 4472 | strcasestr(),revstrcasestr() |
| 4473 | - Renamed to stristr and revstristr since strcasestr has not |
| 4474 | been confirmed to be detected properly on various Linux |
| 4475 | systems. |
Chris Allegretta | d4fa0d3 | 2002-03-05 19:55:55 +0000 | [diff] [blame] | 4476 | strstrwrapper() |
| 4477 | - NANO_SMALL test was backwards (Ken Tyler). |
| 4478 | - winio.c: |
| 4479 | strlenpt() |
| 4480 | - Changed main function to strnlenpt() for new justify changes, |
| 4481 | original function now just a stub. |
Chris Allegretta | 3c597d0 | 2002-01-26 03:42:14 +0000 | [diff] [blame] | 4482 | - nanorc.sample |
| 4483 | - Mention unset in the sample nanorc. |
Jordi Mallach | 83ffefb | 2002-01-25 21:00:18 +0000 | [diff] [blame] | 4484 | - po/ca.po, po/es.po: |
| 4485 | - Catalan and Spanish translation updates (Jordi). |
Jordi Mallach | 9c34a16 | 2002-01-26 00:46:47 +0000 | [diff] [blame] | 4486 | - po/sv.po: |
| 4487 | - Swedish translation updates (Christian Rose). |
| 4488 | - po/fr.po: |
| 4489 | - French translation updates (Jean-Philippe Guérard). |
Jordi Mallach | 8636f7b | 2002-01-26 19:23:37 +0000 | [diff] [blame] | 4490 | - po/nn.po: |
| 4491 | - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). |
| 4492 | - po/de.po: |
| 4493 | - German translation updates (Michael Piefel). |
Chris Allegretta | 8dbfb5c | 2002-01-28 15:56:15 +0000 | [diff] [blame] | 4494 | - po/it.po: |
| 4495 | - Italian translation updates (Marco Colombo). |
Jordi Mallach | 94def06 | 2002-02-06 12:14:25 +0000 | [diff] [blame] | 4496 | - po/cs.po: |
| 4497 | - Partial Czech translation updates (Vaclav Haisman). |
Jordi Mallach | 8bfd311 | 2002-02-06 20:53:04 +0000 | [diff] [blame] | 4498 | - po/hu.po: |
| 4499 | - Hungarian translation updates, or to be precise, rewrite |
| 4500 | (Gergely Nagy). |
Jordi Mallach | b3b28c1 | 2002-02-07 13:51:00 +0000 | [diff] [blame] | 4501 | - po/uk.po, po/ru.po: |
Jordi Mallach | 507c361 | 2002-02-14 18:57:23 +0000 | [diff] [blame] | 4502 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
| 4503 | - po/da.po: |
| 4504 | - Danish translation updates (Keld Simonsen). |
Jordi Mallach | e46d43d | 2002-02-15 17:13:11 +0000 | [diff] [blame] | 4505 | - po/nb.po: |
| 4506 | - Norwegian bokmål translation updates (Stig E Sandoe). |
Jordi Mallach | 62d2171 | 2002-02-20 16:21:27 +0000 | [diff] [blame] | 4507 | - po/nl.po: |
| 4508 | - Dutch translation updates (Guus Sliepen). |
Jordi Mallach | a3322fd | 2002-03-05 11:23:17 +0000 | [diff] [blame] | 4509 | - po/pl.po: |
| 4510 | - Polish translation updates (Wojciech Kotwica). |
Jordi Mallach | 83ffefb | 2002-01-25 21:00:18 +0000 | [diff] [blame] | 4511 | |
Chris Allegretta | 491029e | 2002-01-25 17:02:32 +0000 | [diff] [blame] | 4512 | nano-1.1.6 - 01/25/2002 |
Chris Allegretta | 044d1b1 | 2002-01-08 00:33:32 +0000 | [diff] [blame] | 4513 | - General |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4514 | - Add Meta-A as alternate keystroke for ^^ for people with |
Chris Allegretta | 044d1b1 | 2002-01-08 00:33:32 +0000 | [diff] [blame] | 4515 | non-US keyboards. |
Chris Allegretta | 967a1e2 | 2002-01-10 00:50:38 +0000 | [diff] [blame] | 4516 | - Add Alt-G (NANO_ALT_GOTO_KEY) as alternate for goto dir in |
| 4517 | browser. |
Chris Allegretta | 1bc0c7e | 2002-01-08 15:00:24 +0000 | [diff] [blame] | 4518 | - Better partial word checking code. New function |
| 4519 | search.c:is_whole_word(), changes to findnextstr(), |
| 4520 | and nano.c:do_int_spell_fix() (Rocco Corsi). |
Chris Allegretta | 6c1e661 | 2002-01-19 16:52:34 +0000 | [diff] [blame] | 4521 | - Added multiple-line regex support. Format in .nanorc is |
| 4522 | start="regex" end="regex". Cleaned up nanorc:parse_colors(), |
| 4523 | added parse_next_regex(), changes to edit_add in winio.c(), |
| 4524 | changes to colortype, cleaning up some old cruft. |
Chris Allegretta | 15b23f4 | 2002-01-19 19:15:18 +0000 | [diff] [blame] | 4525 | - Upgrade to gettext 0.10.40, probably broke everything again :) |
Chris Allegretta | 24e48d8 | 2002-01-23 01:06:20 +0000 | [diff] [blame] | 4526 | - Upgraded to and then downgraded from automake 1.5, as there |
| 4527 | are severe security implications. |
Chris Allegretta | ea250e8 | 2002-01-16 01:09:11 +0000 | [diff] [blame] | 4528 | - color.c: |
| 4529 | do_colorinit() |
| 4530 | - Moved some comments and braces around so color can work |
| 4531 | w/slang (DLR). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 4532 | - global.c: |
| 4533 | shorcut_init() |
| 4534 | - Replace hard coded ALT_G and ALT_H values in the replace |
| 4535 | and goto shortcuts with their macro counterparts NANO_ALT_*_KEY. |
Jordi Mallach | 345a846 | 2002-01-07 11:35:16 +0000 | [diff] [blame] | 4536 | - nano.c: |
| 4537 | usage() |
| 4538 | - Remove extra \n in --keypad description (Jordi). |
Chris Allegretta | f7dee92 | 2002-01-07 16:43:25 +0000 | [diff] [blame] | 4539 | main() |
| 4540 | - Check that alt value is an alpha char before comparing to |
| 4541 | val - 32, fixes Alt-R calling doprev instead of replace. |
Chris Allegretta | b2cd10d | 2002-01-20 00:54:42 +0000 | [diff] [blame] | 4542 | do_char() |
| 4543 | - Run edit_refresh() if ENABLE_COLOR is defined so adding |
| 4544 | multi-liners will update (e.g. /* in C). |
Chris Allegretta | 23b74b2 | 2002-01-21 20:32:22 +0000 | [diff] [blame] | 4545 | do_int_spell_fix() |
| 4546 | - Temporarily unset REVERSE_SEARCH if it's set (Rocco Corsi). |
Chris Allegretta | 7b0667f | 2002-01-10 12:44:21 +0000 | [diff] [blame] | 4547 | do_suspend() |
| 4548 | - Call tcsetattr() to restore the old terminal settings, so |
Chris Allegretta | 5bbce6a | 2002-01-10 12:48:16 +0000 | [diff] [blame] | 4549 | tcsh can use ^C after suspend for example (fixes BUG #68). |
Chris Allegretta | 438f713 | 2002-01-16 00:54:47 +0000 | [diff] [blame] | 4550 | do_wrap() |
| 4551 | - Move "right" increment to part where new line is created, |
| 4552 | should change (fix?) some wrapping problems with autoindent. |
Jordi Mallach | 5285ca9 | 2002-01-17 12:40:33 +0000 | [diff] [blame] | 4553 | version() |
| 4554 | - Show --enable-multibuffer independently of --enable-extra being |
| 4555 | compiled in (Jordi). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 4556 | - nano.h: |
| 4557 | - Changed color struct slightly, because of previous issue with |
| 4558 | applying color painting in order, the "str" portion was |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4559 | useless. Renamed "val" in colortype to "start", added "end" |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 4560 | for multi-line color strings. |
| 4561 | - rcfile.c: |
| 4562 | General |
| 4563 | - Took silly variables being passed everywhere like lineno and |
| 4564 | filename and made them static variables. |
Chris Allegretta | 6c1e661 | 2002-01-19 16:52:34 +0000 | [diff] [blame] | 4565 | - Re-indented. |
Chris Allegretta | 34f8098 | 2002-01-22 20:09:20 +0000 | [diff] [blame] | 4566 | - Added stdarg.h to includes. |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 4567 | rcfile_error() |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4568 | - Now automatically prepends the "error in line blah at foo" |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 4569 | message to error messages. |
| 4570 | parse_colors() |
| 4571 | - Added section for computing "end" section. |
| 4572 | parse_next_word() |
| 4573 | - Added support for "\ ", in word parsing. |
Chris Allegretta | e29697d | 2002-01-14 03:31:10 +0000 | [diff] [blame] | 4574 | - search.c: |
Chris Allegretta | 1c2fddc | 2002-01-21 20:40:14 +0000 | [diff] [blame] | 4575 | do_search() |
| 4576 | - Check position of cursor and return value of findnextstr and |
| 4577 | tell user if search string only occurs once (Rocco & Chris). |
Chris Allegretta | e29697d | 2002-01-14 03:31:10 +0000 | [diff] [blame] | 4578 | findnextstr() |
| 4579 | - Fix off by one in check for wrap around (Rocco Corsi). |
Chris Allegretta | 3d0739c | 2002-01-07 14:41:32 +0000 | [diff] [blame] | 4580 | - winio.c: |
| 4581 | edit_refresh() |
| 4582 | - Rename lines to nlines to fix AIX breakage (reported by |
| 4583 | Dennis Cranston, re-reported by arh14@cornell.edu). |
Chris Allegretta | f478f83 | 2002-01-18 21:54:35 +0000 | [diff] [blame] | 4584 | edit_add() |
| 4585 | - Refuse to honor regex matches of 0 characters when applying |
| 4586 | color highlighting, and say so on the statusbar. Otherwise |
| 4587 | we go into an infinite loop, the error message should clue |
| 4588 | users into the fact that their regex is doing something bad. |
Jordi Mallach | d6481e4 | 2002-01-17 12:14:23 +0000 | [diff] [blame] | 4589 | - THANKS: |
| 4590 | - Oops, correct Eivind's entry. His translation was Norwegian nynorsk, |
Jordi Mallach | 83d5ced | 2002-01-17 12:06:49 +0000 | [diff] [blame] | 4591 | not bokmål as we claimed (Jordi). |
Chris Allegretta | 9963b0e | 2002-01-19 19:35:12 +0000 | [diff] [blame] | 4592 | - .cvsignore |
| 4593 | - Added config.guess config.sub install-sh missing & mkinstalldirs |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 4594 | - po/ca.po, po/es.po: |
Jordi Mallach | e36a152 | 2002-01-07 15:12:48 +0000 | [diff] [blame] | 4595 | - Catalan and Spanish translation updates (Jordi). |
| 4596 | - po/sv.po: |
| 4597 | - Swedish translation update (Christian Rose). |
Jordi Mallach | d39698f | 2002-01-07 15:16:26 +0000 | [diff] [blame] | 4598 | - po/de.po: |
| 4599 | - German translation update (Michael Piefel). |
Jordi Mallach | bf1a1e8 | 2002-01-08 14:07:39 +0000 | [diff] [blame] | 4600 | - po/fr.po: |
| 4601 | - French translation update (Jean-Philippe Guérard). |
| 4602 | - po/ru.po, po/uk.po: |
| 4603 | - Russian and Ukrainian translation updates (Sergey A. Ribalchenko). |
Jordi Mallach | 83d5ced | 2002-01-17 12:06:49 +0000 | [diff] [blame] | 4604 | - po/no.po: |
| 4605 | - Moved to po/nn.po, which is the correct name for Norwegian nynorsk. |
| 4606 | - po/nn.po: |
| 4607 | - Norwegian nynorsk translation updates (Kjetil Torgrim Homme). |
| 4608 | - po/nb.po: |
| 4609 | - New Norwegian bokmål translation (Stig E Sandoe <stig@ii.uib.no>). |
Jordi Mallach | 3a23a55 | 2002-01-18 23:04:16 +0000 | [diff] [blame] | 4610 | - po/da.po: |
| 4611 | - Danish translation update (Keld Simonsen). |
Chris Allegretta | d175193 | 2002-01-05 20:01:53 +0000 | [diff] [blame] | 4612 | |
Chris Allegretta | 110927b | 2002-01-05 19:49:06 +0000 | [diff] [blame] | 4613 | nano-1.1.5 - 01/05/2002 |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 4614 | - General |
| 4615 | - Better integration of View mode (-v) and multibuffer. |
| 4616 | Fixes to new_file(), do_insertfile_void(), shortcut_init() |
| 4617 | (David Lawrence Ramsey). |
Chris Allegretta | 48bd378 | 2002-01-03 21:26:34 +0000 | [diff] [blame] | 4618 | - The keypad handling has changed (again). We now use |
| 4619 | the keypad() function by default. New flag -K, --keypad |
| 4620 | allows the old behavior for those using the keypad arrow keys |
| 4621 | and rxvt-based terminals. |
Jordi Mallach | 8ae5789 | 2002-01-04 17:57:40 +0000 | [diff] [blame] | 4622 | - Updated copyright notices to 2002 (Jordi). |
Chris Allegretta | 0bb70dc | 2001-12-17 04:34:23 +0000 | [diff] [blame] | 4623 | - nano.c: |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 4624 | die() |
| 4625 | - Only save files that were modified (David Lawrence Ramsey). |
Chris Allegretta | 0bb70dc | 2001-12-17 04:34:23 +0000 | [diff] [blame] | 4626 | do_cont() |
| 4627 | - Run signal_init() after doupdate() so ^Y wont suddenly |
| 4628 | start suspending after returning from ^Z suspend in Hurd. |
| 4629 | signal_init() |
| 4630 | - Unconditionally disable VDSUSP if it exists, stops ^Y |
| 4631 | suspending nano on the Hurd. |
Jordi Mallach | 11f39e7 | 2001-12-25 19:17:32 +0000 | [diff] [blame] | 4632 | help_init() |
Chris Allegretta | 64dd95d | 2001-12-27 20:53:54 +0000 | [diff] [blame] | 4633 | - Typo fixes in help strings (Jordi). |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4634 | - New variable helplen needed cause currslen is not always |
Chris Allegretta | 13fd44b | 2002-01-02 13:59:11 +0000 | [diff] [blame] | 4635 | the length we want (bug found by David Lawrence Ramsey). |
Chris Allegretta | 180a569 | 2002-01-02 14:30:33 +0000 | [diff] [blame] | 4636 | - Typo in file switch string (found by David Lawrence Ramsey). |
| 4637 | main() |
| 4638 | - Handle Alt prev/next file keys (,.), as well as normal ones (<>). |
Chris Allegretta | 32da456 | 2002-01-02 15:12:21 +0000 | [diff] [blame] | 4639 | - Handle OS-specific insert keys by jump to do_insertkey (David |
| 4640 | Lawrence Ramsey). |
Chris Allegretta | 64dd95d | 2001-12-27 20:53:54 +0000 | [diff] [blame] | 4641 | - files.c: |
| 4642 | read_file() |
| 4643 | - Make conversion message less confusing (suggested by Jordi). |
Chris Allegretta | 13fd44b | 2002-01-02 13:59:11 +0000 | [diff] [blame] | 4644 | - rcfile.c: |
| 4645 | parse_next_word() |
| 4646 | - Get rid of ptr == \n check to abort, screws up option |
| 4647 | parsing (bug found by David Lawrence Ramsey) |
Chris Allegretta | 52db7a2 | 2001-12-17 23:39:36 +0000 | [diff] [blame] | 4648 | - winio.c: |
| 4649 | update_line() |
Chris Allegretta | 3c57e50 | 2001-12-19 16:20:43 +0000 | [diff] [blame] | 4650 | - set realdata check to >= 1 && <= 31, lack of > 0 check screwed |
| 4651 | high ascii characters. |
Jordi Mallach | 9335f91 | 2001-12-23 00:03:18 +0000 | [diff] [blame] | 4652 | titlebar() |
| 4653 | - gettextized a pair of strings. |
Chris Allegretta | e5b9eac | 2002-01-05 01:52:02 +0000 | [diff] [blame] | 4654 | bottombars() |
| 4655 | - Get rid of that annoying reversed line when color is on! :) |
Chris Allegretta | 1bf8f5e | 2002-01-05 03:30:10 +0000 | [diff] [blame] | 4656 | edit_add() |
| 4657 | - Little fixes to let color highlights not bleed onto the next line. |
Chris Allegretta | a16e4e9 | 2002-01-05 18:59:54 +0000 | [diff] [blame] | 4658 | statusq() |
| 4659 | - Initialize "list". |
Chris Allegretta | cf68071 | 2001-12-18 14:59:20 +0000 | [diff] [blame] | 4660 | - m4/gettext.m4: |
| 4661 | - Back down to 1.1.3 version. |
Jordi Mallach | cf9f783 | 2001-12-26 12:33:01 +0000 | [diff] [blame] | 4662 | - faq.html: |
| 4663 | - Various link updates and other fixes (Aaron S. Hawley). |
| 4664 | - Typo fixes (David Lawrence Ramsey). |
Chris Allegretta | fae0dce | 2002-01-04 13:30:42 +0000 | [diff] [blame] | 4665 | - AUTHORS |
| 4666 | - Add DLR. |
Jordi Mallach | 77b1232 | 2001-12-22 23:23:40 +0000 | [diff] [blame] | 4667 | - po/sv.po: |
| 4668 | - Swedish translation update (Christian Rose). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 4669 | - po/ru.po, po/uk.po: |
Jordi Mallach | 3279398 | 2001-12-28 16:35:28 +0000 | [diff] [blame] | 4670 | - Russian and Ukrainian translations updates (Sergey A. Ribalchenko). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 4671 | - po/ca.po, po/es.po: |
Jordi Mallach | 414acab | 2001-12-26 00:15:16 +0000 | [diff] [blame] | 4672 | - Catalan and Spanish translations updates (Jordi). |
Jordi Mallach | a4ffccb | 2001-12-26 00:31:17 +0000 | [diff] [blame] | 4673 | - po/pl.po: |
| 4674 | - New Polish, partial translation, by Cezary Sliwa <sliwa@cft.edu.pl>. |
Jordi Mallach | 65f3e42 | 2002-01-04 17:48:58 +0000 | [diff] [blame] | 4675 | - Wojciech Kotwica <wkotwica@post.pl> completed it and is the new |
| 4676 | official maintainer. |
Jordi Mallach | 1a58fb4 | 2001-12-27 16:00:23 +0000 | [diff] [blame] | 4677 | - po/fr.po: |
| 4678 | - French translation update (Michel Robitaille). |
Jordi Mallach | 05d8ce9 | 2001-12-27 20:34:42 +0000 | [diff] [blame] | 4679 | - po/gl.po: |
| 4680 | - Galician translation update (Jacobo TarrÃo). |
Jordi Mallach | 78e2c9d | 2001-12-27 22:06:38 +0000 | [diff] [blame] | 4681 | - po/it.po: |
| 4682 | - Italian translation update (Marco Colombo). |
Jordi Mallach | 3279398 | 2001-12-28 16:35:28 +0000 | [diff] [blame] | 4683 | - po/de.po: |
| 4684 | - German translation update (Michael Piefel). |
Jordi Mallach | 13f3017 | 2002-01-02 18:45:58 +0000 | [diff] [blame] | 4685 | - po/fr.po: |
| 4686 | - French translation update (Jean-Philippe Guérard). |
Chris Allegretta | 5fd6cac | 2001-12-12 13:55:19 +0000 | [diff] [blame] | 4687 | |
Chris Allegretta | 7bf2509 | 2001-12-12 02:44:40 +0000 | [diff] [blame] | 4688 | nano-1.1.4 - 12/11/2001 |
Chris Allegretta | 08893e0 | 2001-11-29 02:42:27 +0000 | [diff] [blame] | 4689 | - General |
| 4690 | - Preliminary syntax highlighting support. New functions |
| 4691 | colortoint() and parse_color() in rcfile.c, new code in |
| 4692 | edit_add() in winio.c to actually do the highlighting. It's |
| 4693 | not even close to pretty yet :P |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 4694 | - Many int/long alignments (David Lawrence Ramsey). |
Chris Allegretta | 0567bfe | 2001-10-28 14:42:18 +0000 | [diff] [blame] | 4695 | - files.c: |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 4696 | - Fixes for tab completion and screen refresh (David Lawrence |
| 4697 | Ramsey). |
Chris Allegretta | 0567bfe | 2001-10-28 14:42:18 +0000 | [diff] [blame] | 4698 | add_open_file() |
| 4699 | - Get rid of unsetting MARK_ISSET because otherwise writing |
| 4700 | marked text will automatically unset the marker with |
| 4701 | multibuffer enabled. |
Chris Allegretta | 22ec59a | 2001-10-28 04:56:08 +0000 | [diff] [blame] | 4702 | - global.c: |
| 4703 | - Define currshortcut and currslen when either DISABLE_MOUSE |
Chris Allegretta | 8c8d370 | 2001-10-28 05:00:39 +0000 | [diff] [blame] | 4704 | or DISABLE_HELP or DISABLE_BROWSER is not defined (Silvan |
| 4705 | Minghetti). |
Chris Allegretta | 7bf7274 | 2001-10-28 04:29:55 +0000 | [diff] [blame] | 4706 | - nano.c: |
| 4707 | main() |
Chris Allegretta | f3e80ad | 2001-10-28 04:49:10 +0000 | [diff] [blame] | 4708 | - Add Esc-[-[IGL] keys for FreeBSD Console (PgUp,PgDn,Insert). |
Chris Allegretta | 9b8b370 | 2001-11-19 05:09:15 +0000 | [diff] [blame] | 4709 | - Added better Hurd support for function keys (Alt-V,U,9,@,F). |
| 4710 | signal_init() |
| 4711 | - do SIG_IGN for the SIGTSTP sigaction regardless of whether |
| 4712 | we have _POSIX_VDISABLE or not (more Hurd fixes) |
Jordi Mallach | 773623c | 2001-10-28 21:00:49 +0000 | [diff] [blame] | 4713 | help_init() |
| 4714 | - Typo fixes and additions to the new help texts. |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 4715 | do_curpos() |
| 4716 | - Now takes arg for constant updating to always show the cursor |
| 4717 | position (David Lawrence Ramsey). |
| 4718 | do_wrap() |
| 4719 | - Many fixes (David Lawrence Ramsey). |
Chris Allegretta | 8083827 | 2001-12-02 06:03:22 +0000 | [diff] [blame] | 4720 | do_spell() |
| 4721 | - Dont prompt for replace if we don't change the word in |
| 4722 | question (Rocco Corsi). |
Jordi Mallach | 8c9c572 | 2001-10-31 13:02:12 +0000 | [diff] [blame] | 4723 | - po/de.po: |
| 4724 | - German translation updates (Karl Eichwalder). |
| 4725 | - po/ru.po: |
| 4726 | - Russian translation updates (Sergey A. Ribalchenko). |
| 4727 | - po/sv.po: |
| 4728 | - Swedish translation updates (Christian Rose). |
Jordi Mallach | feebeb9 | 2001-11-19 12:09:51 +0000 | [diff] [blame] | 4729 | - po/da.po: |
| 4730 | - Danish translation updates (Keld Simonse). |
| 4731 | - po/es.po: |
| 4732 | - Spanish translation updates (Jordi). |
Jordi Mallach | df59ae6 | 2001-12-07 14:00:56 +0000 | [diff] [blame] | 4733 | - po/fr.po: |
| 4734 | - French translation updates (Michel Robitaille). |
Chris Allegretta | 9c23a44 | 2001-12-12 01:45:01 +0000 | [diff] [blame] | 4735 | - m4/gettext.m4: |
| 4736 | - diff against mutt 1.2.5's gettext.m4. |
Chris Allegretta | 7b409bd | 2001-10-26 16:15:58 +0000 | [diff] [blame] | 4737 | |
Chris Allegretta | dc57bba | 2001-10-26 16:14:45 +0000 | [diff] [blame] | 4738 | nano-1.1.3 - 10/26/2001 |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 4739 | - General |
| 4740 | - Finally wrote function-specific help mode. Changes to |
| 4741 | nano.c:help_init() and winio.c:do_help(). Changed |
| 4742 | currshortcut and currslen #ifdefs to depend on both |
| 4743 | DISABLE_HELP and DISABLE_MOUSE being defined to not |
| 4744 | include. Changed all the shortcuts and lengths. |
Chris Allegretta | fa0c696 | 2001-10-22 23:22:19 +0000 | [diff] [blame] | 4745 | - Fixed null_at to ACTUALLY DO SOMETHING with its arg. Again, |
| 4746 | this was causing nasty errors if the call to nrealloc moved |
| 4747 | where the data was located. |
Chris Allegretta | 3a24f3f | 2001-10-24 11:33:54 +0000 | [diff] [blame] | 4748 | - Changed header comments to say "version 2" instead of "version |
| 4749 | 1" as the COPYING file is actually version 2 of the GPL (bug |
| 4750 | noticed by Jordi Mallach). |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 4751 | - cut.c: |
| 4752 | do_cut_text() |
| 4753 | - Check to see whether marked text is contained within edit |
| 4754 | window and if so only do an edit_refresh (variable dontupdate |
| 4755 | replaces cuttingpartialline). |
| 4756 | do_uncut_text() |
| 4757 | - Similar display fixes (David Lawrence Ramsey). |
Chris Allegretta | beead28 | 2001-10-18 14:15:28 +0000 | [diff] [blame] | 4758 | - faq.html |
| 4759 | - Removed nano-editor.org FTP site address [deprecated] and added |
| 4760 | the GNU one. |
Chris Allegretta | 76e291b | 2001-10-14 19:05:10 +0000 | [diff] [blame] | 4761 | - files.c: |
| 4762 | - Added status messages for converted DOS and Mac files. |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 4763 | People should know that their file wasnt normally formatted. |
| 4764 | load_file() |
| 4765 | - Status message when trying to load an already loaded file with multiple |
| 4766 | buffers (David Lawrence Ramsey). |
| 4767 | read_file() |
| 4768 | - Get rid of useless linetemp variable and name num_lines int |
| 4769 | (David Lawrence Ramsey). |
Chris Allegretta | 76e291b | 2001-10-14 19:05:10 +0000 | [diff] [blame] | 4770 | - nano.c: |
| 4771 | - 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] | 4772 | Alt-space, as next word is hard coded as control-space. Fixed |
| 4773 | 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] | 4774 | beginning of first line, prog should simply abort. Added |
| 4775 | the #ifdefs around the code in main(). |
Chris Allegretta | 1078640 | 2001-10-24 17:27:46 +0000 | [diff] [blame] | 4776 | - nano.h: |
| 4777 | - Additional #define, SMALL_TOO to determine how long |
| 4778 | MAIN_LIST_LEN is. We need this because of the find matching |
| 4779 | bracket code. |
Chris Allegretta | 48ebb81 | 2001-10-24 01:34:15 +0000 | [diff] [blame] | 4780 | main() |
Chris Allegretta | 347c184 | 2001-10-24 01:37:13 +0000 | [diff] [blame] | 4781 | - Moved #ifndef NANO_SMALL down past the case 0: line so |
| 4782 | control-space doesn't insert a \0 (ack!) |
Chris Allegretta | b3655b4 | 2001-10-22 03:15:31 +0000 | [diff] [blame] | 4783 | - rcfile.c: |
| 4784 | - Fix incorrect number of rc options (David Lawrence Ramsey). |
Jordi Mallach | 482d165 | 2001-10-06 02:36:25 +0000 | [diff] [blame] | 4785 | - po/sv.po: |
| 4786 | - Updated Swedish translation (Christian Rose). |
Chris Allegretta | 2084acc | 2001-11-29 03:43:08 +0000 | [diff] [blame] | 4787 | - po/da.po: |
Jordi Mallach | 2476ebd | 2001-10-07 00:26:26 +0000 | [diff] [blame] | 4788 | - Updated Danish translation (Keld Simonsen). |
Jordi Mallach | 26f4603 | 2001-10-07 15:53:27 +0000 | [diff] [blame] | 4789 | - po/es.po: |
| 4790 | - Style updates to Spanish translation (Santiago Vila). |
Jordi Mallach | 3da9139 | 2002-01-07 11:50:13 +0000 | [diff] [blame] | 4791 | - po/ru.po, po/uk.po: |
Jordi Mallach | eb94b9e | 2001-10-15 14:26:48 +0000 | [diff] [blame] | 4792 | - Updated Russian and Ukrainian translation (Sergey A. Ribalchenko). |
Chris Allegretta | 9a39789 | 2001-10-04 01:25:43 +0000 | [diff] [blame] | 4793 | |
Chris Allegretta | 03260b4 | 2001-10-04 01:24:07 +0000 | [diff] [blame] | 4794 | nano-1.1.2 - 10/03/2001 |
Chris Allegretta | c1049ac | 2001-08-17 00:03:46 +0000 | [diff] [blame] | 4795 | - General |
| 4796 | - Added BUGS #63 & 64. Fixes in search_init() and nanogetstr(), |
| 4797 | new flag CLEAR_BACKUPSTRING because there's no easy way to |
| 4798 | clear the backupstring without making it global (messy), so we |
| 4799 | use a flag instead (just as messy?) |
Chris Allegretta | ff98983 | 2001-09-17 13:48:00 +0000 | [diff] [blame] | 4800 | - --enable-tiny now leaves out the Auto Indent code, do you really |
| 4801 | need that on a bootdisk? =-) |
Chris Allegretta | e1f1452 | 2001-09-19 03:19:43 +0000 | [diff] [blame] | 4802 | - New flag -o, --operatingdir, similar to Pico's -o mode. New |
| 4803 | function check_operating_dir(), changes to load_file (arg), |
Chris Allegretta | e09cd1d | 2001-09-19 03:22:52 +0000 | [diff] [blame] | 4804 | open_file_dup_search (arg), new function do_gotopos for -F |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 4805 | (David Lawrence Ramsey). |
Chris Allegretta | 9184189 | 2001-09-21 02:37:01 +0000 | [diff] [blame] | 4806 | - Code to read/write dos formatted files. Massive amounts of |
Chris Allegretta | 7004c28 | 2001-09-22 00:42:10 +0000 | [diff] [blame] | 4807 | new code in read_line and write_file. New cmdline flag |
| 4808 | (-D --dos) to automatically write the file in DOS format, |
| 4809 | regardless of the original format. |
Chris Allegretta | 995177f | 2001-09-22 04:34:23 +0000 | [diff] [blame] | 4810 | - Mac file writing supported too. Flag -M, --mac. Toggle |
| 4811 | Meta-O (MacOS? OS-X? =-) |
Chris Allegretta | 3e3ae94 | 2001-09-22 19:02:04 +0000 | [diff] [blame] | 4812 | - New smooth scroll code by Ken Tyler. New flag -S, --smooth, |
Chris Allegretta | d948edc | 2001-10-02 00:38:56 +0000 | [diff] [blame] | 4813 | changes to page_up() and page_down(). Many fixes to paging by |
Chris Allegretta | 5050d35 | 2001-09-27 00:44:58 +0000 | [diff] [blame] | 4814 | David Lawrence Ramsey. |
Chris Allegretta | 8d990b5 | 2001-09-22 22:14:25 +0000 | [diff] [blame] | 4815 | - Bracket (brace, parens, etc) matching code by Ken Tyler. |
| 4816 | New functions do_find_bracket(), changes to findnextstr(), |
| 4817 | command is Meta-] (hope you dont mind since I already sold off |
Chris Allegretta | 2bef182 | 2001-09-28 19:53:11 +0000 | [diff] [blame] | 4818 | Meta-O to the MacOS file code Ken...) Fixes to bracket_msg |
| 4819 | by DLR. |
Chris Allegretta | 1b3381b | 2001-09-28 21:59:01 +0000 | [diff] [blame] | 4820 | - Call do_gotopos from do_alt_spell() to keep position |
| 4821 | consistent when invoking alt speller (DLR). |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 4822 | - Readded DISABLE_CURPOS because in certain instances (like |
Chris Allegretta | 03260b4 | 2001-10-04 01:24:07 +0000 | [diff] [blame] | 4823 | all the "Search Wrapped" lines) the cursor position will |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 4824 | be different yet we don't want the cursor position displayed. |
Chris Allegretta | e10f389 | 2001-10-02 03:54:40 +0000 | [diff] [blame] | 4825 | - Take control-space out of -tiny build, unneeded. |
Chris Allegretta | 222a086 | 2001-10-02 00:24:37 +0000 | [diff] [blame] | 4826 | - cut.c: |
| 4827 | cut_marked_segment() |
| 4828 | - Add magic line when cutting a selection including filebot |
Chris Allegretta | 31b2b81 | 2001-10-03 01:51:33 +0000 | [diff] [blame] | 4829 | (discovered by DLR, fixed by DLR & Chris, fixes BUG #66). |
Chris Allegretta | dc2ca88 | 2001-10-02 23:55:09 +0000 | [diff] [blame] | 4830 | do_cut_text() |
Chris Allegretta | 5e4b108 | 2001-10-03 00:45:06 +0000 | [diff] [blame] | 4831 | - Don't recenter the line when cutting one line (DLR) (Bug #65). |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 4832 | - faq.html: |
| 4833 | - Notes about the Free Translation Project. |
| 4834 | - Debian additions. |
Chris Allegretta | 9519eb0 | 2001-09-27 20:46:25 +0000 | [diff] [blame] | 4835 | - files.c: |
| 4836 | do_writeout() |
| 4837 | - Expanded strings to not use %s and ?: to determine |
| 4838 | write/append string to be nice to translators. |
Chris Allegretta | 1b3381b | 2001-09-28 21:59:01 +0000 | [diff] [blame] | 4839 | new_file() |
| 4840 | - Initialize totsize (DLR). |
Chris Allegretta | 0357c4d | 2001-09-19 02:59:25 +0000 | [diff] [blame] | 4841 | - nano.c: |
| 4842 | main() |
Chris Allegretta | b516d8e | 2001-10-03 00:01:36 +0000 | [diff] [blame] | 4843 | - Added var constcheck as a CRC-like check of whether cursor |
Chris Allegretta | 0357c4d | 2001-09-19 02:59:25 +0000 | [diff] [blame] | 4844 | pos has changed and if so update the pos with -c. |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 4845 | - Many tweaks and changes from numerics to char equivs |
| 4846 | (David Lawrence Ramsey). |
Chris Allegretta | 92f5fdc | 2001-10-02 02:58:07 +0000 | [diff] [blame] | 4847 | - Fix the KEY_IC being undefined when using slang. |
Chris Allegretta | 6414b40 | 2001-09-21 03:21:11 +0000 | [diff] [blame] | 4848 | do_mouse() |
| 4849 | - Send 27 when the menu item clicked is an alt key seq... The |
| 4850 | lines aren't lined up since the menu width changed though, |
| 4851 | this breakage depends on whether the new widths will be kept |
| 4852 | or not (FEEDBACK!!) |
Chris Allegretta | a951f21 | 2001-09-27 21:07:39 +0000 | [diff] [blame] | 4853 | - Change k based on currslen to allow the new widths in |
| 4854 | bottombars(). |
Chris Allegretta | 56214c6 | 2001-09-27 02:46:53 +0000 | [diff] [blame] | 4855 | do_wrap() |
| 4856 | - Fixes for Pico incompatibility in cases 2b and 2c. |
| 4857 | (David Lawrence Ramsey). |
| 4858 | global_init() |
| 4859 | - New arg save_cutbuffer, allows cutbuffer to not be lost when |
| 4860 | using multibuffer. |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 4861 | - nano.1: |
| 4862 | - Added new features, fixed some typos (Jordi). |
Jordi Mallach | 372b1a0 | 2001-08-08 19:35:23 +0000 | [diff] [blame] | 4863 | - nano.texi: |
Jordi Mallach | f57b886 | 2001-10-03 12:45:22 +0000 | [diff] [blame] | 4864 | - Corrected the Mouse Toggle section, noticed by Daniel Bonniot. |
| 4865 | - Added many command line options, toggles and other additions |
| 4866 | (Jordi). |
Chris Allegretta | beb5497 | 2001-09-22 23:54:45 +0000 | [diff] [blame] | 4867 | - rcfile.c: |
| 4868 | - NUM_RCOPTS fix (DLR). |
Chris Allegretta | 66c33b8 | 2001-10-02 23:57:31 +0000 | [diff] [blame] | 4869 | - Add tabsize support to rc file (Nathan Heagy). |
Chris Allegretta | ca1a82e | 2001-10-03 15:18:41 +0000 | [diff] [blame] | 4870 | - Fix incorrect argument in fill and tabsize error message |
| 4871 | (Nathan Heagy) |
Chris Allegretta | 759d352 | 2001-09-27 13:04:10 +0000 | [diff] [blame] | 4872 | - search.c: |
| 4873 | - Changed search prompt to "Search" followed by a list of |
| 4874 | bracketed, free-standing modifiers that do not imply a grammar, |
| 4875 | and the (to replace) string separately. Hopefully this resolves |
| 4876 | the i18n problems that this provoked. |
Chris Allegretta | 7fdbd05 | 2001-10-02 00:55:38 +0000 | [diff] [blame] | 4877 | findnextstr() |
| 4878 | - Various fixes that need testing (Ken Tyler). |
Chris Allegretta | 9b3c7e8 | 2001-08-25 16:00:53 +0000 | [diff] [blame] | 4879 | - winio.c: |
| 4880 | - Add David Lawrence Ramsey to credits. |
Chris Allegretta | 96eef73 | 2001-08-25 16:41:37 +0000 | [diff] [blame] | 4881 | bottombars() |
| 4882 | - Spread out the menu items, feedback definitely needed on this. |
Chris Allegretta | ce78c1e | 2001-09-23 01:18:03 +0000 | [diff] [blame] | 4883 | nanogetstr() |
| 4884 | - More key fixes (David Lawrence Ramsey) |
Chris Allegretta | 92f5fdc | 2001-10-02 02:58:07 +0000 | [diff] [blame] | 4885 | - Don't be clever and wasteful, just repaint every iteration. |
Jordi Mallach | 2cde0a2 | 2001-09-05 13:23:53 +0000 | [diff] [blame] | 4886 | - po/nl.po: |
Jordi Mallach | c6c35ea | 2001-09-09 11:04:43 +0000 | [diff] [blame] | 4887 | - New Dutch translation, by Guus Sliepen <guus@nl.linux.org>. |
Jordi Mallach | c1917e7 | 2001-09-28 13:06:29 +0000 | [diff] [blame] | 4888 | - po/ca.po, po/es.po: |
| 4889 | - Updated Catalan and Spanish translation (Jordi). |
Jordi Mallach | d1625cd | 2001-09-10 11:36:45 +0000 | [diff] [blame] | 4890 | - po/gl.po: |
| 4891 | - Updated Galician translation (Jacobo TarrÃo). |
Jordi Mallach | 90bbdd3 | 2001-09-12 19:06:59 +0000 | [diff] [blame] | 4892 | - po/da.po: |
| 4893 | - New Danish translation, by Keld Simonsen <keld@dkuug.dk>. |
Jordi Mallach | 6c49b3f | 2001-09-15 22:47:05 +0000 | [diff] [blame] | 4894 | - po/sv.po: |
| 4895 | - Updated Swedish translation (Christian Rose). |
Jordi Mallach | 1e36fd8 | 2001-10-01 17:24:24 +0000 | [diff] [blame] | 4896 | - po/it.po: |
| 4897 | - Updated Italian translation (Marco Colombo). |
Jordi Mallach | 780f320 | 2001-10-03 20:47:47 +0000 | [diff] [blame] | 4898 | - po/fi.po: |
| 4899 | - Updated Finnish translation (Pauli Virtanen). |
Chris Allegretta | 47a2686 | 2001-07-29 01:17:38 +0000 | [diff] [blame] | 4900 | |
Chris Allegretta | 0e8c8d8 | 2001-07-29 01:16:27 +0000 | [diff] [blame] | 4901 | nano-1.1.1 - 07/28/2001 |
Chris Allegretta | ef8f98d | 2001-07-19 12:24:17 +0000 | [diff] [blame] | 4902 | - General |
| 4903 | - Reverted included gettext from 0.10.38 to 0.10.35 in intl/ dir. |
| 4904 | - Added m4/ directory to allow rebuilding using only the internal |
| 4905 | version of gettext.m4 (Albert Chin). |
Chris Allegretta | 307d4c8 | 2001-07-15 20:25:33 +0000 | [diff] [blame] | 4906 | - nano.c: |
| 4907 | main() |
Chris Allegretta | 0e8c8d8 | 2001-07-29 01:16:27 +0000 | [diff] [blame] | 4908 | - Change the multibuffer getopt option to 'F' (David Lawrence |
| 4909 | Ramsey) |
Chris Allegretta | 41ed016 | 2001-07-24 00:21:03 +0000 | [diff] [blame] | 4910 | do_mark() |
| 4911 | - Temporarily disable cursorpos when enabled to be able to see |
| 4912 | the mark (un)set message (Ken Tyler). |
Chris Allegretta | 4839d23 | 2001-07-19 22:03:51 +0000 | [diff] [blame] | 4913 | - nanorc.sample |
| 4914 | - Typo fixes and updates (David Lawrence Ramsey) |
Chris Allegretta | 5cce53b | 2001-07-17 10:42:50 +0000 | [diff] [blame] | 4915 | - files.c: |
Chris Allegretta | e642197 | 2001-07-18 01:03:36 +0000 | [diff] [blame] | 4916 | new_file() |
| 4917 | - Do add_open_files if there aren't any open yet (David Lawrence |
| 4918 | Ramsey). |
| 4919 | close_open_file() |
| 4920 | - Try to open the next file first, then the previous one |
| 4921 | (David Lawrence Ramsey). |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4922 | - global.c: |
| 4923 | shortcut_init() |
| 4924 | - Rewrote the whereis and replace lists to put CANCEL at the end |
| 4925 | of the list, and not include the toggle functions when using |
| 4926 | NANO_SMALL. |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 4927 | - nano.h: |
| 4928 | - Fix type in INSERTFILE_LIST_LEN. |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4929 | - Rewrote all the macro definitions to be a little less messy, |
| 4930 | for the #ifdefs anyway. |
Chris Allegretta | 307d4c8 | 2001-07-15 20:25:33 +0000 | [diff] [blame] | 4931 | - rcfile.c: |
| 4932 | - Update for the multibuffer option (oops) (David Lawrence Ramsey). |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 4933 | - search.c: |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4934 | - Added #ifdef NANO_SMALLs around the REVERSE_SEARCH code. |
Chris Allegretta | f372bd9 | 2001-07-15 22:24:24 +0000 | [diff] [blame] | 4935 | search_init() |
| 4936 | - add #ifdef NANO_SMALL around toggles code. |
Chris Allegretta | 5f36c37 | 2001-07-16 00:48:53 +0000 | [diff] [blame] | 4937 | - winio.c: |
| 4938 | bottombars() |
| 4939 | - Fixed an off by one that wasn't letting lines with odd # |
| 4940 | shortcuts work in certain cases. |
Chris Allegretta | 47f77b4 | 2001-07-15 16:13:18 +0000 | [diff] [blame] | 4941 | |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 4942 | nano-1.1.0 - 07/15/2001 |
Chris Allegretta | 6b58acd | 2001-04-12 03:01:53 +0000 | [diff] [blame] | 4943 | - General |
| 4944 | - New global variables currshortcut and currslen to support using |
Chris Allegretta | 051fc6e | 2001-05-05 23:17:36 +0000 | [diff] [blame] | 4945 | the mouse with the shortcuts. Also supports clicking on files |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 4946 | in browser. Added #ifdef DISABLE_MOUSE around this code also. |
Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 4947 | - Changed mouse disabling code from depending on --enable-tiny |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4948 | to its own flag, --disable-mouse. The --tiny option defines |
Chris Allegretta | 84de552 | 2001-04-12 14:51:48 +0000 | [diff] [blame] | 4949 | this automatically, but now just mouse support can be disabled |
| 4950 | if desired. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 4951 | - File Browser supports the "Goto Directory" |
Chris Allegretta | 8d8e012 | 2001-04-18 04:28:54 +0000 | [diff] [blame] | 4952 | - Added rcfile.c source file. Only includes much of anything when |
| 4953 | --enable-nanorc is used. Tons of new funcs, most notably |
| 4954 | do_rcfile() called from nano.c:main(). Added much needed |
| 4955 | function ncalloc(), will have to go through source code later |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4956 | and change the appropriate calls which used nmalloc for lack of |
| 4957 | an appropriate calloc function *** FIXME *** |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 4958 | - After "Alternate" spell checker is called, cursor is repositioned on |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4959 | the same line as before ^T was pressed. |
Chris Allegretta | 6efda54 | 2001-04-28 18:03:52 +0000 | [diff] [blame] | 4960 | - Moved config.h up in all .c files #include list (Albert Chin). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 4961 | - Added config.guess and config.sub to distribution because, |
| 4962 | apparently, newer autoconf/automakes can't live without them. |
| 4963 | - Various spelling updates by David Lawrence Ramsey. |
Chris Allegretta | 88b0915 | 2001-05-17 11:35:43 +0000 | [diff] [blame] | 4964 | - Changed all string allocations to charalloc(), new function |
| 4965 | designed to take nmalloc argument but call calloc based on |
| 4966 | (char *) size. |
Chris Allegretta | 6fe6149 | 2001-05-21 12:56:25 +0000 | [diff] [blame] | 4967 | - New macro DISABLE_WRAPJUSTIFY to easily check for both wrapping |
| 4968 | and justify being disabled. This allows us to compile out the |
| 4969 | -r flag if neither are set, and will also allow us to comment |
| 4970 | out -W when it is written. |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4971 | - 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] | 4972 | value. This allows the value to vary with the screen size yet |
| 4973 | still be correct. New static value wrap_at to minimize code |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 4974 | impact. Updated man page and info file. |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 4975 | - Allow file appending. New shortcut list nano_insertfile_list (since |
| 4976 | insert and write routines can't share shortcut lists anymore), |
| 4977 | new args to do_writeout and write_file called append, and of source |
| 4978 | code changes to those functions. |
Chris Allegretta | e4933a3 | 2001-06-13 02:35:44 +0000 | [diff] [blame] | 4979 | - Allow backwards searching. Drastic rewrite of the search prompt |
| 4980 | string by Chris. All other code by Ken Tyler. New globals |
| 4981 | nano_reverse_msg, new functions revstrstr and revstrcasestr, |
| 4982 | many changes to search functions. Not too big a code size |
| 4983 | increase! |
Chris Allegretta | 658399a | 2001-06-14 02:54:22 +0000 | [diff] [blame] | 4984 | - Moved extension functions (Case Sensitive, Regexp, and Backwards |
| 4985 | Search, Append key in write file function) to Meta keys, as |
| 4986 | people are complaining loudly about nano not being control-key |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 4987 | compatible with Pico, which is a Bad Thing (TM). Changes to |
Chris Allegretta | 658399a | 2001-06-14 02:54:22 +0000 | [diff] [blame] | 4988 | shortcut_init, toggle_init, new toggles for backwards and regexp |
| 4989 | (and you can now toggle all search options including regexp at |
| 4990 | the Search: prompt!) Changes to nanogetstr to enable Meta |
| 4991 | keys to be grabbed, changes to onekey to print M-style shortcuts. |
| 4992 | - New macro TOGGLE which just toggles, no more silly checking |
| 4993 | ISSET and then using SET or UNSET when we want a simple toggle |
| 4994 | for a flag. |
Chris Allegretta | 2d7893d | 2001-07-11 02:08:33 +0000 | [diff] [blame] | 4995 | - Added multiple buffer capability (God help us). New configure |
Chris Allegretta | 355fbe5 | 2001-07-14 19:32:47 +0000 | [diff] [blame] | 4996 | option --enable-multibuffer (-F), changes to do_insertfile(), |
Chris Allegretta | 2d7893d | 2001-07-11 02:08:33 +0000 | [diff] [blame] | 4997 | do_insertfile_void(), toggle_init(), do_gotoline(), edit_update(), |
| 4998 | and write_file(), new functions add_open_file(), |
| 4999 | open_file_change_name(), load_open_file(), open_file_dup_search(), |
| 5000 | open_file_dup_fix(), open_prevfile(), open_nextfile(), |
| 5001 | close_open_file(), get_full_path(), die_save_file(), etc. |
| 5002 | (David Lawrence Ramsey). |
Chris Allegretta | 355fbe5 | 2001-07-14 19:32:47 +0000 | [diff] [blame] | 5003 | - Using --enable-extra automatically defines --enable-multibuffer |
| 5004 | changes to version() and configure.in. |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 5005 | - Moved to gettext 0.10.38 at the last second, sure to break |
| 5006 | something, but at least I can run make distcheck! |
Jordi Mallach | 7fde37f | 2001-06-22 23:26:19 +0000 | [diff] [blame] | 5007 | - Makefile.am: |
| 5008 | - Include ABOUT-NLS and the new THANKS files to the distributed list. |
| 5009 | - THANKS: |
| 5010 | - Initial, incomplete list of people to thank. |
Chris Allegretta | 049149f | 2001-07-02 01:57:44 +0000 | [diff] [blame] | 5011 | - Added some more people. |
Chris Allegretta | ea066c8 | 2001-04-13 02:32:06 +0000 | [diff] [blame] | 5012 | - configure.in: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5013 | - New option, --enable-nanorc, which allows people to have a .nanorc |
Chris Allegretta | 18d70f1 | 2001-04-28 15:53:28 +0000 | [diff] [blame] | 5014 | initialization file and set options normally used on the command |
| 5015 | line, and color later on. |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 5016 | - Added --enable-color option to allow color and syntax highlighting |
Chris Allegretta | 18d70f1 | 2001-04-28 15:53:28 +0000 | [diff] [blame] | 5017 | (stub as of now). |
Chris Allegretta | 4cb991d | 2001-05-10 22:55:16 +0000 | [diff] [blame] | 5018 | - cut.c: |
| 5019 | add_to_cutbuffer() |
| 5020 | - Remove useless statements (Rocco). |
Chris Allegretta | 9fe015c | 2001-05-17 03:41:00 +0000 | [diff] [blame] | 5021 | cut_marked_segment() |
Chris Allegretta | 53ea9d1 | 2001-05-18 19:58:33 +0000 | [diff] [blame] | 5022 | - Add bizarre copy of bot node, else *BSD goes ballistic (fixes |
| 5023 | BUG #60). |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 5024 | - Added 'destructive' argument. Allows the selected text to be |
| 5025 | added to the cutbuffer without changing the contents of the |
| 5026 | file. This allows writing selection to separate files. |
Chris Allegretta | 3ba2953 | 2001-06-10 20:41:20 +0000 | [diff] [blame] | 5027 | do_cut_text() |
Chris Allegretta | a75bc41 | 2001-06-12 23:22:26 +0000 | [diff] [blame] | 5028 | - If the line is empty when using -k and wasn't already added, |
| 5029 | 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] | 5030 | - Reset marked_cut if we blow away the cutbuffer. |
Chris Allegretta | 500b5e3 | 2001-06-21 23:58:47 +0000 | [diff] [blame] | 5031 | - Moved the case of current == mark_beginbuf into cut_marked |
| 5032 | segment, so do_writeout could call it when writing selection to |
| 5033 | file. |
Chris Allegretta | 40f45c8 | 2001-06-21 15:07:40 +0000 | [diff] [blame] | 5034 | do_uncut_text() |
| 5035 | - 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] | 5036 | - faq.html: |
| 5037 | - Brought the FAQ up to date, many little changes (Jordi). |
Chris Allegretta | 9a74860 | 2001-07-15 16:07:23 +0000 | [diff] [blame] | 5038 | - 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] | 5039 | - files.c: |
| 5040 | do_browser() |
| 5041 | - Minor fixes to the processing of SELECT function (Rocco) |
| 5042 | - Added the "Goto Directory" code (Rocco) |
Chris Allegretta | d461562 | 2001-05-23 21:54:47 +0000 | [diff] [blame] | 5043 | - Don't shift the size of the file is it's less than 1K. Fixed |
| 5044 | files less than 1K being displayed as 0B (Rocco). |
Chris Allegretta | a2c02e9 | 2001-07-02 01:31:44 +0000 | [diff] [blame] | 5045 | - More Picoish keystrokes for the browser, ^P, ^N, etc, for up, |
| 5046 | down, etc, and add the consistent ^C to exit (Jim Knoble). |
Chris Allegretta | cc197ef | 2001-05-29 04:21:44 +0000 | [diff] [blame] | 5047 | do_writeout() |
| 5048 | - New code to allow writing selected text to a separate file. |
David Lawrence Ramsey | 5db0cdc | 2002-06-28 22:45:14 +0000 | [diff] [blame] | 5049 | When this is done, the current state is preserved. |
Chris Allegretta | ecc3d7f | 2001-06-05 23:24:55 +0000 | [diff] [blame] | 5050 | write_file() |
| 5051 | - New arg, nonamechange, means whether or not to update the |
| 5052 | current filename after writing the file out. |
Chris Allegretta | 1a8b296 | 2001-06-30 18:41:08 +0000 | [diff] [blame] | 5053 | - Increment lineswritten when the very last line isn't null. |
| 5054 | Fixes off by one count when writing selection to file. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 5055 | - global.c: |
| 5056 | - Updated some of the lists for the "Goto Directory" code (Rocco) |
Chris Allegretta | 6cb4e88 | 2001-04-29 02:26:17 +0000 | [diff] [blame] | 5057 | - move.c: |
| 5058 | page_up() |
| 5059 | - Rewritten with a loop to make screen updates work when |
| 5060 | mark is set (fixes bug #59). |
Chris Allegretta | 1cde322 | 2001-06-11 06:56:10 +0000 | [diff] [blame] | 5061 | do_home(), do_end() |
| 5062 | - Don't keep cutbuffer. |
Jordi Mallach | 3f8db49 | 2001-04-30 10:30:43 +0000 | [diff] [blame] | 5063 | - nano.1: |
| 5064 | - Added the missing -r flag (Jordi). |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 5065 | - nano.c: |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 5066 | do_alt_speller() |
| 5067 | - Reposition cursor on same line as before ^T was called (Rocco) |
Chris Allegretta | 316e4d9 | 2001-04-28 16:31:19 +0000 | [diff] [blame] | 5068 | ABCD(), main() |
| 5069 | - 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] | 5070 | main() |
| 5071 | - Code to silently process "-g" and "-j" (Rocco) |
Chris Allegretta | b26ecb5 | 2001-07-04 16:27:05 +0000 | [diff] [blame] | 5072 | - Added Alt-[-7,8 support for home/end keys (Jeff Teunissen). |
Chris Allegretta | 521e00d | 2001-06-28 16:52:52 +0000 | [diff] [blame] | 5073 | signal_init() |
| 5074 | - Reorder sigaction calls, use sigfillset() to stop SIGTSTP and |
| 5075 | SIGCONT from being interrupted, allows suspending nano |
| 5076 | to work more reliably, esp. with mutt, etc. |
| 5077 | do_suspend() |
| 5078 | - Don't try to play with the handler inside the handler. Just |
| 5079 | raise a SIGSTOP. We also now write the "use "fg"" message to |
| 5080 | stdout instead of stderr. |
Chris Allegretta | ac899e5 | 2001-06-30 04:09:09 +0000 | [diff] [blame] | 5081 | - Added _POSIX_VDISABLE macro to fully ignore suspend keystroke. |
| 5082 | Eliminates the possibility that nano can be suspended when |
| 5083 | it's not supposed to be. Many many many thanks to Jordi and |
| 5084 | Tom Lear for helping out finding and fixing this bug! |
Chris Allegretta | 521e00d | 2001-06-28 16:52:52 +0000 | [diff] [blame] | 5085 | do_cont() |
| 5086 | - Now just does a refresh call instead of playing with the SIGTSTP |
| 5087 | handler. |
Rocco Corsi | 12f294c | 2001-04-14 06:50:24 +0000 | [diff] [blame] | 5088 | - nano.h: |
| 5089 | - Updated the BROWSER_LIST_LEN for the "Goto Directory" code (Rocco) |
| 5090 | - proto.h: |
| 5091 | - New shortcut list added: gotodir_list (Rocco). |
Rocco Corsi | 4dfaf93 | 2001-04-20 01:59:55 +0000 | [diff] [blame] | 5092 | - search.c: |
| 5093 | do_gotoline() |
| 5094 | - Optimizations, remove "$" goes-to-last-line, less messages (Rocco) |
Chris Allegretta | 5050aa6 | 2001-04-22 07:10:21 +0000 | [diff] [blame] | 5095 | do_replace() |
| 5096 | - If we manage to make it in somehow with VIEW_MODE on, abort |
| 5097 | nicely (fixes BUG #59). |
Chris Allegretta | 99afb85 | 2001-05-16 04:20:57 +0000 | [diff] [blame] | 5098 | - utils.c |
| 5099 | strcasestr() |
| 5100 | - Replaced by mutt's mutt_stristr function, because the thought |
| 5101 | of dynamically allocating memory and copying each line in a file |
| 5102 | to do a search or replace was causing me to lose sleep. |
Chris Allegretta | 6efda54 | 2001-04-28 18:03:52 +0000 | [diff] [blame] | 5103 | - winio.c: |
| 5104 | actual_x() |
| 5105 | - Remove inline from function decl (Albert Chin). |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 5106 | - po/POTFILES.in: |
| 5107 | - Added utils.c to the list. |
| 5108 | - po/es.po, po/ca.po: |
| 5109 | - Updated (Jordi). |
Jordi Mallach | 9634571 | 2001-04-29 10:38:07 +0000 | [diff] [blame] | 5110 | - po/gl.po: |
Jordi Mallach | 64bacd2 | 2001-05-14 13:55:30 +0000 | [diff] [blame] | 5111 | - Galician translation by Jacobo TarrÃo. |
Jordi Mallach | 92b3bd2 | 2001-05-16 09:10:31 +0000 | [diff] [blame] | 5112 | - po/uk.po, po/ru.po: |
| 5113 | - New Ukrainian and Russian translations by Sergey A. Ribalchenko |
Jordi Mallach | 3bf6bf4 | 2001-05-14 13:11:56 +0000 | [diff] [blame] | 5114 | <fisher@obu.ck.ua>, thanks! |
Jordi Mallach | efd2236 | 2001-06-22 16:59:29 +0000 | [diff] [blame] | 5115 | - po/id.po: |
| 5116 | - Updated Indonesian translation by Tedi Heriyanto. |
Chris Allegretta | 63ba2d6 | 2001-05-16 12:16:28 +0000 | [diff] [blame] | 5117 | - po/it.po |
| 5118 | - Updated Italian translation by Marco Colombo. |
Jordi Mallach | df7d8b2 | 2001-07-05 23:16:05 +0000 | [diff] [blame] | 5119 | - po/no.po: |
| 5120 | - New Norwegian translation by Eivind Kjørstad <ekj@vestdata.no>. |
| 5121 | - po/sv.po: |
| 5122 | - New Swedish translation by Christian Rose <menthos@menthos.com>. |
Chris Allegretta | ac840eb | 2001-04-07 18:21:47 +0000 | [diff] [blame] | 5123 | |
| 5124 | nano 1.1 tree forked here 04/07/2001 |
| 5125 | |
Chris Allegretta | 38068cd | 2001-04-06 20:04:23 +0000 | [diff] [blame] | 5126 | nano 1.0.1 - 04/06/2001 |
Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 5127 | - General: |
| 5128 | - added configure option --disable-wrapping. Does what it says, |
| 5129 | no wrapping or checks are done. Separate from --enable-tiny, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5130 | some may want a bare-bones Pico clone that does wrap text. |
Chris Allegretta | cef7fbb | 2001-04-02 05:36:08 +0000 | [diff] [blame] | 5131 | Affects configure, nano.c:do_char() and check_wrap() obviously, |
| 5132 | version(), and do_char(). |
Chris Allegretta | 3948bae | 2001-03-25 00:46:40 +0000 | [diff] [blame] | 5133 | - aclocal.m4: |
| 5134 | - Minor patch for intl check (really this time) (Albert Chin) |
Chris Allegretta | 4bf831f | 2001-03-26 15:35:34 +0000 | [diff] [blame] | 5135 | - faq.html: |
| 5136 | - Fixed typo in section 6.1 (discovered by Bob Farmer). |
Chris Allegretta | 4980517 | 2001-03-28 02:14:28 +0000 | [diff] [blame] | 5137 | - files.c: |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 5138 | - fix two typos in comments, one in ChangeLog (Matthias Andree) |
Chris Allegretta | 4980517 | 2001-03-28 02:14:28 +0000 | [diff] [blame] | 5139 | diralphasort() |
Chris Allegretta | 0876dc9 | 2001-03-28 13:04:08 +0000 | [diff] [blame] | 5140 | - Stop abort on symlinks (Matthias Andree) |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 5141 | - use strcasecmp to sort directory if available, pilot does that |
| 5142 | as well (Matthias Andree) |
| 5143 | filestat(), do_browse() |
Chris Allegretta | 0876dc9 | 2001-03-28 13:04:08 +0000 | [diff] [blame] | 5144 | - Changed lstat calls to stat, which fixes the browser not |
| 5145 | following links to directories. We only use lstat() when |
| 5146 | printing the details of the file, and if it is a link, then |
| 5147 | check via lstat() for link to a directory. If it is |
Jordi Mallach | b2c4cbe | 2001-04-02 13:47:17 +0000 | [diff] [blame] | 5148 | a directory, display (dir), else use the normal "--". |
Chris Allegretta | 90d3074 | 2001-04-03 01:02:38 +0000 | [diff] [blame] | 5149 | do_browser() |
| 5150 | - Fix broken size suffix off-by-one errors (Matthias Andree) |
| 5151 | cwd_tab_completion(), do_browse_from() |
| 5152 | - Use PATH_MAX instead of 0 arg to getcwd (Matthias Andree). |
| 5153 | - Changed above to use PATH_MAX only when defined on the |
| 5154 | system, as the HURD e.g. does not support it. |
Jordi Mallach | b2c4cbe | 2001-04-02 13:47:17 +0000 | [diff] [blame] | 5155 | - intl/Makefile.in: |
| 5156 | distclean |
| 5157 | - added intl/libintl.h to the rm -f rule, should fix the unresolved |
| 5158 | gettext symbols problem (Jordi). |
Chris Allegretta | 2071207 | 2001-03-23 03:51:48 +0000 | [diff] [blame] | 5159 | |
Chris Allegretta | 2bfbda0 | 2001-03-23 03:50:44 +0000 | [diff] [blame] | 5160 | nano-1.0.0 - 03/22/2001 |
Chris Allegretta | e316773 | 2001-03-18 16:59:34 +0000 | [diff] [blame] | 5161 | - General |
| 5162 | - Added void to functions declared as () args, nano.c:do_mark() |
| 5163 | and search.c:regexp_cleanup(). (Christian Weisgerber). |
| 5164 | - Changed internal variables called "new" to "newnode" to avoid |
| 5165 | the "new" C++ reserved word, even though there is likely no way |
| 5166 | nano will EVER be compilable with a C++ compiler. (suggested by |
| 5167 | Rocco Corsi). |
Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 5168 | - ca.po, es.po: |
| 5169 | - Final tweaks for Nano 1.0. |
Chris Allegretta | 10ae4f1 | 2001-03-20 15:51:43 +0000 | [diff] [blame] | 5170 | - cs.po: |
| 5171 | - Czech translation from Vaclav Haisman. |
Chris Allegretta | 7ab3e8f | 2001-03-22 23:12:22 +0000 | [diff] [blame] | 5172 | - nano.info: |
| 5173 | - Added dir entry (Albert Chin). |
Chris Allegretta | 35dac58 | 2001-03-21 15:07:20 +0000 | [diff] [blame] | 5174 | - winio.c: |
| 5175 | statusq() |
| 5176 | - 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] | 5177 | |
| 5178 | 1.0-test prerelease - 03/17/2001 |
Chris Allegretta | 94a78b8 | 2001-03-14 08:28:48 +0000 | [diff] [blame] | 5179 | - nano.c: |
| 5180 | do_wrap() |
| 5181 | - Added case for autoindenting text causing new line (Adam). |
| 5182 | - Added SAMELINE case to above. Added checks to cases 1b and |
| 5183 | 2b for placement of cursor. |
Chris Allegretta | 565f7d5 | 2001-03-15 02:02:20 +0000 | [diff] [blame] | 5184 | - move.c: |
| 5185 | page_down() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5186 | - Check for totlines < editwinrows in check for superfluous |
Chris Allegretta | 565f7d5 | 2001-03-15 02:02:20 +0000 | [diff] [blame] | 5187 | edit update (fixed BUG #57). |
Jordi Mallach | 5b387d7 | 2001-02-20 12:45:47 +0000 | [diff] [blame] | 5188 | - search.c: |
Chris Allegretta | 74bb31b | 2001-03-14 09:08:14 +0000 | [diff] [blame] | 5189 | print_replaced() |
Jordi Mallach | 5b387d7 | 2001-02-20 12:45:47 +0000 | [diff] [blame] | 5190 | - s/occurence/occurrence typos (Jordi). |
Chris Allegretta | 74bb31b | 2001-03-14 09:08:14 +0000 | [diff] [blame] | 5191 | search_init() |
| 5192 | - If using Pico mode and regex and same answer is entered, use |
| 5193 | last_search string instead of answer (fixes BUG #56). |
Chris Allegretta | 203ce15 | 2001-02-23 03:05:38 +0000 | [diff] [blame] | 5194 | - nano.texi: |
| 5195 | - Meta-Z correction and grammar in --enable-tiny desc (Neil Parks). |
Chris Allegretta | 9c9c5da | 2001-02-20 03:53:31 +0000 | [diff] [blame] | 5196 | |
Chris Allegretta | a4a222d | 2001-02-20 03:52:13 +0000 | [diff] [blame] | 5197 | nano-0.9.99pre3 - 02/19/2001 |
Chris Allegretta | af6414a | 2001-02-11 19:05:05 +0000 | [diff] [blame] | 5198 | - General |
Chris Allegretta | 1bf501c | 2001-02-12 03:24:46 +0000 | [diff] [blame] | 5199 | GNU compliance issues: |
Jordi Mallach | a7b2ed0 | 2001-02-20 02:04:43 +0000 | [diff] [blame] | 5200 | - Reworked shortcut list, put "Get Help" into default list, |
Chris Allegretta | 1bf501c | 2001-02-12 03:24:46 +0000 | [diff] [blame] | 5201 | removed "Goto Line", aligned "Read File" with "Write Out" and |
| 5202 | "Replace" with "Where is" for consistency. |
| 5203 | - Added texinfo manual nano.texi. Added texi options to |
Chris Allegretta | c46dd81 | 2001-02-14 14:28:27 +0000 | [diff] [blame] | 5204 | Makefile.am. |
Chris Allegretta | de48b41 | 2001-02-01 22:56:44 +0000 | [diff] [blame] | 5205 | - configure.in: |
| 5206 | - Autoconf compatibility fixes (Pavel Roskin) |
Chris Allegretta | 618f5d7 | 2001-02-16 04:48:30 +0000 | [diff] [blame] | 5207 | - Added separate check for resizeterm(). |
Jordi Mallach | 82b1829 | 2001-02-17 01:31:32 +0000 | [diff] [blame] | 5208 | - ALL_LINGUAS: added hu and ca. |
Chris Allegretta | 09f39cb | 2001-02-05 13:43:23 +0000 | [diff] [blame] | 5209 | - cut.c: |
| 5210 | do_cut_text() |
| 5211 | - marked text cut fixes (Rocco) (Fixes bug #54). |
Chris Allegretta | 00ae5df | 2001-02-05 18:24:33 +0000 | [diff] [blame] | 5212 | - nano.c: |
Chris Allegretta | 4ed1315 | 2001-02-10 17:50:50 +0000 | [diff] [blame] | 5213 | do_delete() |
| 5214 | - Added check for current->next == fileptr, as we have a magic |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5215 | line code again, fixes silliness at the end of the last line |
Chris Allegretta | 4ed1315 | 2001-02-10 17:50:50 +0000 | [diff] [blame] | 5216 | before the magic line (reported by J.A. Neitzel). |
Chris Allegretta | 00ae5df | 2001-02-05 18:24:33 +0000 | [diff] [blame] | 5217 | do_justify() |
| 5218 | - If the keystroke after the justify is not the unjustify key, |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5219 | blank the statusbar (bug reported by Neil Parks). |
Chris Allegretta | 8bc03b6 | 2001-02-09 02:57:52 +0000 | [diff] [blame] | 5220 | main() |
| 5221 | - Added ENABLE_NLS check around gettext stuff. |
Chris Allegretta | 4ce8e3b | 2001-02-16 01:49:31 +0000 | [diff] [blame] | 5222 | - winio.c: |
| 5223 | do_yesno() |
| 5224 | - Added localized yes, no and all strings to function and rewrote |
| 5225 | handler for the new format. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 5226 | - de.po: |
Jordi Mallach | 8119765 | 2001-02-16 20:00:03 +0000 | [diff] [blame] | 5227 | - Translation updates by Florian König. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 5228 | - fi.po: |
| 5229 | - Translation updates by Pauli Virtanen. |
Chris Allegretta | d096f68 | 2001-02-05 13:51:31 +0000 | [diff] [blame] | 5230 | - hu.po: |
| 5231 | - Hungarian translation by Horvath Szabolcs. |
Chris Allegretta | b55999e | 2001-02-09 02:49:46 +0000 | [diff] [blame] | 5232 | - id.po: |
| 5233 | - Translation updates by Tedi Heriyanto. |
Jordi Mallach | 8119765 | 2001-02-16 20:00:03 +0000 | [diff] [blame] | 5234 | - es.po: |
Jordi Mallach | 6aec0d6 | 2001-02-17 01:32:58 +0000 | [diff] [blame] | 5235 | - Translation updates and grammatical/typo fixes (Jordi). |
Jordi Mallach | 82b1829 | 2001-02-17 01:31:32 +0000 | [diff] [blame] | 5236 | - ca.po: |
| 5237 | - Catalan translation by Jordi Mallach :) |
Jordi Mallach | a7b2ed0 | 2001-02-20 02:04:43 +0000 | [diff] [blame] | 5238 | - Miquel Vidal <miquel@sindominio.net> went over it and corrected |
| 5239 | many typos and completed bits that remained untranslated by error. |
Chris Allegretta | 7c1fee7 | 2001-01-31 23:24:54 +0000 | [diff] [blame] | 5240 | |
Chris Allegretta | 34318ed | 2001-01-31 23:22:36 +0000 | [diff] [blame] | 5241 | nano-0.9.99pre2 - 01/31/2001 |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 5242 | General |
Chris Allegretta | d4ddd01 | 2001-01-23 01:17:07 +0000 | [diff] [blame] | 5243 | - Removed center_x and center_y globals. center_y was |
| 5244 | completely unused and center_x was only used a few places, |
Chris Allegretta | 17276e5 | 2001-01-23 01:22:32 +0000 | [diff] [blame] | 5245 | easily replaced with COLS / 2 (oops, not current_x & y (Rob)). |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 5246 | - Deleted free_node, duplicate of delete_node, and changed all |
| 5247 | free_node calls to delete_node. |
Chris Allegretta | 0802088 | 2001-01-29 23:37:54 +0000 | [diff] [blame] | 5248 | - Fix for resizing the window in modes other than normal edit mode |
| 5249 | Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco). |
Chris Allegretta | 0fc2b81 | 2001-01-18 15:04:20 +0000 | [diff] [blame] | 5250 | - files.c: |
| 5251 | write_file() |
| 5252 | - Don't free() realname on error, if it needs to be free()d later |
| 5253 | it will be (fixes crash on successful write after failed write, |
| 5254 | discovered by David Sobon). |
Chris Allegretta | 8d9b11a | 2001-01-19 04:17:24 +0000 | [diff] [blame] | 5255 | username_tab_completion() |
| 5256 | - Optimization and removal of useless vars (Rocco). |
Chris Allegretta | 2c2c5f2 | 2001-01-23 03:27:31 +0000 | [diff] [blame] | 5257 | - Rewritten using getpwent (suggested by Rocco). |
Chris Allegretta | a711f7e | 2001-01-23 04:16:31 +0000 | [diff] [blame] | 5258 | - Removed redundant conditional (Rocco). |
Chris Allegretta | ee733e6 | 2001-01-22 22:17:08 +0000 | [diff] [blame] | 5259 | real_dir_from_tilde() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5260 | - Rewritten using getpwent (suggested by Adam, much optimized by |
| 5261 | Rocco). |
Chris Allegretta | f0b26df | 2001-01-20 22:18:18 +0000 | [diff] [blame] | 5262 | - global.c: |
| 5263 | - Don't define toggles global or toggle_init_one if using --tiny. |
Chris Allegretta | 17dcb72 | 2001-01-20 21:40:07 +0000 | [diff] [blame] | 5264 | - nano.c: |
| 5265 | do_justify() |
| 5266 | - Added restoration of totsize after unjustify command. |
Chris Allegretta | 7f7ce56 | 2001-01-21 16:35:49 +0000 | [diff] [blame] | 5267 | usage() |
Chris Allegretta | e9a2d03 | 2001-01-21 16:08:21 +0000 | [diff] [blame] | 5268 | - Add arg to -T help (Rocco). |
Chris Allegretta | 0a06e07 | 2001-01-23 02:35:04 +0000 | [diff] [blame] | 5269 | global_init(), handle_sigwinch() |
| 5270 | - Messy loops replaced with memset calls (Rocco). |
Chris Allegretta | 169ee84 | 2001-01-26 01:57:32 +0000 | [diff] [blame] | 5271 | do_alt_speller() |
| 5272 | - Added code to parse multi-word alt_speller strings. |
Chris Allegretta | e434b45 | 2001-01-27 19:25:00 +0000 | [diff] [blame] | 5273 | - Fix initialization before fork() (Rocco). |
Chris Allegretta | 34318ed | 2001-01-31 23:22:36 +0000 | [diff] [blame] | 5274 | - proto.h: |
| 5275 | - Fix do_credits() proto (oops!) |
Chris Allegretta | e434b45 | 2001-01-27 19:25:00 +0000 | [diff] [blame] | 5276 | - winio.c: |
| 5277 | nanogetstr() |
| 5278 | - Sanity check for x overrunning the string buffer len. |
Chris Allegretta | 76745fb | 2001-01-18 04:40:06 +0000 | [diff] [blame] | 5279 | |
Chris Allegretta | 9d6f3f3 | 2001-01-21 02:35:03 +0000 | [diff] [blame] | 5280 | nano 0.9.99pre1 - 01/17/2001 |
Chris Allegretta | a4d6d1d | 2001-01-10 23:44:10 +0000 | [diff] [blame] | 5281 | General |
| 5282 | - Changed #ifdefs to check for both DISABLE_TABCOMP and |
| 5283 | NANO_SMALL, makes tiny option leave out tab completion, which |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 5284 | should be left out in that circumstance. Saves at least 5k. |
Rocco Corsi | 06aca1c | 2001-01-11 05:30:31 +0000 | [diff] [blame] | 5285 | - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 5286 | back. (Rocco) |
| 5287 | - Various #ifdef & #ifndef cleanups. (Rocco) |
Chris Allegretta | 201d9bf | 2001-01-14 03:17:53 +0000 | [diff] [blame] | 5288 | - Added message for when keypad goes awry. Added code in main and |
| 5289 | function print_numlock_warning() to notify user, and added an |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5290 | appropriate section in the faq to refer to this brokenness. |
Chris Allegretta | e61e830 | 2001-01-14 05:18:27 +0000 | [diff] [blame] | 5291 | - 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] | 5292 | nano.c:global_init(). (Rocco) |
Chris Allegretta | bbebec6 | 2001-01-09 00:37:32 +0000 | [diff] [blame] | 5293 | - configure.in: |
| 5294 | - Fix for _use_keypad check breaking slang support (Christian |
| 5295 | Weisgerber). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5296 | - Changed to automatically define the 5 DISABLE variables when |
Chris Allegretta | 4ee0b41 | 2001-01-11 15:11:00 +0000 | [diff] [blame] | 5297 | NANO_SMALL (enable-tiny) is requested at configure. |
Chris Allegretta | 2c4feca | 2001-01-09 17:40:56 +0000 | [diff] [blame] | 5298 | - faq.html: |
| 5299 | - Added some info on making the binary smaller with the configure |
| 5300 | script. |
Chris Allegretta | 201d9bf | 2001-01-14 03:17:53 +0000 | [diff] [blame] | 5301 | - Added section on keypad bugginess. |
Chris Allegretta | bf69261 | 2001-01-08 16:59:19 +0000 | [diff] [blame] | 5302 | - files.c: |
| 5303 | real_dir_from_tilde() |
| 5304 | - Oops, fix case where buf ="~", silly crash (bug discovered by |
| 5305 | Neil Parks). |
Chris Allegretta | 8eac3b5 | 2001-01-08 21:14:04 +0000 | [diff] [blame] | 5306 | do_browser() |
| 5307 | - Added space and - keys to do page up and down. |
Chris Allegretta | a35ec04 | 2001-01-15 02:26:12 +0000 | [diff] [blame] | 5308 | cwd_tab_completion(), input_tab() |
| 5309 | - Changed bare malloc/calloc calls to nmalloc (found by Rocco). |
Chris Allegretta | 4058709 | 2001-01-16 04:45:38 +0000 | [diff] [blame] | 5310 | - Added memset() to matchBuf to ensure sanity (Rocco, Adam). |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 5311 | - nano.c: |
Chris Allegretta | 1748cd1 | 2001-01-13 17:22:54 +0000 | [diff] [blame] | 5312 | ABCD() |
| 5313 | - New function, figures out what kbinput to return given |
| 5314 | input common to several switch statements, allows us to |
| 5315 | support the default Konsole key settings. |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 5316 | main() |
| 5317 | - Alternate speller option no longer valid if DISABLE_SPELLER is |
| 5318 | active. (Rocco) |
Chris Allegretta | ae4318d | 2001-01-16 04:18:26 +0000 | [diff] [blame] | 5319 | - Removed direct calls to usage() (#else) for -k (cut) or -s (speller) |
| 5320 | options when these have been disabled. (Rocco) |
Chris Allegretta | 3693944 | 2001-01-15 20:26:38 +0000 | [diff] [blame] | 5321 | - Initialized kbinput to get around stupid compiler warning. |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 5322 | nano_small_msg() |
| 5323 | - This function has been removed. All references now call |
| 5324 | nano_disabled_msg. (Rocco) |
| 5325 | version() |
| 5326 | - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE |
| 5327 | variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not |
| 5328 | reported as enabled when Nano is called with -V (--version) |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5329 | command line option. (Rocco) |
Rocco Corsi | af5c302 | 2001-01-12 07:51:05 +0000 | [diff] [blame] | 5330 | usage() |
| 5331 | - Alternate speller option no longer valid if DISABLE_SPELLER is |
| 5332 | active. (Rocco) |
Chris Allegretta | e61e830 | 2001-01-14 05:18:27 +0000 | [diff] [blame] | 5333 | window_init(), handle_sigwinch() |
| 5334 | - Added check for not having enough LINES to do anything useful, |
| 5335 | if so die with an error. (Rocco) |
| 5336 | die_too_small() |
| 5337 | - Function to print the window too small error message, avoids |
| 5338 | repeated string defs and globals. |
Robert Siemborski | c2eeb4e | 2001-01-17 03:29:02 +0000 | [diff] [blame] | 5339 | do_justify() |
| 5340 | - Small fix for totsize calculation (Rob) |
| 5341 | |
Chris Allegretta | d9742c6 | 2001-01-12 15:51:53 +0000 | [diff] [blame] | 5342 | - fi.po: |
| 5343 | - Update by Pauli Virtanen. |
Chris Allegretta | 7e08082 | 2001-01-08 02:31:03 +0000 | [diff] [blame] | 5344 | |
Chris Allegretta | 1699144 | 2001-01-07 22:06:11 +0000 | [diff] [blame] | 5345 | nano 0.9.25 - 01/07/2001 |
Chris Allegretta | f4b9601 | 2001-01-03 07:11:47 +0000 | [diff] [blame] | 5346 | General - |
| 5347 | - New file browser code. New functions in files.c:do_browser(), |
| 5348 | helper functions browser_init(), tail(), striponedir(), |
| 5349 | filestat(). New shortcut list browser_list. Some new |
Chris Allegretta | 150469a | 2001-01-05 21:13:14 +0000 | [diff] [blame] | 5350 | strings to translate. Added function do_browse_from(). |
Chris Allegretta | c08f50d | 2001-01-06 18:12:43 +0000 | [diff] [blame] | 5351 | - Keypad code has been changed slightly. Now checks for |
| 5352 | _use_keypad flag in window to see whether or not to turn |
| 5353 | the keypad() back off when finished (taken from aumix). Moved |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5354 | to winio.c where it should probably be anyway. New configure |
| 5355 | check for _use_keypad in window struct. This will have to do |
Chris Allegretta | c08f50d | 2001-01-06 18:12:43 +0000 | [diff] [blame] | 5356 | for now. |
Chris Allegretta | 155d620 | 2001-01-08 01:50:37 +0000 | [diff] [blame] | 5357 | - Moved keypad() calls for PDCURSES from main() to window_init() |
| 5358 | so the keypad continues to work after a Meta-X, for example. |
| 5359 | Fixed bug #51. |
Jordi Mallach | 56e6d72 | 2000-12-19 22:59:55 +0000 | [diff] [blame] | 5360 | - faq.html: |
| 5361 | - Fix typos and small mistakes (Jordi). |
Chris Allegretta | ee289d7 | 2000-12-27 16:12:47 +0000 | [diff] [blame] | 5362 | - files.c: |
Rocco Corsi | 8b6cccc | 2001-01-02 06:21:07 +0000 | [diff] [blame] | 5363 | username_tab_completion() |
| 5364 | - Added the (char *) sizeof when allocating memory for the filename |
| 5365 | array (Rocco). |
Chris Allegretta | ee289d7 | 2000-12-27 16:12:47 +0000 | [diff] [blame] | 5366 | cwd_tab_completion() |
| 5367 | - removed skipping . and .. when tabulating matches. |
Rocco Corsi | 8b6cccc | 2001-01-02 06:21:07 +0000 | [diff] [blame] | 5368 | - Added the (char *) sizeof when allocating memory for the filename |
| 5369 | array (Rocco). |
Chris Allegretta | e1ebaf3 | 2001-01-07 05:50:36 +0000 | [diff] [blame] | 5370 | do_writeout() |
| 5371 | - Now takes an argument so the string typed in can be retained |
| 5372 | when calling the browser. |
Chris Allegretta | 816a165 | 2001-01-06 17:43:56 +0000 | [diff] [blame] | 5373 | do_browser() |
| 5374 | - Don't decrement longest by the length of path. Fixes crashes |
| 5375 | on entering various dirs (Rocco). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5376 | - Don't ungetch() the exit key, unneeded, fixes inserting a file |
Chris Allegretta | 816a165 | 2001-01-06 17:43:56 +0000 | [diff] [blame] | 5377 | causes exit code. |
Chris Allegretta | 155d620 | 2001-01-08 01:50:37 +0000 | [diff] [blame] | 5378 | - move.c: |
| 5379 | page_down() |
| 5380 | - Don't do an edit_update when there is only one page of text |
| 5381 | (fileage == edittop && filebot == editbot). Fixes Bug #50. |
Chris Allegretta | d55655f | 2000-12-27 03:36:47 +0000 | [diff] [blame] | 5382 | - nano.c: |
| 5383 | main() |
| 5384 | - Reorder the getopt options to be more or less alphabetical |
| 5385 | (suggested by Sven Guckes). |
Chris Allegretta | 66795ec | 2000-12-27 04:47:28 +0000 | [diff] [blame] | 5386 | - winio.c: |
| 5387 | do_cursorpos() |
| 5388 | - Optimizations and cleanups by Rocco Corsi. |
Chris Allegretta | 827b15f | 2001-01-03 02:09:04 +0000 | [diff] [blame] | 5389 | do_credits() |
| 5390 | - Spell Erik Andersen's name right. |
Chris Allegretta | f4b9601 | 2001-01-03 07:11:47 +0000 | [diff] [blame] | 5391 | titlebar() |
| 5392 | - Now takes an arg, needed for browser function. |
Chris Allegretta | 7044489 | 2001-01-07 23:02:02 +0000 | [diff] [blame] | 5393 | do_help() |
| 5394 | - Changed way of temporarily bringing up shortcuts at the |
| 5395 | bottom in the help screen (actually works). |
Chris Allegretta | 150469a | 2001-01-05 21:13:14 +0000 | [diff] [blame] | 5396 | - utils.c: |
| 5397 | mallocstrcpy() |
| 5398 | - Takes char pointers now instead of void (makes debugging a |
| 5399 | helluva lot easier) |
Chris Allegretta | e1ebaf3 | 2001-01-07 05:50:36 +0000 | [diff] [blame] | 5400 | - Duh, don't do anything if src == dest! |
Jordi Mallach | 75ef81b | 2001-01-04 16:48:59 +0000 | [diff] [blame] | 5401 | - es.po: |
| 5402 | - Updates for file browser (Jordi). |
Chris Allegretta | 827b15f | 2001-01-03 02:09:04 +0000 | [diff] [blame] | 5403 | |
Chris Allegretta | 66149e7 | 2000-12-19 02:51:06 +0000 | [diff] [blame] | 5404 | nano 0.9.24 - 12/18/2000 |
Chris Allegretta | 3bc8c72 | 2000-12-10 17:03:25 +0000 | [diff] [blame] | 5405 | General |
| 5406 | - Added --disable-help option, affects acconfig.h, configure(.in), |
Chris Allegretta | b7d00ef | 2000-12-18 05:36:51 +0000 | [diff] [blame] | 5407 | winio.c:do_help, nano.c:help_init,help_text_init,version. |
Chris Allegretta | 1a6e904 | 2000-12-14 13:56:28 +0000 | [diff] [blame] | 5408 | - Changed filename to no longer use PATH_MAX, so it can work on the |
| 5409 | HURD. Changes in files.c:write_file(), new function |
| 5410 | nano.c:clear_filename(), many changed in main(), a few other |
| 5411 | places. Please test this! |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 5412 | - Added -b, -e, and -f flags, which we ignore as nano provides |
| 5413 | their functionality already. |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 5414 | - cut.c: |
| 5415 | do_uncut_text() |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 5416 | - Fix renumbering bug when uncutting marked text at filebot. |
Chris Allegretta | 5146fec | 2000-12-10 05:44:02 +0000 | [diff] [blame] | 5417 | - Fix screen not being displayed when we are uncutting marked |
| 5418 | text at editbot (Bug discovered by Ken Tyler). |
Chris Allegretta | e51c95f | 2000-12-10 05:54:27 +0000 | [diff] [blame] | 5419 | - Fix magic line not getting created when (you guessed it) |
| 5420 | uncutting marked text at filebot (Ryan Krebs). |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 5421 | - files.c: |
Chris Allegretta | 3a7c0be | 2000-12-18 01:09:07 +0000 | [diff] [blame] | 5422 | read_file() |
| 5423 | - If we encounter an error and insert is not set, run new_file(). |
| 5424 | (bug discovered by Ben Roberts). |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 5425 | write_file() |
| 5426 | - Change open call flags, basically copy joe's way of doing it so |
| 5427 | a more recent version will actually be included in (un)stable. |
Chris Allegretta | 1cd5066 | 2000-12-11 02:47:12 +0000 | [diff] [blame] | 5428 | - Remove useless fstat call. |
Chris Allegretta | 7960dcf | 2000-12-13 15:01:29 +0000 | [diff] [blame] | 5429 | open_file() |
| 5430 | - 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] | 5431 | - nano.c: |
| 5432 | renumber() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5433 | - Don't stupidly assign the value of prev->lineno if prev == NULL! |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 5434 | main() |
| 5435 | - Added code to check for Alt-Alt (27-27) keystrokes and set the |
| 5436 | next keystroke as a control sequence. New variable |
| 5437 | modify_control_key. Removed #ifdef _POSIX_VDISABLE check |
| 5438 | around Control-S,Q,Z handlers because we need it now for |
| 5439 | the Alt-Alt-x code. |
Chris Allegretta | 7492cec | 2000-12-18 04:55:21 +0000 | [diff] [blame] | 5440 | - Added --view option to getopt_long()call . Bug discovered |
| 5441 | by Rocco Corsi. |
Chris Allegretta | 220ba69 | 2000-12-18 03:40:00 +0000 | [diff] [blame] | 5442 | help_init() |
| 5443 | - 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] | 5444 | ^_ in Pico mode not be displayed in the help (bug discovered by |
Chris Allegretta | 92325e7 | 2000-12-18 03:44:22 +0000 | [diff] [blame] | 5445 | Rocco Corsi). |
Chris Allegretta | affeda8 | 2000-12-18 04:03:48 +0000 | [diff] [blame] | 5446 | do_toggle() |
| 5447 | - Added fix_editbot() call to fix improper redisplay of edit |
| 5448 | window when using nohelp toggle (bug discovered by Rocco Corsi). |
Chris Allegretta | 51b3eec | 2000-12-18 02:23:50 +0000 | [diff] [blame] | 5449 | - nano.1, nano.1.html: |
| 5450 | - Updated man page for -b, -e, -f and expanded explanation for -p. |
Chris Allegretta | d1627cf | 2000-12-18 05:03:16 +0000 | [diff] [blame] | 5451 | - winio.c |
| 5452 | do_help() |
| 5453 | - Force keypad on so F-keys and PageUp/Down will work properly. |
| 5454 | Added check for NANO_EXIT_FKEY to loop. |
Chris Allegretta | e51c95f | 2000-12-10 05:54:27 +0000 | [diff] [blame] | 5455 | - utils.c: |
| 5456 | new_magicline() |
Chris Allegretta | 321590a | 2000-12-10 06:03:40 +0000 | [diff] [blame] | 5457 | - Increment totsize!! We decrement it when we've read a file, |
| 5458 | everywhere else it should automatically be incremented |
Chris Allegretta | ef12311 | 2000-12-10 00:04:13 +0000 | [diff] [blame] | 5459 | |
Chris Allegretta | b29550e | 2000-12-09 03:34:12 +0000 | [diff] [blame] | 5460 | nano 0.9.23 - 12/08/2000 |
Chris Allegretta | 7b36c52 | 2000-12-06 01:08:10 +0000 | [diff] [blame] | 5461 | General |
| 5462 | - Changed --disable-spell to --disable speller. The term is |
| 5463 | "speller" for -s, so it should be --disable-speller. |
Chris Allegretta | 5982849 | 2000-12-04 03:31:39 +0000 | [diff] [blame] | 5464 | - files.c: |
| 5465 | write_file() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5466 | - Added tmp check to TMP_OPT section (how appropriate). |
Chris Allegretta | 07f9ee0 | 2000-12-04 05:15:39 +0000 | [diff] [blame] | 5467 | - Added new consistency checking code from securityfocus |
Chris Allegretta | fb2226a | 2000-12-04 05:25:47 +0000 | [diff] [blame] | 5468 | article by Oliver Friedrichs, and use O_EXCL if tmp == 1. |
Chris Allegretta | 928a7f5 | 2000-12-04 05:31:34 +0000 | [diff] [blame] | 5469 | - We now run check on result of lstat(), not stat(), to be |
| 5470 | safer. New variable anyexists, we use still use realexists |
| 5471 | later in the program. |
Chris Allegretta | 71e4640 | 2000-12-06 00:40:26 +0000 | [diff] [blame] | 5472 | - OOPS, line up link/unlink/rename check if conditional with |
| 5473 | top if conditional. Option -l has been broken for 9 versions, |
| 5474 | no one noticed?! |
Chris Allegretta | 1bd0ce2 | 2000-12-06 05:56:08 +0000 | [diff] [blame] | 5475 | - Added saving perms at end of link so we can apply them to the |
| 5476 | new file if --nofollow is used. |
Chris Allegretta | 908805a | 2000-12-04 04:42:56 +0000 | [diff] [blame] | 5477 | - winio.c: |
| 5478 | edit_add() |
| 5479 | - Off by one display error (fix by Rocco Corsi). |
Chris Allegretta | fb62f73 | 2000-12-05 11:36:41 +0000 | [diff] [blame] | 5480 | do_replace_highlight() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5481 | - New code to handle being past COLS (Rocco Corsi). |
Chris Allegretta | fb62f73 | 2000-12-05 11:36:41 +0000 | [diff] [blame] | 5482 | - Moved from search.c, as it's definitely a winio function now =) |
| 5483 | update_line() |
| 5484 | - More '$' display fixes (Rocco Corsi). |
Chris Allegretta | 5982849 | 2000-12-04 03:31:39 +0000 | [diff] [blame] | 5485 | |
Chris Allegretta | fedd724 | 2000-12-03 03:15:38 +0000 | [diff] [blame] | 5486 | nano 0.9.22 - 12/02/2000 |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 5487 | - General |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 5488 | - Username tab completion code, and cleaned up existing tabcomp |
| 5489 | code. New functions real_dir_from_tide(), append_slash_if_dir(), |
| 5490 | username_tab_completion is more than a stub now =-). |
Chris Allegretta | 7262358 | 2000-11-29 23:43:28 +0000 | [diff] [blame] | 5491 | - Ignore key sequence 543 & 545, right control and alt keys in |
| 5492 | windows. Affects main() and winio.c:nanogetstr(). |
Chris Allegretta | 56b24b5 | 2000-11-29 23:57:20 +0000 | [diff] [blame] | 5493 | - Took out help from spell_list and changed SPELL_LIST_LEN to 1. |
| 5494 | Is using a spell checker THAT difficult? =-) |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 5495 | - New function nano_disabled_msg(), to alert that certain |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5496 | functions have been disabled, similar to nano_tiny feature. |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 5497 | - New configure options: |
| 5498 | - Added configure argument --disable-tabcomp. Affects |
| 5499 | bottom of files.c and write_file, utils.c:check_wildcard_match() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5500 | and winio.c:nanogetstr(). |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 5501 | - New options --enable-extra. New code in nano.c:version() to |
| 5502 | print out various options from ./configure, function do_credits(). |
| 5503 | - Added --disable-spell option for those who want to just disable |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5504 | the spell check feature. Affects the spelling functions |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 5505 | do_spell, do_int_speller and do_alt_speller. |
| 5506 | - Added --disable-justify to get rid of the justify function. |
| 5507 | Affects do_justify() (not surprisingly). |
Chris Allegretta | 650e8a4 | 2000-11-24 14:15:17 +0000 | [diff] [blame] | 5508 | - files.c: |
| 5509 | write_file() |
| 5510 | - Unsetting modified on temp files bug fixed (Rocco Corsi). |
Chris Allegretta | 581bc60 | 2000-12-03 03:01:12 +0000 | [diff] [blame] | 5511 | - Okay, if tmp == 1 and the file exists, we abort. |
Chris Allegretta | 25f4e58 | 2000-11-25 05:03:20 +0000 | [diff] [blame] | 5512 | do_insertfile() |
Chris Allegretta | 09a8084 | 2000-11-30 02:31:13 +0000 | [diff] [blame] | 5513 | - Added call to real_name_from tilde, oops. Added check for |
| 5514 | DISABLE_TABCOMP. |
Chris Allegretta | 24946bd | 2000-11-26 21:34:47 +0000 | [diff] [blame] | 5515 | read_file() |
| 5516 | - Added check for fileptr == NULL. |
Chris Allegretta | 0779835 | 2000-11-27 22:58:23 +0000 | [diff] [blame] | 5517 | - global.c: |
| 5518 | shortcut_init() |
| 5519 | - Now takes an argument as to whether to display the unjustify |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5520 | shortcut or the normal uncut text one. Needed to accommodate |
| 5521 | the kludgey unjustify code. |
Chris Allegretta | 8be8ce2 | 2000-11-28 02:15:30 +0000 | [diff] [blame] | 5522 | - nano.1, nano.1.html: |
| 5523 | - Updated date on pages because of -p changes. |
Jordi Mallach | d7ad75a | 2000-12-03 02:46:02 +0000 | [diff] [blame] | 5524 | - Added "NOTES" section, where I explain what nano.save & friends |
| 5525 | are. |
| 5526 | - Added a copyright notice for the manpage, under the GPL. |
| 5527 | - Other minor changes. |
Chris Allegretta | 9149e61 | 2000-11-27 00:23:41 +0000 | [diff] [blame] | 5528 | - nano.c: |
| 5529 | do_justify() |
Chris Allegretta | 8be8ce2 | 2000-11-28 02:15:30 +0000 | [diff] [blame] | 5530 | - Wrote unjustify code. Borrows cutbuffer and stores the unjustified |
| 5531 | text there, then grabs the next keystroke and, if the unjustify |
| 5532 | key, gets rid of the justified text and calls do_uncut_text. |
| 5533 | Added macro NANO_UNJUSTIFY_KEY. |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 5534 | do_int_spell* |
| 5535 | - Various fixes (Rocco Corsi). |
| 5536 | - Changed abort of program to aborting based on value of "edit a |
| 5537 | replacement" question, and not caring about the replace loop |
| 5538 | return value. That way the user can get out of the replace loop |
| 5539 | and continue spell checking (very important to me anyway). |
Chris Allegretta | ff269f8 | 2000-12-01 18:46:01 +0000 | [diff] [blame] | 5540 | version() |
| 5541 | - Took out huge check for the various --disabled macros, |
| 5542 | eventually there will be too many to reasonably check for. |
Chris Allegretta | 4eb7aa0 | 2000-12-01 18:57:11 +0000 | [diff] [blame] | 5543 | nano_small_msg(), nano_disabled_msg() |
| 5544 | - Added checks for disabled functions to see whether or not to |
| 5545 | declare them. |
Chris Allegretta | 9e2934f | 2000-12-01 23:49:48 +0000 | [diff] [blame] | 5546 | do_next_word() |
| 5547 | - Update the previous line as well as the current one in case we |
| 5548 | have moved beyond COLS or back from COLS, patch submitted |
| 5549 | by Ryan Krebs. |
Chris Allegretta | e7a5893 | 2000-12-02 02:36:22 +0000 | [diff] [blame] | 5550 | die() |
| 5551 | - Now creates .save file using variable-length strings. Also |
| 5552 | calls write_file with tmp == 1, which happens to do exactly what |
Chris Allegretta | 581bc60 | 2000-12-03 03:01:12 +0000 | [diff] [blame] | 5553 | we want (abort on save file exists and use mode 0600). |
Chris Allegretta | e7a5893 | 2000-12-02 02:36:22 +0000 | [diff] [blame] | 5554 | handle_sighup() |
| 5555 | - Now calls die instead of writing on its own and exiting normally. |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 5556 | - search.c: |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 5557 | do_replace_highlight() |
| 5558 | - New function, displays the currently selected word as highlighted |
Chris Allegretta | d00e6df | 2000-11-29 04:33:26 +0000 | [diff] [blame] | 5559 | in the spell check. Called from do_replace_loop (Rocco Corsi). |
Jordi Mallach | 7254904 | 2001-05-02 17:18:17 +0000 | [diff] [blame] | 5560 | - Added calls to curs_set(0) and (1) to disable the cursor when |
| 5561 | highlighting, looks much better. |
Jordi Mallach | d819a4c | 2000-11-25 04:50:25 +0000 | [diff] [blame] | 5562 | - es.po: |
| 5563 | - Traditional Spanish strings updates. |
Chris Allegretta | be77c61 | 2000-11-24 14:00:16 +0000 | [diff] [blame] | 5564 | |
Chris Allegretta | ca7a21d | 2000-11-24 01:35:40 +0000 | [diff] [blame] | 5565 | nano 0.9.21 - 11/23/2000 |
Chris Allegretta | f26bca7 | 2000-11-21 03:04:45 +0000 | [diff] [blame] | 5566 | - AUTHORS |
| 5567 | - Added Rocco Corsi. |
Chris Allegretta | 31c7666 | 2000-11-21 06:20:20 +0000 | [diff] [blame] | 5568 | - nano.c: |
| 5569 | main() |
| 5570 | - Changed check for argc == 1 to argv[optind] == NULL to decide |
| 5571 | whether or not to display "New File" in the statusbar. |
Chris Allegretta | aaabe1f | 2000-11-19 18:20:07 +0000 | [diff] [blame] | 5572 | - search.c: |
| 5573 | findnextstr() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5574 | - Fix current_x increment bug by using another variable (Rocco Corsi). |
Chris Allegretta | ef601bb | 2000-11-19 19:15:03 +0000 | [diff] [blame] | 5575 | search_init() |
| 5576 | - Silly typo in our "one simple call" of statusq. Stopped |
| 5577 | previous search string from being displayed. |
Chris Allegretta | c793c43 | 2000-11-21 12:52:55 +0000 | [diff] [blame] | 5578 | do_replace() |
| 5579 | - Copy back the previous value of last_replace into answer if |
| 5580 | using PICO_MODE and answer == "" |
Chris Allegretta | 6c5781b | 2000-11-23 01:19:58 +0000 | [diff] [blame] | 5581 | - winio.c: |
| 5582 | do_up() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5583 | - Deleted first update_line() call, screws up display when marker is |
| 5584 | set. |
Chris Allegretta | d466ab7 | 2000-11-19 20:36:41 +0000 | [diff] [blame] | 5585 | - nano.1, nano.1.html |
| 5586 | - Updated man page for new -p definition. |
Chris Allegretta | ac0e63a | 2000-11-19 02:25:43 +0000 | [diff] [blame] | 5587 | |
Chris Allegretta | 6da149a | 2000-11-19 02:23:03 +0000 | [diff] [blame] | 5588 | nano 0.9.20 - 11/18/2000 |
Chris Allegretta | 67574f4 | 2000-11-03 03:35:29 +0000 | [diff] [blame] | 5589 | - General |
| 5590 | - Ran source through indent -kr again. Make everything pretty. |
| 5591 | - Changed behavior of "search" and "replace" prompts to make all |
| 5592 | previous values editable. This change was made so that you can |
| 5593 | replace with the null string without needing a special key for it. |
| 5594 | changed code in search_init(), do_replace(), nanogetstr (see |
| 5595 | below). |
| 5596 | - Added some missing gettext calls here and there (Jordi). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5597 | - Revamped nanogetstr() and calls to it to use variable length |
| 5598 | strings. |
Chris Allegretta | 67574f4 | 2000-11-03 03:35:29 +0000 | [diff] [blame] | 5599 | MANY changes in nanogetstr(), many chances in search.c, new |
| 5600 | function mallocstrcpy which is sure to be a programmatic |
| 5601 | nightmare, changed last_search, last_replace, answer to |
| 5602 | pointers. New function not_found_msg in search.c for displaying |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5603 | truncated strings in statusbar when the string is not found |
Chris Allegretta | cbb0f8b | 2000-11-15 03:50:02 +0000 | [diff] [blame] | 5604 | (-pedantic fixes by Rocco Corsi). We disable this feature when |
Chris Allegretta | bf9a8cc | 2000-11-17 01:37:39 +0000 | [diff] [blame] | 5605 | using PICO_MODE (-p). |
Chris Allegretta | 27eb13f | 2000-11-05 16:52:21 +0000 | [diff] [blame] | 5606 | - New spelling code by Rocco Corsi. New functions |
| 5607 | do_int_speller, do_alt_speller, changes to do_spell in nano.c, |
| 5608 | New functions search_init_globals and do_replace_loop, changes |
| 5609 | to search_init(), do_replace, findnextstr, moved last_search and |
| 5610 | last_replace back to nano.c (*shrug*). |
Chris Allegretta | 04d848e | 2000-11-05 17:54:41 +0000 | [diff] [blame] | 5611 | - New tab completion code. Used check_wildcard_match, input_tab, |
| 5612 | cwd_tab_completion, username_tab_completion from busybox, |
Chris Allegretta | 7da4e9f | 2000-11-06 02:57:22 +0000 | [diff] [blame] | 5613 | hacked them a lot, changes to nanogetstr(). nanogetstr() and |
| 5614 | statusq() now take an arg for whether or not to allow tab |
| 5615 | completion. |
Chris Allegretta | 5bf51d3 | 2000-11-16 06:01:10 +0000 | [diff] [blame] | 5616 | - Fixed value being input in statusbar during a search or replace |
| 5617 | and CASE_SENSITIVE or the other search is called and the |
| 5618 | string being typed in is blown away. Reported by Ken Tyler. |
Chris Allegretta | bf9a8cc | 2000-11-17 01:37:39 +0000 | [diff] [blame] | 5619 | - Changed PICO_MSGS flag to PICO_MODE, changed help strings |
| 5620 | accordingly. |
Chris Allegretta | 92d2bab | 2000-11-02 14:53:46 +0000 | [diff] [blame] | 5621 | - files.c: |
| 5622 | do_writeout() |
| 5623 | - Change strcpy to answer to mallocstrcpy. |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 5624 | - global.c |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 5625 | - New global replace_list_2, for 2nd half of the replace dialog |
| 5626 | ("Replace with:"), has fewer options than first half because |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5627 | they were inappropriate. |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 5628 | toggle_init() |
| 5629 | - Added #ifdef around toggle_regex_msg to get rid of compiler |
| 5630 | warning. |
Chris Allegretta | 1cc0b7f | 2000-11-03 01:29:04 +0000 | [diff] [blame] | 5631 | |
| 5632 | - nano.c: |
| 5633 | keypad_on() |
| 5634 | - New function, toggles turning the keypad on and off in edit and |
| 5635 | bottomwin(). Added call to this in finish(), fixes bug #45. |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 5636 | - search.c |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5637 | findnextstr() |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 5638 | - New arg for begin_x variable, basically a rewrite that |
| 5639 | makes a little more sense and isn't quite as messy (Rocco Corsi). |
| 5640 | - Update the line we're checking if not the whole screen, because |
| 5641 | it's quite possible the search team could exist somewhere way |
| 5642 | to the right on the same line, for example. |
| 5643 | replace_abort() |
| 5644 | - Add reset of placewewant, stops cursor from jumping when moving |
| 5645 | cursor after a replace. |
Chris Allegretta | 810632d | 2000-10-27 04:36:01 +0000 | [diff] [blame] | 5646 | do_replace() |
| 5647 | - Added code for Gotoline key after entering the search term. |
| 5648 | Fixes bug #46. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5649 | - Removed redundant code involving processing replacement string. |
Chris Allegretta | 9c371a2 | 2000-10-27 05:48:05 +0000 | [diff] [blame] | 5650 | Converted if statements to switch statements. |
| 5651 | - Optimizations by Rocco Corsi. |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 5652 | - Removed code for deleted shortcuts from in replace_list_2. |
Chris Allegretta | 9c371a2 | 2000-10-27 05:48:05 +0000 | [diff] [blame] | 5653 | do_search() |
| 5654 | - Converted if statements to one switch statement. |
Chris Allegretta | f9b6c9b | 2000-10-18 19:35:59 +0000 | [diff] [blame] | 5655 | - winio.c |
| 5656 | nanogetstr() |
| 5657 | - Added check for 343 in while loop to get rid of getting "locked" |
| 5658 | into statusbar" bug in odd $TERMs like iris-ansi. |
Chris Allegretta | 105da33 | 2000-10-31 05:10:10 +0000 | [diff] [blame] | 5659 | - Changed check to return -2 on "enter" from answer == "" |
| 5660 | to answer == def. |
Chris Allegretta | 04d848e | 2000-11-05 17:54:41 +0000 | [diff] [blame] | 5661 | - Fixed fallthrough code because there was no break. Make much |
| 5662 | more sense now. |
Chris Allegretta | 5b1faac | 2000-11-16 19:55:30 +0000 | [diff] [blame] | 5663 | - Added check for ASCII 54[124] when using PDCURSES, ignore them |
| 5664 | if noticed. |
Chris Allegretta | a0e957b | 2000-10-24 22:25:36 +0000 | [diff] [blame] | 5665 | nanoget_repaint() |
| 5666 | - New function, removes about 30 lines of duplicate code in |
| 5667 | nanogetstr(). |
Chris Allegretta | 90594e2 | 2000-11-02 15:53:40 +0000 | [diff] [blame] | 5668 | - Black magic code to make $ appear in prompt if we're past |
| 5669 | COLS. |
Chris Allegretta | 2c97522 | 2000-11-15 01:25:42 +0000 | [diff] [blame] | 5670 | blank_edit() |
| 5671 | - Removed wrefresh() call, much less choppy now. If there's a need |
| 5672 | for a wrefresh after a specific call, let me know. |
Jordi Mallach | 0ae0dcd | 2000-10-28 12:38:02 +0000 | [diff] [blame] | 5673 | - es.po: |
Jordi Mallach | d25385b | 2000-11-18 03:31:21 +0000 | [diff] [blame] | 5674 | - Updated translation for 0.9.20 (Jordi). |
Chris Allegretta | d7934d4 | 2000-10-03 05:39:29 +0000 | [diff] [blame] | 5675 | |
Chris Allegretta | 07e97d6 | 2000-10-03 01:52:50 +0000 | [diff] [blame] | 5676 | nano 0.9.19 - 10/02/2000 |
Chris Allegretta | ad1dacc | 2000-09-21 04:25:45 +0000 | [diff] [blame] | 5677 | - General |
| 5678 | - Added PDCurses support under cygwin, which allows building |
| 5679 | a nice stand-alone nano.exe for those poor Windows users. |
| 5680 | Extra check in configure.in for initscr() in -lcurses (as |
| 5681 | PDcurses has no tgetent), some #ifdef PDCURSES statements |
| 5682 | in main(). |
Chris Allegretta | 66989d6 | 2000-09-27 03:16:11 +0000 | [diff] [blame] | 5683 | - Changed web site and email to new nano-editor.org domain. |
Chris Allegretta | 7c44b68 | 2000-09-21 04:27:01 +0000 | [diff] [blame] | 5684 | - nano.c |
Chris Allegretta | 9e7efa3 | 2000-10-02 03:42:55 +0000 | [diff] [blame] | 5685 | - Added (int) casts to remove compile warnings with -Wall. |
Chris Allegretta | 7c44b68 | 2000-09-21 04:27:01 +0000 | [diff] [blame] | 5686 | main() |
| 5687 | - Added check for _POSIX_VDISABLE around term variable definition. |
Chris Allegretta | df3afdc | 2000-10-01 17:50:29 +0000 | [diff] [blame] | 5688 | - search.c |
| 5689 | - Added initializations for last_search and last_replace (Rocco Corsi) |
| 5690 | |
Chris Allegretta | 629edad | 2000-09-19 00:27:19 +0000 | [diff] [blame] | 5691 | nano 0.9.18 - 09/18/2000 |
Chris Allegretta | 805c26d | 2000-09-06 13:39:17 +0000 | [diff] [blame] | 5692 | - General |
| 5693 | - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H, |
| 5694 | added check for regex.h in configure.in. |
Chris Allegretta | 90bd712 | 2000-09-13 18:12:05 +0000 | [diff] [blame] | 5695 | - configure.in: |
| 5696 | - Added default case for cross-compiling to get rid of annoying |
| 5697 | AC_TRY_RUN warning. |
Chris Allegretta | 429a551 | 2000-09-05 13:09:56 +0000 | [diff] [blame] | 5698 | - cut.c: |
| 5699 | do_cut_text() |
| 5700 | - 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] | 5701 | set (fixes bug #42). |
Chris Allegretta | f45c18d | 2000-09-16 05:25:06 +0000 | [diff] [blame] | 5702 | - files.c: |
| 5703 | open_file() |
| 5704 | - Fix for bug #44 (Rocco Corsi). |
Chris Allegretta | 16e4168 | 2000-09-11 22:33:54 +0000 | [diff] [blame] | 5705 | - global.c: |
| 5706 | shortcut_init() |
| 5707 | - Added in FKEYs that for some reason were left out. *boggle* |
Chris Allegretta | 9239d74 | 2000-09-06 15:19:18 +0000 | [diff] [blame] | 5708 | - nano.c: |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 5709 | main() |
Chris Allegretta | 9239d74 | 2000-09-06 15:19:18 +0000 | [diff] [blame] | 5710 | - Added check for _POSIX_VDISABLE and use raw mode if not |
| 5711 | available, allows nano to work with cygwin. |
Jordi Mallach | 2dc0f6b | 2000-09-07 10:48:00 +0000 | [diff] [blame] | 5712 | - Added gettext calls to enable/disable strings (Jordi). |
Chris Allegretta | 16e4168 | 2000-09-11 22:33:54 +0000 | [diff] [blame] | 5713 | - Revamped a great deal of the F-key and keypad key handling, |
| 5714 | because we not longer use keypad() (see below). |
| 5715 | - Removed keypad() call because nano was not working with the |
| 5716 | keypad in many terms, which is very bad. |
Chris Allegretta | 9c35eb0 | 2000-09-13 14:24:52 +0000 | [diff] [blame] | 5717 | - Made insert key call do_insertfile(). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 5718 | do_toggle() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5719 | - Rewrote function to allow NOHELP toggle to work on systems |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 5720 | without a working resizewin(). New function window_init(). |
Chris Allegretta | 0b88ce0 | 2000-09-15 15:46:32 +0000 | [diff] [blame] | 5721 | mouse_init() |
| 5722 | - Add keypad only if mouse support is on, otherwise mouse doesn't |
| 5723 | work. I guess you have to choose between having the mouse and |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5724 | 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] | 5725 | - winio.c: |
| 5726 | total_refresh() |
| 5727 | - Added titlebar() call. |
Chris Allegretta | e7034c6 | 2000-09-15 03:31:09 +0000 | [diff] [blame] | 5728 | onekey() |
| 5729 | - Off by one error fix fix ;-) (Rocco Corsi). |
Chris Allegretta | 2a42af1 | 2000-09-12 23:02:49 +0000 | [diff] [blame] | 5730 | |
Chris Allegretta | b9bfc9b | 2000-09-10 05:06:09 +0000 | [diff] [blame] | 5731 | - search.c: |
| 5732 | findnextstr() |
| 5733 | - Reset starting at current for search instead of begin. |
Jordi Mallach | 2dc0f6b | 2000-09-07 10:48:00 +0000 | [diff] [blame] | 5734 | - es.po: |
| 5735 | - Translated new strings and minor updates (Jordi). |
Chris Allegretta | 834a69d | 2000-09-18 17:11:33 +0000 | [diff] [blame] | 5736 | - de.po |
| 5737 | - Revised translations by floki@bigfoot.com |
Chris Allegretta | 429a551 | 2000-09-05 13:09:56 +0000 | [diff] [blame] | 5738 | |
Chris Allegretta | 423cbfd | 2000-09-04 16:21:29 +0000 | [diff] [blame] | 5739 | nano-0.9.17 - 09/04/2000 |
Chris Allegretta | 756f220 | 2000-09-01 13:32:47 +0000 | [diff] [blame] | 5740 | - General |
| 5741 | - New shortcuts to toggle certain options that are normally only |
| 5742 | flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called |
| 5743 | toggles in nano.h, toggle_init(), toggle_init_one() in global.c |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 5744 | called from shortcut_init(), and do_toggle in nano.c. Also |
| 5745 | moved the signal code into a separate function in nano.c called |
Chris Allegretta | 18f8be0 | 2000-09-04 03:20:38 +0000 | [diff] [blame] | 5746 | signal_init(). Moved "struct sigaction act"into a static in |
| 5747 | nano.c. |
Chris Allegretta | e49f123 | 2000-09-02 07:20:39 +0000 | [diff] [blame] | 5748 | - Changed from Alt-key symbol (@) which is completely nonstandard |
| 5749 | to the *nix "Meta" symbol (M-). Changed help_init to show |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5750 | 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] | 5751 | Meta. Moved the toggle Meta keystrokes to the first column |
| 5752 | instead of the third as they are the primary keystrokes for the |
Chris Allegretta | 9541f2a | 2000-09-02 07:31:32 +0000 | [diff] [blame] | 5753 | functions. Thanks Mini editor team :-> |
Chris Allegretta | 756f220 | 2000-09-01 13:32:47 +0000 | [diff] [blame] | 5754 | - Changed last_search and last_replace vars to statically |
| 5755 | allocated (hence nulled) and moved to search.c (Matt Kraai). |
Chris Allegretta | f0f63a8 | 2000-09-02 18:44:21 +0000 | [diff] [blame] | 5756 | - global.c: |
| 5757 | toggle_init() |
| 5758 | - Changed "No auto wrap" and "No help mode" to "Auto wrap" and |
| 5759 | "Help mode". See the change to do_toggle() below. |
Chris Allegretta | e10debd | 2000-08-22 01:26:42 +0000 | [diff] [blame] | 5760 | - nano.c: |
| 5761 | do_mouse() |
| 5762 | - Patch for handling lines w/tabs and mouse better (Ben Roberts). |
Chris Allegretta | 340d6e5 | 2000-08-29 03:55:29 +0000 | [diff] [blame] | 5763 | do_wrap() |
| 5764 | - Made wrapping code less ambitious. |
Chris Allegretta | f0f63a8 | 2000-09-02 18:44:21 +0000 | [diff] [blame] | 5765 | do_toggle() |
| 5766 | - Added checks for no help and no wrap mode, and print opposite |
| 5767 | enable/disable message. |
Chris Allegretta | 18f8be0 | 2000-09-04 03:20:38 +0000 | [diff] [blame] | 5768 | do_suspend(), do_cont(): |
| 5769 | - New functions, handle suspend signal in a Pico-like manner and |
| 5770 | work with Meta-Z. |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 5771 | - winio.c: |
| 5772 | total_refresh() |
| 5773 | - Added edit_refresh() call to actually update the screen if messy. |
| 5774 | edit_refresh_clearok() |
| 5775 | - New function, does a total update for edit refresh, needed to fix |
| 5776 | lack of reversed text on searching with MARK_ISSET. |
Chris Allegretta | dabc3cb | 2000-08-25 01:44:12 +0000 | [diff] [blame] | 5777 | onekey() |
| 5778 | - Off by one error fix (Rocco Corsi). |
Chris Allegretta | e7034c6 | 2000-09-15 03:31:09 +0000 | [diff] [blame] | 5779 | |
Chris Allegretta | 6306a11 | 2000-09-02 07:55:41 +0000 | [diff] [blame] | 5780 | update_line() |
| 5781 | - Added check for binary data >= 1 and <= 26, and use ^+letter |
| 5782 | to display it. Should fix editing text files with binary |
| 5783 | data in them. Placing of the cursor seems to be a bit screwed |
| 5784 | though... |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 5785 | - search.c: |
| 5786 | search_abort() |
| 5787 | - Now calls edit_refresh_clearok when MARK_ISSET to handle screen |
| 5788 | ugliness bug (reported by Ken Tyler). |
Chris Allegretta | e10debd | 2000-08-22 01:26:42 +0000 | [diff] [blame] | 5789 | findnextstr(): |
| 5790 | - Added reset for placewewant (Ben Roberts). |
Chris Allegretta | 9babaf3 | 2000-08-30 13:49:33 +0000 | [diff] [blame] | 5791 | - Fixed check for string that only occurs on the same line failing |
| 5792 | (discovered by Ken Tyler). |
Chris Allegretta | f1d33d3 | 2000-08-19 03:53:39 +0000 | [diff] [blame] | 5793 | |
Chris Allegretta | ba96f7a | 2000-08-09 21:38:28 +0000 | [diff] [blame] | 5794 | nano-0.9.16 - 08/09/2000 |
Chris Allegretta | 7dc14e8 | 2000-08-05 16:03:19 +0000 | [diff] [blame] | 5795 | - cut.c: |
| 5796 | do_cut_text() |
| 5797 | - Fixed getting locked into cutbuffer on cutting first line of file. |
Chris Allegretta | c86f714 | 2000-08-07 14:39:32 +0000 | [diff] [blame] | 5798 | - Added check_statblank(). |
| 5799 | - Check for fileptr == filebot, if so return, we shouldn't bother |
| 5800 | cutting the magic line. |
| 5801 | do_uncut_text() |
| 5802 | - Added check_statblank(). |
Chris Allegretta | 4dbcc3c | 2000-08-04 15:44:29 +0000 | [diff] [blame] | 5803 | - nano.c: |
| 5804 | main() |
| 5805 | - Changed tabsize long arg to actually accept an argument *sigh*. |
Chris Allegretta | 81b1eea | 2000-08-05 16:09:07 +0000 | [diff] [blame] | 5806 | - po/Makefile.in.in: |
| 5807 | - Patch to handle $DESTDIR (orig by Dan Harnett contributed by |
| 5808 | Christian Weisgerber) |
Chris Allegretta | b4dc9e0 | 2000-08-05 22:49:30 +0000 | [diff] [blame] | 5809 | - configure.in: |
Chris Allegretta | a2efc36 | 2000-08-09 03:26:33 +0000 | [diff] [blame] | 5810 | - New (and severally revised =) slang test code (Albert Chin-A-Young) |
Chris Allegretta | 4dbcc3c | 2000-08-04 15:44:29 +0000 | [diff] [blame] | 5811 | |
Chris Allegretta | 0bf4e14 | 2000-08-04 02:42:04 +0000 | [diff] [blame] | 5812 | nano-0.9.15 - 08/03/2000 |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5813 | - Changed edit_update call to take arguments TOP, CENTER or BOTTOM. |
| 5814 | Affects many many functions. Removed functions edit_update_top and |
| 5815 | edit_update_bot. |
Chris Allegretta | 6d690a3 | 2000-08-03 22:51:21 +0000 | [diff] [blame] | 5816 | - Added global variable tabsize, we no longer screw with the curses |
| 5817 | library in order to implement -T (suggested by Christian Weisgerber). |
Chris Allegretta | 7a6f0d9 | 2000-07-31 13:00:24 +0000 | [diff] [blame] | 5818 | - configure.in: |
| 5819 | - Finally fixed check for slang to report "no" if not called |
| 5820 | with --with-slang or --without-slang |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 5821 | - nano.c: |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 5822 | splice_node() |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 5823 | - New function, abstracts linking in nodes. Fixes bug #36. |
Chris Allegretta | 6925bbd | 2000-07-28 01:41:29 +0000 | [diff] [blame] | 5824 | null_at() |
| 5825 | - New function, nulls a string at a given index and realigns it. |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 5826 | delete_buffer() |
| 5827 | - Removed, same as free_filestruct(). |
Chris Allegretta | da721be | 2000-07-31 01:26:42 +0000 | [diff] [blame] | 5828 | do_backspace() |
| 5829 | - Now calls page_up_center instead of page_up (as it should?) |
| 5830 | do_enter() |
| 5831 | - Fixed typo (?) in check for inptr->next. Caused lots of |
| 5832 | grief for editing lines at filebot. |
Chris Allegretta | 99bf73f | 2000-08-04 00:22:08 +0000 | [diff] [blame] | 5833 | main() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5834 | - Removed now useless usertabsize variable (Christian Weisgerber). |
Chris Allegretta | 18bd029 | 2000-07-28 01:18:10 +0000 | [diff] [blame] | 5835 | - search.c: |
| 5836 | replace_abort() |
| 5837 | - redundant, now just calls search abort until it does something |
| 5838 | different. |
Chris Allegretta | 95b0b52 | 2000-07-28 02:58:06 +0000 | [diff] [blame] | 5839 | - winio.c: |
| 5840 | edit_refresh() |
| 5841 | - Added check for current line "running" off the screen. |
| 5842 | Hopefully this will not cause any recursive lockups. |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5843 | (Who am I kidding, of course it will!) |
Chris Allegretta | ed02216 | 2000-08-03 16:54:11 +0000 | [diff] [blame] | 5844 | - Added check to stop infinite loop calling edit_update. |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5845 | edit_update() |
| 5846 | - Rewritten, hopefully this will remove a lot of the |
| 5847 | scrolling the cursor back and forth needlessly. |
Chris Allegretta | 1a47139 | 2000-07-28 14:08:01 +0000 | [diff] [blame] | 5848 | - move.c: |
| 5849 | page_down() |
Chris Allegretta | 234a34d | 2000-07-29 04:33:38 +0000 | [diff] [blame] | 5850 | - do an edit_update() at last case. Made function more like |
| 5851 | Pico's version, only move down to two lines before editbot. |
| 5852 | page_up() |
| 5853 | - Made function more like Pico's version, only move down to two |
| 5854 | lines after edittop. |
Chris Allegretta | 7975ed8 | 2000-07-28 00:58:35 +0000 | [diff] [blame] | 5855 | |
Chris Allegretta | a1a55c7 | 2000-07-28 00:36:03 +0000 | [diff] [blame] | 5856 | nano-0.9.14 - 07/27/2000 |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 5857 | - nano.h: |
| 5858 | - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32. |
| 5859 | - cut.c: |
Chris Allegretta | 962c3c9 | 2000-07-24 21:52:17 +0000 | [diff] [blame] | 5860 | do_cut_text() |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 5861 | - 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] | 5862 | - Simplified check for freeing cutbuffer. Added checks for doing |
| 5863 | multiple cuts with -k, now sets marked_cut to 2 for later |
| 5864 | processing by do_uncut_text(). |
| 5865 | do_uncut_text() |
| 5866 | - Added handler for uncutting with -k cuts. |
Chris Allegretta | 962c3c9 | 2000-07-24 21:52:17 +0000 | [diff] [blame] | 5867 | - files.c: |
| 5868 | write_file() |
| 5869 | - Removed (redundant) check for writing out files with -t. |
| 5870 | do_writeout() |
| 5871 | - Changed check for filename to filename[0]. Added some code, |
| 5872 | overall fixes bug #30 =-) |
Robert Siemborski | a417ddc | 2000-07-24 23:18:48 +0000 | [diff] [blame] | 5873 | - nano.c: |
| 5874 | do_justify() & do_wrap(): |
| 5875 | - totsize-related fixes (Rob) |
Chris Allegretta | 2ece167 | 2000-07-27 15:25:52 +0000 | [diff] [blame] | 5876 | - de.po |
| 5877 | - Revised translations by floki@bigfoot.com |
Chris Allegretta | 0559719 | 2000-07-24 21:16:12 +0000 | [diff] [blame] | 5878 | |
Chris Allegretta | 1d7110d | 2000-07-23 16:59:07 +0000 | [diff] [blame] | 5879 | nano-0.9.13 - 07/23/2000 |
Chris Allegretta | 627de19 | 2000-07-12 02:09:17 +0000 | [diff] [blame] | 5880 | - 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] | 5881 | affects do_cut_text in cut.c. Not available with SMALL_NANO because it |
| 5882 | depends on the marker code which is not available with that setting. |
Chris Allegretta | 3088555 | 2000-07-14 01:20:12 +0000 | [diff] [blame] | 5883 | - Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using |
| 5884 | -t with an unwritable file causes users to get locked into editor). |
Adam Rogoyski | ed0cb89 | 2000-07-12 04:02:45 +0000 | [diff] [blame] | 5885 | - move.c |
| 5886 | page_down() |
| 5887 | - Don't edit_refresh() if the bottom of the file is in the edit |
| 5888 | buffer. (Adam) |
Robert Siemborski | 6967eec | 2000-07-08 14:23:32 +0000 | [diff] [blame] | 5889 | - nano.c: |
| 5890 | main(): |
| 5891 | - TABSIZE now set before first call to edit_refresh (Bill Soudan) |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 5892 | - Different ^C kill code (patch by Christian Weisgerber). |
Robert Siemborski | fcf32bf | 2000-07-17 03:04:54 +0000 | [diff] [blame] | 5893 | die(): |
| 5894 | - More intelligent emergency-save filename selection (Rob) |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 5895 | do_spell(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5896 | - Changed exit semantics a bit so that aspell wouldn't get |
| 5897 | all screwy (bug discovered by Joshua Jensen. |
Chris Allegretta | 8f6c069 | 2000-07-19 01:16:18 +0000 | [diff] [blame] | 5898 | - files.c: |
| 5899 | read_file(): |
| 5900 | - Added init of buf variable, hopefully this will stop the |
| 5901 | "bleeding" of text seen with mutt and using i18n. |
Chris Allegretta | acb6234 | 2000-07-21 22:42:46 +0000 | [diff] [blame] | 5902 | write_file(): |
| 5903 | - Added code to check to see if using -l and the file is not |
| 5904 | in fact a link. This should fix the behavior where a file |
| 5905 | that does not have write permission but could be removed and |
| 5906 | rewritten is saved without error. Please test this feature |
| 5907 | and give feedback. |
Chris Allegretta | a4d2162 | 2000-07-08 23:57:03 +0000 | [diff] [blame] | 5908 | - search.c: |
| 5909 | search_init(): |
| 5910 | - Added " (to replace)" statement to end of search string if |
| 5911 | we are doing a replace. Manually converted all the translations |
| 5912 | from '%s' to '%s%s' to ensure they still work with the new code. |
| 5913 | Also put in the translation for " (replace)" in the .po's. Hope |
| 5914 | I didn't step on your toes doing this Jordi. (Chris) |
Chris Allegretta | 635fae3 | 2000-07-09 03:26:34 +0000 | [diff] [blame] | 5915 | do_search(), do_replace(): |
| 5916 | - Removed call to search_abort()/replace_abort() before call to |
| 5917 | the opposite function. |
Chris Allegretta | fa8f7bf | 2000-07-12 02:41:13 +0000 | [diff] [blame] | 5918 | - Fixed bug #28. |
Adam Rogoyski | ed0cb89 | 2000-07-12 04:02:45 +0000 | [diff] [blame] | 5919 | findnextstr() |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5920 | - do not center string found if it is currently visible. (Adam) |
Chris Allegretta | 7539a82 | 2000-07-09 23:55:13 +0000 | [diff] [blame] | 5921 | - fr.po: |
| 5922 | - French update by Clement Laforet <clem_laf@wanadoo.fr>. |
Jordi Mallach | 8d7ac1b | 2000-07-13 03:10:01 +0000 | [diff] [blame] | 5923 | - es.po: |
| 5924 | - Updated strings to 0.9.13 (Jordi). |
Robert Siemborski | 6967eec | 2000-07-08 14:23:32 +0000 | [diff] [blame] | 5925 | |
Chris Allegretta | e955dae | 2000-07-07 22:24:59 +0000 | [diff] [blame] | 5926 | nano-0.9.12 - 07/07/2000 |
Robert Siemborski | 6d0e9cd | 2000-07-01 21:43:16 +0000 | [diff] [blame] | 5927 | - all: |
Chris Allegretta | 9fc8d43 | 2000-07-07 01:49:52 +0000 | [diff] [blame] | 5928 | - New regexp search feature by Bill Soudan. New flags USE_REGEXP |
| 5929 | and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup |
| 5930 | replace_line, replace_regexp in search.c, changes to |
Chris Allegretta | 4780561 | 2000-07-07 02:35:34 +0000 | [diff] [blame] | 5931 | search_init() and do_replace() and strstrwrapper(). |
| 5932 | - Added _POSIX_VERSION check to regexp code. Better than nothing |
| 5933 | for non-POSIX systems... |
Robert Siemborski | 6d0e9cd | 2000-07-01 21:43:16 +0000 | [diff] [blame] | 5934 | - Made search functions & keys more like Pico. Added goto line from |
| 5935 | search and replace function, changed wording to "No Replace" instead |
| 5936 | of "To Search", "To Replace" to simply "Replace", and changed to |
| 5937 | Pico's keystroke by default, ^R. Affects search_init(), |
| 5938 | do_search() in search.c, globals in nano.h and |
| 5939 | shortcut_init() in global.c. |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5940 | - changed 'sprintf' calls to safer 'snprintf' (Rob) |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5941 | - cut.c |
| 5942 | - further totsize update corrections |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5943 | - files.c: |
| 5944 | - changed do_insertfile to call fix_editbot (Rob) |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5945 | - Magic Line code in read_file (Rob) |
Chris Allegretta | 8a9fe7e | 2000-06-21 22:29:38 +0000 | [diff] [blame] | 5946 | - nano.c: |
| 5947 | - Removed dual alt_speller variables, oops! (Rocco Corsi) |
Chris Allegretta | dbc12b2 | 2000-07-03 03:10:14 +0000 | [diff] [blame] | 5948 | - Removed unnecessary do_oldspell function (Rocco Corsi). Added |
| 5949 | SMALL_NANO #ifdef around actual spell function. |
Chris Allegretta | 1e57e68 | 2000-07-03 04:24:39 +0000 | [diff] [blame] | 5950 | - Moved page_up() to move.c where is belongs. |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5951 | - Corrected FIXME in do_enter with explanation. (Rob) |
| 5952 | - Fixed FIXME in do_justify, resulted in creation of |
| 5953 | fix_editbot [also fixed in do_enter] (winio.c) (Rob) |
Robert Siemborski | cdff015 | 2000-07-07 01:58:52 +0000 | [diff] [blame] | 5954 | help_init(): |
| 5955 | - Moved newline out of if statement (Rocco Corsi) |
Chris Allegretta | 28a0f89 | 2000-07-05 22:47:54 +0000 | [diff] [blame] | 5956 | do_char(): |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5957 | - Magic Line related code in do_char (Rob) |
Chris Allegretta | 28a0f89 | 2000-07-05 22:47:54 +0000 | [diff] [blame] | 5958 | do_backspace(), do_delete(): |
| 5959 | - Added magic line code here too. |
| 5960 | |
Chris Allegretta | f7eba0b | 2000-06-24 01:33:27 +0000 | [diff] [blame] | 5961 | - de.po: |
Chris Allegretta | 6e80585 | 2000-06-22 01:53:29 +0000 | [diff] [blame] | 5962 | - Revised translations by floki@bigfoot.com. |
Chris Allegretta | f7eba0b | 2000-06-24 01:33:27 +0000 | [diff] [blame] | 5963 | - fi.po: |
| 5964 | - Finnish translation by pauli.virtanen@saunalahti.fi. |
Robert Siemborski | 23ecb17 | 2000-07-04 22:21:40 +0000 | [diff] [blame] | 5965 | - utils.c: |
| 5966 | - Added new_magicline() |
Chris Allegretta | 8c2b40f | 2000-06-29 01:30:04 +0000 | [diff] [blame] | 5967 | - winio.c: |
Chris Allegretta | dba37ae | 2000-07-07 05:13:09 +0000 | [diff] [blame] | 5968 | - Added stdlib.h to includes, found by OpenBSD gcc. |
Robert Siemborski | 20d61d5 | 2000-07-08 00:43:35 +0000 | [diff] [blame] | 5969 | - lots of new commenting around display functions |
Chris Allegretta | 5204ea9 | 2000-06-22 01:56:23 +0000 | [diff] [blame] | 5970 | do_yesno(), nanogetstr(): |
| 5971 | - Removed now unnecessary raw/cbreak combos. |
Jordi Mallach | 0b0fc49 | 2000-06-23 01:00:13 +0000 | [diff] [blame] | 5972 | - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till |
| 5973 | we decide if those keybindings should be translated. (Jordi) |
Chris Allegretta | 8c2b40f | 2000-06-29 01:30:04 +0000 | [diff] [blame] | 5974 | clear_bottomwin(): |
| 5975 | - Removed wrefresh(edit) call. |
Chris Allegretta | 48fd2cb | 2000-07-03 04:31:13 +0000 | [diff] [blame] | 5976 | edit_update_top(): |
| 5977 | - Fixed a bug that caused nano to not update when |
| 5978 | current->next == NULL (e.g. paging down to the very bottom of |
| 5979 | ABOUT NLS wouldn't work). |
Robert Siemborski | deca3e7 | 2000-07-04 02:40:41 +0000 | [diff] [blame] | 5980 | fix_editbot: |
| 5981 | - Added (should rebuild editbot from a valid edittop) (Rob) |
Robert Siemborski | 20d61d5 | 2000-07-08 00:43:35 +0000 | [diff] [blame] | 5982 | edit_add: |
| 5983 | - removal of redundant call to mvwaddnstr |
Chris Allegretta | 8a9fe7e | 2000-06-21 22:29:38 +0000 | [diff] [blame] | 5984 | |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 5985 | nano-0.9.11 - 06/20/2000 |
Chris Allegretta | 790198d | 2000-06-20 00:40:01 +0000 | [diff] [blame] | 5986 | - New flag "-T" or "--tabsize" to specify how to display tab widths. |
| 5987 | 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] | 5988 | 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] | 5989 | TABSIZE int. Added changes to nano.1 and nano.1.html. |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 5990 | - id.po: |
| 5991 | - Indonesian translation by Tedi Heriyanto. |
Chris Allegretta | 4da1fc6 | 2000-06-21 03:00:43 +0000 | [diff] [blame] | 5992 | - es.po: |
| 5993 | - Updated translation (Jordi Mallach). |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 5994 | - winio.c |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 5995 | - Rewrite of display functions to correct the display problems |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 5996 | we had been seeing. Affects: add_marked_sameline, edit_add, |
| 5997 | and many others. (Rob Siemborski) |
Chris Allegretta | b0ae393 | 2000-06-15 23:39:14 +0000 | [diff] [blame] | 5998 | - totsize fixes (Rob Siemborski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 5999 | total_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6000 | - Cut display_main_list call, as this function is only supposed to |
| 6001 | refresh what's already on the screen, not go through the process |
| 6002 | of adding the text again. |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 6003 | - cut.c: |
Robert Siemborski | b0df953 | 2000-06-09 00:55:16 +0000 | [diff] [blame] | 6004 | - totsize fixes (Rob Siemborski) |
Chris Allegretta | 12de8e8 | 2000-06-09 02:40:50 +0000 | [diff] [blame] | 6005 | - nano.c: |
Robert Siemborski | b0df953 | 2000-06-09 00:55:16 +0000 | [diff] [blame] | 6006 | - experimental do_wrap and check_wrap (Adam Rogoyski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 6007 | - Removed editwineob, as it was redundant for (editwinrows - 1). |
| 6008 | Changed all calls to editwinrows - 1 in nano.c and move.c. |
| 6009 | - Removed all functions that were split into other files. |
| 6010 | Affects LOTS of funcs. |
Chris Allegretta | b0ae393 | 2000-06-15 23:39:14 +0000 | [diff] [blame] | 6011 | do_enter(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6012 | - Added reset of placewewant to end. |
Robert Siemborski | 10eab1d | 2000-06-18 01:05:00 +0000 | [diff] [blame] | 6013 | do_insertfile(): |
| 6014 | - Fix display problem when using ctrl-r to load a file |
| 6015 | into the buffer (Rob Siemborski) |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 6016 | handle_sigwinch(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6017 | - Added titlebar(), edit_refresh() and display_main_list() calls |
| 6018 | because a resize wasn't picking up on possible different width |
| 6019 | correctly. |
Chris Allegretta | 97accc6 | 2000-06-19 05:45:52 +0000 | [diff] [blame] | 6020 | - utils.c: |
| 6021 | - Moved nmalloc() and nrealloc() here. |
| 6022 | - move.c: |
| 6023 | - New file, contains movement functions (like do_home(), do_up(), |
| 6024 | do_down(), page_up(), etc...). |
| 6025 | - files.c: |
| 6026 | - Contains functions for files (read_file, insert_file, |
| 6027 | do_writeout(), etc). |
| 6028 | - search.c: |
| 6029 | - Contains all our searching and related functions, (do_search(), |
| 6030 | findnextstr(), do_replace(), do_gotoline()). |
Robert Siemborski | 91413cf | 2000-06-07 02:20:46 +0000 | [diff] [blame] | 6031 | |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6032 | nano-0.9.10 - 06/04/2000 |
| 6033 | - es.po: |
| 6034 | - Translation updates (Jordi). |
| 6035 | - AUTHORS, nano.1.html, TODO, README: |
| 6036 | - Documentation and email address updates (Jordi). |
| 6037 | - nano.c: |
| 6038 | main(): |
| 6039 | - Moved Adam's termio code down to after getopt() and before initscr() |
| 6040 | to stop people losing their SIGINT character when using args that |
| 6041 | exit nano before it runs (--version, --help, etc). |
| 6042 | |
| 6043 | nano-0.9.9 - 05/31/2000 |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6044 | - Makefile.am: |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6045 | - Added proper lines for defining LOCALEDIR. |
| 6046 | - configure.in: |
| 6047 | - Spelling fixes (Jordi Mallach) |
| 6048 | - Removed CFLAGS changes for gcc, reduces portability according to |
| 6049 | some, and it certainly doesn't seem to decrease exe size. |
| 6050 | - es.po: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6051 | - Spanish translation updates (Jordi Mallach) |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6052 | - POTFILES.in: |
| 6053 | - Added global.c file, was screwing up translations (i.e. they |
| 6054 | weren't getting done). |
| 6055 | - cut.c: |
| 6056 | add_to_cutbuffer(): |
| 6057 | - Added totsize increment. |
| 6058 | - Cut fixes and optimizations (Rob Siemborski). |
| 6059 | do_uncut_text(): |
| 6060 | - Added totsize increment in several places. |
| 6061 | - nano.c: |
| 6062 | headers: |
| 6063 | - Removed LOCALEDIR define. |
| 6064 | do_justify(): |
| 6065 | - Added edit_refresh() call (bug discovered by Adam). |
| 6066 | page_down_center(): |
| 6067 | - Added call to edit_update(current) for last case. Removed |
| 6068 | increment of current_y since it's now just wasteful. |
| 6069 | do_enter(): |
| 6070 | - Added totsize increment. |
| 6071 | renumber(), renumber_all(): |
| 6072 | - Removed totsize-- and totsize init in renumber_all. |
| 6073 | do_mouse(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6074 | - Added edit_refresh() call to show highlight updates. Removed |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6075 | unnecessary wrefresh(edit). |
| 6076 | main(): |
| 6077 | - Moved up locale calls so that translated --help messages would |
| 6078 | actually get translated. |
| 6079 | do_backspace(), do_delete(): |
| 6080 | - Added decrement of totsize. |
| 6081 | init_help_msg(): |
| 6082 | - New function, initializes help text if NANO_SMALL isn't set (fixes |
| 6083 | broken i18n). |
| 6084 | read_file(): |
| 6085 | - malloc call changed to nmalloc (Rob Siemborski). |
| 6086 | - winio.c: |
| 6087 | total_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6088 | - Completely rewrote function, not quite so brain-damaged now. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6089 | |
| 6090 | nano-0.9.8 - 05/18/2000 |
| 6091 | - nano.c: |
| 6092 | main(): |
| 6093 | - Added awesome code that disables the CINTR and CQUIT |
| 6094 | character (Adam Rogoyski). Removed raw()/noraw() calls so that |
| 6095 | nano gets input in 'normal' mode, which is the Right Way(tm) to |
| 6096 | 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] | 6097 | ^C. New variable term, global variable oldterm to save previous |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6098 | term settings, and changes to finish() and die(). |
| 6099 | - Added extra #ifdefs in getopt code, so that above code and |
| 6100 | flag init is run even if GETOPT_LONG is not #defined. |
| 6101 | - Added memset line before sigactions. (Adam Rogoyski) |
| 6102 | do_suspend(): |
| 6103 | Removed function, see above for why. |
| 6104 | - winio.c: |
| 6105 | update_line(), center_cursor(): |
| 6106 | - Removed wrefresh(edit) from bottom of functions. wrefresh |
| 6107 | should now only be called once, at the bottom of the main() |
| 6108 | loop. |
| 6109 | - global.c: |
| 6110 | shortcut_init(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6111 | - Removed suspend sc_init call and suspend message because suspend |
| 6112 | is no longer needed in the shortcut list to work properly. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6113 | |
| 6114 | nano-0.9.7 - 05/14/2000 |
| 6115 | - nano.c: |
| 6116 | do_home(), do_end(): |
| 6117 | - Added calls to update_line for the current line, fixes |
| 6118 | lack of update (bug discovered by Alberto GarcÃa). |
| 6119 | main(): |
| 6120 | - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not |
| 6121 | following symlinks even when -l isn't set, and "no changes" |
| 6122 | error when nano is called from crontab -e (Adam Rogoyski). |
| 6123 | - cut.c: |
| 6124 | do_cut_text(): |
| 6125 | - Added edit_update_top to cut when mark is set, fixes lack of |
| 6126 | display update (bug discovered by Ken Tyler). |
| 6127 | |
| 6128 | nano-0.9.6 - 05/08/2000 |
| 6129 | - New Italian translation (it.po), by Daniele Medri. |
| 6130 | - nano.c: |
| 6131 | page_up(), page_down(): |
| 6132 | - Added reset of placewewant to 0, as it should be. |
| 6133 | do_up(), do_down(): |
| 6134 | - Added call to update_line() for line we move from and line we |
| 6135 | move to, in order to keep the highlighting correct. |
| 6136 | do_wrap(): |
| 6137 | - Added var chop, new code to wrap lines more like Pico, mostly. |
| 6138 | THIS STILL DEFINITELY NEEDS TO BE REWRITTEN! |
| 6139 | - winio.c: |
| 6140 | do_help(): |
| 6141 | - Added edit_refresh() before exit. |
| 6142 | update_cursor(): |
| 6143 | - Removed cursor updating which really wasn't needed anyway. |
| 6144 | edit_update(): |
| 6145 | - Removed yucky code that didn't work, this function now just |
| 6146 | computes edittop and editbot and calls edit_refresh() to do the |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6147 | rest, which removes a lot of duplicate code.. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6148 | |
| 6149 | nano-0.9.5 - 05/01/2000 |
| 6150 | - Removed bytes from file struct because it was computationally wasteful. |
| 6151 | - cut.c: |
| 6152 | do_uncut_text(): |
| 6153 | - Added call to edit_refresh(). |
| 6154 | - nano.c: |
| 6155 | do_backspace(): |
| 6156 | - Added reset of editbot when deleting the last line of the file |
| 6157 | (bug discovered by Adam). |
| 6158 | do_char(): |
| 6159 | - Removed call to reset_cursor(). |
| 6160 | do_delete(): |
| 6161 | - Added similar check as to do_backspace(). |
| 6162 | do_enter(): |
| 6163 | - Added call to edit_refresh(). |
| 6164 | do_left(), right(): |
| 6165 | - Added call to update_line(), still redundant but better... |
| 6166 | do_up(), do_down(): |
| 6167 | - Added refresh calls both for current line and line to which |
| 6168 | we are moving. |
| 6169 | main(): |
| 6170 | - Removed inefficient call to edit_refresh() after every keystroke. |
| 6171 | It is now up each function to leave the screen in a good state. |
| 6172 | - winio.c: |
| 6173 | do_cursorpos() |
| 6174 | - Rewritten to not use bytes from filestruct by an incremental sum. |
| 6175 | update_line(), reset_cursor(): |
| 6176 | - Optimized calls to xplustabs() through a single variable. |
| 6177 | - update_line() now takes a new arg, an index into the string |
| 6178 | for where to update the line from. Needed for new update |
| 6179 | code. |
| 6180 | - configure.in: |
| 6181 | - Better checks for slang, allows argument to --with-slang. |
| 6182 | (Albert Chin-A-Young) |
| 6183 | - Removed -Iintl from CFLAGS in gcc check. |
| 6184 | - Makefile.am: |
| 6185 | - Addition of -Iintl for gettext (Albert Chin-A-Young) |
| 6186 | |
| 6187 | nano-0.9.4 - 04/25/2000 |
| 6188 | - Fixed calls to no_help and changed them to the more consistent |
| 6189 | ISSET(NO_HELP). Fixed return val of no_help to be what it should (2, |
| 6190 | not 1. Code to temporarily disable NO_HELP when in the |
| 6191 | help system. (Adam Rogoyski) |
| 6192 | - cut.c: |
| 6193 | do_marked_cut(), do_cut(), do_uncut(): |
| 6194 | - Commented out unnecessary bits when NANO_SMALL is being used. |
| 6195 | - winio.c: |
| 6196 | xpt(), strlenpt(), actual_x(): |
| 6197 | - Added check for value of data[i] & 0x80, if so do not make |
| 6198 | character 2 chars wide (orig. by Chris, 0x80 check by Adam). |
| 6199 | edit_refresh(): |
| 6200 | - New check for temp == NULL (bad thing), if so go back to the |
| 6201 | previous line. New filestruct var hold points to prev line. |
| 6202 | Fixes segfault when paging down to the end of a file. |
| 6203 | - nano.c: |
| 6204 | write_file(): |
| 6205 | - Added check for if file exists and is not equal to the current |
| 6206 | filename, prompt for overwrite (Adam Rogoyski). |
| 6207 | do_down(): |
| 6208 | - Removed check for current->next == NULL, now checks return value |
| 6209 | of do_down before setting current_x = 0 (discovered by Adam). |
| 6210 | do_justify(): |
| 6211 | - Fixed segfault when reaching the last line (tried to assign |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6212 | current->next->data when current->next == NULL) (discovered |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6213 | by Adam). |
| 6214 | - utils.c: |
| 6215 | - Removed extra macro defs that are now in nano.h. |
| 6216 | - nano.h: |
| 6217 | - Changed macro SET() to use |= instead of ^=. Fixes bug in |
| 6218 | cut code when cutting more than one line, and cutbuffer gets |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6219 | blown away when it shouldn't. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6220 | |
| 6221 | nano-0.9.3 - 04/29/2000 |
| 6222 | - cut.c: |
| 6223 | do_marked_cut(): |
| 6224 | - Fixed off by one error in cut code for marked text. |
| 6225 | do_cut_text(): |
| 6226 | - Removed check for being on the last line, part of |
| 6227 | magic line code. |
| 6228 | add_to_cutbuffer(): |
| 6229 | - Moved tmp->prev = inptr line to part where cutbuffer != NULL. |
| 6230 | - Added inptr->prev = NULL for case where cutbuffer == NULL. |
| 6231 | - nano.c: |
| 6232 | do_backspace(), do_char(): |
| 6233 | - Removed "magic line" code. It was basically causing more bugs |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6234 | than it was helping for the sake of compatibility. This fixes |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6235 | at least one known segfault condition. |
| 6236 | do_enter(): |
| 6237 | - Added setting editbot to new node if the new node is the last |
| 6238 | node in the file. |
| 6239 | write_file(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6240 | - Changed writing file behavior. Now, if last line of the file |
| 6241 | 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] | 6242 | - winio.c: |
| 6243 | add_marked_sameline(): |
| 6244 | - New code that checks for whether the begin and end of the marker |
| 6245 | are on different lines. Missing previously. |
| 6246 | edit_add(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6247 | - added some more checks for text length. Cleaned up some |
| 6248 | mvwaddnstrs that could be written more simply as waddnstrs. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6249 | edit_refresh(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6250 | - Removed check for temp == filebot, it is now treated like any other |
| 6251 | line. Fixes a bug where selected text on the last line shows |
| 6252 | normally. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6253 | xpt(): |
| 6254 | - Removed an extra computation for tabs variable that was incorrect. |
| 6255 | xplustabs(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6256 | - 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] | 6257 | xpt(current, current_x) |
| 6258 | - nano.1, nano.1.html: |
| 6259 | - Added -l option to man pages. |
| 6260 | - configure.in: |
| 6261 | - New option --enable-tiny, #defines NANO_SMALL in config.h. |
| 6262 | Disables call to gettext in functions and other i18n stuff in |
| 6263 | nano.c, the detailed help mode, the resize functions, and the |
| 6264 | justify code which no one ever uses. |
| 6265 | - New option --with-slang. Enables slang libraries instead of |
| 6266 | ncurses, requires slcurses.h for wrapper functions. (Based |
| 6267 | on patches for 0.8.7 by Glenn McGrath). |
| 6268 | |
| 6269 | nano-0.9.2 - 04/15/2000 |
| 6270 | - This release just fixes the serious segfault problem if nano is |
| 6271 | invoked any way other than using the absolute path. The bug was |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 6272 | in the new code for checking whether nano is invoked as 'pico'. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6273 | |
| 6274 | nano-0.9.1 - 04/14/2000 |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 6275 | - Added Pico compatibility for ^T when in search or switch to switch |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6276 | to the opposite function. Added one to REPLACE_LIST_LEN and |
| 6277 | 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] | 6278 | new strings that will have to be gettext()ed. New argument 'replacing' |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6279 | to search_init(). Handlers in do_replace and do_search(). |
| 6280 | - New write code, now follows symbolic links instead of replacing them |
| 6281 | with the new file. New option (-l, --nofollow) to enable the old |
| 6282 | (incorrect, but secure) behavior (Adam Rogoyski). |
| 6283 | - nano.c: |
| 6284 | do_wrap(): |
| 6285 | - Fixed another bug relating to wrapping, and which would cause |
| 6286 | a segfault *sigh*. |
| 6287 | do_replace(): |
| 6288 | - Incremented current_x by the length of the replacement |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6289 | text inside the main replace loop. Fixes bug #15. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6290 | add_marked_sameline(): |
| 6291 | - New function, handles marked text when start & end of marker is |
| 6292 | on one line, also supports most marked text when cursor > COLS. |
| 6293 | main(): |
| 6294 | - Code to check if nano is invoked as 'pico', and if so |
| 6295 | automatically set pico_msgs (Robert Jones). |
| 6296 | |
| 6297 | nano-0.9.0 - 04/07/2000 |
| 6298 | - nano.1, nano.1.html: Updated man page with my email address and homepage. |
| 6299 | - winio.c: |
| 6300 | reset_cursor(), update_line(): |
| 6301 | - Changed update algorithm for x value to (COLS - 7) multiple when x |
| 6302 | value > (COLS - 2). |
| 6303 | - edit_refresh(): |
| 6304 | - Removed inner loop code, now calls update_line() for each line |
| 6305 | in question, MUCH nicer. |
| 6306 | - xplustabs(), xpt(): |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6307 | - Removed redundant increment of tabs when column no % 8 == 0. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6308 | - Added check for data[i] < 32, most of such bits are 2 chars wide. |
| 6309 | - update_line(): |
| 6310 | - Fixed a stupid call to strlenpt with col when we should have |
| 6311 | been using actual_col. Ugh. |
| 6312 | |
| 6313 | nano-0.8.9 - 03/22/2000 |
| 6314 | - nano.c: |
| 6315 | empty_line(), no_spaces(), justify_format(), do_justify(): |
| 6316 | Actually added these (screwup applying patch). |
| 6317 | do_justify(): Added call to set_modified(). |
| 6318 | |
| 6319 | nano-0.8.8 - 03/12/2000 |
| 6320 | - Preliminary internationalization support. Many many functions modified |
| 6321 | to use gettext (via _() macro). es.po file included. (Jordi Mallach) |
| 6322 | New dirs po/ and intl/, changes to configure.in and Automake.am to |
| 6323 | support i18n. |
| 6324 | - nano.c: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6325 | includes: Added sys/param.h and limits.h. (Adam Rogoyski). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6326 | statics: Changed some things that were not necessarily static |
| 6327 | (Adam Rogoyski). |
| 6328 | nrealloc(): New function, similar to nmalloc(). Changed calls from |
| 6329 | realloc() to nrealloc (Adam Rogoyski). |
| 6330 | empty_line(), no_spaces(), justify_format(), do_justify(): |
| 6331 | New functions for justify function (Adam Rogoyski). |
| 6332 | - winio.c: |
| 6333 | blank_edit(): Added wrefresh call to edit so that screen updates (like |
| 6334 | on ^L) actually work. |
| 6335 | xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski). |
| 6336 | |
| 6337 | nano-0.8.7 - 03/01/2000 |
| 6338 | - main.c: |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6339 | do_wrap(): Better fix for segfaults, and fix for lines being wrapped |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6340 | to a single character on one line when no good place to |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6341 | break the line exists, and for wrapping lines longer than |
| 6342 | COLS. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6343 | - nano.1.html: |
| 6344 | Html version of man page, now included in dist. For |
| 6345 | the benefit of nano packages in Linux distributions. |
| 6346 | |
| 6347 | nano-0.8.6 - 02/24/2000 |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6348 | - global.c: |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6349 | shortcut_init(): |
| 6350 | Added shortcuts for goto_line and do_replace when using |
| 6351 | pico_msgs. Oops. |
| 6352 | - nano.c: |
| 6353 | statics: Changed fill back to 0 from 71 by default (Adam Rogoyski). |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6354 | 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] | 6355 | Removed check for backing up past spaces first. |
| 6356 | main(): Added for loop to check for alt keys instead of hard list. |
| 6357 | do_enter(): Fix for bug #14, added call to reset_cursor and messed |
| 6358 | up do_char quite a bit. |
| 6359 | version(): Added time and date stamp for compile on version message. |
| 6360 | Added mail and web page info. |
| 6361 | - README: Updated mailing list info. |
| 6362 | |
| 6363 | nano-0.8.5 - 02/18/2000 |
| 6364 | - nano.c: |
| 6365 | main(): Finally fixed tilde being input on page up/down keys in |
| 6366 | certain terminal types. Fix was input 26->91->5[34] check |
| 6367 | for 126, if so make the kbinput PAGE UP/DOWN, else unget |
| 6368 | the keystroke and continue. Added #include <ioctl.h> for |
| 6369 | ioctl call. |
| 6370 | handle_hup(): |
| 6371 | Handler for hangup signal. Belated include of patch from |
| 6372 | Tim Sherwood. |
| 6373 | - winio.c: |
| 6374 | edit_refresh(): |
| 6375 | Temporary fix for selecting text when temp == current. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6376 | edit_refresh() is now unmanageably complex, and must be |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6377 | revamped. |
| 6378 | check_statblank(): |
| 6379 | Added check for constupdate, makes things less choppy |
| 6380 | (Adam Rogoyski) |
| 6381 | |
| 6382 | nano-0.8.4 - 02/11/2000 |
| 6383 | - Moved global variables that were only (or mostly) used in one file into |
| 6384 | its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn). |
| 6385 | - global.c: |
| 6386 | shortcut_init(): |
| 6387 | Removed redundant NANO_CONTROL_H from backspace shortcut, |
| 6388 | added char 127 which should have been there. |
| 6389 | - nano.c: |
| 6390 | main(): Fix for loops looping until MAIN_LEN, added -1 to stop |
| 6391 | segfaults (Adam Rogoyski). |
| 6392 | - Makefile.am: Added all source filenames (Adam Rogoyski). |
| 6393 | - nano.1: Fixed mail addressed and added mailing list address. |
| 6394 | - README: Updated my email address and the nano web page. |
| 6395 | |
| 6396 | nano-0.8.3 - 02/08/2000 |
Chris Allegretta | 6df90f5 | 2002-07-19 01:08:59 +0000 | [diff] [blame] | 6397 | - New Pico mode (-p, --pico), toggles (more) compatibility with the |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6398 | Pico messages displayed in the shortcut list. Note that there are still |
| 6399 | small differences in this mode. |
| 6400 | - nano.h: New shortcut struct format, for the benefit of i18n and |
| 6401 | our help menu. Removed shortcut message macros, they are |
| 6402 | now all in shortcut_init in global.c. |
| 6403 | - nano.c: |
| 6404 | do_wrap(): Removed resetting of current_x when we are in fact |
| 6405 | wrapping to the next line, fixes a bug in -i mode. |
| 6406 | do_enter(): |
| 6407 | Rewrote the autoindent mode code to be a lot less pretty, |
| 6408 | but a lot more magical. |
| 6409 | main(): |
| 6410 | Removed case for ignoring char 126 (~). That's kind of |
| 6411 | important, we'll have to fix handling that sequence when |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6412 | paging up/down on a terminal some other way... Revamped |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6413 | main switch loop in much snazzier fashion based on the |
| 6414 | shortcut list. |
| 6415 | - winio.c: |
| 6416 | New function display_main_list. Affects all functions |
| 6417 | that used to call bottombars() with main_list. Added |
| 6418 | because we now only call bottombars with the macro |
| 6419 | MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the |
| 6420 | changes to the main_list shortcut list (see global.c below). |
| 6421 | New function do_help, our preliminary dynamic help system. |
| 6422 | - Many many funcs: |
| 6423 | Changed from int to void to allow one uniform type to call |
| 6424 | from the shortcut struct. Also a few functions that do |
| 6425 | not simple have void argument have new functions called |
| 6426 | funcname_void(void) to be called from the shortcut list. |
| 6427 | do_cut_text and do_uncut_text were changed to void |
| 6428 | arguments because they were never called with a filestruct |
| 6429 | other than *current anyway. |
| 6430 | - global.c: |
| 6431 | Shortcut list main_list was expanded to cover all |
| 6432 | shortcuts that could be caught in the main loop. |
| 6433 | Consequently there is a new macro MAIN_VISIBLE which tells |
| 6434 | how many items in the main list to actually show. |
| 6435 | |
| 6436 | nano-0.8.2 - 02/02/2000 |
| 6437 | - Added initial mouse (-m, --mouse) support. New global variable |
| 6438 | use_mouse. (Adam Rogoyski) |
| 6439 | |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6440 | - 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] | 6441 | regardless. (Adam Rogoyski). |
| 6442 | do_delete(): |
| 6443 | Deleted call to do_backspace() when on the end of a line, |
| 6444 | because it won't update the line properly. |
| 6445 | do_backspace(): |
| 6446 | Removed unnecessary pointer manipulation that was being |
| 6447 | handled by unlink_node(). |
| 6448 | open_file(): |
| 6449 | Added check for trying to open a directory (currently we |
| 6450 | segfault on this). Bug pointed out by Chad Ziccardi. |
| 6451 | |
| 6452 | nano-0.8.1 - 01/28/2000 |
| 6453 | - Implemented Pico's -r (fill) mode, command line flag -r or --fill. New |
| 6454 | global variable fill, affects check_wrap(), do_wrap(), main(), usage(), |
| 6455 | global.c and proto.h. |
| 6456 | - nano.c: |
| 6457 | write_file(): Added (incredibly) necessary check for EPERM when |
| 6458 | link() fails. This allows us to actually save |
| 6459 | files via rename() on filesystems that dont |
| 6460 | support hard links (AIEEEEEE). |
| 6461 | do_goto(): |
| 6462 | Fixed a stupid mistake where we were calling |
| 6463 | bottombars() with replace_list instead of goto_list. |
| 6464 | - nano.h: |
| 6465 | New char *help in shortcut structure for help |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6466 | feature. Added NANO_*_MSG and NANO_*_HELP #defines |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6467 | for help function and i18n. |
| 6468 | - global.c: |
| 6469 | New functions shortcut_init (called in nano.c) and |
| 6470 | sc_init_one() to initialize the shortcuts without |
| 6471 | using {}s (for i18n). |
| 6472 | |
| 6473 | nano-0.8.0 - 01/25/2000 |
| 6474 | - View flag (-v, --view) implemented. Global variable view_mode, affects |
| 6475 | main loop of nano.c and new_file(). (me) |
| 6476 | - nano.c: |
| 6477 | split checks for TERMIOS_H and TERMIO_H up so we |
| 6478 | can (theoretically) include them both, which is good. |
| 6479 | handle_sigwinch(): |
| 6480 | Added check for ncurses.h. (Andy Kahn) |
| 6481 | do_spell(): |
| 6482 | We now only try ispell because we don't as of yet |
| 6483 | handle the 'spell' program the right way, now that |
| 6484 | I finally know what the right way is =-). Added |
| 6485 | call to edit_update(fileage) to stop segfaults. |
| 6486 | global_init(): |
| 6487 | Added initialization of edit* filestruct pointers |
| 6488 | to stop segfaults on spell check. |
| 6489 | usage(): |
| 6490 | Check for getopt_long, and if no leave out the |
| 6491 | GNU options everyone seems to love so much (Andy Kahn) |
| 6492 | main(): |
| 6493 | Added checks for getopt_long (Andy Kahn) |
| 6494 | We ignore character 126 because it gets put into |
| 6495 | the buffer when we page up/down on a vt terminal. |
| 6496 | write_file(): |
| 6497 | Fixes for umask (Adam Rogoyski). Renamed tmpfile |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6498 | variable to tmp. Documented the tmp option |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6499 | better in the function comments. Fixed my |
| 6500 | stupidly commented out check for tmp on setting |
| 6501 | umask which I really like => |
| 6502 | - nano.h: |
| 6503 | Made desc variable in shortcut struct a pointer |
| 6504 | instead of a fixed-length string. |
| 6505 | - utils.c: |
| 6506 | Fixed check for config.h before nano.h. |
| 6507 | - configure.in: |
| 6508 | New checks for getopt_long, getopt.h, removed |
| 6509 | CFLAGS and LDFLAGS changes. Gonna have to run |
| 6510 | strip manually now =-) (Andy Kahn) |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6511 | Added check for HAVE_WRESIZE, new file acconfig.h |
| 6512 | (me). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6513 | |
| 6514 | nano-0.7.9 - 01/24/2000 |
| 6515 | - New autoindent feature. Command flag 'i' or '--autoindent'. New |
| 6516 | function do_char() to clean up character output, global |
| 6517 | variable autoindent in global.c. (Graham Mainwaring) |
| 6518 | - New flag 't' or '--tempfile', like Pico's -t mode, automatically saves |
| 6519 | files on exit without prompting. Affects do_writeout(). Also |
| 6520 | do_writeout() now takes a parameter for if exiting. |
| 6521 | Global variable temp_opt in global.c (Graham Mainwaring) |
| 6522 | - Preliminary spell program support. Added command flag '-s' or |
| 6523 | '--speller' for alternative speller command. Added function do_spell() |
| 6524 | and exit_spell() to nano.c. New global variable alt_speller. |
| 6525 | - nano.c: |
| 6526 | main(): We now ignore input of decimal 410 because these get entered |
| 6527 | when we resize the screen. Sorted options in getopt() |
| 6528 | switch statement. |
| 6529 | usage(): Sorted options and changed tabs to make room for -s option. |
| 6530 | write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and |
| 6531 | doesn't print the number of lines written on the statusbar. |
| 6532 | global_init(): |
| 6533 | Added more initializations to globals to support do_spell(). |
| 6534 | |
| 6535 | nano-0.7.8 - 01/23/2000 |
| 6536 | - Stubbed justify function. Affects main() in nano.c and nano.h defines. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6537 | - Added Fkey equivalents for Pico compatibility. Affects nano.h defines |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6538 | and main() in nano.c |
| 6539 | - Removed redundant reset_cursor() calls from the blank() routines. |
| 6540 | - nano.c: |
| 6541 | main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY. |
| 6542 | Removed check for isprint() characters in main while loop |
| 6543 | for people with odd character sets *shrug*. Added some X |
| 6544 | window F-key combos. |
| 6545 | read_line(): New function, consolidates of most of the special |
| 6546 | sections of the file reading code. (Rob Siemborski) |
| 6547 | do_replace(): Many scattered fixes. (Rob Siemborski) |
| 6548 | write_file(): Added check for empty filename. |
| 6549 | - winio.c: |
| 6550 | nanogetstr(): Fixes for deleting at places other than the end of the |
| 6551 | buffer, cut support. (Adam Rogoyski) |
| 6552 | blank_edit(): New function, blanks edit buffer. Added call to it in |
| 6553 | total_refresh(). |
| 6554 | - configure: Checks for glib if snprintf of vsnprintf aren't available |
| 6555 | (Andy Kahn). Changed warning message when no termcap lib |
| 6556 | is found. |
| 6557 | |
| 6558 | nano-0.7.7 - 01/19/2000 |
| 6559 | - Option '-v' for version moved to '-V', because -v is Pico's "read only" |
| 6560 | mode (affects getopt() in main() and usage() function in nano.c |
| 6561 | - New flag -c, always show cursor position. Affects main() in nano.c and |
| 6562 | statusbar() in winio.c |
| 6563 | - Option '-x' doesn't show help window at the bottom of the editor. |
| 6564 | New variable no_help in nano.h and proto.h, affects main(), usage(), |
| 6565 | and global_init() in nano.c, blank_bottombars(), clear_bottomwin(), |
| 6566 | bottombars(), and do_yesno() in winio.c (I had to apply this patch by |
| 6567 | hand =P) (Adam Rogoyski) |
| 6568 | - nano.c: |
| 6569 | handle_sigwinch(): New function (Adam Rogoyski), handles resizing. |
| 6570 | page_up(), page_down(): |
| 6571 | - New functions. We now set the cursor at the top right corner, |
| 6572 | not at the center line, and page up and down a full screen |
| 6573 | rather than a half screen. Original functions renamed to |
| 6574 | page_up_center() and page_down_center(). |
| 6575 | main(): |
| 6576 | - Added check for keystroke key sequence 407 or NANO_CONTROL_Z |
| 6577 | in main while loop because suspend mode was broken. This should |
| 6578 | fix it, at least for now. |
| 6579 | - Added long option support (By popular harassment ;-) - Added |
| 6580 | #include for getopt.h, changed getopt() to getopt_long(). |
| 6581 | Options added so far: --version (-V), --nowrap (-w), --suspend |
| 6582 | (-z), --help (-h), --nohelp (-x). |
| 6583 | - Rewrote signal statements (Adam Rogoyski) |
| 6584 | |
| 6585 | nano 0.7.6 - 01/15/2000 |
| 6586 | - New ChangeLog format |
| 6587 | - nano.c: |
| 6588 | main(): Bound CONTROL_H to backspace (oops) |
| 6589 | Added more Alt-[-key combinations, for page up & down. |
| 6590 | read_bytes(): New function (Adam Rogoyski) |
| 6591 | read_file(): Optimizations - malloc()s *buf a little at a time rather |
| 6592 | than one huge buffer, and replaced the strcat at the end |
| 6593 | with an index variable. Added call to read_bytes(). |
| 6594 | do_next_word(): New function, binding is control-space (0) (me) |
| 6595 | |
| 6596 | - winio.c: |
| 6597 | bottombars(): Fixed non-expanding shortcut keys at bottom of screen. |
| 6598 | (formula is extra space needed = COLS / 6 - 13). |
| 6599 | actual_x() & strlenpt(): |
| 6600 | Added bug#9 fix - when tabs % 8 == 0, we should only |
| 6601 | increment tabs by 1. |
| 6602 | titlebar(): Fixed overrun in titlebar on very long filenames. |
| 6603 | |
| 6604 | 0.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated |
| 6605 | writing a newline at EOF. do_cursorpos and do_replace are now not |
| 6606 | directly bound to signals but picked up as their control sequences |
| 6607 | in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!) |
| 6608 | 0.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for |
| 6609 | available memory, align bug fixed (Big Gaute). |
| 6610 | |
| 6611 | --- As of version 0.7.4 TIP is renamed to nano. |
| 6612 | |
| 6613 | 0.7.3 Fixed a double blank_statusbar() when jumping to first and last |
| 6614 | lines. Took out unnecessary updates in load_file. Bug fix in |
| 6615 | do_left. Missing updates to totlines, fixed bug #7 (last line not |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6616 | 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] | 6617 | with replace all, more/better comments (Robert Siemborski) |
| 6618 | 0.7.2 Our first patch accepted into the source! configure fixes |
| 6619 | and optimizations (Erik Anderson). Added missing stdarg.h to winio.c. |
| 6620 | Bug fix in update_line for editing long lines. Fixed arguments |
| 6621 | being put into the filename when none is specified. Preliminary |
| 6622 | +line command argument function. |
| 6623 | 0.7.1 configure tweak for better FreeBSD support. Removed refresh() from |
| 6624 | edit_refresh to stop cursor "jumping" during screen updates. This |
| 6625 | will probably cause a bug or two. Replace is now Alt-R (@R) and |
| 6626 | Goto line is Alt-G (@G), but they have control key aliases of ^\ and |
| 6627 | ^_ respectively. Made Control-F,B,N,P work like they do in Pico. |
| 6628 | Control-G will become the Help key, but for now is stubbed out. |
| 6629 | 0.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in |
| 6630 | findnextstr. Bound Control-D to Delete. Refixed segfault on zero |
| 6631 | length file. Added Esc-[-A,B,C,D cursor key sequences. |
| 6632 | 0.6.9 Preliminary cursor position function. Split up tip.c more, made |
| 6633 | new files cut.c and winio.c. Fixed a bug in cut_marked_segment |
| 6634 | that was leaving out a character. |
| 6635 | 0.6.8 By request, optchr in main() is now an int. Removed unneeded |
| 6636 | globals. Bound functions for next/prev page, and wrote functions |
| 6637 | do_home and do_end. |
| 6638 | 0.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and |
| 6639 | created read_file. Implemented Insert File. Fixes in tipgetstr |
| 6640 | for erroneous keystrokes. Added leave_cursor arg to do_yesno(). |
| 6641 | 0.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for |
| 6642 | aborted searches and more Pico-compatible messages. statusq() now |
| 6643 | returns -2 on a blank entry instead of -1. Bug fix in actual_x(). |
| 6644 | 0.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text |
| 6645 | regarding buffers with filebot in them. Fixins in do_backspace |
| 6646 | and do_enter. Removed unused variables. Removed strip_newline. |
| 6647 | 0.6.4 Took out the awful newlines from each string buffers. This will |
| 6648 | certainly cause more bugs. Fixes in do_exit(). Better empty file |
| 6649 | handling (I hope). |
| 6650 | 0.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct. |
| 6651 | do_enter() rewritten. |
| 6652 | 0.6.2 Better default file permissions. Complete rewrite of do_wrap(). |
| 6653 | Better handling of editing with cursor near COLS - 1. |
| 6654 | 0.6.1 Starting to implement wrapping toggle. Fix for unhandled control |
| 6655 | codes being entered into the buffer. Bug fix in actual_x; more |
| 6656 | > COLS - 1 functionality, especially on lines with TABs. Fixed being |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6657 | locked into cutbuffer when cutting more than one marked screen of |
| 6658 | text. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6659 | 0.6.0 We have TABs!!! To do this, placewewant is now set to the actual |
| 6660 | width on the screen we want to be, not an index of current->data. |
| 6661 | New functions xplustabs and actual_x convert the actual place |
| 6662 | the cursor should be on the screen to and from the place in the |
| 6663 | string. |
| 6664 | 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] | 6665 | eliminating the "looping" on the last line when holding the right |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6666 | arrow. Preliminary support for longer than COLS - 1 lines. |
| 6667 | Wrote do_delete. |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6668 | 0.5.4 Fixed a bug in total_update that wasn't repainting the screen |
| 6669 | properly. tipgetstr is much more messy but text is now more |
| 6670 | editable ;) Fixed crash on entering a new file, hopefully. Awful |
| 6671 | 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] | 6672 | 0.5.3 Added check for malloc.h. Implementing uncut from marker slowly. |
| 6673 | 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] | 6674 | I would not trust your data with the mark code right now, but then |
| 6675 | we're not at version 1.0 yet so dont trust anything ;) |
| 6676 | 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] | 6677 | jump after each keystroke entered. Select text stubbed. Fixed |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6678 | a bug in total_refresh(). Setting a mark will highlight properly, |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6679 | but does not actually affect what gets put in the cutbuffer (yet). |
| 6680 | 0.5.1 Writing a file out causes modified to be set back to 0. Good. |
| 6681 | Set_modified function written. Cut and uncut text now set |
| 6682 | modified when called. |
| 6683 | 0.5.0 Half way there! Implemented write out, save function seems |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6684 | stable. Changed statusbar blank routing to not refresh, a separate |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6685 | program calls it and then refreshes. Made the program not clear |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6686 | the screen on exit, just the bottom two lines (like Pico). |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6687 | 0.4.2 Implemented replace all in replace function. Crude exit function |
| 6688 | (asks yes or no if modified but does not write to file). |
| 6689 | 0.4.1 Implementing search & replace. Fixed crash on deleting at top of |
| 6690 | edit buffer. Implemented "timeout" of statusbar messages. |
| 6691 | Implemented ^A and ^E (beginning and end of line). |
| 6692 | 0.4.0 Split code into global.c and proto.h to allow for better multiple |
| 6693 | file handling. Added #defines for the majority of the shortcut |
Chris Allegretta | 88520c9 | 2001-05-05 17:45:54 +0000 | [diff] [blame] | 6694 | keys in tip.h for easy modification. |
Chris Allegretta | a2ea193 | 2000-06-06 05:53:49 +0000 | [diff] [blame] | 6695 | 0.3.1 Write edit_refresh which doesn't move the screen around, just |
| 6696 | updates what's there already. do_wrap() and do_enter() added. |
| 6697 | 0.3.0 Preliminary cutbuffer (cut and uncut) support. |
| 6698 | 0.2.7 Check for Modification added. do_search() works. |
| 6699 | 0.2.5 Rewrite of file data struct. |
| 6700 | 0.2 Read in data to buffer, bound keystrokes to stub functions, |
| 6701 | initial cursor movement on screen. Initial autoconf support. |
| 6702 | 0.1 Initial program setup w/ncurses |
Chris Allegretta | c87a411 | 2000-08-07 02:16:24 +0000 | [diff] [blame] | 6703 | |
| 6704 | $Id$ |