blob: 0613bc962193ad554c6a7771481b11e91eeec45b [file] [log] [blame]
Chris Allegretta76745fb2001-01-18 04:40:06 +00001CVS code -
Chris Allegretta17dcb722001-01-20 21:40:07 +00002General
Chris Allegrettad4ddd012001-01-23 01:17:07 +00003 - Removed center_x and center_y globals. center_y was
4 completely unused and center_x was only used a few places,
Chris Allegretta17276e52001-01-23 01:22:32 +00005 easily replaced with COLS / 2 (oops, not current_x & y (Rob)).
Chris Allegretta17dcb722001-01-20 21:40:07 +00006 - Deleted free_node, duplicate of delete_node, and changed all
7 free_node calls to delete_node.
Chris Allegretta08020882001-01-29 23:37:54 +00008 - Fix for resizing the window in modes other than normal edit mode
9 Changes to handle_sigwinch(), main(). Fixes bug #52 (Rocco).
Chris Allegretta0fc2b812001-01-18 15:04:20 +000010- files.c:
11 write_file()
12 - Don't free() realname on error, if it needs to be free()d later
13 it will be (fixes crash on successful write after failed write,
14 discovered by David Sobon).
Chris Allegretta8d9b11a2001-01-19 04:17:24 +000015 username_tab_completion()
16 - Optimization and removal of useless vars (Rocco).
Chris Allegretta2c2c5f22001-01-23 03:27:31 +000017 - Rewritten using getpwent (suggested by Rocco).
Chris Allegrettaa711f7e2001-01-23 04:16:31 +000018 - Removed redundant conditional (Rocco).
Chris Allegrettaee733e62001-01-22 22:17:08 +000019 real_dir_from_tilde()
Chris Allegrettae5e4d492001-01-23 03:09:15 +000020 - Rewritten using getpwent (suggested by Adam, much optimized by Rocco).
Chris Allegrettaf0b26df2001-01-20 22:18:18 +000021- global.c:
22 - Don't define toggles global or toggle_init_one if using --tiny.
Chris Allegretta17dcb722001-01-20 21:40:07 +000023- nano.c:
24 do_justify()
25 - Added restoration of totsize after unjustify command.
Chris Allegretta7f7ce562001-01-21 16:35:49 +000026 usage()
Chris Allegrettae9a2d032001-01-21 16:08:21 +000027 - Add arg to -T help (Rocco).
Chris Allegretta0a06e072001-01-23 02:35:04 +000028 global_init(), handle_sigwinch()
29 - Messy loops replaced with memset calls (Rocco).
Chris Allegretta169ee842001-01-26 01:57:32 +000030 do_alt_speller()
31 - Added code to parse multi-word alt_speller strings.
Chris Allegrettae434b452001-01-27 19:25:00 +000032 - Fix initialization before fork() (Rocco).
33- winio.c:
34 nanogetstr()
35 - Sanity check for x overrunning the string buffer len.
Chris Allegretta76745fb2001-01-18 04:40:06 +000036
Chris Allegretta9d6f3f32001-01-21 02:35:03 +000037nano 0.9.99pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +000038General
39 - Changed #ifdefs to check for both DISABLE_TABCOMP and
40 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +000041 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +000042 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +000043 back. (Rocco)
44 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +000045 - Added message for when keypad goes awry. Added code in main and
46 function print_numlock_warning() to notify user, and added an
47 apropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +000048 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +000049 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +000050- configure.in:
51 - Fix for _use_keypad check breaking slang support (Christian
52 Weisgerber).
Chris Allegretta4ee0b412001-01-11 15:11:00 +000053 - Changed to automatically define the 5 DISABLE varibles when
54 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +000055- faq.html:
56 - Added some info on making the binary smaller with the configure
57 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +000058 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +000059- files.c:
60 real_dir_from_tilde()
61 - Oops, fix case where buf ="~", silly crash (bug discovered by
62 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +000063 do_browser()
64 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +000065 cwd_tab_completion(), input_tab()
66 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +000067 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +000068- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +000069 ABCD()
70 - New function, figures out what kbinput to return given
71 input common to several switch statements, allows us to
72 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +000073 main()
74 - Alternate speller option no longer valid if DISABLE_SPELLER is
75 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +000076 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
77 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +000078 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +000079 nano_small_msg()
80 - This function has been removed. All references now call
81 nano_disabled_msg. (Rocco)
82 version()
83 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
84 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
85 reported as enabled when Nano is called with -V (--version)
86 command-line option. (Rocco)
87 usage()
88 - Alternate speller option no longer valid if DISABLE_SPELLER is
89 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +000090 window_init(), handle_sigwinch()
91 - Added check for not having enough LINES to do anything useful,
92 if so die with an error. (Rocco)
93 die_too_small()
94 - Function to print the window too small error message, avoids
95 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +000096 do_justify()
97 - Small fix for totsize calculation (Rob)
98
Chris Allegrettad9742c62001-01-12 15:51:53 +000099- fi.po:
100 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +0000101
Chris Allegretta16991442001-01-07 22:06:11 +0000102nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000103General -
104 - New file browser code. New functions in files.c:do_browser(),
105 helper functions browser_init(), tail(), striponedir(),
106 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +0000107 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +0000108 - Keypad code has been changed slightly. Now checks for
109 _use_keypad flag in window to see whether or not to turn
110 the keypad() back off when finished (taken from aumix). Moved
111 to winio.c where it should probably be anyway. New confgure
112 check for _use_keypad in window sstruct. This will have to do
113 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +0000114 - Moved keypad() calls for PDCURSES from main() to window_init()
115 so the keypad continues to work after a Meta-X, for example.
116 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +0000117- faq.html:
118 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000119- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000120 username_tab_completion()
121 - Added the (char *) sizeof when allocating memory for the filename
122 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +0000123 cwd_tab_completion()
124 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +0000125 - Added the (char *) sizeof when allocating memory for the filename
126 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000127 do_writeout()
128 - Now takes an argument so the string typed in can be retained
129 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +0000130 do_browser()
131 - Don't decrement longest by the length of path. Fixes crashes
132 on entering various dirs (Rocco).
133 - Don't ungetch() the exit key, unneeded, fixes inerting a file
134 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +0000135- move.c:
136 page_down()
137 - Don't do an edit_update when there is only one page of text
138 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +0000139- nano.c:
140 main()
141 - Reorder the getopt options to be more or less alphabetical
142 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +0000143- winio.c:
144 do_cursorpos()
145 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +0000146 do_credits()
147 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000148 titlebar()
149 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +0000150 do_help()
151 - Changed way of temporarily bringing up shortcuts at the
152 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +0000153- utils.c:
154 mallocstrcpy()
155 - Takes char pointers now instead of void (makes debugging a
156 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000157 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +0000158- es.po:
159 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +0000160
Chris Allegretta66149e72000-12-19 02:51:06 +0000161nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +0000162General
163 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +0000164 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +0000165 - Changed filename to no longer use PATH_MAX, so it can work on the
166 HURD. Changes in files.c:write_file(), new function
167 nano.c:clear_filename(), many changed in main(), a few other
168 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000169 - Added -b, -e, and -f flags, which we ignore as nano provides
170 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000171- cut.c:
172 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000173 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000174 - Fix screen not being displayed when we are uncutting marked
175 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000176 - Fix magic line not getting created when (you guessed it)
177 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +0000178- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +0000179 read_file()
180 - If we encounter an error and insert is not set, run new_file().
181 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +0000182 write_file()
183 - Change open call flags, basically copy joe's way of doing it so
184 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +0000185 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +0000186 open_file()
187 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +0000188- nano.c:
189 renumber()
190 - Dont stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000191 main()
192 - Added code to check for Alt-Alt (27-27) keystrokes and set the
193 next keystroke as a control sequence. New variable
194 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
195 around Control-S,Q,Z handlers because we need it now for
196 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +0000197 - Added --view option to getopt_long()call . Bug discovered
198 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +0000199 help_init()
200 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta92325e72000-12-18 03:44:22 +0000201 ^_ in pico mode not be displayed in the help (bug discovered by
202 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +0000203 do_toggle()
204 - Added fix_editbot() call to fix improper redisplay of edit
205 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000206- nano.1, nano.1.html:
207 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +0000208- winio.c
209 do_help()
210 - Force keypad on so F-keys and PageUp/Down will work properly.
211 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000212- utils.c:
213 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +0000214 - Increment totsize!! We decrement it when we've read a file,
215 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +0000216
Chris Allegrettab29550e2000-12-09 03:34:12 +0000217nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +0000218General
219 - Changed --disable-spell to --disable speller. The term is
220 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +0000221- files.c:
222 write_file()
Chris Allegretta20c131c2000-12-04 04:20:09 +0000223 - Added tmp check to TMP_OPT section (how apropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +0000224 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +0000225 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +0000226 - We now run check on result of lstat(), not stat(), to be
227 safer. New variable anyexists, we use still use realexists
228 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +0000229 - OOPS, line up link/unlink/rename check if conditional with
230 top if conditional. Option -l has been broken for 9 versions,
231 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +0000232 - Added saving perms at end of link so we can apply them to the
233 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +0000234- winio.c:
235 edit_add()
236 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +0000237 do_replace_highlight()
238 - New code to handle being past COLS (Roco Corsi).
239 - Moved from search.c, as it's definitely a winio function now =)
240 update_line()
241 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +0000242
Chris Allegrettafedd7242000-12-03 03:15:38 +0000243nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +0000244- General
Chris Allegrettabe77c612000-11-24 14:00:16 +0000245 - Username tab completion code, and cleaned up existing tabcomp
246 code. New functions real_dir_from_tide(), append_slash_if_dir(),
247 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +0000248 - Ignore key sequence 543 & 545, right control and alt keys in
249 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +0000250 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
251 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +0000252 - New function nano_disabled_msg(), to alert that certain
253 functions have been disabled, similaer to nano_tiny feature.
254- New configure options:
255 - Added configure argument --disable-tabcomp. Affects
256 bottom of files.c and write_file, utils.c:check_wildcard_match()
257 and winio.c:nanogettsr().
258 - New options --enable-extra. New code in nano.c:version() to
259 print out various options from ./configure, function do_credits().
260 - Added --disable-spell option for those who want to just disable
261 the spell check feature. Affects the spellinf fucntions
262 do_spell, do_int_speller and do_alt_speller.
263 - Added --disable-justify to get rid of the justify function.
264 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +0000265- files.c:
266 write_file()
267 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +0000268 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +0000269 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +0000270 - Added call to real_name_from tilde, oops. Added check for
271 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +0000272 read_file()
273 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +0000274- global.c:
275 shortcut_init()
276 - Now takes an argument as to whether to display the unjustify
277 shortcut or the normal uncut text one. Needed to accomodate
278 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000279- nano.1, nano.1.html:
280 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +0000281 - Added "NOTES" section, where I explain what nano.save & friends
282 are.
283 - Added a copyright notice for the manpage, under the GPL.
284 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +0000285- nano.c:
286 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000287 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
288 text there, then grabs the next keystroke and, if the unjustify
289 key, gets rid of the justified text and calls do_uncut_text.
290 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000291 do_int_spell*
292 - Various fixes (Rocco Corsi).
293 - Changed abort of program to aborting based on value of "edit a
294 replacement" question, and not caring about the replace loop
295 return value. That way the user can get out of the replace loop
296 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +0000297 version()
298 - Took out huge check for the various --disabled macros,
299 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +0000300 nano_small_msg(), nano_disabled_msg()
301 - Added checks for disabled functions to see whether or not to
302 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +0000303 do_next_word()
304 - Update the previous line as well as the current one in case we
305 have moved beyond COLS or back from COLS, patch submitted
306 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +0000307 die()
308 - Now creates .save file using variable-length strings. Also
309 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +0000310 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +0000311 handle_sighup()
312 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000313- search.c:
314 do_replace_hilight()
315 - New function, displays the currently selected word as hilighted
316 in the spell check. Called from do_replace_loop (Rocco Corsi).
317 - Added calls to curs_set(0) and (1) to diable the cursor when
318 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +0000319- es.po:
320 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +0000321
Chris Allegrettaca7a21d2000-11-24 01:35:40 +0000322nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +0000323- AUTHORS
324 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +0000325- nano.c:
326 main()
327 - Changed check for argc == 1 to argv[optind] == NULL to decide
328 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +0000329- search.c:
330 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +0000331 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +0000332 search_init()
333 - Silly typo in our "one simple call" of statusq. Stopped
334 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +0000335 do_replace()
336 - Copy back the previous value of last_replace into answer if
337 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +0000338- winio.c:
339 do_up()
340 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +0000341- nano.1, nano.1.html
342 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +0000343
Chris Allegretta6da149a2000-11-19 02:23:03 +0000344nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +0000345- General
346 - Ran source through indent -kr again. Make everything pretty.
347 - Changed behavior of "search" and "replace" prompts to make all
348 previous values editable. This change was made so that you can
349 replace with the null string without needing a special key for it.
350 changed code in search_init(), do_replace(), nanogetstr (see
351 below).
352 - Added some missing gettext calls here and there (Jordi).
353 - Revamped nanogetsr() and calls to it to use variable length strings.
354 MANY changes in nanogetstr(), many chances in search.c, new
355 function mallocstrcpy which is sure to be a programmatic
356 nightmare, changed last_search, last_replace, answer to
357 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +0000358 truncated strings in satusbar when the string is not found
359 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000360 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +0000361 - New spelling code by Rocco Corsi. New functions
362 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
363 New functions search_init_globals and do_replace_loop, changes
364 to search_init(), do_replace, findnextstr, moved last_search and
365 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +0000366 - New tab completion code. Used check_wildcard_match, input_tab,
367 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +0000368 hacked them a lot, changes to nanogetstr(). nanogetstr() and
369 statusq() now take an arg for whether or not to allow tab
370 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +0000371 - Fixed value being input in statusbar during a search or replace
372 and CASE_SENSITIVE or the other search is called and the
373 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000374 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
375 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000376- files.c:
377 do_writeout()
378 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000379- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000380 - New global replace_list_2, for 2nd half of the replace dialog
381 ("Replace with:"), has fewer options than first half because
382 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000383 toggle_init()
384 - Added #ifdef around toggle_regex_msg to get rid of compiler
385 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000386
387- nano.c:
388 keypad_on()
389 - New function, toggles turning the keypad on and off in edit and
390 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000391- search.c
392 findnexstr()
393 - New arg for begin_x variable, basically a rewrite that
394 makes a little more sense and isn't quite as messy (Rocco Corsi).
395 - Update the line we're checking if not the whole screen, because
396 it's quite possible the search team could exist somewhere way
397 to the right on the same line, for example.
398 replace_abort()
399 - Add reset of placewewant, stops cursor from jumping when moving
400 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000401 do_replace()
402 - Added code for Gotoline key after entering the search term.
403 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000404 - Removed redundant code involving processing replacemenet string.
405 Converted if statements to switch statements.
406 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000407 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000408 do_search()
409 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000410- winio.c
411 nanogetstr()
412 - Added check for 343 in while loop to get rid of getting "locked"
413 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000414 - Changed check to return -2 on "enter" from answer == ""
415 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000416 - Fixed fallthrough code because there was no break. Make much
417 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000418 - Added check for ASCII 54[124] when using PDCURSES, ignore them
419 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000420 nanoget_repaint()
421 - New function, removes about 30 lines of duplicate code in
422 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000423 - Black magic code to make $ appear in prompt if we're past
424 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000425 blank_edit()
426 - Removed wrefresh() call, much less choppy now. If there's a need
427 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000428- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000429 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000430
Chris Allegretta07e97d62000-10-03 01:52:50 +0000431nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000432- General
433 - Added PDCurses support under cygwin, which allows building
434 a nice stand-alone nano.exe for those poor Windows users.
435 Extra check in configure.in for initscr() in -lcurses (as
436 PDcurses has no tgetent), some #ifdef PDCURSES statements
437 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000438 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000439- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000440 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000441 main()
442 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000443- search.c
444 - Added initializations for last_search and last_replace (Rocco Corsi)
445
Chris Allegretta629edad2000-09-19 00:27:19 +0000446nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000447- General
448 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
449 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000450- configure.in:
451 - Added default case for cross-compiling to get rid of annoying
452 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000453- cut.c:
454 do_cut_text()
455 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000456 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000457- files.c:
458 open_file()
459 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000460- global.c:
461 shortcut_init()
462 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000463- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000464 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000465 - Added check for _POSIX_VDISABLE and use raw mode if not
466 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000467 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000468 - Revamped a great deal of the F-key and keypad key handling,
469 because we not longer use keypad() (see below).
470 - Removed keypad() call because nano was not working with the
471 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000472 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000473 do_toggle()
474 - Rewrote function to allow NOHELP toggle to wotk on systems
475 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000476 mouse_init()
477 - Add keypad only if mouse support is on, otherwise mouse doesn't
478 work. I guess you have to choose between having the mouse and
479 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000480- winio.c:
481 total_refresh()
482 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000483 onekey()
484 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000485
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000486- search.c:
487 findnextstr()
488 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000489- es.po:
490 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000491- de.po
492 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000493
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000494nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000495- General
496 - New shortcuts to toggle certain options that are normally only
497 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
498 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000499 called from shortcut_init(), and do_toggle in nano.c. Also
500 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000501 signal_init(). Moved "struct sigaction act"into a static in
502 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000503 - Changed from Alt-key symbol (@) which is completely nonstandard
504 to the *nix "Meta" symbol (M-). Changed help_init to show
505 the M-key usage and the help text to explain keys whcih generate
506 Meta. Moved the toggle Meta keystrokes to the first column
507 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000508 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000509 - Changed last_search and last_replace vars to statically
510 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000511- global.c:
512 toggle_init()
513 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
514 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000515- nano.c:
516 do_mouse()
517 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000518 do_wrap()
519 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000520 do_toggle()
521 - Added checks for no help and no wrap mode, and print opposite
522 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000523 do_suspend(), do_cont():
524 - New functions, handle suspend signal in a Pico-like manner and
525 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000526- winio.c:
527 total_refresh()
528 - Added edit_refresh() call to actually update the screen if messy.
529 edit_refresh_clearok()
530 - New function, does a total update for edit refresh, needed to fix
531 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000532 onekey()
533 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000534
Chris Allegretta6306a112000-09-02 07:55:41 +0000535 update_line()
536 - Added check for binary data >= 1 and <= 26, and use ^+letter
537 to display it. Should fix editing text files with binary
538 data in them. Placing of the cursor seems to be a bit screwed
539 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000540- search.c:
541 search_abort()
542 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
543 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000544 findnextstr():
545 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000546 - Fixed check for string that only occurs on the same line failing
547 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000548
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000549nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000550- cut.c:
551 do_cut_text()
552 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000553 - Added check_statblank().
554 - Check for fileptr == filebot, if so return, we shouldn't bother
555 cutting the magic line.
556 do_uncut_text()
557 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000558- nano.c:
559 main()
560 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000561- po/Makefile.in.in:
562 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
563 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000564- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000565 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000566
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000567nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000568- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
569 Affects many many functions. Removed functions edit_update_top and
570 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000571- Added global variable tabsize, we no longer screw with the curses
572 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000573- configure.in:
574 - Finally fixed check for slang to report "no" if not called
575 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000576- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000577 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000578 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000579 null_at()
580 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000581 delete_buffer()
582 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000583 do_backspace()
584 - Now calls page_up_center instead of page_up (as it should?)
585 do_enter()
586 - Fixed typo (?) in check for inptr->next. Caused lots of
587 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000588 main()
589 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000590- search.c:
591 replace_abort()
592 - redundant, now just calls search abort until it does something
593 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000594- winio.c:
595 edit_refresh()
596 - Added check for current line "running" off the screen.
597 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000598 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000599 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000600 edit_update()
601 - Rewritten, hopefully this will remove a lot of the
602 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000603- move.c:
604 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000605 - do an edit_update() at last case. Made function more like
606 Pico's version, only move down to two lines before editbot.
607 page_up()
608 - Made function more like Pico's version, only move down to two
609 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000610
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000611nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000612- nano.h:
613 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
614- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000615 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000616 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000617 - Simplified check for freeing cutbuffer. Added checks for doing
618 multiple cuts with -k, now sets marked_cut to 2 for later
619 processing by do_uncut_text().
620 do_uncut_text()
621 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000622- files.c:
623 write_file()
624 - Removed (redundant) check for writing out files with -t.
625 do_writeout()
626 - Changed check for filename to filename[0]. Added some code,
627 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000628- nano.c:
629 do_justify() & do_wrap():
630 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000631- de.po
632 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000633
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000634nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000635- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000636 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
637 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000638- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
639 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000640- move.c
641 page_down()
642 - Don't edit_refresh() if the bottom of the file is in the edit
643 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000644- nano.c:
645 main():
646 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000647 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000648 die():
649 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000650 do_spell():
651 - Changed exit semantincs a bit so that aspell wouldn't get
652 all screwy (bug disovered by Joshua Jensen.
653- files.c:
654 read_file():
655 - Added init of buf variable, hopefully this will stop the
656 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000657 write_file():
658 - Added code to check to see if using -l and the file is not
659 in fact a link. This should fix the behavior where a file
660 that does not have write permission but could be removed and
661 rewritten is saved without error. Please test this feature
662 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000663- search.c:
664 search_init():
665 - Added " (to replace)" statement to end of search string if
666 we are doing a replace. Manually converted all the translations
667 from '%s' to '%s%s' to ensure they still work with the new code.
668 Also put in the translation for " (replace)" in the .po's. Hope
669 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000670 do_search(), do_replace():
671 - Removed call to search_abort()/replace_abort() before call to
672 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000673 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000674 findnextstr()
675 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000676- fr.po:
677 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000678- es.po:
679 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000680
Chris Allegrettae955dae2000-07-07 22:24:59 +0000681nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000682- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000683 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
684 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
685 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000686 search_init() and do_replace() and strstrwrapper().
687 - Added _POSIX_VERSION check to regexp code. Better than nothing
688 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000689 - Made search functions & keys more like Pico. Added goto line from
690 search and replace function, changed wording to "No Replace" instead
691 of "To Search", "To Replace" to simply "Replace", and changed to
692 Pico's keystroke by default, ^R. Affects search_init(),
693 do_search() in search.c, globals in nano.h and
694 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000695 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000696- cut.c
697 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000698- files.c:
699 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000700 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000701- nano.c:
702 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000703 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
704 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000705 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000706 - Corrected FIXME in do_enter with explanation. (Rob)
707 - Fixed FIXME in do_justify, resulted in creation of
708 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000709 help_init():
710 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000711 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000712 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000713 do_backspace(), do_delete():
714 - Added magic line code here too.
715
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000716- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000717 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000718- fi.po:
719 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000720- utils.c:
721 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000722- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000723 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000724 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000725 do_yesno(), nanogetstr():
726 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000727 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
728 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000729 clear_bottomwin():
730 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000731 edit_update_top():
732 - Fixed a bug that caused nano to not update when
733 current->next == NULL (e.g. paging down to the very bottom of
734 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000735 fix_editbot:
736 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000737 edit_add:
738 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000739
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000740nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000741- New flag "-T" or "--tabsize" to specify how to display tab widths.
742 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
743 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000744 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000745- id.po:
746 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000747- es.po:
748 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000749- winio.c
750 - Rewrite of display functions to correct the display problems
751 we had been seeing. Affects: add_marked_sameline, edit_add,
752 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000753 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000754 total_refresh():
755 - Cut dispaly_main_list call, as this function is only supposed to refresh
756 what's already on the screen, not go through the process of adding the
757 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000758- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000759 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000760- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000761 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000762 - Removed editwineob, as it was redundant for (editwinrows - 1).
763 Changed all calls to editwinrows - 1 in nano.c and move.c.
764 - Removed all functions that were split into other files.
765 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000766 do_enter():
767 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000768 do_insertfile():
769 - Fix display problem when using ctrl-r to load a file
770 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000771 handle_sigwinch():
772 - Added titlebar(), edit_refresh() and display_main_list() calls because
773 a resize wasn't picking up on possible different width correctly.
774- utils.c:
775 - Moved nmalloc() and nrealloc() here.
776- move.c:
777 - New file, contains movement functions (like do_home(), do_up(),
778 do_down(), page_up(), etc...).
779- files.c:
780 - Contains functions for files (read_file, insert_file,
781 do_writeout(), etc).
782- search.c:
783 - Contains all our searching and related functions, (do_search(),
784 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000785
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000786nano-0.9.10 - 06/04/2000
787- es.po:
788 - Translation updates (Jordi).
789- AUTHORS, nano.1.html, TODO, README:
790 - Documentation and email address updates (Jordi).
791- nano.c:
792 main():
793 - Moved Adam's termio code down to after getopt() and before initscr()
794 to stop people losing their SIGINT character when using args that
795 exit nano before it runs (--version, --help, etc).
796
797nano-0.9.9 - 05/31/2000
798- Makeile.am:
799 - Added proper lines for defining LOCALEDIR.
800- configure.in:
801 - Spelling fixes (Jordi Mallach)
802 - Removed CFLAGS changes for gcc, reduces portability according to
803 some, and it certainly doesn't seem to decrease exe size.
804- es.po:
805 - Spanish ranslation updates (Jordi Mallach)
806- POTFILES.in:
807 - Added global.c file, was screwing up translations (i.e. they
808 weren't getting done).
809- cut.c:
810 add_to_cutbuffer():
811 - Added totsize increment.
812 - Cut fixes and optimizations (Rob Siemborski).
813 do_uncut_text():
814 - Added totsize increment in several places.
815- nano.c:
816 headers:
817 - Removed LOCALEDIR define.
818 do_justify():
819 - Added edit_refresh() call (bug discovered by Adam).
820 page_down_center():
821 - Added call to edit_update(current) for last case. Removed
822 increment of current_y since it's now just wasteful.
823 do_enter():
824 - Added totsize increment.
825 renumber(), renumber_all():
826 - Removed totsize-- and totsize init in renumber_all.
827 do_mouse():
828 - Added edit_refresh() call to show hilight updates. Removed
829 unnecessary wrefresh(edit).
830 main():
831 - Moved up locale calls so that translated --help messages would
832 actually get translated.
833 do_backspace(), do_delete():
834 - Added decrement of totsize.
835 init_help_msg():
836 - New function, initializes help text if NANO_SMALL isn't set (fixes
837 broken i18n).
838 read_file():
839 - malloc call changed to nmalloc (Rob Siemborski).
840- winio.c:
841 total_refresh():
842 - Completely rewrote function, not quite so braindamaged now.
843
844nano-0.9.8 - 05/18/2000
845- nano.c:
846 main():
847 - Added awesome code that disables the CINTR and CQUIT
848 character (Adam Rogoyski). Removed raw()/noraw() calls so that
849 nano gets input in 'normal' mode, which is the Right Way(tm) to
850 do it. ^S, ^Z and ^Q now work properly as a result, as well as
851 ^C. New variable term, global bariable oldterm to save previous
852 term settings, and changes to finish() and die().
853 - Added extra #ifdefs in getopt code, so that above code and
854 flag init is run even if GETOPT_LONG is not #defined.
855 - Added memset line before sigactions. (Adam Rogoyski)
856 do_suspend():
857 Removed function, see above for why.
858- winio.c:
859 update_line(), center_cursor():
860 - Removed wrefresh(edit) from bottom of functions. wrefresh
861 should now only be called once, at the bottom of the main()
862 loop.
863- global.c:
864 shortcut_init():
865 - Removed suspend sc_init call and suspend message because suspend is no
866 longer needed in the shortcut list to work properly.
867
868nano-0.9.7 - 05/14/2000
869- nano.c:
870 do_home(), do_end():
871 - Added calls to update_line for the current line, fixes
872 lack of update (bug discovered by Alberto García).
873 main():
874 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
875 following symlinks even when -l isn't set, and "no changes"
876 error when nano is called from crontab -e (Adam Rogoyski).
877- cut.c:
878 do_cut_text():
879 - Added edit_update_top to cut when mark is set, fixes lack of
880 display update (bug discovered by Ken Tyler).
881
882nano-0.9.6 - 05/08/2000
883- New Italian translation (it.po), by Daniele Medri.
884- nano.c:
885 page_up(), page_down():
886 - Added reset of placewewant to 0, as it should be.
887 do_up(), do_down():
888 - Added call to update_line() for line we move from and line we
889 move to, in order to keep the highlighting correct.
890 do_wrap():
891 - Added var chop, new code to wrap lines more like Pico, mostly.
892 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
893- winio.c:
894 do_help():
895 - Added edit_refresh() before exit.
896 update_cursor():
897 - Removed cursor updating which really wasn't needed anyway.
898 edit_update():
899 - Removed yucky code that didn't work, this function now just
900 computes edittop and editbot and calls edit_refresh() to do the
901 rest, which removes a lot of dupliicate code..
902
903nano-0.9.5 - 05/01/2000
904- Removed bytes from file struct because it was computationally wasteful.
905- cut.c:
906 do_uncut_text():
907 - Added call to edit_refresh().
908- nano.c:
909 do_backspace():
910 - Added reset of editbot when deleting the last line of the file
911 (bug discovered by Adam).
912 do_char():
913 - Removed call to reset_cursor().
914 do_delete():
915 - Added similar check as to do_backspace().
916 do_enter():
917 - Added call to edit_refresh().
918 do_left(), right():
919 - Added call to update_line(), still redundant but better...
920 do_up(), do_down():
921 - Added refresh calls both for current line and line to which
922 we are moving.
923 main():
924 - Removed inefficient call to edit_refresh() after every keystroke.
925 It is now up each function to leave the screen in a good state.
926- winio.c:
927 do_cursorpos()
928 - Rewritten to not use bytes from filestruct by an incremental sum.
929 update_line(), reset_cursor():
930 - Optimized calls to xplustabs() through a single variable.
931 - update_line() now takes a new arg, an index into the string
932 for where to update the line from. Needed for new update
933 code.
934- configure.in:
935 - Better checks for slang, allows argument to --with-slang.
936 (Albert Chin-A-Young)
937 - Removed -Iintl from CFLAGS in gcc check.
938- Makefile.am:
939 - Addition of -Iintl for gettext (Albert Chin-A-Young)
940
941nano-0.9.4 - 04/25/2000
942 - Fixed calls to no_help and changed them to the more consistent
943 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
944 not 1. Code to temporarily disable NO_HELP when in the
945 help system. (Adam Rogoyski)
946- cut.c:
947 do_marked_cut(), do_cut(), do_uncut():
948 - Commented out unnecessary bits when NANO_SMALL is being used.
949- winio.c:
950 xpt(), strlenpt(), actual_x():
951 - Added check for value of data[i] & 0x80, if so do not make
952 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
953 edit_refresh():
954 - New check for temp == NULL (bad thing), if so go back to the
955 previous line. New filestruct var hold points to prev line.
956 Fixes segfault when paging down to the end of a file.
957- nano.c:
958 write_file():
959 - Added check for if file exists and is not equal to the current
960 filename, prompt for overwrite (Adam Rogoyski).
961 do_down():
962 - Removed check for current->next == NULL, now checks return value
963 of do_down before setting current_x = 0 (discovered by Adam).
964 do_justify():
965 - Fixed segfault when reaching the last line (tried to assign
966 currrent->next->data when current->next == NULL) (discovered
967 by Adam).
968- utils.c:
969 - Removed extra macro defs that are now in nano.h.
970- nano.h:
971 - Changed macro SET() to use |= instead of ^=. Fixes bug in
972 cut code when cutting more than one line, and cutbuffer gets
973 blown away when it shouldnt.
974
975nano-0.9.3 - 04/29/2000
976- cut.c:
977 do_marked_cut():
978 - Fixed off by one error in cut code for marked text.
979 do_cut_text():
980 - Removed check for being on the last line, part of
981 magic line code.
982 add_to_cutbuffer():
983 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
984 - Added inptr->prev = NULL for case where cutbuffer == NULL.
985- nano.c:
986 do_backspace(), do_char():
987 - Removed "magic line" code. It was basically causing more bugs
988 than it was helping for the sake of compatibillity. This fixes
989 at least one known segfault condition.
990 do_enter():
991 - Added setting editbot to new node if the new node is the last
992 node in the file.
993 write_file():
994 - Changed writing file bahavior. Now, if last line of the file
995 has any data on it, we write a newline on it, else we dont.
996- winio.c:
997 add_marked_sameline():
998 - New code that checks for whether the begin and end of the marker
999 are on different lines. Missing previously.
1000 edit_add():
1001 - added some more checks for text length. Cleaned up some mvwaddnstrs that
1002 could be written more simply as waddnstrs.
1003 edit_refresh():
1004 - Removed check for temp == filebot, it is now treated like any other line.
1005 Fixes a bug where selected text on the last line shows normally.
1006 xpt():
1007 - Removed an extra computation for tabs variable that was incorrect.
1008 xplustabs():
1009 - Since xpt now actualy works, this func is now just a wrapper for
1010 xpt(current, current_x)
1011- nano.1, nano.1.html:
1012 - Added -l option to man pages.
1013- configure.in:
1014 - New option --enable-tiny, #defines NANO_SMALL in config.h.
1015 Disables call to gettext in functions and other i18n stuff in
1016 nano.c, the detailed help mode, the resize functions, and the
1017 justify code which no one ever uses.
1018 - New option --with-slang. Enables slang libraries instead of
1019 ncurses, requires slcurses.h for wrapper functions. (Based
1020 on patches for 0.8.7 by Glenn McGrath).
1021
1022nano-0.9.2 - 04/15/2000
1023- This release just fixes the serious segfault problem if nano is
1024 invoked any way other than using the absolute path. The bug was
1025 in the new code for checking whether nano is invoked as pico.
1026
1027nano-0.9.1 - 04/14/2000
1028- Added pico compatibility for ^T when in search or switch to switch
1029 to the opposite function. Added one to REPLACE_LIST_LEN and
1030 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
1031 new strings that will have to be gettex()ed. New argument 'replacing'
1032 to search_init(). Handlers in do_replace and do_search().
1033- New write code, now follows symbolic links instead of replacing them
1034 with the new file. New option (-l, --nofollow) to enable the old
1035 (incorrect, but secure) behavior (Adam Rogoyski).
1036- nano.c:
1037 do_wrap():
1038 - Fixed another bug relating to wrapping, and which would cause
1039 a segfault *sigh*.
1040 do_replace():
1041 - Incremented current_x by the length of the replacement
1042 text inside the main repalce loop. Fixes bug #15.
1043 add_marked_sameline():
1044 - New function, handles marked text when start & end of marker is
1045 on one line, also supports most marked text when cursor > COLS.
1046 main():
1047 - Code to check if nano is invoked as 'pico', and if so
1048 automatically set pico_msgs (Robert Jones).
1049
1050nano-0.9.0 - 04/07/2000
1051- nano.1, nano.1.html: Updated man page with my email address and homepage.
1052- winio.c:
1053 reset_cursor(), update_line():
1054 - Changed update algorithm for x value to (COLS - 7) multiple when x
1055 value > (COLS - 2).
1056- edit_refresh():
1057 - Removed inner loop code, now calls update_line() for each line
1058 in question, MUCH nicer.
1059- xplustabs(), xpt():
1060 - Removed redundant increment of tabs when collumn no % 8 == 0.
1061 - Added check for data[i] < 32, most of such bits are 2 chars wide.
1062- update_line():
1063 - Fixed a stupid call to strlenpt with col when we should have
1064 been using actual_col. Ugh.
1065
1066nano-0.8.9 - 03/22/2000
1067- nano.c:
1068 empty_line(), no_spaces(), justify_format(), do_justify():
1069 Actually added these (screwup applying patch).
1070 do_justify(): Added call to set_modified().
1071
1072nano-0.8.8 - 03/12/2000
1073- Preliminary internationalization support. Many many functions modified
1074 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
1075 New dirs po/ and intl/, changes to configure.in and Automake.am to
1076 support i18n.
1077- nano.c:
1078 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
1079 statics: Changed some things that were not necessarily static
1080 (Adam Rogoyski).
1081 nrealloc(): New function, similar to nmalloc(). Changed calls from
1082 realloc() to nrealloc (Adam Rogoyski).
1083 empty_line(), no_spaces(), justify_format(), do_justify():
1084 New functions for justify function (Adam Rogoyski).
1085- winio.c:
1086 blank_edit(): Added wrefresh call to edit so that screen updates (like
1087 on ^L) actually work.
1088 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
1089
1090nano-0.8.7 - 03/01/2000
1091- main.c:
1092 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
1093 to a single character on one line when no good place to
1094 break the line exists, and for wrapping lines longer than COLS.
1095- nano.1.html:
1096 Html version of man page, now included in dist. For
1097 the benefit of nano packages in Linux distributions.
1098
1099nano-0.8.6 - 02/24/2000
1100- gobal.c:
1101 shortcut_init():
1102 Added shortcuts for goto_line and do_replace when using
1103 pico_msgs. Oops.
1104- nano.c:
1105 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
1106 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
1107 Removed check for backing up past spaces first.
1108 main(): Added for loop to check for alt keys instead of hard list.
1109 do_enter(): Fix for bug #14, added call to reset_cursor and messed
1110 up do_char quite a bit.
1111 version(): Added time and date stamp for compile on version message.
1112 Added mail and web page info.
1113- README: Updated mailing list info.
1114
1115nano-0.8.5 - 02/18/2000
1116- nano.c:
1117 main(): Finally fixed tilde being input on page up/down keys in
1118 certain terminal types. Fix was input 26->91->5[34] check
1119 for 126, if so make the kbinput PAGE UP/DOWN, else unget
1120 the keystroke and continue. Added #include <ioctl.h> for
1121 ioctl call.
1122 handle_hup():
1123 Handler for hangup signal. Belated include of patch from
1124 Tim Sherwood.
1125- winio.c:
1126 edit_refresh():
1127 Temporary fix for selecting text when temp == current.
1128 edit_refresh() is now unmanagably complex, and must be
1129 revamped.
1130 check_statblank():
1131 Added check for constupdate, makes things less choppy
1132 (Adam Rogoyski)
1133
1134nano-0.8.4 - 02/11/2000
1135- Moved global variables that were only (or mostly) used in one file into
1136 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
1137- global.c:
1138 shortcut_init():
1139 Removed redundant NANO_CONTROL_H from backspace shortcut,
1140 added char 127 which should have been there.
1141- nano.c:
1142 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
1143 segfaults (Adam Rogoyski).
1144- Makefile.am: Added all source filenames (Adam Rogoyski).
1145- nano.1: Fixed mail addressed and added mailing list address.
1146- README: Updated my email address and the nano web page.
1147
1148nano-0.8.3 - 02/08/2000
1149- New pico mode (-p, --pico), toggles (more) compatibility with the
1150 Pico messages displayed in the shortcut list. Note that there are still
1151 small differences in this mode.
1152- nano.h: New shortcut struct format, for the benefit of i18n and
1153 our help menu. Removed shortcut message macros, they are
1154 now all in shortcut_init in global.c.
1155- nano.c:
1156 do_wrap(): Removed resetting of current_x when we are in fact
1157 wrapping to the next line, fixes a bug in -i mode.
1158 do_enter():
1159 Rewrote the autoindent mode code to be a lot less pretty,
1160 but a lot more magical.
1161 main():
1162 Removed case for ignoring char 126 (~). That's kind of
1163 important, we'll have to fix handling that sequence when
1164 pageing up/down on a terminal some other way... Revamped
1165 main switch loop in much snazzier fashion based on the
1166 shortcut list.
1167- winio.c:
1168 New function display_main_list. Affects all functions
1169 that used to call bottombars() with main_list. Added
1170 because we now only call bottombars with the macro
1171 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
1172 changes to the main_list shortcut list (see global.c below).
1173 New function do_help, our preliminary dynamic help system.
1174- Many many funcs:
1175 Changed from int to void to allow one uniform type to call
1176 from the shortcut struct. Also a few functions that do
1177 not simple have void argument have new functions called
1178 funcname_void(void) to be called from the shortcut list.
1179 do_cut_text and do_uncut_text were changed to void
1180 arguments because they were never called with a filestruct
1181 other than *current anyway.
1182- global.c:
1183 Shortcut list main_list was expanded to cover all
1184 shortcuts that could be caught in the main loop.
1185 Consequently there is a new macro MAIN_VISIBLE which tells
1186 how many items in the main list to actually show.
1187
1188nano-0.8.2 - 02/02/2000
1189- Added initial mouse (-m, --mouse) support. New global variable
1190 use_mouse. (Adam Rogoyski)
1191
1192- nano.c: Set intial value of fill to COLS - 8 rather than just 72
1193 regardless. (Adam Rogoyski).
1194 do_delete():
1195 Deleted call to do_backspace() when on the end of a line,
1196 because it won't update the line properly.
1197 do_backspace():
1198 Removed unnecessary pointer manipulation that was being
1199 handled by unlink_node().
1200 open_file():
1201 Added check for trying to open a directory (currently we
1202 segfault on this). Bug pointed out by Chad Ziccardi.
1203
1204nano-0.8.1 - 01/28/2000
1205- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
1206 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
1207 global.c and proto.h.
1208- nano.c:
1209write_file(): Added (incredibly) necessary check for EPERM when
1210 link() fails. This allows us to actually save
1211 files via rename() on filesystems that dont
1212 support hard links (AIEEEEEE).
1213do_goto():
1214 Fixed a stupid mistake where we were calling
1215 bottombars() with replace_list instead of goto_list.
1216- nano.h:
1217 New char *help in shortcut structure for help
1218 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
1219 for help function and i18n.
1220- global.c:
1221 New functions shortcut_init (called in nano.c) and
1222 sc_init_one() to initialize the shortcuts without
1223 using {}s (for i18n).
1224
1225nano-0.8.0 - 01/25/2000
1226- View flag (-v, --view) implemented. Global variable view_mode, affects
1227 main loop of nano.c and new_file(). (me)
1228- nano.c:
1229 split checks for TERMIOS_H and TERMIO_H up so we
1230 can (theoretically) include them both, which is good.
1231handle_sigwinch():
1232 Added check for ncurses.h. (Andy Kahn)
1233do_spell():
1234 We now only try ispell because we don't as of yet
1235 handle the 'spell' program the right way, now that
1236 I finally know what the right way is =-). Added
1237 call to edit_update(fileage) to stop segfaults.
1238global_init():
1239 Added initialization of edit* filestruct pointers
1240 to stop segfaults on spell check.
1241usage():
1242 Check for getopt_long, and if no leave out the
1243 GNU options everyone seems to love so much (Andy Kahn)
1244main():
1245 Added checks for getopt_long (Andy Kahn)
1246 We ignore character 126 because it gets put into
1247 the buffer when we page up/down on a vt terminal.
1248write_file():
1249 Fixes for umask (Adam Rogoyski). Renamed tmpfile
1250 variable to tmp. Documented the tmp opttion
1251 better in the function comments. Fixed my
1252 stupidly commented out check for tmp on setting
1253 umask which I really like =>
1254- nano.h:
1255 Made desc variable in shortcut struct a pointer
1256 instead of a fixed-length string.
1257- utils.c:
1258 Fixed check for config.h before nano.h.
1259- configure.in:
1260 New checks for getopt_long, getopt.h, removed
1261 CFLAGS and LDFLAGS changes. Gonna have to run
1262 strip manually now =-) (Andy Kahn)
1263 Added check for HAVE_WRESIZE, new file acconfig.h (me).
1264
1265nano-0.7.9 - 01/24/2000
1266- New autoindent feature. Command flag 'i' or '--autoindent'. New
1267 function do_char() to clean up character output, global
1268 variable autoindent in global.c. (Graham Mainwaring)
1269- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
1270 files on exit without prompting. Affects do_writeout(). Also
1271 do_writeout() now takes a parameter for if exiting.
1272 Global variable temp_opt in global.c (Graham Mainwaring)
1273- Preliminary spell program support. Added command flag '-s' or
1274 '--speller' for alternative speller command. Added function do_spell()
1275 and exit_spell() to nano.c. New global variable alt_speller.
1276- nano.c:
1277 main(): We now ignore input of decimal 410 because these get entered
1278 when we resize the screen. Sorted options in getopt()
1279 switch statement.
1280 usage(): Sorted options and changed tabs to make room for -s option.
1281 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1282 doesn't print the number of lines written on the statusbar.
1283 global_init():
1284 Added more initializations to globals to support do_spell().
1285
1286nano-0.7.8 - 01/23/2000
1287- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1288- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1289 and main() in nano.c
1290- Removed redundant reset_cursor() calls from the blank() routines.
1291- nano.c:
1292 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1293 Removed check for isprint() characters in main while loop
1294 for people with odd character sets *shrug*. Added some X
1295 window F-key combos.
1296 read_line(): New function, consolidates of most of the special
1297 sections of the file reading code. (Rob Siemborski)
1298 do_replace(): Many scattered fixes. (Rob Siemborski)
1299 write_file(): Added check for empty filename.
1300- winio.c:
1301 nanogetstr(): Fixes for deleting at places other than the end of the
1302 buffer, cut support. (Adam Rogoyski)
1303 blank_edit(): New function, blanks edit buffer. Added call to it in
1304 total_refresh().
1305- configure: Checks for glib if snprintf of vsnprintf aren't available
1306 (Andy Kahn). Changed warning message when no termcap lib
1307 is found.
1308
1309nano-0.7.7 - 01/19/2000
1310- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1311 mode (affects getopt() in main() and usage() function in nano.c
1312- New flag -c, always show cursor position. Affects main() in nano.c and
1313 statusbar() in winio.c
1314- Option '-x' doesn't show help window at the bottom of the editor.
1315 New variable no_help in nano.h and proto.h, affects main(), usage(),
1316 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1317 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1318 hand =P) (Adam Rogoyski)
1319- nano.c:
1320 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1321 page_up(), page_down():
1322 - New functions. We now set the cursor at the top right corner,
1323 not at the center line, and page up and down a full screen
1324 rather than a half screen. Original functions renamed to
1325 page_up_center() and page_down_center().
1326 main():
1327 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1328 in main while loop because suspend mode was broken. This should
1329 fix it, at least for now.
1330 - Added long option support (By popular harassment ;-) - Added
1331 #include for getopt.h, changed getopt() to getopt_long().
1332 Options added so far: --version (-V), --nowrap (-w), --suspend
1333 (-z), --help (-h), --nohelp (-x).
1334 - Rewrote signal statements (Adam Rogoyski)
1335
1336nano 0.7.6 - 01/15/2000
1337- New ChangeLog format
1338- nano.c:
1339 main(): Bound CONTROL_H to backspace (oops)
1340 Added more Alt-[-key combinations, for page up & down.
1341 read_bytes(): New function (Adam Rogoyski)
1342 read_file(): Optimizations - malloc()s *buf a little at a time rather
1343 than one huge buffer, and replaced the strcat at the end
1344 with an index variable. Added call to read_bytes().
1345 do_next_word(): New function, binding is control-space (0) (me)
1346
1347- winio.c:
1348 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1349 (formula is extra space needed = COLS / 6 - 13).
1350 actual_x() & strlenpt():
1351 Added bug#9 fix - when tabs % 8 == 0, we should only
1352 increment tabs by 1.
1353 titlebar(): Fixed overrun in titlebar on very long filenames.
1354
13550.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1356 writing a newline at EOF. do_cursorpos and do_replace are now not
1357 directly bound to signals but picked up as their control sequences
1358 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
13590.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1360 available memory, align bug fixed (Big Gaute).
1361
1362--- As of version 0.7.4 TIP is renamed to nano.
1363
13640.7.3 Fixed a double blank_statusbar() when jumping to first and last
1365 lines. Took out unnecessary updates in load_file. Bug fix in
1366 do_left. Missing updates to totlines, fixed bug #7 (last line not
1367 having a newline at the end doesnt get read, bugfix in do_replace
1368 with replace all, more/better comments (Robert Siemborski)
13690.7.2 Our first patch accepted into the source! configure fixes
1370 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1371 Bug fix in update_line for editing long lines. Fixed arguments
1372 being put into the filename when none is specified. Preliminary
1373 +line command argument function.
13740.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1375 edit_refresh to stop cursor "jumping" during screen updates. This
1376 will probably cause a bug or two. Replace is now Alt-R (@R) and
1377 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1378 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1379 Control-G will become the Help key, but for now is stubbed out.
13800.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1381 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1382 length file. Added Esc-[-A,B,C,D cursor key sequences.
13830.6.9 Preliminary cursor position function. Split up tip.c more, made
1384 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1385 that was leaving out a character.
13860.6.8 By request, optchr in main() is now an int. Removed unneeded
1387 globals. Bound functions for next/prev page, and wrote functions
1388 do_home and do_end.
13890.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1390 created read_file. Implemented Insert File. Fixes in tipgetstr
1391 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
13920.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1393 aborted searches and more Pico-compatible messages. statusq() now
1394 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
13950.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1396 regarding buffers with filebot in them. Fixins in do_backspace
1397 and do_enter. Removed unused variables. Removed strip_newline.
13980.6.4 Took out the awful newlines from each string buffers. This will
1399 certainly cause more bugs. Fixes in do_exit(). Better empty file
1400 handling (I hope).
14010.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1402 do_enter() rewritten.
14030.6.2 Better default file permissions. Complete rewrite of do_wrap().
1404 Better handling of editing with cursor near COLS - 1.
14050.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1406 codes being entered into the buffer. Bug fix in actual_x; more
1407 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1408 locked into cutbuffer when cutting more than one marked screen of text.
14090.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1410 width on the screen we want to be, not an index of current->data.
1411 New functions xplustabs and actual_x convert the actual place
1412 the cursor should be on the screen to and from the place in the
1413 string.
14140.5.5 Changed do_right to test do_down before setting current_x to 0,
1415 eliminiating the "looping" on the last line when holding the right
1416 arrow. Preliminary support for longer than COLS - 1 lines.
1417 Wrote do_delete.
14180.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1419 tipgetstr is much more messy but text is now more editable ;)
1420 Fixed crash on entering a new file, hopefully. Awful stub for tab
1421 handling, only in do_right() to save me some sanity.
14220.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1423 Fixed a few bugs in do_uncut when not uncutting from marked text.
1424 I would not trust your data with the mark code right now, but then
1425 we're not at version 1.0 yet so dont trust anything ;)
14260.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1427 jump after each keystroke entered. Select text stubbed. Fixed
1428 a bug in total_refresh(). Setting a mark will hilight properly,
1429 but does not actually affect what gets put in the cutbuffer (yet).
14300.5.1 Writing a file out causes modified to be set back to 0. Good.
1431 Set_modified function written. Cut and uncut text now set
1432 modified when called.
14330.5.0 Half way there! Implemented write out, save function seems
1434 stable. Changed statusbar blank routing to not refresh, a separte
1435 program calls it and then refreshes. Made the program not clear
1436 the srceen on exit, just the bottom two lines (like Pico).
14370.4.2 Implemented replace all in replace function. Crude exit function
1438 (asks yes or no if modified but does not write to file).
14390.4.1 Implementing search & replace. Fixed crash on deleting at top of
1440 edit buffer. Implemented "timeout" of statusbar messages.
1441 Implemented ^A and ^E (beginning and end of line).
14420.4.0 Split code into global.c and proto.h to allow for better multiple
1443 file handling. Added #defines for the majority of the shortcut
1444 kets in tip.h for easy modification.
14450.3.1 Write edit_refresh which doesn't move the screen around, just
1446 updates what's there already. do_wrap() and do_enter() added.
14470.3.0 Preliminary cutbuffer (cut and uncut) support.
14480.2.7 Check for Modification added. do_search() works.
14490.2.5 Rewrite of file data struct.
14500.2 Read in data to buffer, bound keystrokes to stub functions,
1451 initial cursor movement on screen. Initial autoconf support.
14520.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001453
1454$Id$