blob: 62d74f8ef6cc03a5b94137c4968f9caac1ee6288 [file] [log] [blame]
Chris Allegretta76745fb2001-01-18 04:40:06 +00001CVS code -
Chris Allegretta17dcb722001-01-20 21:40:07 +00002General
3 - Removed current_x and current_y globals. current_y was
4 completely unused and current_x was only used a few places,
5 easily replaced with COLS / 2.
6 - Deleted free_node, duplicate of delete_node, and changed all
7 free_node calls to delete_node.
Chris Allegretta0fc2b812001-01-18 15:04:20 +00008- files.c:
9 write_file()
10 - Don't free() realname on error, if it needs to be free()d later
11 it will be (fixes crash on successful write after failed write,
12 discovered by David Sobon).
Chris Allegretta8d9b11a2001-01-19 04:17:24 +000013 username_tab_completion()
14 - Optimization and removal of useless vars (Rocco).
Chris Allegrettaf0b26df2001-01-20 22:18:18 +000015- global.c:
16 - Don't define toggles global or toggle_init_one if using --tiny.
Chris Allegretta17dcb722001-01-20 21:40:07 +000017- nano.c:
18 do_justify()
19 - Added restoration of totsize after unjustify command.
Chris Allegretta76745fb2001-01-18 04:40:06 +000020
Chris Allegretta9faa3f12001-01-18 04:37:09 +000021nano 0.9.99-pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +000022General
23 - Changed #ifdefs to check for both DISABLE_TABCOMP and
24 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +000025 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +000026 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +000027 back. (Rocco)
28 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +000029 - Added message for when keypad goes awry. Added code in main and
30 function print_numlock_warning() to notify user, and added an
31 apropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +000032 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +000033 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +000034- configure.in:
35 - Fix for _use_keypad check breaking slang support (Christian
36 Weisgerber).
Chris Allegretta4ee0b412001-01-11 15:11:00 +000037 - Changed to automatically define the 5 DISABLE varibles when
38 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +000039- faq.html:
40 - Added some info on making the binary smaller with the configure
41 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +000042 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +000043- files.c:
44 real_dir_from_tilde()
45 - Oops, fix case where buf ="~", silly crash (bug discovered by
46 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +000047 do_browser()
48 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +000049 cwd_tab_completion(), input_tab()
50 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +000051 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +000052- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +000053 ABCD()
54 - New function, figures out what kbinput to return given
55 input common to several switch statements, allows us to
56 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +000057 main()
58 - Alternate speller option no longer valid if DISABLE_SPELLER is
59 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +000060 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
61 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +000062 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +000063 nano_small_msg()
64 - This function has been removed. All references now call
65 nano_disabled_msg. (Rocco)
66 version()
67 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
68 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
69 reported as enabled when Nano is called with -V (--version)
70 command-line option. (Rocco)
71 usage()
72 - Alternate speller option no longer valid if DISABLE_SPELLER is
73 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +000074 window_init(), handle_sigwinch()
75 - Added check for not having enough LINES to do anything useful,
76 if so die with an error. (Rocco)
77 die_too_small()
78 - Function to print the window too small error message, avoids
79 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +000080 do_justify()
81 - Small fix for totsize calculation (Rob)
82
Chris Allegrettad9742c62001-01-12 15:51:53 +000083- fi.po:
84 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +000085
Chris Allegretta16991442001-01-07 22:06:11 +000086nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +000087General -
88 - New file browser code. New functions in files.c:do_browser(),
89 helper functions browser_init(), tail(), striponedir(),
90 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +000091 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +000092 - Keypad code has been changed slightly. Now checks for
93 _use_keypad flag in window to see whether or not to turn
94 the keypad() back off when finished (taken from aumix). Moved
95 to winio.c where it should probably be anyway. New confgure
96 check for _use_keypad in window sstruct. This will have to do
97 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +000098 - Moved keypad() calls for PDCURSES from main() to window_init()
99 so the keypad continues to work after a Meta-X, for example.
100 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +0000101- faq.html:
102 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000103- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000104 username_tab_completion()
105 - Added the (char *) sizeof when allocating memory for the filename
106 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000107 cwd_tab_completion()
108 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000109 - Added the (char *) sizeof when allocating memory for the filename
110 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000111 do_writeout()
112 - Now takes an argument so the string typed in can be retained
113 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +0000114 do_browser()
115 - Don't decrement longest by the length of path. Fixes crashes
116 on entering various dirs (Rocco).
117 - Don't ungetch() the exit key, unneeded, fixes inerting a file
118 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +0000119- move.c:
120 page_down()
121 - Don't do an edit_update when there is only one page of text
122 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +0000123- nano.c:
124 main()
125 - Reorder the getopt options to be more or less alphabetical
126 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +0000127- winio.c:
128 do_cursorpos()
129 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +0000130 do_credits()
131 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000132 titlebar()
133 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +0000134 do_help()
135 - Changed way of temporarily bringing up shortcuts at the
136 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +0000137- utils.c:
138 mallocstrcpy()
139 - Takes char pointers now instead of void (makes debugging a
140 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000141 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +0000142- es.po:
143 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +0000144
Chris Allegretta66149e72000-12-19 02:51:06 +0000145nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +0000146General
147 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +0000148 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +0000149 - Changed filename to no longer use PATH_MAX, so it can work on the
150 HURD. Changes in files.c:write_file(), new function
151 nano.c:clear_filename(), many changed in main(), a few other
152 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000153 - Added -b, -e, and -f flags, which we ignore as nano provides
154 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000155- cut.c:
156 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000157 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000158 - Fix screen not being displayed when we are uncutting marked
159 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000160 - Fix magic line not getting created when (you guessed it)
161 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +0000162- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +0000163 read_file()
164 - If we encounter an error and insert is not set, run new_file().
165 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +0000166 write_file()
167 - Change open call flags, basically copy joe's way of doing it so
168 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +0000169 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +0000170 open_file()
171 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +0000172- nano.c:
173 renumber()
174 - Dont stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000175 main()
176 - Added code to check for Alt-Alt (27-27) keystrokes and set the
177 next keystroke as a control sequence. New variable
178 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
179 around Control-S,Q,Z handlers because we need it now for
180 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +0000181 - Added --view option to getopt_long()call . Bug discovered
182 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +0000183 help_init()
184 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta92325e72000-12-18 03:44:22 +0000185 ^_ in pico mode not be displayed in the help (bug discovered by
186 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +0000187 do_toggle()
188 - Added fix_editbot() call to fix improper redisplay of edit
189 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000190- nano.1, nano.1.html:
191 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +0000192- winio.c
193 do_help()
194 - Force keypad on so F-keys and PageUp/Down will work properly.
195 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000196- utils.c:
197 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +0000198 - Increment totsize!! We decrement it when we've read a file,
199 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +0000200
Chris Allegrettab29550e2000-12-09 03:34:12 +0000201nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +0000202General
203 - Changed --disable-spell to --disable speller. The term is
204 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +0000205- files.c:
206 write_file()
Chris Allegretta20c131c2000-12-04 04:20:09 +0000207 - Added tmp check to TMP_OPT section (how apropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +0000208 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +0000209 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +0000210 - We now run check on result of lstat(), not stat(), to be
211 safer. New variable anyexists, we use still use realexists
212 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +0000213 - OOPS, line up link/unlink/rename check if conditional with
214 top if conditional. Option -l has been broken for 9 versions,
215 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +0000216 - Added saving perms at end of link so we can apply them to the
217 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +0000218- winio.c:
219 edit_add()
220 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +0000221 do_replace_highlight()
222 - New code to handle being past COLS (Roco Corsi).
223 - Moved from search.c, as it's definitely a winio function now =)
224 update_line()
225 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +0000226
Chris Allegrettafedd7242000-12-03 03:15:38 +0000227nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +0000228- General
Chris Allegrettabe77c612000-11-24 14:00:16 +0000229 - Username tab completion code, and cleaned up existing tabcomp
230 code. New functions real_dir_from_tide(), append_slash_if_dir(),
231 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +0000232 - Ignore key sequence 543 & 545, right control and alt keys in
233 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +0000234 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
235 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +0000236 - New function nano_disabled_msg(), to alert that certain
237 functions have been disabled, similaer to nano_tiny feature.
238- New configure options:
239 - Added configure argument --disable-tabcomp. Affects
240 bottom of files.c and write_file, utils.c:check_wildcard_match()
241 and winio.c:nanogettsr().
242 - New options --enable-extra. New code in nano.c:version() to
243 print out various options from ./configure, function do_credits().
244 - Added --disable-spell option for those who want to just disable
245 the spell check feature. Affects the spellinf fucntions
246 do_spell, do_int_speller and do_alt_speller.
247 - Added --disable-justify to get rid of the justify function.
248 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +0000249- files.c:
250 write_file()
251 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +0000252 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +0000253 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +0000254 - Added call to real_name_from tilde, oops. Added check for
255 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +0000256 read_file()
257 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +0000258- global.c:
259 shortcut_init()
260 - Now takes an argument as to whether to display the unjustify
261 shortcut or the normal uncut text one. Needed to accomodate
262 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000263- nano.1, nano.1.html:
264 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +0000265 - Added "NOTES" section, where I explain what nano.save & friends
266 are.
267 - Added a copyright notice for the manpage, under the GPL.
268 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +0000269- nano.c:
270 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000271 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
272 text there, then grabs the next keystroke and, if the unjustify
273 key, gets rid of the justified text and calls do_uncut_text.
274 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000275 do_int_spell*
276 - Various fixes (Rocco Corsi).
277 - Changed abort of program to aborting based on value of "edit a
278 replacement" question, and not caring about the replace loop
279 return value. That way the user can get out of the replace loop
280 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +0000281 version()
282 - Took out huge check for the various --disabled macros,
283 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +0000284 nano_small_msg(), nano_disabled_msg()
285 - Added checks for disabled functions to see whether or not to
286 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +0000287 do_next_word()
288 - Update the previous line as well as the current one in case we
289 have moved beyond COLS or back from COLS, patch submitted
290 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +0000291 die()
292 - Now creates .save file using variable-length strings. Also
293 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +0000294 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +0000295 handle_sighup()
296 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000297- search.c:
298 do_replace_hilight()
299 - New function, displays the currently selected word as hilighted
300 in the spell check. Called from do_replace_loop (Rocco Corsi).
301 - Added calls to curs_set(0) and (1) to diable the cursor when
302 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +0000303- es.po:
304 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +0000305
Chris Allegrettaca7a21d2000-11-24 01:35:40 +0000306nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +0000307- AUTHORS
308 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +0000309- nano.c:
310 main()
311 - Changed check for argc == 1 to argv[optind] == NULL to decide
312 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +0000313- search.c:
314 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +0000315 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +0000316 search_init()
317 - Silly typo in our "one simple call" of statusq. Stopped
318 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +0000319 do_replace()
320 - Copy back the previous value of last_replace into answer if
321 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +0000322- winio.c:
323 do_up()
324 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +0000325- nano.1, nano.1.html
326 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +0000327
Chris Allegretta6da149a2000-11-19 02:23:03 +0000328nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +0000329- General
330 - Ran source through indent -kr again. Make everything pretty.
331 - Changed behavior of "search" and "replace" prompts to make all
332 previous values editable. This change was made so that you can
333 replace with the null string without needing a special key for it.
334 changed code in search_init(), do_replace(), nanogetstr (see
335 below).
336 - Added some missing gettext calls here and there (Jordi).
337 - Revamped nanogetsr() and calls to it to use variable length strings.
338 MANY changes in nanogetstr(), many chances in search.c, new
339 function mallocstrcpy which is sure to be a programmatic
340 nightmare, changed last_search, last_replace, answer to
341 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +0000342 truncated strings in satusbar when the string is not found
343 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000344 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +0000345 - New spelling code by Rocco Corsi. New functions
346 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
347 New functions search_init_globals and do_replace_loop, changes
348 to search_init(), do_replace, findnextstr, moved last_search and
349 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +0000350 - New tab completion code. Used check_wildcard_match, input_tab,
351 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +0000352 hacked them a lot, changes to nanogetstr(). nanogetstr() and
353 statusq() now take an arg for whether or not to allow tab
354 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +0000355 - Fixed value being input in statusbar during a search or replace
356 and CASE_SENSITIVE or the other search is called and the
357 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000358 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
359 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000360- files.c:
361 do_writeout()
362 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000363- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000364 - New global replace_list_2, for 2nd half of the replace dialog
365 ("Replace with:"), has fewer options than first half because
366 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000367 toggle_init()
368 - Added #ifdef around toggle_regex_msg to get rid of compiler
369 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000370
371- nano.c:
372 keypad_on()
373 - New function, toggles turning the keypad on and off in edit and
374 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000375- search.c
376 findnexstr()
377 - New arg for begin_x variable, basically a rewrite that
378 makes a little more sense and isn't quite as messy (Rocco Corsi).
379 - Update the line we're checking if not the whole screen, because
380 it's quite possible the search team could exist somewhere way
381 to the right on the same line, for example.
382 replace_abort()
383 - Add reset of placewewant, stops cursor from jumping when moving
384 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000385 do_replace()
386 - Added code for Gotoline key after entering the search term.
387 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000388 - Removed redundant code involving processing replacemenet string.
389 Converted if statements to switch statements.
390 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000391 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000392 do_search()
393 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000394- winio.c
395 nanogetstr()
396 - Added check for 343 in while loop to get rid of getting "locked"
397 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000398 - Changed check to return -2 on "enter" from answer == ""
399 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000400 - Fixed fallthrough code because there was no break. Make much
401 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000402 - Added check for ASCII 54[124] when using PDCURSES, ignore them
403 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000404 nanoget_repaint()
405 - New function, removes about 30 lines of duplicate code in
406 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000407 - Black magic code to make $ appear in prompt if we're past
408 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000409 blank_edit()
410 - Removed wrefresh() call, much less choppy now. If there's a need
411 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000412- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000413 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000414
Chris Allegretta07e97d62000-10-03 01:52:50 +0000415nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000416- General
417 - Added PDCurses support under cygwin, which allows building
418 a nice stand-alone nano.exe for those poor Windows users.
419 Extra check in configure.in for initscr() in -lcurses (as
420 PDcurses has no tgetent), some #ifdef PDCURSES statements
421 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000422 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000423- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000424 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000425 main()
426 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000427- search.c
428 - Added initializations for last_search and last_replace (Rocco Corsi)
429
Chris Allegretta629edad2000-09-19 00:27:19 +0000430nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000431- General
432 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
433 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000434- configure.in:
435 - Added default case for cross-compiling to get rid of annoying
436 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000437- cut.c:
438 do_cut_text()
439 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000440 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000441- files.c:
442 open_file()
443 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000444- global.c:
445 shortcut_init()
446 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000447- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000448 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000449 - Added check for _POSIX_VDISABLE and use raw mode if not
450 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000451 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000452 - Revamped a great deal of the F-key and keypad key handling,
453 because we not longer use keypad() (see below).
454 - Removed keypad() call because nano was not working with the
455 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000456 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000457 do_toggle()
458 - Rewrote function to allow NOHELP toggle to wotk on systems
459 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000460 mouse_init()
461 - Add keypad only if mouse support is on, otherwise mouse doesn't
462 work. I guess you have to choose between having the mouse and
463 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000464- winio.c:
465 total_refresh()
466 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000467 onekey()
468 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000469
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000470- search.c:
471 findnextstr()
472 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000473- es.po:
474 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000475- de.po
476 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000477
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000478nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000479- General
480 - New shortcuts to toggle certain options that are normally only
481 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
482 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000483 called from shortcut_init(), and do_toggle in nano.c. Also
484 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000485 signal_init(). Moved "struct sigaction act"into a static in
486 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000487 - Changed from Alt-key symbol (@) which is completely nonstandard
488 to the *nix "Meta" symbol (M-). Changed help_init to show
489 the M-key usage and the help text to explain keys whcih generate
490 Meta. Moved the toggle Meta keystrokes to the first column
491 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000492 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000493 - Changed last_search and last_replace vars to statically
494 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000495- global.c:
496 toggle_init()
497 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
498 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000499- nano.c:
500 do_mouse()
501 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000502 do_wrap()
503 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000504 do_toggle()
505 - Added checks for no help and no wrap mode, and print opposite
506 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000507 do_suspend(), do_cont():
508 - New functions, handle suspend signal in a Pico-like manner and
509 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000510- winio.c:
511 total_refresh()
512 - Added edit_refresh() call to actually update the screen if messy.
513 edit_refresh_clearok()
514 - New function, does a total update for edit refresh, needed to fix
515 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000516 onekey()
517 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000518
Chris Allegretta6306a112000-09-02 07:55:41 +0000519 update_line()
520 - Added check for binary data >= 1 and <= 26, and use ^+letter
521 to display it. Should fix editing text files with binary
522 data in them. Placing of the cursor seems to be a bit screwed
523 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000524- search.c:
525 search_abort()
526 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
527 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000528 findnextstr():
529 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000530 - Fixed check for string that only occurs on the same line failing
531 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000532
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000533nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000534- cut.c:
535 do_cut_text()
536 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000537 - Added check_statblank().
538 - Check for fileptr == filebot, if so return, we shouldn't bother
539 cutting the magic line.
540 do_uncut_text()
541 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000542- nano.c:
543 main()
544 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000545- po/Makefile.in.in:
546 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
547 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000548- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000549 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000550
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000551nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000552- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
553 Affects many many functions. Removed functions edit_update_top and
554 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000555- Added global variable tabsize, we no longer screw with the curses
556 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000557- configure.in:
558 - Finally fixed check for slang to report "no" if not called
559 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000560- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000561 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000562 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000563 null_at()
564 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000565 delete_buffer()
566 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000567 do_backspace()
568 - Now calls page_up_center instead of page_up (as it should?)
569 do_enter()
570 - Fixed typo (?) in check for inptr->next. Caused lots of
571 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000572 main()
573 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000574- search.c:
575 replace_abort()
576 - redundant, now just calls search abort until it does something
577 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000578- winio.c:
579 edit_refresh()
580 - Added check for current line "running" off the screen.
581 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000582 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000583 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000584 edit_update()
585 - Rewritten, hopefully this will remove a lot of the
586 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000587- move.c:
588 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000589 - do an edit_update() at last case. Made function more like
590 Pico's version, only move down to two lines before editbot.
591 page_up()
592 - Made function more like Pico's version, only move down to two
593 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000594
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000595nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000596- nano.h:
597 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
598- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000599 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000600 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000601 - Simplified check for freeing cutbuffer. Added checks for doing
602 multiple cuts with -k, now sets marked_cut to 2 for later
603 processing by do_uncut_text().
604 do_uncut_text()
605 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000606- files.c:
607 write_file()
608 - Removed (redundant) check for writing out files with -t.
609 do_writeout()
610 - Changed check for filename to filename[0]. Added some code,
611 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000612- nano.c:
613 do_justify() & do_wrap():
614 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000615- de.po
616 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000617
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000618nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000619- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000620 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
621 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000622- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
623 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000624- move.c
625 page_down()
626 - Don't edit_refresh() if the bottom of the file is in the edit
627 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000628- nano.c:
629 main():
630 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000631 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000632 die():
633 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000634 do_spell():
635 - Changed exit semantincs a bit so that aspell wouldn't get
636 all screwy (bug disovered by Joshua Jensen.
637- files.c:
638 read_file():
639 - Added init of buf variable, hopefully this will stop the
640 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000641 write_file():
642 - Added code to check to see if using -l and the file is not
643 in fact a link. This should fix the behavior where a file
644 that does not have write permission but could be removed and
645 rewritten is saved without error. Please test this feature
646 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000647- search.c:
648 search_init():
649 - Added " (to replace)" statement to end of search string if
650 we are doing a replace. Manually converted all the translations
651 from '%s' to '%s%s' to ensure they still work with the new code.
652 Also put in the translation for " (replace)" in the .po's. Hope
653 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000654 do_search(), do_replace():
655 - Removed call to search_abort()/replace_abort() before call to
656 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000657 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000658 findnextstr()
659 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000660- fr.po:
661 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000662- es.po:
663 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000664
Chris Allegrettae955dae2000-07-07 22:24:59 +0000665nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000666- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000667 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
668 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
669 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000670 search_init() and do_replace() and strstrwrapper().
671 - Added _POSIX_VERSION check to regexp code. Better than nothing
672 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000673 - Made search functions & keys more like Pico. Added goto line from
674 search and replace function, changed wording to "No Replace" instead
675 of "To Search", "To Replace" to simply "Replace", and changed to
676 Pico's keystroke by default, ^R. Affects search_init(),
677 do_search() in search.c, globals in nano.h and
678 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000679 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000680- cut.c
681 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000682- files.c:
683 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000684 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000685- nano.c:
686 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000687 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
688 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000689 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000690 - Corrected FIXME in do_enter with explanation. (Rob)
691 - Fixed FIXME in do_justify, resulted in creation of
692 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000693 help_init():
694 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000695 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000696 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000697 do_backspace(), do_delete():
698 - Added magic line code here too.
699
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000700- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000701 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000702- fi.po:
703 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000704- utils.c:
705 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000706- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000707 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000708 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000709 do_yesno(), nanogetstr():
710 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000711 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
712 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000713 clear_bottomwin():
714 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000715 edit_update_top():
716 - Fixed a bug that caused nano to not update when
717 current->next == NULL (e.g. paging down to the very bottom of
718 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000719 fix_editbot:
720 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000721 edit_add:
722 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000723
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000724nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000725- New flag "-T" or "--tabsize" to specify how to display tab widths.
726 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
727 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000728 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000729- id.po:
730 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000731- es.po:
732 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000733- winio.c
734 - Rewrite of display functions to correct the display problems
735 we had been seeing. Affects: add_marked_sameline, edit_add,
736 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000737 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000738 total_refresh():
739 - Cut dispaly_main_list call, as this function is only supposed to refresh
740 what's already on the screen, not go through the process of adding the
741 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000742- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000743 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000744- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000745 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000746 - Removed editwineob, as it was redundant for (editwinrows - 1).
747 Changed all calls to editwinrows - 1 in nano.c and move.c.
748 - Removed all functions that were split into other files.
749 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000750 do_enter():
751 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000752 do_insertfile():
753 - Fix display problem when using ctrl-r to load a file
754 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000755 handle_sigwinch():
756 - Added titlebar(), edit_refresh() and display_main_list() calls because
757 a resize wasn't picking up on possible different width correctly.
758- utils.c:
759 - Moved nmalloc() and nrealloc() here.
760- move.c:
761 - New file, contains movement functions (like do_home(), do_up(),
762 do_down(), page_up(), etc...).
763- files.c:
764 - Contains functions for files (read_file, insert_file,
765 do_writeout(), etc).
766- search.c:
767 - Contains all our searching and related functions, (do_search(),
768 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000769
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000770nano-0.9.10 - 06/04/2000
771- es.po:
772 - Translation updates (Jordi).
773- AUTHORS, nano.1.html, TODO, README:
774 - Documentation and email address updates (Jordi).
775- nano.c:
776 main():
777 - Moved Adam's termio code down to after getopt() and before initscr()
778 to stop people losing their SIGINT character when using args that
779 exit nano before it runs (--version, --help, etc).
780
781nano-0.9.9 - 05/31/2000
782- Makeile.am:
783 - Added proper lines for defining LOCALEDIR.
784- configure.in:
785 - Spelling fixes (Jordi Mallach)
786 - Removed CFLAGS changes for gcc, reduces portability according to
787 some, and it certainly doesn't seem to decrease exe size.
788- es.po:
789 - Spanish ranslation updates (Jordi Mallach)
790- POTFILES.in:
791 - Added global.c file, was screwing up translations (i.e. they
792 weren't getting done).
793- cut.c:
794 add_to_cutbuffer():
795 - Added totsize increment.
796 - Cut fixes and optimizations (Rob Siemborski).
797 do_uncut_text():
798 - Added totsize increment in several places.
799- nano.c:
800 headers:
801 - Removed LOCALEDIR define.
802 do_justify():
803 - Added edit_refresh() call (bug discovered by Adam).
804 page_down_center():
805 - Added call to edit_update(current) for last case. Removed
806 increment of current_y since it's now just wasteful.
807 do_enter():
808 - Added totsize increment.
809 renumber(), renumber_all():
810 - Removed totsize-- and totsize init in renumber_all.
811 do_mouse():
812 - Added edit_refresh() call to show hilight updates. Removed
813 unnecessary wrefresh(edit).
814 main():
815 - Moved up locale calls so that translated --help messages would
816 actually get translated.
817 do_backspace(), do_delete():
818 - Added decrement of totsize.
819 init_help_msg():
820 - New function, initializes help text if NANO_SMALL isn't set (fixes
821 broken i18n).
822 read_file():
823 - malloc call changed to nmalloc (Rob Siemborski).
824- winio.c:
825 total_refresh():
826 - Completely rewrote function, not quite so braindamaged now.
827
828nano-0.9.8 - 05/18/2000
829- nano.c:
830 main():
831 - Added awesome code that disables the CINTR and CQUIT
832 character (Adam Rogoyski). Removed raw()/noraw() calls so that
833 nano gets input in 'normal' mode, which is the Right Way(tm) to
834 do it. ^S, ^Z and ^Q now work properly as a result, as well as
835 ^C. New variable term, global bariable oldterm to save previous
836 term settings, and changes to finish() and die().
837 - Added extra #ifdefs in getopt code, so that above code and
838 flag init is run even if GETOPT_LONG is not #defined.
839 - Added memset line before sigactions. (Adam Rogoyski)
840 do_suspend():
841 Removed function, see above for why.
842- winio.c:
843 update_line(), center_cursor():
844 - Removed wrefresh(edit) from bottom of functions. wrefresh
845 should now only be called once, at the bottom of the main()
846 loop.
847- global.c:
848 shortcut_init():
849 - Removed suspend sc_init call and suspend message because suspend is no
850 longer needed in the shortcut list to work properly.
851
852nano-0.9.7 - 05/14/2000
853- nano.c:
854 do_home(), do_end():
855 - Added calls to update_line for the current line, fixes
856 lack of update (bug discovered by Alberto García).
857 main():
858 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
859 following symlinks even when -l isn't set, and "no changes"
860 error when nano is called from crontab -e (Adam Rogoyski).
861- cut.c:
862 do_cut_text():
863 - Added edit_update_top to cut when mark is set, fixes lack of
864 display update (bug discovered by Ken Tyler).
865
866nano-0.9.6 - 05/08/2000
867- New Italian translation (it.po), by Daniele Medri.
868- nano.c:
869 page_up(), page_down():
870 - Added reset of placewewant to 0, as it should be.
871 do_up(), do_down():
872 - Added call to update_line() for line we move from and line we
873 move to, in order to keep the highlighting correct.
874 do_wrap():
875 - Added var chop, new code to wrap lines more like Pico, mostly.
876 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
877- winio.c:
878 do_help():
879 - Added edit_refresh() before exit.
880 update_cursor():
881 - Removed cursor updating which really wasn't needed anyway.
882 edit_update():
883 - Removed yucky code that didn't work, this function now just
884 computes edittop and editbot and calls edit_refresh() to do the
885 rest, which removes a lot of dupliicate code..
886
887nano-0.9.5 - 05/01/2000
888- Removed bytes from file struct because it was computationally wasteful.
889- cut.c:
890 do_uncut_text():
891 - Added call to edit_refresh().
892- nano.c:
893 do_backspace():
894 - Added reset of editbot when deleting the last line of the file
895 (bug discovered by Adam).
896 do_char():
897 - Removed call to reset_cursor().
898 do_delete():
899 - Added similar check as to do_backspace().
900 do_enter():
901 - Added call to edit_refresh().
902 do_left(), right():
903 - Added call to update_line(), still redundant but better...
904 do_up(), do_down():
905 - Added refresh calls both for current line and line to which
906 we are moving.
907 main():
908 - Removed inefficient call to edit_refresh() after every keystroke.
909 It is now up each function to leave the screen in a good state.
910- winio.c:
911 do_cursorpos()
912 - Rewritten to not use bytes from filestruct by an incremental sum.
913 update_line(), reset_cursor():
914 - Optimized calls to xplustabs() through a single variable.
915 - update_line() now takes a new arg, an index into the string
916 for where to update the line from. Needed for new update
917 code.
918- configure.in:
919 - Better checks for slang, allows argument to --with-slang.
920 (Albert Chin-A-Young)
921 - Removed -Iintl from CFLAGS in gcc check.
922- Makefile.am:
923 - Addition of -Iintl for gettext (Albert Chin-A-Young)
924
925nano-0.9.4 - 04/25/2000
926 - Fixed calls to no_help and changed them to the more consistent
927 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
928 not 1. Code to temporarily disable NO_HELP when in the
929 help system. (Adam Rogoyski)
930- cut.c:
931 do_marked_cut(), do_cut(), do_uncut():
932 - Commented out unnecessary bits when NANO_SMALL is being used.
933- winio.c:
934 xpt(), strlenpt(), actual_x():
935 - Added check for value of data[i] & 0x80, if so do not make
936 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
937 edit_refresh():
938 - New check for temp == NULL (bad thing), if so go back to the
939 previous line. New filestruct var hold points to prev line.
940 Fixes segfault when paging down to the end of a file.
941- nano.c:
942 write_file():
943 - Added check for if file exists and is not equal to the current
944 filename, prompt for overwrite (Adam Rogoyski).
945 do_down():
946 - Removed check for current->next == NULL, now checks return value
947 of do_down before setting current_x = 0 (discovered by Adam).
948 do_justify():
949 - Fixed segfault when reaching the last line (tried to assign
950 currrent->next->data when current->next == NULL) (discovered
951 by Adam).
952- utils.c:
953 - Removed extra macro defs that are now in nano.h.
954- nano.h:
955 - Changed macro SET() to use |= instead of ^=. Fixes bug in
956 cut code when cutting more than one line, and cutbuffer gets
957 blown away when it shouldnt.
958
959nano-0.9.3 - 04/29/2000
960- cut.c:
961 do_marked_cut():
962 - Fixed off by one error in cut code for marked text.
963 do_cut_text():
964 - Removed check for being on the last line, part of
965 magic line code.
966 add_to_cutbuffer():
967 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
968 - Added inptr->prev = NULL for case where cutbuffer == NULL.
969- nano.c:
970 do_backspace(), do_char():
971 - Removed "magic line" code. It was basically causing more bugs
972 than it was helping for the sake of compatibillity. This fixes
973 at least one known segfault condition.
974 do_enter():
975 - Added setting editbot to new node if the new node is the last
976 node in the file.
977 write_file():
978 - Changed writing file bahavior. Now, if last line of the file
979 has any data on it, we write a newline on it, else we dont.
980- winio.c:
981 add_marked_sameline():
982 - New code that checks for whether the begin and end of the marker
983 are on different lines. Missing previously.
984 edit_add():
985 - added some more checks for text length. Cleaned up some mvwaddnstrs that
986 could be written more simply as waddnstrs.
987 edit_refresh():
988 - Removed check for temp == filebot, it is now treated like any other line.
989 Fixes a bug where selected text on the last line shows normally.
990 xpt():
991 - Removed an extra computation for tabs variable that was incorrect.
992 xplustabs():
993 - Since xpt now actualy works, this func is now just a wrapper for
994 xpt(current, current_x)
995- nano.1, nano.1.html:
996 - Added -l option to man pages.
997- configure.in:
998 - New option --enable-tiny, #defines NANO_SMALL in config.h.
999 Disables call to gettext in functions and other i18n stuff in
1000 nano.c, the detailed help mode, the resize functions, and the
1001 justify code which no one ever uses.
1002 - New option --with-slang. Enables slang libraries instead of
1003 ncurses, requires slcurses.h for wrapper functions. (Based
1004 on patches for 0.8.7 by Glenn McGrath).
1005
1006nano-0.9.2 - 04/15/2000
1007- This release just fixes the serious segfault problem if nano is
1008 invoked any way other than using the absolute path. The bug was
1009 in the new code for checking whether nano is invoked as pico.
1010
1011nano-0.9.1 - 04/14/2000
1012- Added pico compatibility for ^T when in search or switch to switch
1013 to the opposite function. Added one to REPLACE_LIST_LEN and
1014 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
1015 new strings that will have to be gettex()ed. New argument 'replacing'
1016 to search_init(). Handlers in do_replace and do_search().
1017- New write code, now follows symbolic links instead of replacing them
1018 with the new file. New option (-l, --nofollow) to enable the old
1019 (incorrect, but secure) behavior (Adam Rogoyski).
1020- nano.c:
1021 do_wrap():
1022 - Fixed another bug relating to wrapping, and which would cause
1023 a segfault *sigh*.
1024 do_replace():
1025 - Incremented current_x by the length of the replacement
1026 text inside the main repalce loop. Fixes bug #15.
1027 add_marked_sameline():
1028 - New function, handles marked text when start & end of marker is
1029 on one line, also supports most marked text when cursor > COLS.
1030 main():
1031 - Code to check if nano is invoked as 'pico', and if so
1032 automatically set pico_msgs (Robert Jones).
1033
1034nano-0.9.0 - 04/07/2000
1035- nano.1, nano.1.html: Updated man page with my email address and homepage.
1036- winio.c:
1037 reset_cursor(), update_line():
1038 - Changed update algorithm for x value to (COLS - 7) multiple when x
1039 value > (COLS - 2).
1040- edit_refresh():
1041 - Removed inner loop code, now calls update_line() for each line
1042 in question, MUCH nicer.
1043- xplustabs(), xpt():
1044 - Removed redundant increment of tabs when collumn no % 8 == 0.
1045 - Added check for data[i] < 32, most of such bits are 2 chars wide.
1046- update_line():
1047 - Fixed a stupid call to strlenpt with col when we should have
1048 been using actual_col. Ugh.
1049
1050nano-0.8.9 - 03/22/2000
1051- nano.c:
1052 empty_line(), no_spaces(), justify_format(), do_justify():
1053 Actually added these (screwup applying patch).
1054 do_justify(): Added call to set_modified().
1055
1056nano-0.8.8 - 03/12/2000
1057- Preliminary internationalization support. Many many functions modified
1058 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
1059 New dirs po/ and intl/, changes to configure.in and Automake.am to
1060 support i18n.
1061- nano.c:
1062 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
1063 statics: Changed some things that were not necessarily static
1064 (Adam Rogoyski).
1065 nrealloc(): New function, similar to nmalloc(). Changed calls from
1066 realloc() to nrealloc (Adam Rogoyski).
1067 empty_line(), no_spaces(), justify_format(), do_justify():
1068 New functions for justify function (Adam Rogoyski).
1069- winio.c:
1070 blank_edit(): Added wrefresh call to edit so that screen updates (like
1071 on ^L) actually work.
1072 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
1073
1074nano-0.8.7 - 03/01/2000
1075- main.c:
1076 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
1077 to a single character on one line when no good place to
1078 break the line exists, and for wrapping lines longer than COLS.
1079- nano.1.html:
1080 Html version of man page, now included in dist. For
1081 the benefit of nano packages in Linux distributions.
1082
1083nano-0.8.6 - 02/24/2000
1084- gobal.c:
1085 shortcut_init():
1086 Added shortcuts for goto_line and do_replace when using
1087 pico_msgs. Oops.
1088- nano.c:
1089 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
1090 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
1091 Removed check for backing up past spaces first.
1092 main(): Added for loop to check for alt keys instead of hard list.
1093 do_enter(): Fix for bug #14, added call to reset_cursor and messed
1094 up do_char quite a bit.
1095 version(): Added time and date stamp for compile on version message.
1096 Added mail and web page info.
1097- README: Updated mailing list info.
1098
1099nano-0.8.5 - 02/18/2000
1100- nano.c:
1101 main(): Finally fixed tilde being input on page up/down keys in
1102 certain terminal types. Fix was input 26->91->5[34] check
1103 for 126, if so make the kbinput PAGE UP/DOWN, else unget
1104 the keystroke and continue. Added #include <ioctl.h> for
1105 ioctl call.
1106 handle_hup():
1107 Handler for hangup signal. Belated include of patch from
1108 Tim Sherwood.
1109- winio.c:
1110 edit_refresh():
1111 Temporary fix for selecting text when temp == current.
1112 edit_refresh() is now unmanagably complex, and must be
1113 revamped.
1114 check_statblank():
1115 Added check for constupdate, makes things less choppy
1116 (Adam Rogoyski)
1117
1118nano-0.8.4 - 02/11/2000
1119- Moved global variables that were only (or mostly) used in one file into
1120 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
1121- global.c:
1122 shortcut_init():
1123 Removed redundant NANO_CONTROL_H from backspace shortcut,
1124 added char 127 which should have been there.
1125- nano.c:
1126 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
1127 segfaults (Adam Rogoyski).
1128- Makefile.am: Added all source filenames (Adam Rogoyski).
1129- nano.1: Fixed mail addressed and added mailing list address.
1130- README: Updated my email address and the nano web page.
1131
1132nano-0.8.3 - 02/08/2000
1133- New pico mode (-p, --pico), toggles (more) compatibility with the
1134 Pico messages displayed in the shortcut list. Note that there are still
1135 small differences in this mode.
1136- nano.h: New shortcut struct format, for the benefit of i18n and
1137 our help menu. Removed shortcut message macros, they are
1138 now all in shortcut_init in global.c.
1139- nano.c:
1140 do_wrap(): Removed resetting of current_x when we are in fact
1141 wrapping to the next line, fixes a bug in -i mode.
1142 do_enter():
1143 Rewrote the autoindent mode code to be a lot less pretty,
1144 but a lot more magical.
1145 main():
1146 Removed case for ignoring char 126 (~). That's kind of
1147 important, we'll have to fix handling that sequence when
1148 pageing up/down on a terminal some other way... Revamped
1149 main switch loop in much snazzier fashion based on the
1150 shortcut list.
1151- winio.c:
1152 New function display_main_list. Affects all functions
1153 that used to call bottombars() with main_list. Added
1154 because we now only call bottombars with the macro
1155 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
1156 changes to the main_list shortcut list (see global.c below).
1157 New function do_help, our preliminary dynamic help system.
1158- Many many funcs:
1159 Changed from int to void to allow one uniform type to call
1160 from the shortcut struct. Also a few functions that do
1161 not simple have void argument have new functions called
1162 funcname_void(void) to be called from the shortcut list.
1163 do_cut_text and do_uncut_text were changed to void
1164 arguments because they were never called with a filestruct
1165 other than *current anyway.
1166- global.c:
1167 Shortcut list main_list was expanded to cover all
1168 shortcuts that could be caught in the main loop.
1169 Consequently there is a new macro MAIN_VISIBLE which tells
1170 how many items in the main list to actually show.
1171
1172nano-0.8.2 - 02/02/2000
1173- Added initial mouse (-m, --mouse) support. New global variable
1174 use_mouse. (Adam Rogoyski)
1175
1176- nano.c: Set intial value of fill to COLS - 8 rather than just 72
1177 regardless. (Adam Rogoyski).
1178 do_delete():
1179 Deleted call to do_backspace() when on the end of a line,
1180 because it won't update the line properly.
1181 do_backspace():
1182 Removed unnecessary pointer manipulation that was being
1183 handled by unlink_node().
1184 open_file():
1185 Added check for trying to open a directory (currently we
1186 segfault on this). Bug pointed out by Chad Ziccardi.
1187
1188nano-0.8.1 - 01/28/2000
1189- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
1190 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
1191 global.c and proto.h.
1192- nano.c:
1193write_file(): Added (incredibly) necessary check for EPERM when
1194 link() fails. This allows us to actually save
1195 files via rename() on filesystems that dont
1196 support hard links (AIEEEEEE).
1197do_goto():
1198 Fixed a stupid mistake where we were calling
1199 bottombars() with replace_list instead of goto_list.
1200- nano.h:
1201 New char *help in shortcut structure for help
1202 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
1203 for help function and i18n.
1204- global.c:
1205 New functions shortcut_init (called in nano.c) and
1206 sc_init_one() to initialize the shortcuts without
1207 using {}s (for i18n).
1208
1209nano-0.8.0 - 01/25/2000
1210- View flag (-v, --view) implemented. Global variable view_mode, affects
1211 main loop of nano.c and new_file(). (me)
1212- nano.c:
1213 split checks for TERMIOS_H and TERMIO_H up so we
1214 can (theoretically) include them both, which is good.
1215handle_sigwinch():
1216 Added check for ncurses.h. (Andy Kahn)
1217do_spell():
1218 We now only try ispell because we don't as of yet
1219 handle the 'spell' program the right way, now that
1220 I finally know what the right way is =-). Added
1221 call to edit_update(fileage) to stop segfaults.
1222global_init():
1223 Added initialization of edit* filestruct pointers
1224 to stop segfaults on spell check.
1225usage():
1226 Check for getopt_long, and if no leave out the
1227 GNU options everyone seems to love so much (Andy Kahn)
1228main():
1229 Added checks for getopt_long (Andy Kahn)
1230 We ignore character 126 because it gets put into
1231 the buffer when we page up/down on a vt terminal.
1232write_file():
1233 Fixes for umask (Adam Rogoyski). Renamed tmpfile
1234 variable to tmp. Documented the tmp opttion
1235 better in the function comments. Fixed my
1236 stupidly commented out check for tmp on setting
1237 umask which I really like =>
1238- nano.h:
1239 Made desc variable in shortcut struct a pointer
1240 instead of a fixed-length string.
1241- utils.c:
1242 Fixed check for config.h before nano.h.
1243- configure.in:
1244 New checks for getopt_long, getopt.h, removed
1245 CFLAGS and LDFLAGS changes. Gonna have to run
1246 strip manually now =-) (Andy Kahn)
1247 Added check for HAVE_WRESIZE, new file acconfig.h (me).
1248
1249nano-0.7.9 - 01/24/2000
1250- New autoindent feature. Command flag 'i' or '--autoindent'. New
1251 function do_char() to clean up character output, global
1252 variable autoindent in global.c. (Graham Mainwaring)
1253- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
1254 files on exit without prompting. Affects do_writeout(). Also
1255 do_writeout() now takes a parameter for if exiting.
1256 Global variable temp_opt in global.c (Graham Mainwaring)
1257- Preliminary spell program support. Added command flag '-s' or
1258 '--speller' for alternative speller command. Added function do_spell()
1259 and exit_spell() to nano.c. New global variable alt_speller.
1260- nano.c:
1261 main(): We now ignore input of decimal 410 because these get entered
1262 when we resize the screen. Sorted options in getopt()
1263 switch statement.
1264 usage(): Sorted options and changed tabs to make room for -s option.
1265 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1266 doesn't print the number of lines written on the statusbar.
1267 global_init():
1268 Added more initializations to globals to support do_spell().
1269
1270nano-0.7.8 - 01/23/2000
1271- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1272- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1273 and main() in nano.c
1274- Removed redundant reset_cursor() calls from the blank() routines.
1275- nano.c:
1276 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1277 Removed check for isprint() characters in main while loop
1278 for people with odd character sets *shrug*. Added some X
1279 window F-key combos.
1280 read_line(): New function, consolidates of most of the special
1281 sections of the file reading code. (Rob Siemborski)
1282 do_replace(): Many scattered fixes. (Rob Siemborski)
1283 write_file(): Added check for empty filename.
1284- winio.c:
1285 nanogetstr(): Fixes for deleting at places other than the end of the
1286 buffer, cut support. (Adam Rogoyski)
1287 blank_edit(): New function, blanks edit buffer. Added call to it in
1288 total_refresh().
1289- configure: Checks for glib if snprintf of vsnprintf aren't available
1290 (Andy Kahn). Changed warning message when no termcap lib
1291 is found.
1292
1293nano-0.7.7 - 01/19/2000
1294- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1295 mode (affects getopt() in main() and usage() function in nano.c
1296- New flag -c, always show cursor position. Affects main() in nano.c and
1297 statusbar() in winio.c
1298- Option '-x' doesn't show help window at the bottom of the editor.
1299 New variable no_help in nano.h and proto.h, affects main(), usage(),
1300 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1301 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1302 hand =P) (Adam Rogoyski)
1303- nano.c:
1304 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1305 page_up(), page_down():
1306 - New functions. We now set the cursor at the top right corner,
1307 not at the center line, and page up and down a full screen
1308 rather than a half screen. Original functions renamed to
1309 page_up_center() and page_down_center().
1310 main():
1311 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1312 in main while loop because suspend mode was broken. This should
1313 fix it, at least for now.
1314 - Added long option support (By popular harassment ;-) - Added
1315 #include for getopt.h, changed getopt() to getopt_long().
1316 Options added so far: --version (-V), --nowrap (-w), --suspend
1317 (-z), --help (-h), --nohelp (-x).
1318 - Rewrote signal statements (Adam Rogoyski)
1319
1320nano 0.7.6 - 01/15/2000
1321- New ChangeLog format
1322- nano.c:
1323 main(): Bound CONTROL_H to backspace (oops)
1324 Added more Alt-[-key combinations, for page up & down.
1325 read_bytes(): New function (Adam Rogoyski)
1326 read_file(): Optimizations - malloc()s *buf a little at a time rather
1327 than one huge buffer, and replaced the strcat at the end
1328 with an index variable. Added call to read_bytes().
1329 do_next_word(): New function, binding is control-space (0) (me)
1330
1331- winio.c:
1332 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1333 (formula is extra space needed = COLS / 6 - 13).
1334 actual_x() & strlenpt():
1335 Added bug#9 fix - when tabs % 8 == 0, we should only
1336 increment tabs by 1.
1337 titlebar(): Fixed overrun in titlebar on very long filenames.
1338
13390.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1340 writing a newline at EOF. do_cursorpos and do_replace are now not
1341 directly bound to signals but picked up as their control sequences
1342 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
13430.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1344 available memory, align bug fixed (Big Gaute).
1345
1346--- As of version 0.7.4 TIP is renamed to nano.
1347
13480.7.3 Fixed a double blank_statusbar() when jumping to first and last
1349 lines. Took out unnecessary updates in load_file. Bug fix in
1350 do_left. Missing updates to totlines, fixed bug #7 (last line not
1351 having a newline at the end doesnt get read, bugfix in do_replace
1352 with replace all, more/better comments (Robert Siemborski)
13530.7.2 Our first patch accepted into the source! configure fixes
1354 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1355 Bug fix in update_line for editing long lines. Fixed arguments
1356 being put into the filename when none is specified. Preliminary
1357 +line command argument function.
13580.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1359 edit_refresh to stop cursor "jumping" during screen updates. This
1360 will probably cause a bug or two. Replace is now Alt-R (@R) and
1361 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1362 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1363 Control-G will become the Help key, but for now is stubbed out.
13640.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1365 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1366 length file. Added Esc-[-A,B,C,D cursor key sequences.
13670.6.9 Preliminary cursor position function. Split up tip.c more, made
1368 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1369 that was leaving out a character.
13700.6.8 By request, optchr in main() is now an int. Removed unneeded
1371 globals. Bound functions for next/prev page, and wrote functions
1372 do_home and do_end.
13730.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1374 created read_file. Implemented Insert File. Fixes in tipgetstr
1375 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
13760.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1377 aborted searches and more Pico-compatible messages. statusq() now
1378 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
13790.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1380 regarding buffers with filebot in them. Fixins in do_backspace
1381 and do_enter. Removed unused variables. Removed strip_newline.
13820.6.4 Took out the awful newlines from each string buffers. This will
1383 certainly cause more bugs. Fixes in do_exit(). Better empty file
1384 handling (I hope).
13850.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1386 do_enter() rewritten.
13870.6.2 Better default file permissions. Complete rewrite of do_wrap().
1388 Better handling of editing with cursor near COLS - 1.
13890.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1390 codes being entered into the buffer. Bug fix in actual_x; more
1391 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1392 locked into cutbuffer when cutting more than one marked screen of text.
13930.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1394 width on the screen we want to be, not an index of current->data.
1395 New functions xplustabs and actual_x convert the actual place
1396 the cursor should be on the screen to and from the place in the
1397 string.
13980.5.5 Changed do_right to test do_down before setting current_x to 0,
1399 eliminiating the "looping" on the last line when holding the right
1400 arrow. Preliminary support for longer than COLS - 1 lines.
1401 Wrote do_delete.
14020.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1403 tipgetstr is much more messy but text is now more editable ;)
1404 Fixed crash on entering a new file, hopefully. Awful stub for tab
1405 handling, only in do_right() to save me some sanity.
14060.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1407 Fixed a few bugs in do_uncut when not uncutting from marked text.
1408 I would not trust your data with the mark code right now, but then
1409 we're not at version 1.0 yet so dont trust anything ;)
14100.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1411 jump after each keystroke entered. Select text stubbed. Fixed
1412 a bug in total_refresh(). Setting a mark will hilight properly,
1413 but does not actually affect what gets put in the cutbuffer (yet).
14140.5.1 Writing a file out causes modified to be set back to 0. Good.
1415 Set_modified function written. Cut and uncut text now set
1416 modified when called.
14170.5.0 Half way there! Implemented write out, save function seems
1418 stable. Changed statusbar blank routing to not refresh, a separte
1419 program calls it and then refreshes. Made the program not clear
1420 the srceen on exit, just the bottom two lines (like Pico).
14210.4.2 Implemented replace all in replace function. Crude exit function
1422 (asks yes or no if modified but does not write to file).
14230.4.1 Implementing search & replace. Fixed crash on deleting at top of
1424 edit buffer. Implemented "timeout" of statusbar messages.
1425 Implemented ^A and ^E (beginning and end of line).
14260.4.0 Split code into global.c and proto.h to allow for better multiple
1427 file handling. Added #defines for the majority of the shortcut
1428 kets in tip.h for easy modification.
14290.3.1 Write edit_refresh which doesn't move the screen around, just
1430 updates what's there already. do_wrap() and do_enter() added.
14310.3.0 Preliminary cutbuffer (cut and uncut) support.
14320.2.7 Check for Modification added. do_search() works.
14330.2.5 Rewrite of file data struct.
14340.2 Read in data to buffer, bound keystrokes to stub functions,
1435 initial cursor movement on screen. Initial autoconf support.
14360.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001437
1438$Id$