blob: b57d3319ecca16aacfd9d988baed0853a9c2da57 [file] [log] [blame]
Chris Allegretta7c1fee72001-01-31 23:24:54 +00001CVS code -
Chris Allegrettade48b412001-02-01 22:56:44 +00002- configure.in:
3 - Autoconf compatibility fixes (Pavel Roskin)
Chris Allegretta09f39cb2001-02-05 13:43:23 +00004- cut.c:
5 do_cut_text()
6 - marked text cut fixes (Rocco) (Fixes bug #54).
Chris Allegretta00ae5df2001-02-05 18:24:33 +00007- nano.c:
Chris Allegretta4ed13152001-02-10 17:50:50 +00008 do_delete()
9 - Added check for current->next == fileptr, as we have a magic
10 line code again, fixes sillyness at the end of the last line
11 before the magic line (reported by J.A. Neitzel).
Chris Allegretta00ae5df2001-02-05 18:24:33 +000012 do_justify()
13 - If the keystroke after the justify is not the unjustify key,
14 blank the statsubar (bug reported by Neil Parks).
Chris Allegretta8bc03b62001-02-09 02:57:52 +000015 main()
16 - Added ENABLE_NLS check around gettext stuff.
Chris Allegrettab55999e2001-02-09 02:49:46 +000017- de.po:
18 - Translation updates by Florian König.
19- fi.po:
20 - Translation updates by Pauli Virtanen.
Chris Allegrettad096f682001-02-05 13:51:31 +000021- hu.po:
22 - Hungarian translation by Horvath Szabolcs.
Chris Allegrettab55999e2001-02-09 02:49:46 +000023- id.po:
24 - Translation updates by Tedi Heriyanto.
Chris Allegretta7c1fee72001-01-31 23:24:54 +000025
Chris Allegretta34318ed2001-01-31 23:22:36 +000026nano-0.9.99pre2 - 01/31/2001
Chris Allegretta17dcb722001-01-20 21:40:07 +000027General
Chris Allegrettad4ddd012001-01-23 01:17:07 +000028 - Removed center_x and center_y globals. center_y was
29 completely unused and center_x was only used a few places,
Chris Allegretta17276e52001-01-23 01:22:32 +000030 easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
Chris Allegretta17dcb722001-01-20 21:40:07 +000031 - Deleted free_node, duplicate of delete_node, and changed all
32 free_node calls to delete_node.
Chris Allegretta08020882001-01-29 23:37:54 +000033 - Fix for resizing the window in modes other than normal edit mode
34 Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco).
Chris Allegretta0fc2b812001-01-18 15:04:20 +000035- files.c:
36 write_file()
37 - Don't free() realname on error, if it needs to be free()d later
38 it will be (fixes crash on successful write after failed write,
39 discovered by David Sobon).
Chris Allegretta8d9b11a2001-01-19 04:17:24 +000040 username_tab_completion()
41 - Optimization and removal of useless vars (Rocco).
Chris Allegretta2c2c5f22001-01-23 03:27:31 +000042 - Rewritten using getpwent (suggested by Rocco).
Chris Allegrettaa711f7e2001-01-23 04:16:31 +000043 - Removed redundant conditional (Rocco).
Chris Allegrettaee733e62001-01-22 22:17:08 +000044 real_dir_from_tilde()
Chris Allegrettae5e4d492001-01-23 03:09:15 +000045 - Rewritten using getpwent (suggested by Adam, much optimized by Rocco).
Chris Allegrettaf0b26df2001-01-20 22:18:18 +000046- global.c:
47 - Don't define toggles global or toggle_init_one if using --tiny.
Chris Allegretta17dcb722001-01-20 21:40:07 +000048- nano.c:
49 do_justify()
50 - Added restoration of totsize after unjustify command.
Chris Allegretta7f7ce562001-01-21 16:35:49 +000051 usage()
Chris Allegrettae9a2d032001-01-21 16:08:21 +000052 - Add arg to -T help (Rocco).
Chris Allegretta0a06e072001-01-23 02:35:04 +000053 global_init(), handle_sigwinch()
54 - Messy loops replaced with memset calls (Rocco).
Chris Allegretta169ee842001-01-26 01:57:32 +000055 do_alt_speller()
56 - Added code to parse multi-word alt_speller strings.
Chris Allegrettae434b452001-01-27 19:25:00 +000057 - Fix initialization before fork() (Rocco).
Chris Allegretta34318ed2001-01-31 23:22:36 +000058- proto.h:
59 - Fix do_credits() proto (oops!)
Chris Allegrettae434b452001-01-27 19:25:00 +000060- winio.c:
61 nanogetstr()
62 - Sanity check for x overrunning the string buffer len.
Chris Allegretta76745fb2001-01-18 04:40:06 +000063
Chris Allegretta9d6f3f32001-01-21 02:35:03 +000064nano 0.9.99pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +000065General
66 - Changed #ifdefs to check for both DISABLE_TABCOMP and
67 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +000068 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +000069 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +000070 back. (Rocco)
71 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +000072 - Added message for when keypad goes awry. Added code in main and
73 function print_numlock_warning() to notify user, and added an
74 apropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +000075 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +000076 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +000077- configure.in:
78 - Fix for _use_keypad check breaking slang support (Christian
79 Weisgerber).
Chris Allegretta4ee0b412001-01-11 15:11:00 +000080 - Changed to automatically define the 5 DISABLE varibles when
81 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +000082- faq.html:
83 - Added some info on making the binary smaller with the configure
84 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +000085 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +000086- files.c:
87 real_dir_from_tilde()
88 - Oops, fix case where buf ="~", silly crash (bug discovered by
89 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +000090 do_browser()
91 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +000092 cwd_tab_completion(), input_tab()
93 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +000094 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +000095- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +000096 ABCD()
97 - New function, figures out what kbinput to return given
98 input common to several switch statements, allows us to
99 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +0000100 main()
101 - Alternate speller option no longer valid if DISABLE_SPELLER is
102 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +0000103 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
104 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +0000105 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +0000106 nano_small_msg()
107 - This function has been removed. All references now call
108 nano_disabled_msg. (Rocco)
109 version()
110 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
111 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
112 reported as enabled when Nano is called with -V (--version)
113 command-line option. (Rocco)
114 usage()
115 - Alternate speller option no longer valid if DISABLE_SPELLER is
116 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +0000117 window_init(), handle_sigwinch()
118 - Added check for not having enough LINES to do anything useful,
119 if so die with an error. (Rocco)
120 die_too_small()
121 - Function to print the window too small error message, avoids
122 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +0000123 do_justify()
124 - Small fix for totsize calculation (Rob)
125
Chris Allegrettad9742c62001-01-12 15:51:53 +0000126- fi.po:
127 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +0000128
Chris Allegretta16991442001-01-07 22:06:11 +0000129nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000130General -
131 - New file browser code. New functions in files.c:do_browser(),
132 helper functions browser_init(), tail(), striponedir(),
133 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +0000134 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +0000135 - Keypad code has been changed slightly. Now checks for
136 _use_keypad flag in window to see whether or not to turn
137 the keypad() back off when finished (taken from aumix). Moved
138 to winio.c where it should probably be anyway. New confgure
139 check for _use_keypad in window sstruct. This will have to do
140 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +0000141 - Moved keypad() calls for PDCURSES from main() to window_init()
142 so the keypad continues to work after a Meta-X, for example.
143 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +0000144- faq.html:
145 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000146- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000147 username_tab_completion()
148 - Added the (char *) sizeof when allocating memory for the filename
149 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000150 cwd_tab_completion()
151 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000152 - Added the (char *) sizeof when allocating memory for the filename
153 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000154 do_writeout()
155 - Now takes an argument so the string typed in can be retained
156 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +0000157 do_browser()
158 - Don't decrement longest by the length of path. Fixes crashes
159 on entering various dirs (Rocco).
160 - Don't ungetch() the exit key, unneeded, fixes inerting a file
161 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +0000162- move.c:
163 page_down()
164 - Don't do an edit_update when there is only one page of text
165 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +0000166- nano.c:
167 main()
168 - Reorder the getopt options to be more or less alphabetical
169 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +0000170- winio.c:
171 do_cursorpos()
172 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +0000173 do_credits()
174 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000175 titlebar()
176 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +0000177 do_help()
178 - Changed way of temporarily bringing up shortcuts at the
179 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +0000180- utils.c:
181 mallocstrcpy()
182 - Takes char pointers now instead of void (makes debugging a
183 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000184 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +0000185- es.po:
186 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +0000187
Chris Allegretta66149e72000-12-19 02:51:06 +0000188nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +0000189General
190 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +0000191 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +0000192 - Changed filename to no longer use PATH_MAX, so it can work on the
193 HURD. Changes in files.c:write_file(), new function
194 nano.c:clear_filename(), many changed in main(), a few other
195 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000196 - Added -b, -e, and -f flags, which we ignore as nano provides
197 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000198- cut.c:
199 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000200 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000201 - Fix screen not being displayed when we are uncutting marked
202 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000203 - Fix magic line not getting created when (you guessed it)
204 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +0000205- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +0000206 read_file()
207 - If we encounter an error and insert is not set, run new_file().
208 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +0000209 write_file()
210 - Change open call flags, basically copy joe's way of doing it so
211 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +0000212 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +0000213 open_file()
214 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +0000215- nano.c:
216 renumber()
217 - Dont stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000218 main()
219 - Added code to check for Alt-Alt (27-27) keystrokes and set the
220 next keystroke as a control sequence. New variable
221 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
222 around Control-S,Q,Z handlers because we need it now for
223 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +0000224 - Added --view option to getopt_long()call . Bug discovered
225 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +0000226 help_init()
227 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta92325e72000-12-18 03:44:22 +0000228 ^_ in pico mode not be displayed in the help (bug discovered by
229 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +0000230 do_toggle()
231 - Added fix_editbot() call to fix improper redisplay of edit
232 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000233- nano.1, nano.1.html:
234 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +0000235- winio.c
236 do_help()
237 - Force keypad on so F-keys and PageUp/Down will work properly.
238 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000239- utils.c:
240 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +0000241 - Increment totsize!! We decrement it when we've read a file,
242 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +0000243
Chris Allegrettab29550e2000-12-09 03:34:12 +0000244nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +0000245General
246 - Changed --disable-spell to --disable speller. The term is
247 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +0000248- files.c:
249 write_file()
Chris Allegretta20c131c2000-12-04 04:20:09 +0000250 - Added tmp check to TMP_OPT section (how apropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +0000251 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +0000252 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +0000253 - We now run check on result of lstat(), not stat(), to be
254 safer. New variable anyexists, we use still use realexists
255 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +0000256 - OOPS, line up link/unlink/rename check if conditional with
257 top if conditional. Option -l has been broken for 9 versions,
258 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +0000259 - Added saving perms at end of link so we can apply them to the
260 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +0000261- winio.c:
262 edit_add()
263 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +0000264 do_replace_highlight()
265 - New code to handle being past COLS (Roco Corsi).
266 - Moved from search.c, as it's definitely a winio function now =)
267 update_line()
268 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +0000269
Chris Allegrettafedd7242000-12-03 03:15:38 +0000270nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +0000271- General
Chris Allegrettabe77c612000-11-24 14:00:16 +0000272 - Username tab completion code, and cleaned up existing tabcomp
273 code. New functions real_dir_from_tide(), append_slash_if_dir(),
274 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +0000275 - Ignore key sequence 543 & 545, right control and alt keys in
276 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +0000277 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
278 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +0000279 - New function nano_disabled_msg(), to alert that certain
280 functions have been disabled, similaer to nano_tiny feature.
281- New configure options:
282 - Added configure argument --disable-tabcomp. Affects
283 bottom of files.c and write_file, utils.c:check_wildcard_match()
284 and winio.c:nanogettsr().
285 - New options --enable-extra. New code in nano.c:version() to
286 print out various options from ./configure, function do_credits().
287 - Added --disable-spell option for those who want to just disable
288 the spell check feature. Affects the spellinf fucntions
289 do_spell, do_int_speller and do_alt_speller.
290 - Added --disable-justify to get rid of the justify function.
291 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +0000292- files.c:
293 write_file()
294 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +0000295 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +0000296 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +0000297 - Added call to real_name_from tilde, oops. Added check for
298 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +0000299 read_file()
300 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +0000301- global.c:
302 shortcut_init()
303 - Now takes an argument as to whether to display the unjustify
304 shortcut or the normal uncut text one. Needed to accomodate
305 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000306- nano.1, nano.1.html:
307 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +0000308 - Added "NOTES" section, where I explain what nano.save & friends
309 are.
310 - Added a copyright notice for the manpage, under the GPL.
311 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +0000312- nano.c:
313 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000314 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
315 text there, then grabs the next keystroke and, if the unjustify
316 key, gets rid of the justified text and calls do_uncut_text.
317 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000318 do_int_spell*
319 - Various fixes (Rocco Corsi).
320 - Changed abort of program to aborting based on value of "edit a
321 replacement" question, and not caring about the replace loop
322 return value. That way the user can get out of the replace loop
323 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +0000324 version()
325 - Took out huge check for the various --disabled macros,
326 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +0000327 nano_small_msg(), nano_disabled_msg()
328 - Added checks for disabled functions to see whether or not to
329 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +0000330 do_next_word()
331 - Update the previous line as well as the current one in case we
332 have moved beyond COLS or back from COLS, patch submitted
333 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +0000334 die()
335 - Now creates .save file using variable-length strings. Also
336 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +0000337 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +0000338 handle_sighup()
339 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000340- search.c:
341 do_replace_hilight()
342 - New function, displays the currently selected word as hilighted
343 in the spell check. Called from do_replace_loop (Rocco Corsi).
344 - Added calls to curs_set(0) and (1) to diable the cursor when
345 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +0000346- es.po:
347 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +0000348
Chris Allegrettaca7a21d2000-11-24 01:35:40 +0000349nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +0000350- AUTHORS
351 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +0000352- nano.c:
353 main()
354 - Changed check for argc == 1 to argv[optind] == NULL to decide
355 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +0000356- search.c:
357 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +0000358 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +0000359 search_init()
360 - Silly typo in our "one simple call" of statusq. Stopped
361 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +0000362 do_replace()
363 - Copy back the previous value of last_replace into answer if
364 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +0000365- winio.c:
366 do_up()
367 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +0000368- nano.1, nano.1.html
369 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +0000370
Chris Allegretta6da149a2000-11-19 02:23:03 +0000371nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +0000372- General
373 - Ran source through indent -kr again. Make everything pretty.
374 - Changed behavior of "search" and "replace" prompts to make all
375 previous values editable. This change was made so that you can
376 replace with the null string without needing a special key for it.
377 changed code in search_init(), do_replace(), nanogetstr (see
378 below).
379 - Added some missing gettext calls here and there (Jordi).
380 - Revamped nanogetsr() and calls to it to use variable length strings.
381 MANY changes in nanogetstr(), many chances in search.c, new
382 function mallocstrcpy which is sure to be a programmatic
383 nightmare, changed last_search, last_replace, answer to
384 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +0000385 truncated strings in satusbar when the string is not found
386 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000387 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +0000388 - New spelling code by Rocco Corsi. New functions
389 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
390 New functions search_init_globals and do_replace_loop, changes
391 to search_init(), do_replace, findnextstr, moved last_search and
392 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +0000393 - New tab completion code. Used check_wildcard_match, input_tab,
394 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +0000395 hacked them a lot, changes to nanogetstr(). nanogetstr() and
396 statusq() now take an arg for whether or not to allow tab
397 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +0000398 - Fixed value being input in statusbar during a search or replace
399 and CASE_SENSITIVE or the other search is called and the
400 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000401 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
402 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000403- files.c:
404 do_writeout()
405 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000406- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000407 - New global replace_list_2, for 2nd half of the replace dialog
408 ("Replace with:"), has fewer options than first half because
409 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000410 toggle_init()
411 - Added #ifdef around toggle_regex_msg to get rid of compiler
412 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000413
414- nano.c:
415 keypad_on()
416 - New function, toggles turning the keypad on and off in edit and
417 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000418- search.c
419 findnexstr()
420 - New arg for begin_x variable, basically a rewrite that
421 makes a little more sense and isn't quite as messy (Rocco Corsi).
422 - Update the line we're checking if not the whole screen, because
423 it's quite possible the search team could exist somewhere way
424 to the right on the same line, for example.
425 replace_abort()
426 - Add reset of placewewant, stops cursor from jumping when moving
427 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000428 do_replace()
429 - Added code for Gotoline key after entering the search term.
430 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000431 - Removed redundant code involving processing replacemenet string.
432 Converted if statements to switch statements.
433 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000434 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000435 do_search()
436 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000437- winio.c
438 nanogetstr()
439 - Added check for 343 in while loop to get rid of getting "locked"
440 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000441 - Changed check to return -2 on "enter" from answer == ""
442 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000443 - Fixed fallthrough code because there was no break. Make much
444 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000445 - Added check for ASCII 54[124] when using PDCURSES, ignore them
446 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000447 nanoget_repaint()
448 - New function, removes about 30 lines of duplicate code in
449 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000450 - Black magic code to make $ appear in prompt if we're past
451 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000452 blank_edit()
453 - Removed wrefresh() call, much less choppy now. If there's a need
454 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000455- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000456 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000457
Chris Allegretta07e97d62000-10-03 01:52:50 +0000458nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000459- General
460 - Added PDCurses support under cygwin, which allows building
461 a nice stand-alone nano.exe for those poor Windows users.
462 Extra check in configure.in for initscr() in -lcurses (as
463 PDcurses has no tgetent), some #ifdef PDCURSES statements
464 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000465 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000466- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000467 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000468 main()
469 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000470- search.c
471 - Added initializations for last_search and last_replace (Rocco Corsi)
472
Chris Allegretta629edad2000-09-19 00:27:19 +0000473nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000474- General
475 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
476 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000477- configure.in:
478 - Added default case for cross-compiling to get rid of annoying
479 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000480- cut.c:
481 do_cut_text()
482 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000483 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000484- files.c:
485 open_file()
486 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000487- global.c:
488 shortcut_init()
489 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000490- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000491 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000492 - Added check for _POSIX_VDISABLE and use raw mode if not
493 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000494 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000495 - Revamped a great deal of the F-key and keypad key handling,
496 because we not longer use keypad() (see below).
497 - Removed keypad() call because nano was not working with the
498 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000499 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000500 do_toggle()
501 - Rewrote function to allow NOHELP toggle to wotk on systems
502 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000503 mouse_init()
504 - Add keypad only if mouse support is on, otherwise mouse doesn't
505 work. I guess you have to choose between having the mouse and
506 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000507- winio.c:
508 total_refresh()
509 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000510 onekey()
511 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000512
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000513- search.c:
514 findnextstr()
515 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000516- es.po:
517 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000518- de.po
519 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000520
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000521nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000522- General
523 - New shortcuts to toggle certain options that are normally only
524 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
525 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000526 called from shortcut_init(), and do_toggle in nano.c. Also
527 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000528 signal_init(). Moved "struct sigaction act"into a static in
529 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000530 - Changed from Alt-key symbol (@) which is completely nonstandard
531 to the *nix "Meta" symbol (M-). Changed help_init to show
532 the M-key usage and the help text to explain keys whcih generate
533 Meta. Moved the toggle Meta keystrokes to the first column
534 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000535 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000536 - Changed last_search and last_replace vars to statically
537 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000538- global.c:
539 toggle_init()
540 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
541 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000542- nano.c:
543 do_mouse()
544 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000545 do_wrap()
546 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000547 do_toggle()
548 - Added checks for no help and no wrap mode, and print opposite
549 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000550 do_suspend(), do_cont():
551 - New functions, handle suspend signal in a Pico-like manner and
552 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000553- winio.c:
554 total_refresh()
555 - Added edit_refresh() call to actually update the screen if messy.
556 edit_refresh_clearok()
557 - New function, does a total update for edit refresh, needed to fix
558 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000559 onekey()
560 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000561
Chris Allegretta6306a112000-09-02 07:55:41 +0000562 update_line()
563 - Added check for binary data >= 1 and <= 26, and use ^+letter
564 to display it. Should fix editing text files with binary
565 data in them. Placing of the cursor seems to be a bit screwed
566 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000567- search.c:
568 search_abort()
569 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
570 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000571 findnextstr():
572 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000573 - Fixed check for string that only occurs on the same line failing
574 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000575
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000576nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000577- cut.c:
578 do_cut_text()
579 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000580 - Added check_statblank().
581 - Check for fileptr == filebot, if so return, we shouldn't bother
582 cutting the magic line.
583 do_uncut_text()
584 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000585- nano.c:
586 main()
587 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000588- po/Makefile.in.in:
589 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
590 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000591- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000592 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000593
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000594nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000595- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
596 Affects many many functions. Removed functions edit_update_top and
597 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000598- Added global variable tabsize, we no longer screw with the curses
599 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000600- configure.in:
601 - Finally fixed check for slang to report "no" if not called
602 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000603- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000604 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000605 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000606 null_at()
607 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000608 delete_buffer()
609 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000610 do_backspace()
611 - Now calls page_up_center instead of page_up (as it should?)
612 do_enter()
613 - Fixed typo (?) in check for inptr->next. Caused lots of
614 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000615 main()
616 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000617- search.c:
618 replace_abort()
619 - redundant, now just calls search abort until it does something
620 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000621- winio.c:
622 edit_refresh()
623 - Added check for current line "running" off the screen.
624 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000625 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000626 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000627 edit_update()
628 - Rewritten, hopefully this will remove a lot of the
629 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000630- move.c:
631 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000632 - do an edit_update() at last case. Made function more like
633 Pico's version, only move down to two lines before editbot.
634 page_up()
635 - Made function more like Pico's version, only move down to two
636 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000637
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000638nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000639- nano.h:
640 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
641- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000642 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000643 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000644 - Simplified check for freeing cutbuffer. Added checks for doing
645 multiple cuts with -k, now sets marked_cut to 2 for later
646 processing by do_uncut_text().
647 do_uncut_text()
648 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000649- files.c:
650 write_file()
651 - Removed (redundant) check for writing out files with -t.
652 do_writeout()
653 - Changed check for filename to filename[0]. Added some code,
654 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000655- nano.c:
656 do_justify() & do_wrap():
657 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000658- de.po
659 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000660
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000661nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000662- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000663 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
664 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000665- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
666 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000667- move.c
668 page_down()
669 - Don't edit_refresh() if the bottom of the file is in the edit
670 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000671- nano.c:
672 main():
673 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000674 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000675 die():
676 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000677 do_spell():
678 - Changed exit semantincs a bit so that aspell wouldn't get
679 all screwy (bug disovered by Joshua Jensen.
680- files.c:
681 read_file():
682 - Added init of buf variable, hopefully this will stop the
683 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000684 write_file():
685 - Added code to check to see if using -l and the file is not
686 in fact a link. This should fix the behavior where a file
687 that does not have write permission but could be removed and
688 rewritten is saved without error. Please test this feature
689 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000690- search.c:
691 search_init():
692 - Added " (to replace)" statement to end of search string if
693 we are doing a replace. Manually converted all the translations
694 from '%s' to '%s%s' to ensure they still work with the new code.
695 Also put in the translation for " (replace)" in the .po's. Hope
696 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000697 do_search(), do_replace():
698 - Removed call to search_abort()/replace_abort() before call to
699 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000700 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000701 findnextstr()
702 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000703- fr.po:
704 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000705- es.po:
706 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000707
Chris Allegrettae955dae2000-07-07 22:24:59 +0000708nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000709- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000710 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
711 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
712 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000713 search_init() and do_replace() and strstrwrapper().
714 - Added _POSIX_VERSION check to regexp code. Better than nothing
715 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000716 - Made search functions & keys more like Pico. Added goto line from
717 search and replace function, changed wording to "No Replace" instead
718 of "To Search", "To Replace" to simply "Replace", and changed to
719 Pico's keystroke by default, ^R. Affects search_init(),
720 do_search() in search.c, globals in nano.h and
721 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000722 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000723- cut.c
724 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000725- files.c:
726 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000727 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000728- nano.c:
729 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000730 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
731 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000732 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000733 - Corrected FIXME in do_enter with explanation. (Rob)
734 - Fixed FIXME in do_justify, resulted in creation of
735 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000736 help_init():
737 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000738 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000739 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000740 do_backspace(), do_delete():
741 - Added magic line code here too.
742
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000743- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000744 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000745- fi.po:
746 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000747- utils.c:
748 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000749- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000750 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000751 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000752 do_yesno(), nanogetstr():
753 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000754 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
755 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000756 clear_bottomwin():
757 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000758 edit_update_top():
759 - Fixed a bug that caused nano to not update when
760 current->next == NULL (e.g. paging down to the very bottom of
761 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000762 fix_editbot:
763 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000764 edit_add:
765 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000766
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000767nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000768- New flag "-T" or "--tabsize" to specify how to display tab widths.
769 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
770 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000771 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000772- id.po:
773 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000774- es.po:
775 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000776- winio.c
777 - Rewrite of display functions to correct the display problems
778 we had been seeing. Affects: add_marked_sameline, edit_add,
779 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000780 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000781 total_refresh():
782 - Cut dispaly_main_list call, as this function is only supposed to refresh
783 what's already on the screen, not go through the process of adding the
784 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000785- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000786 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000787- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000788 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000789 - Removed editwineob, as it was redundant for (editwinrows - 1).
790 Changed all calls to editwinrows - 1 in nano.c and move.c.
791 - Removed all functions that were split into other files.
792 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000793 do_enter():
794 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000795 do_insertfile():
796 - Fix display problem when using ctrl-r to load a file
797 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000798 handle_sigwinch():
799 - Added titlebar(), edit_refresh() and display_main_list() calls because
800 a resize wasn't picking up on possible different width correctly.
801- utils.c:
802 - Moved nmalloc() and nrealloc() here.
803- move.c:
804 - New file, contains movement functions (like do_home(), do_up(),
805 do_down(), page_up(), etc...).
806- files.c:
807 - Contains functions for files (read_file, insert_file,
808 do_writeout(), etc).
809- search.c:
810 - Contains all our searching and related functions, (do_search(),
811 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000812
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000813nano-0.9.10 - 06/04/2000
814- es.po:
815 - Translation updates (Jordi).
816- AUTHORS, nano.1.html, TODO, README:
817 - Documentation and email address updates (Jordi).
818- nano.c:
819 main():
820 - Moved Adam's termio code down to after getopt() and before initscr()
821 to stop people losing their SIGINT character when using args that
822 exit nano before it runs (--version, --help, etc).
823
824nano-0.9.9 - 05/31/2000
825- Makeile.am:
826 - Added proper lines for defining LOCALEDIR.
827- configure.in:
828 - Spelling fixes (Jordi Mallach)
829 - Removed CFLAGS changes for gcc, reduces portability according to
830 some, and it certainly doesn't seem to decrease exe size.
831- es.po:
832 - Spanish ranslation updates (Jordi Mallach)
833- POTFILES.in:
834 - Added global.c file, was screwing up translations (i.e. they
835 weren't getting done).
836- cut.c:
837 add_to_cutbuffer():
838 - Added totsize increment.
839 - Cut fixes and optimizations (Rob Siemborski).
840 do_uncut_text():
841 - Added totsize increment in several places.
842- nano.c:
843 headers:
844 - Removed LOCALEDIR define.
845 do_justify():
846 - Added edit_refresh() call (bug discovered by Adam).
847 page_down_center():
848 - Added call to edit_update(current) for last case. Removed
849 increment of current_y since it's now just wasteful.
850 do_enter():
851 - Added totsize increment.
852 renumber(), renumber_all():
853 - Removed totsize-- and totsize init in renumber_all.
854 do_mouse():
855 - Added edit_refresh() call to show hilight updates. Removed
856 unnecessary wrefresh(edit).
857 main():
858 - Moved up locale calls so that translated --help messages would
859 actually get translated.
860 do_backspace(), do_delete():
861 - Added decrement of totsize.
862 init_help_msg():
863 - New function, initializes help text if NANO_SMALL isn't set (fixes
864 broken i18n).
865 read_file():
866 - malloc call changed to nmalloc (Rob Siemborski).
867- winio.c:
868 total_refresh():
869 - Completely rewrote function, not quite so braindamaged now.
870
871nano-0.9.8 - 05/18/2000
872- nano.c:
873 main():
874 - Added awesome code that disables the CINTR and CQUIT
875 character (Adam Rogoyski). Removed raw()/noraw() calls so that
876 nano gets input in 'normal' mode, which is the Right Way(tm) to
877 do it. ^S, ^Z and ^Q now work properly as a result, as well as
878 ^C. New variable term, global bariable oldterm to save previous
879 term settings, and changes to finish() and die().
880 - Added extra #ifdefs in getopt code, so that above code and
881 flag init is run even if GETOPT_LONG is not #defined.
882 - Added memset line before sigactions. (Adam Rogoyski)
883 do_suspend():
884 Removed function, see above for why.
885- winio.c:
886 update_line(), center_cursor():
887 - Removed wrefresh(edit) from bottom of functions. wrefresh
888 should now only be called once, at the bottom of the main()
889 loop.
890- global.c:
891 shortcut_init():
892 - Removed suspend sc_init call and suspend message because suspend is no
893 longer needed in the shortcut list to work properly.
894
895nano-0.9.7 - 05/14/2000
896- nano.c:
897 do_home(), do_end():
898 - Added calls to update_line for the current line, fixes
899 lack of update (bug discovered by Alberto García).
900 main():
901 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
902 following symlinks even when -l isn't set, and "no changes"
903 error when nano is called from crontab -e (Adam Rogoyski).
904- cut.c:
905 do_cut_text():
906 - Added edit_update_top to cut when mark is set, fixes lack of
907 display update (bug discovered by Ken Tyler).
908
909nano-0.9.6 - 05/08/2000
910- New Italian translation (it.po), by Daniele Medri.
911- nano.c:
912 page_up(), page_down():
913 - Added reset of placewewant to 0, as it should be.
914 do_up(), do_down():
915 - Added call to update_line() for line we move from and line we
916 move to, in order to keep the highlighting correct.
917 do_wrap():
918 - Added var chop, new code to wrap lines more like Pico, mostly.
919 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
920- winio.c:
921 do_help():
922 - Added edit_refresh() before exit.
923 update_cursor():
924 - Removed cursor updating which really wasn't needed anyway.
925 edit_update():
926 - Removed yucky code that didn't work, this function now just
927 computes edittop and editbot and calls edit_refresh() to do the
928 rest, which removes a lot of dupliicate code..
929
930nano-0.9.5 - 05/01/2000
931- Removed bytes from file struct because it was computationally wasteful.
932- cut.c:
933 do_uncut_text():
934 - Added call to edit_refresh().
935- nano.c:
936 do_backspace():
937 - Added reset of editbot when deleting the last line of the file
938 (bug discovered by Adam).
939 do_char():
940 - Removed call to reset_cursor().
941 do_delete():
942 - Added similar check as to do_backspace().
943 do_enter():
944 - Added call to edit_refresh().
945 do_left(), right():
946 - Added call to update_line(), still redundant but better...
947 do_up(), do_down():
948 - Added refresh calls both for current line and line to which
949 we are moving.
950 main():
951 - Removed inefficient call to edit_refresh() after every keystroke.
952 It is now up each function to leave the screen in a good state.
953- winio.c:
954 do_cursorpos()
955 - Rewritten to not use bytes from filestruct by an incremental sum.
956 update_line(), reset_cursor():
957 - Optimized calls to xplustabs() through a single variable.
958 - update_line() now takes a new arg, an index into the string
959 for where to update the line from. Needed for new update
960 code.
961- configure.in:
962 - Better checks for slang, allows argument to --with-slang.
963 (Albert Chin-A-Young)
964 - Removed -Iintl from CFLAGS in gcc check.
965- Makefile.am:
966 - Addition of -Iintl for gettext (Albert Chin-A-Young)
967
968nano-0.9.4 - 04/25/2000
969 - Fixed calls to no_help and changed them to the more consistent
970 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
971 not 1. Code to temporarily disable NO_HELP when in the
972 help system. (Adam Rogoyski)
973- cut.c:
974 do_marked_cut(), do_cut(), do_uncut():
975 - Commented out unnecessary bits when NANO_SMALL is being used.
976- winio.c:
977 xpt(), strlenpt(), actual_x():
978 - Added check for value of data[i] & 0x80, if so do not make
979 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
980 edit_refresh():
981 - New check for temp == NULL (bad thing), if so go back to the
982 previous line. New filestruct var hold points to prev line.
983 Fixes segfault when paging down to the end of a file.
984- nano.c:
985 write_file():
986 - Added check for if file exists and is not equal to the current
987 filename, prompt for overwrite (Adam Rogoyski).
988 do_down():
989 - Removed check for current->next == NULL, now checks return value
990 of do_down before setting current_x = 0 (discovered by Adam).
991 do_justify():
992 - Fixed segfault when reaching the last line (tried to assign
993 currrent->next->data when current->next == NULL) (discovered
994 by Adam).
995- utils.c:
996 - Removed extra macro defs that are now in nano.h.
997- nano.h:
998 - Changed macro SET() to use |= instead of ^=. Fixes bug in
999 cut code when cutting more than one line, and cutbuffer gets
1000 blown away when it shouldnt.
1001
1002nano-0.9.3 - 04/29/2000
1003- cut.c:
1004 do_marked_cut():
1005 - Fixed off by one error in cut code for marked text.
1006 do_cut_text():
1007 - Removed check for being on the last line, part of
1008 magic line code.
1009 add_to_cutbuffer():
1010 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
1011 - Added inptr->prev = NULL for case where cutbuffer == NULL.
1012- nano.c:
1013 do_backspace(), do_char():
1014 - Removed "magic line" code. It was basically causing more bugs
1015 than it was helping for the sake of compatibillity. This fixes
1016 at least one known segfault condition.
1017 do_enter():
1018 - Added setting editbot to new node if the new node is the last
1019 node in the file.
1020 write_file():
1021 - Changed writing file bahavior. Now, if last line of the file
1022 has any data on it, we write a newline on it, else we dont.
1023- winio.c:
1024 add_marked_sameline():
1025 - New code that checks for whether the begin and end of the marker
1026 are on different lines. Missing previously.
1027 edit_add():
1028 - added some more checks for text length. Cleaned up some mvwaddnstrs that
1029 could be written more simply as waddnstrs.
1030 edit_refresh():
1031 - Removed check for temp == filebot, it is now treated like any other line.
1032 Fixes a bug where selected text on the last line shows normally.
1033 xpt():
1034 - Removed an extra computation for tabs variable that was incorrect.
1035 xplustabs():
1036 - Since xpt now actualy works, this func is now just a wrapper for
1037 xpt(current, current_x)
1038- nano.1, nano.1.html:
1039 - Added -l option to man pages.
1040- configure.in:
1041 - New option --enable-tiny, #defines NANO_SMALL in config.h.
1042 Disables call to gettext in functions and other i18n stuff in
1043 nano.c, the detailed help mode, the resize functions, and the
1044 justify code which no one ever uses.
1045 - New option --with-slang. Enables slang libraries instead of
1046 ncurses, requires slcurses.h for wrapper functions. (Based
1047 on patches for 0.8.7 by Glenn McGrath).
1048
1049nano-0.9.2 - 04/15/2000
1050- This release just fixes the serious segfault problem if nano is
1051 invoked any way other than using the absolute path. The bug was
1052 in the new code for checking whether nano is invoked as pico.
1053
1054nano-0.9.1 - 04/14/2000
1055- Added pico compatibility for ^T when in search or switch to switch
1056 to the opposite function. Added one to REPLACE_LIST_LEN and
1057 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
1058 new strings that will have to be gettex()ed. New argument 'replacing'
1059 to search_init(). Handlers in do_replace and do_search().
1060- New write code, now follows symbolic links instead of replacing them
1061 with the new file. New option (-l, --nofollow) to enable the old
1062 (incorrect, but secure) behavior (Adam Rogoyski).
1063- nano.c:
1064 do_wrap():
1065 - Fixed another bug relating to wrapping, and which would cause
1066 a segfault *sigh*.
1067 do_replace():
1068 - Incremented current_x by the length of the replacement
1069 text inside the main repalce loop. Fixes bug #15.
1070 add_marked_sameline():
1071 - New function, handles marked text when start & end of marker is
1072 on one line, also supports most marked text when cursor > COLS.
1073 main():
1074 - Code to check if nano is invoked as 'pico', and if so
1075 automatically set pico_msgs (Robert Jones).
1076
1077nano-0.9.0 - 04/07/2000
1078- nano.1, nano.1.html: Updated man page with my email address and homepage.
1079- winio.c:
1080 reset_cursor(), update_line():
1081 - Changed update algorithm for x value to (COLS - 7) multiple when x
1082 value > (COLS - 2).
1083- edit_refresh():
1084 - Removed inner loop code, now calls update_line() for each line
1085 in question, MUCH nicer.
1086- xplustabs(), xpt():
1087 - Removed redundant increment of tabs when collumn no % 8 == 0.
1088 - Added check for data[i] < 32, most of such bits are 2 chars wide.
1089- update_line():
1090 - Fixed a stupid call to strlenpt with col when we should have
1091 been using actual_col. Ugh.
1092
1093nano-0.8.9 - 03/22/2000
1094- nano.c:
1095 empty_line(), no_spaces(), justify_format(), do_justify():
1096 Actually added these (screwup applying patch).
1097 do_justify(): Added call to set_modified().
1098
1099nano-0.8.8 - 03/12/2000
1100- Preliminary internationalization support. Many many functions modified
1101 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
1102 New dirs po/ and intl/, changes to configure.in and Automake.am to
1103 support i18n.
1104- nano.c:
1105 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
1106 statics: Changed some things that were not necessarily static
1107 (Adam Rogoyski).
1108 nrealloc(): New function, similar to nmalloc(). Changed calls from
1109 realloc() to nrealloc (Adam Rogoyski).
1110 empty_line(), no_spaces(), justify_format(), do_justify():
1111 New functions for justify function (Adam Rogoyski).
1112- winio.c:
1113 blank_edit(): Added wrefresh call to edit so that screen updates (like
1114 on ^L) actually work.
1115 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
1116
1117nano-0.8.7 - 03/01/2000
1118- main.c:
1119 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
1120 to a single character on one line when no good place to
1121 break the line exists, and for wrapping lines longer than COLS.
1122- nano.1.html:
1123 Html version of man page, now included in dist. For
1124 the benefit of nano packages in Linux distributions.
1125
1126nano-0.8.6 - 02/24/2000
1127- gobal.c:
1128 shortcut_init():
1129 Added shortcuts for goto_line and do_replace when using
1130 pico_msgs. Oops.
1131- nano.c:
1132 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
1133 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
1134 Removed check for backing up past spaces first.
1135 main(): Added for loop to check for alt keys instead of hard list.
1136 do_enter(): Fix for bug #14, added call to reset_cursor and messed
1137 up do_char quite a bit.
1138 version(): Added time and date stamp for compile on version message.
1139 Added mail and web page info.
1140- README: Updated mailing list info.
1141
1142nano-0.8.5 - 02/18/2000
1143- nano.c:
1144 main(): Finally fixed tilde being input on page up/down keys in
1145 certain terminal types. Fix was input 26->91->5[34] check
1146 for 126, if so make the kbinput PAGE UP/DOWN, else unget
1147 the keystroke and continue. Added #include <ioctl.h> for
1148 ioctl call.
1149 handle_hup():
1150 Handler for hangup signal. Belated include of patch from
1151 Tim Sherwood.
1152- winio.c:
1153 edit_refresh():
1154 Temporary fix for selecting text when temp == current.
1155 edit_refresh() is now unmanagably complex, and must be
1156 revamped.
1157 check_statblank():
1158 Added check for constupdate, makes things less choppy
1159 (Adam Rogoyski)
1160
1161nano-0.8.4 - 02/11/2000
1162- Moved global variables that were only (or mostly) used in one file into
1163 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
1164- global.c:
1165 shortcut_init():
1166 Removed redundant NANO_CONTROL_H from backspace shortcut,
1167 added char 127 which should have been there.
1168- nano.c:
1169 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
1170 segfaults (Adam Rogoyski).
1171- Makefile.am: Added all source filenames (Adam Rogoyski).
1172- nano.1: Fixed mail addressed and added mailing list address.
1173- README: Updated my email address and the nano web page.
1174
1175nano-0.8.3 - 02/08/2000
1176- New pico mode (-p, --pico), toggles (more) compatibility with the
1177 Pico messages displayed in the shortcut list. Note that there are still
1178 small differences in this mode.
1179- nano.h: New shortcut struct format, for the benefit of i18n and
1180 our help menu. Removed shortcut message macros, they are
1181 now all in shortcut_init in global.c.
1182- nano.c:
1183 do_wrap(): Removed resetting of current_x when we are in fact
1184 wrapping to the next line, fixes a bug in -i mode.
1185 do_enter():
1186 Rewrote the autoindent mode code to be a lot less pretty,
1187 but a lot more magical.
1188 main():
1189 Removed case for ignoring char 126 (~). That's kind of
1190 important, we'll have to fix handling that sequence when
1191 pageing up/down on a terminal some other way... Revamped
1192 main switch loop in much snazzier fashion based on the
1193 shortcut list.
1194- winio.c:
1195 New function display_main_list. Affects all functions
1196 that used to call bottombars() with main_list. Added
1197 because we now only call bottombars with the macro
1198 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
1199 changes to the main_list shortcut list (see global.c below).
1200 New function do_help, our preliminary dynamic help system.
1201- Many many funcs:
1202 Changed from int to void to allow one uniform type to call
1203 from the shortcut struct. Also a few functions that do
1204 not simple have void argument have new functions called
1205 funcname_void(void) to be called from the shortcut list.
1206 do_cut_text and do_uncut_text were changed to void
1207 arguments because they were never called with a filestruct
1208 other than *current anyway.
1209- global.c:
1210 Shortcut list main_list was expanded to cover all
1211 shortcuts that could be caught in the main loop.
1212 Consequently there is a new macro MAIN_VISIBLE which tells
1213 how many items in the main list to actually show.
1214
1215nano-0.8.2 - 02/02/2000
1216- Added initial mouse (-m, --mouse) support. New global variable
1217 use_mouse. (Adam Rogoyski)
1218
1219- nano.c: Set intial value of fill to COLS - 8 rather than just 72
1220 regardless. (Adam Rogoyski).
1221 do_delete():
1222 Deleted call to do_backspace() when on the end of a line,
1223 because it won't update the line properly.
1224 do_backspace():
1225 Removed unnecessary pointer manipulation that was being
1226 handled by unlink_node().
1227 open_file():
1228 Added check for trying to open a directory (currently we
1229 segfault on this). Bug pointed out by Chad Ziccardi.
1230
1231nano-0.8.1 - 01/28/2000
1232- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
1233 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
1234 global.c and proto.h.
1235- nano.c:
1236write_file(): Added (incredibly) necessary check for EPERM when
1237 link() fails. This allows us to actually save
1238 files via rename() on filesystems that dont
1239 support hard links (AIEEEEEE).
1240do_goto():
1241 Fixed a stupid mistake where we were calling
1242 bottombars() with replace_list instead of goto_list.
1243- nano.h:
1244 New char *help in shortcut structure for help
1245 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
1246 for help function and i18n.
1247- global.c:
1248 New functions shortcut_init (called in nano.c) and
1249 sc_init_one() to initialize the shortcuts without
1250 using {}s (for i18n).
1251
1252nano-0.8.0 - 01/25/2000
1253- View flag (-v, --view) implemented. Global variable view_mode, affects
1254 main loop of nano.c and new_file(). (me)
1255- nano.c:
1256 split checks for TERMIOS_H and TERMIO_H up so we
1257 can (theoretically) include them both, which is good.
1258handle_sigwinch():
1259 Added check for ncurses.h. (Andy Kahn)
1260do_spell():
1261 We now only try ispell because we don't as of yet
1262 handle the 'spell' program the right way, now that
1263 I finally know what the right way is =-). Added
1264 call to edit_update(fileage) to stop segfaults.
1265global_init():
1266 Added initialization of edit* filestruct pointers
1267 to stop segfaults on spell check.
1268usage():
1269 Check for getopt_long, and if no leave out the
1270 GNU options everyone seems to love so much (Andy Kahn)
1271main():
1272 Added checks for getopt_long (Andy Kahn)
1273 We ignore character 126 because it gets put into
1274 the buffer when we page up/down on a vt terminal.
1275write_file():
1276 Fixes for umask (Adam Rogoyski). Renamed tmpfile
1277 variable to tmp. Documented the tmp opttion
1278 better in the function comments. Fixed my
1279 stupidly commented out check for tmp on setting
1280 umask which I really like =>
1281- nano.h:
1282 Made desc variable in shortcut struct a pointer
1283 instead of a fixed-length string.
1284- utils.c:
1285 Fixed check for config.h before nano.h.
1286- configure.in:
1287 New checks for getopt_long, getopt.h, removed
1288 CFLAGS and LDFLAGS changes. Gonna have to run
1289 strip manually now =-) (Andy Kahn)
1290 Added check for HAVE_WRESIZE, new file acconfig.h (me).
1291
1292nano-0.7.9 - 01/24/2000
1293- New autoindent feature. Command flag 'i' or '--autoindent'. New
1294 function do_char() to clean up character output, global
1295 variable autoindent in global.c. (Graham Mainwaring)
1296- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
1297 files on exit without prompting. Affects do_writeout(). Also
1298 do_writeout() now takes a parameter for if exiting.
1299 Global variable temp_opt in global.c (Graham Mainwaring)
1300- Preliminary spell program support. Added command flag '-s' or
1301 '--speller' for alternative speller command. Added function do_spell()
1302 and exit_spell() to nano.c. New global variable alt_speller.
1303- nano.c:
1304 main(): We now ignore input of decimal 410 because these get entered
1305 when we resize the screen. Sorted options in getopt()
1306 switch statement.
1307 usage(): Sorted options and changed tabs to make room for -s option.
1308 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1309 doesn't print the number of lines written on the statusbar.
1310 global_init():
1311 Added more initializations to globals to support do_spell().
1312
1313nano-0.7.8 - 01/23/2000
1314- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1315- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1316 and main() in nano.c
1317- Removed redundant reset_cursor() calls from the blank() routines.
1318- nano.c:
1319 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1320 Removed check for isprint() characters in main while loop
1321 for people with odd character sets *shrug*. Added some X
1322 window F-key combos.
1323 read_line(): New function, consolidates of most of the special
1324 sections of the file reading code. (Rob Siemborski)
1325 do_replace(): Many scattered fixes. (Rob Siemborski)
1326 write_file(): Added check for empty filename.
1327- winio.c:
1328 nanogetstr(): Fixes for deleting at places other than the end of the
1329 buffer, cut support. (Adam Rogoyski)
1330 blank_edit(): New function, blanks edit buffer. Added call to it in
1331 total_refresh().
1332- configure: Checks for glib if snprintf of vsnprintf aren't available
1333 (Andy Kahn). Changed warning message when no termcap lib
1334 is found.
1335
1336nano-0.7.7 - 01/19/2000
1337- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1338 mode (affects getopt() in main() and usage() function in nano.c
1339- New flag -c, always show cursor position. Affects main() in nano.c and
1340 statusbar() in winio.c
1341- Option '-x' doesn't show help window at the bottom of the editor.
1342 New variable no_help in nano.h and proto.h, affects main(), usage(),
1343 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1344 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1345 hand =P) (Adam Rogoyski)
1346- nano.c:
1347 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1348 page_up(), page_down():
1349 - New functions. We now set the cursor at the top right corner,
1350 not at the center line, and page up and down a full screen
1351 rather than a half screen. Original functions renamed to
1352 page_up_center() and page_down_center().
1353 main():
1354 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1355 in main while loop because suspend mode was broken. This should
1356 fix it, at least for now.
1357 - Added long option support (By popular harassment ;-) - Added
1358 #include for getopt.h, changed getopt() to getopt_long().
1359 Options added so far: --version (-V), --nowrap (-w), --suspend
1360 (-z), --help (-h), --nohelp (-x).
1361 - Rewrote signal statements (Adam Rogoyski)
1362
1363nano 0.7.6 - 01/15/2000
1364- New ChangeLog format
1365- nano.c:
1366 main(): Bound CONTROL_H to backspace (oops)
1367 Added more Alt-[-key combinations, for page up & down.
1368 read_bytes(): New function (Adam Rogoyski)
1369 read_file(): Optimizations - malloc()s *buf a little at a time rather
1370 than one huge buffer, and replaced the strcat at the end
1371 with an index variable. Added call to read_bytes().
1372 do_next_word(): New function, binding is control-space (0) (me)
1373
1374- winio.c:
1375 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1376 (formula is extra space needed = COLS / 6 - 13).
1377 actual_x() & strlenpt():
1378 Added bug#9 fix - when tabs % 8 == 0, we should only
1379 increment tabs by 1.
1380 titlebar(): Fixed overrun in titlebar on very long filenames.
1381
13820.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1383 writing a newline at EOF. do_cursorpos and do_replace are now not
1384 directly bound to signals but picked up as their control sequences
1385 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
13860.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1387 available memory, align bug fixed (Big Gaute).
1388
1389--- As of version 0.7.4 TIP is renamed to nano.
1390
13910.7.3 Fixed a double blank_statusbar() when jumping to first and last
1392 lines. Took out unnecessary updates in load_file. Bug fix in
1393 do_left. Missing updates to totlines, fixed bug #7 (last line not
1394 having a newline at the end doesnt get read, bugfix in do_replace
1395 with replace all, more/better comments (Robert Siemborski)
13960.7.2 Our first patch accepted into the source! configure fixes
1397 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1398 Bug fix in update_line for editing long lines. Fixed arguments
1399 being put into the filename when none is specified. Preliminary
1400 +line command argument function.
14010.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1402 edit_refresh to stop cursor "jumping" during screen updates. This
1403 will probably cause a bug or two. Replace is now Alt-R (@R) and
1404 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1405 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1406 Control-G will become the Help key, but for now is stubbed out.
14070.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1408 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1409 length file. Added Esc-[-A,B,C,D cursor key sequences.
14100.6.9 Preliminary cursor position function. Split up tip.c more, made
1411 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1412 that was leaving out a character.
14130.6.8 By request, optchr in main() is now an int. Removed unneeded
1414 globals. Bound functions for next/prev page, and wrote functions
1415 do_home and do_end.
14160.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1417 created read_file. Implemented Insert File. Fixes in tipgetstr
1418 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
14190.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1420 aborted searches and more Pico-compatible messages. statusq() now
1421 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
14220.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1423 regarding buffers with filebot in them. Fixins in do_backspace
1424 and do_enter. Removed unused variables. Removed strip_newline.
14250.6.4 Took out the awful newlines from each string buffers. This will
1426 certainly cause more bugs. Fixes in do_exit(). Better empty file
1427 handling (I hope).
14280.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1429 do_enter() rewritten.
14300.6.2 Better default file permissions. Complete rewrite of do_wrap().
1431 Better handling of editing with cursor near COLS - 1.
14320.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1433 codes being entered into the buffer. Bug fix in actual_x; more
1434 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1435 locked into cutbuffer when cutting more than one marked screen of text.
14360.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1437 width on the screen we want to be, not an index of current->data.
1438 New functions xplustabs and actual_x convert the actual place
1439 the cursor should be on the screen to and from the place in the
1440 string.
14410.5.5 Changed do_right to test do_down before setting current_x to 0,
1442 eliminiating the "looping" on the last line when holding the right
1443 arrow. Preliminary support for longer than COLS - 1 lines.
1444 Wrote do_delete.
14450.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1446 tipgetstr is much more messy but text is now more editable ;)
1447 Fixed crash on entering a new file, hopefully. Awful stub for tab
1448 handling, only in do_right() to save me some sanity.
14490.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1450 Fixed a few bugs in do_uncut when not uncutting from marked text.
1451 I would not trust your data with the mark code right now, but then
1452 we're not at version 1.0 yet so dont trust anything ;)
14530.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1454 jump after each keystroke entered. Select text stubbed. Fixed
1455 a bug in total_refresh(). Setting a mark will hilight properly,
1456 but does not actually affect what gets put in the cutbuffer (yet).
14570.5.1 Writing a file out causes modified to be set back to 0. Good.
1458 Set_modified function written. Cut and uncut text now set
1459 modified when called.
14600.5.0 Half way there! Implemented write out, save function seems
1461 stable. Changed statusbar blank routing to not refresh, a separte
1462 program calls it and then refreshes. Made the program not clear
1463 the srceen on exit, just the bottom two lines (like Pico).
14640.4.2 Implemented replace all in replace function. Crude exit function
1465 (asks yes or no if modified but does not write to file).
14660.4.1 Implementing search & replace. Fixed crash on deleting at top of
1467 edit buffer. Implemented "timeout" of statusbar messages.
1468 Implemented ^A and ^E (beginning and end of line).
14690.4.0 Split code into global.c and proto.h to allow for better multiple
1470 file handling. Added #defines for the majority of the shortcut
1471 kets in tip.h for easy modification.
14720.3.1 Write edit_refresh which doesn't move the screen around, just
1473 updates what's there already. do_wrap() and do_enter() added.
14740.3.0 Preliminary cutbuffer (cut and uncut) support.
14750.2.7 Check for Modification added. do_search() works.
14760.2.5 Rewrite of file data struct.
14770.2 Read in data to buffer, bound keystrokes to stub functions,
1478 initial cursor movement on screen. Initial autoconf support.
14790.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001480
1481$Id$