blob: ee1bc6a5d0fa26d4f9c7c7a5a236f53b9a011a9e [file] [log] [blame]
Chris Allegretta9faa3f12001-01-18 04:37:09 +00001nano 0.9.99-pre1 - 01/17/2001
Chris Allegrettaa4d6d1d2001-01-10 23:44:10 +00002General
3 - Changed #ifdefs to check for both DISABLE_TABCOMP and
4 NANO_SMALL, makes tiny option leave out tab completion, which
Rocco Corsiaf5c3022001-01-12 07:51:05 +00005 should be left out in that circumstance. Saves at least 5k.
Rocco Corsi06aca1c2001-01-11 05:30:31 +00006 - Previous change to #ifdefs DISABLE_TABCOMP and NANO_SMALL rolled
Rocco Corsiaf5c3022001-01-12 07:51:05 +00007 back. (Rocco)
8 - Various #ifdef & #ifndef cleanups. (Rocco)
Chris Allegretta201d9bf2001-01-14 03:17:53 +00009 - Added message for when keypad goes awry. Added code in main and
10 function print_numlock_warning() to notify user, and added an
11 apropriate section in the faq to refer to this brokenness.
Chris Allegrettae61e8302001-01-14 05:18:27 +000012 - Added macros in nano.h for magic values that might be unclear in
Chris Allegretta2be96d02001-01-14 05:22:43 +000013 nano.c:global_init(). (Rocco)
Chris Allegrettabbebec62001-01-09 00:37:32 +000014- configure.in:
15 - Fix for _use_keypad check breaking slang support (Christian
16 Weisgerber).
Chris Allegretta4ee0b412001-01-11 15:11:00 +000017 - Changed to automatically define the 5 DISABLE varibles when
18 NANO_SMALL (enable-tiny) is requested at configure.
Chris Allegretta2c4feca2001-01-09 17:40:56 +000019- faq.html:
20 - Added some info on making the binary smaller with the configure
21 script.
Chris Allegretta201d9bf2001-01-14 03:17:53 +000022 - Added section on keypad bugginess.
Chris Allegrettabf692612001-01-08 16:59:19 +000023- files.c:
24 real_dir_from_tilde()
25 - Oops, fix case where buf ="~", silly crash (bug discovered by
26 Neil Parks).
Chris Allegretta8eac3b52001-01-08 21:14:04 +000027 do_browser()
28 - Added space and - keys to do page up and down.
Chris Allegrettaa35ec042001-01-15 02:26:12 +000029 cwd_tab_completion(), input_tab()
30 - Changed bare malloc/calloc calls to nmalloc (found by Rocco).
Chris Allegretta40587092001-01-16 04:45:38 +000031 - Added memset() to matchBuf to ensure sanity (Rocco, Adam).
Rocco Corsiaf5c3022001-01-12 07:51:05 +000032- nano.c:
Chris Allegretta1748cd12001-01-13 17:22:54 +000033 ABCD()
34 - New function, figures out what kbinput to return given
35 input common to several switch statements, allows us to
36 support the default Konsole key settings.
Rocco Corsiaf5c3022001-01-12 07:51:05 +000037 main()
38 - Alternate speller option no longer valid if DISABLE_SPELLER is
39 active. (Rocco)
Chris Allegrettaae4318d2001-01-16 04:18:26 +000040 - Removed direct calls to usage() (#else) for -k (cut) or -s (speller)
41 options when these have been disabled. (Rocco)
Chris Allegretta36939442001-01-15 20:26:38 +000042 - Initialized kbinput to get around stupid compiler warning.
Rocco Corsiaf5c3022001-01-12 07:51:05 +000043 nano_small_msg()
44 - This function has been removed. All references now call
45 nano_disabled_msg. (Rocco)
46 version()
47 - When NANO_SMALL (enable-tiny) is defined, the 5 main DISABLE
48 variables (SPELLER, HELP, JUSTIFY, BROWSER, TABCOMP) are not
49 reported as enabled when Nano is called with -V (--version)
50 command-line option. (Rocco)
51 usage()
52 - Alternate speller option no longer valid if DISABLE_SPELLER is
53 active. (Rocco)
Chris Allegrettae61e8302001-01-14 05:18:27 +000054 window_init(), handle_sigwinch()
55 - Added check for not having enough LINES to do anything useful,
56 if so die with an error. (Rocco)
57 die_too_small()
58 - Function to print the window too small error message, avoids
59 repeated string defs and globals.
Robert Siemborskic2eeb4e2001-01-17 03:29:02 +000060 do_justify()
61 - Small fix for totsize calculation (Rob)
62
Chris Allegrettad9742c62001-01-12 15:51:53 +000063- fi.po:
64 - Update by Pauli Virtanen.
Chris Allegretta7e080822001-01-08 02:31:03 +000065
Chris Allegretta16991442001-01-07 22:06:11 +000066nano 0.9.25 - 01/07/2001
Chris Allegrettaf4b96012001-01-03 07:11:47 +000067General -
68 - New file browser code. New functions in files.c:do_browser(),
69 helper functions browser_init(), tail(), striponedir(),
70 filestat(). New shortcut list browser_list. Some new
Chris Allegretta150469a2001-01-05 21:13:14 +000071 strings to translate. Added function do_browse_from().
Chris Allegrettac08f50d2001-01-06 18:12:43 +000072 - Keypad code has been changed slightly. Now checks for
73 _use_keypad flag in window to see whether or not to turn
74 the keypad() back off when finished (taken from aumix). Moved
75 to winio.c where it should probably be anyway. New confgure
76 check for _use_keypad in window sstruct. This will have to do
77 for now.
Chris Allegretta155d6202001-01-08 01:50:37 +000078 - Moved keypad() calls for PDCURSES from main() to window_init()
79 so the keypad continues to work after a Meta-X, for example.
80 Fixed bug #51.
Jordi Mallach56e6d722000-12-19 22:59:55 +000081- faq.html:
82 - Fix typos and small mistakes (Jordi).
Chris Allegrettaee289d72000-12-27 16:12:47 +000083- files.c:
Rocco Corsi8b6cccc2001-01-02 06:21:07 +000084 username_tab_completion()
85 - Added the (char *) sizeof when allocating memory for the filename
86 array (Rocco).
Chris Allegrettaee289d72000-12-27 16:12:47 +000087 cwd_tab_completion()
88 - removed skipping . and .. when tabulating matches.
Rocco Corsi8b6cccc2001-01-02 06:21:07 +000089 - Added the (char *) sizeof when allocating memory for the filename
90 array (Rocco).
Chris Allegrettae1ebaf32001-01-07 05:50:36 +000091 do_writeout()
92 - Now takes an argument so the string typed in can be retained
93 when calling the browser.
Chris Allegretta816a1652001-01-06 17:43:56 +000094 do_browser()
95 - Don't decrement longest by the length of path. Fixes crashes
96 on entering various dirs (Rocco).
97 - Don't ungetch() the exit key, unneeded, fixes inerting a file
98 causes exit code.
Chris Allegretta155d6202001-01-08 01:50:37 +000099- move.c:
100 page_down()
101 - Don't do an edit_update when there is only one page of text
102 (fileage == edittop && filebot == editbot). Fixes Bug #50.
Chris Allegrettad55655f2000-12-27 03:36:47 +0000103- nano.c:
104 main()
105 - Reorder the getopt options to be more or less alphabetical
106 (suggested by Sven Guckes).
Chris Allegretta66795ec2000-12-27 04:47:28 +0000107- winio.c:
108 do_cursorpos()
109 - Optimizations and cleanups by Rocco Corsi.
Chris Allegretta827b15f2001-01-03 02:09:04 +0000110 do_credits()
111 - Spell Erik Andersen's name right.
Chris Allegrettaf4b96012001-01-03 07:11:47 +0000112 titlebar()
113 - Now takes an arg, needed for browser function.
Chris Allegretta70444892001-01-07 23:02:02 +0000114 do_help()
115 - Changed way of temporarily bringing up shortcuts at the
116 bottom in the help screen (actually works).
Chris Allegretta150469a2001-01-05 21:13:14 +0000117- utils.c:
118 mallocstrcpy()
119 - Takes char pointers now instead of void (makes debugging a
120 helluva lot easier)
Chris Allegrettae1ebaf32001-01-07 05:50:36 +0000121 - Duh, don't do anything if src == dest!
Jordi Mallach75ef81b2001-01-04 16:48:59 +0000122- es.po:
123 - Updates for file browser (Jordi).
Chris Allegretta827b15f2001-01-03 02:09:04 +0000124
Chris Allegretta66149e72000-12-19 02:51:06 +0000125nano 0.9.24 - 12/18/2000
Chris Allegretta3bc8c722000-12-10 17:03:25 +0000126General
127 - Added --disable-help option, affects acconfig.h, configure(.in),
Chris Allegrettab7d00ef2000-12-18 05:36:51 +0000128 winio.c:do_help, nano.c:help_init,help_text_init,version.
Chris Allegretta1a6e9042000-12-14 13:56:28 +0000129 - Changed filename to no longer use PATH_MAX, so it can work on the
130 HURD. Changes in files.c:write_file(), new function
131 nano.c:clear_filename(), many changed in main(), a few other
132 places. Please test this!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000133 - Added -b, -e, and -f flags, which we ignore as nano provides
134 their functionality already.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000135- cut.c:
136 do_uncut_text()
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000137 - Fix renumbering bug when uncutting marked text at filebot.
Chris Allegretta5146fec2000-12-10 05:44:02 +0000138 - Fix screen not being displayed when we are uncutting marked
139 text at editbot (Bug discovered by Ken Tyler).
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000140 - Fix magic line not getting created when (you guessed it)
141 uncutting marked text at filebot (Ryan Krebs).
Chris Allegrettaef123112000-12-10 00:04:13 +0000142- files.c:
Chris Allegretta3a7c0be2000-12-18 01:09:07 +0000143 read_file()
144 - If we encounter an error and insert is not set, run new_file().
145 (bug discovered by Ben Roberts).
Chris Allegrettaef123112000-12-10 00:04:13 +0000146 write_file()
147 - Change open call flags, basically copy joe's way of doing it so
148 a more recent version will actually be included in (un)stable.
Chris Allegretta1cd50662000-12-11 02:47:12 +0000149 - Remove useless fstat call.
Chris Allegretta7960dcf2000-12-13 15:01:29 +0000150 open_file()
151 - Added check for S_ISBLK and S_ISCHR, don't open device files!
Chris Allegretta5146fec2000-12-10 05:44:02 +0000152- nano.c:
153 renumber()
154 - Dont stupidly assign the value of prev->lineno if prev == NULL!
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000155 main()
156 - Added code to check for Alt-Alt (27-27) keystrokes and set the
157 next keystroke as a control sequence. New variable
158 modify_control_key. Removed #ifdef _POSIX_VDISABLE check
159 around Control-S,Q,Z handlers because we need it now for
160 the Alt-Alt-x code.
Chris Allegretta7492cec2000-12-18 04:55:21 +0000161 - Added --view option to getopt_long()call . Bug discovered
162 by Rocco Corsi.
Chris Allegretta220ba692000-12-18 03:40:00 +0000163 help_init()
164 - Fix off by one error that was making ^G help in normal mode and
Chris Allegretta92325e72000-12-18 03:44:22 +0000165 ^_ in pico mode not be displayed in the help (bug discovered by
166 Rocco Corsi).
Chris Allegrettaaffeda82000-12-18 04:03:48 +0000167 do_toggle()
168 - Added fix_editbot() call to fix improper redisplay of edit
169 window when using nohelp toggle (bug discovered by Rocco Corsi).
Chris Allegretta51b3eec2000-12-18 02:23:50 +0000170- nano.1, nano.1.html:
171 - Updated man page for -b, -e, -f and expanded explanation for -p.
Chris Allegrettad1627cf2000-12-18 05:03:16 +0000172- winio.c
173 do_help()
174 - Force keypad on so F-keys and PageUp/Down will work properly.
175 Added check for NANO_EXIT_FKEY to loop.
Chris Allegrettae51c95f2000-12-10 05:54:27 +0000176- utils.c:
177 new_magicline()
Chris Allegretta321590a2000-12-10 06:03:40 +0000178 - Increment totsize!! We decrement it when we've read a file,
179 everywhere else it should automatically be incremented
Chris Allegrettaef123112000-12-10 00:04:13 +0000180
Chris Allegrettab29550e2000-12-09 03:34:12 +0000181nano 0.9.23 - 12/08/2000
Chris Allegretta7b36c522000-12-06 01:08:10 +0000182General
183 - Changed --disable-spell to --disable speller. The term is
184 "speller" for -s, so it should be --disable-speller.
Chris Allegretta59828492000-12-04 03:31:39 +0000185- files.c:
186 write_file()
Chris Allegretta20c131c2000-12-04 04:20:09 +0000187 - Added tmp check to TMP_OPT section (how apropriate).
Chris Allegretta07f9ee02000-12-04 05:15:39 +0000188 - Added new consistency checking code from securityfocus
Chris Allegrettafb2226a2000-12-04 05:25:47 +0000189 article by Oliver Friedrichs, and use O_EXCL if tmp == 1.
Chris Allegretta928a7f52000-12-04 05:31:34 +0000190 - We now run check on result of lstat(), not stat(), to be
191 safer. New variable anyexists, we use still use realexists
192 later in the program.
Chris Allegretta71e46402000-12-06 00:40:26 +0000193 - OOPS, line up link/unlink/rename check if conditional with
194 top if conditional. Option -l has been broken for 9 versions,
195 no one noticed?!
Chris Allegretta1bd0ce22000-12-06 05:56:08 +0000196 - Added saving perms at end of link so we can apply them to the
197 new file if --nofollow is used.
Chris Allegretta908805a2000-12-04 04:42:56 +0000198- winio.c:
199 edit_add()
200 - Off by one display error (fix by Rocco Corsi).
Chris Allegrettafb62f732000-12-05 11:36:41 +0000201 do_replace_highlight()
202 - New code to handle being past COLS (Roco Corsi).
203 - Moved from search.c, as it's definitely a winio function now =)
204 update_line()
205 - More '$' display fixes (Rocco Corsi).
Chris Allegretta59828492000-12-04 03:31:39 +0000206
Chris Allegrettafedd7242000-12-03 03:15:38 +0000207nano 0.9.22 - 12/02/2000
Chris Allegrettabe77c612000-11-24 14:00:16 +0000208- General
Chris Allegrettabe77c612000-11-24 14:00:16 +0000209 - Username tab completion code, and cleaned up existing tabcomp
210 code. New functions real_dir_from_tide(), append_slash_if_dir(),
211 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +0000212 - Ignore key sequence 543 & 545, right control and alt keys in
213 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +0000214 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
215 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +0000216 - New function nano_disabled_msg(), to alert that certain
217 functions have been disabled, similaer to nano_tiny feature.
218- New configure options:
219 - Added configure argument --disable-tabcomp. Affects
220 bottom of files.c and write_file, utils.c:check_wildcard_match()
221 and winio.c:nanogettsr().
222 - New options --enable-extra. New code in nano.c:version() to
223 print out various options from ./configure, function do_credits().
224 - Added --disable-spell option for those who want to just disable
225 the spell check feature. Affects the spellinf fucntions
226 do_spell, do_int_speller and do_alt_speller.
227 - Added --disable-justify to get rid of the justify function.
228 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +0000229- files.c:
230 write_file()
231 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta581bc602000-12-03 03:01:12 +0000232 - Okay, if tmp == 1 and the file exists, we abort.
Chris Allegretta25f4e582000-11-25 05:03:20 +0000233 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +0000234 - Added call to real_name_from tilde, oops. Added check for
235 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +0000236 read_file()
237 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +0000238- global.c:
239 shortcut_init()
240 - Now takes an argument as to whether to display the unjustify
241 shortcut or the normal uncut text one. Needed to accomodate
242 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000243- nano.1, nano.1.html:
244 - Updated date on pages because of -p changes.
Jordi Mallachd7ad75a2000-12-03 02:46:02 +0000245 - Added "NOTES" section, where I explain what nano.save & friends
246 are.
247 - Added a copyright notice for the manpage, under the GPL.
248 - Other minor changes.
Chris Allegretta9149e612000-11-27 00:23:41 +0000249- nano.c:
250 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +0000251 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
252 text there, then grabs the next keystroke and, if the unjustify
253 key, gets rid of the justified text and calls do_uncut_text.
254 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000255 do_int_spell*
256 - Various fixes (Rocco Corsi).
257 - Changed abort of program to aborting based on value of "edit a
258 replacement" question, and not caring about the replace loop
259 return value. That way the user can get out of the replace loop
260 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +0000261 version()
262 - Took out huge check for the various --disabled macros,
263 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +0000264 nano_small_msg(), nano_disabled_msg()
265 - Added checks for disabled functions to see whether or not to
266 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +0000267 do_next_word()
268 - Update the previous line as well as the current one in case we
269 have moved beyond COLS or back from COLS, patch submitted
270 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +0000271 die()
272 - Now creates .save file using variable-length strings. Also
273 calls write_file with tmp == 1, which happens to do exactly what
Chris Allegretta581bc602000-12-03 03:01:12 +0000274 we want (abort on save file exists and use mode 0600).
Chris Allegrettae7a58932000-12-02 02:36:22 +0000275 handle_sighup()
276 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +0000277- search.c:
278 do_replace_hilight()
279 - New function, displays the currently selected word as hilighted
280 in the spell check. Called from do_replace_loop (Rocco Corsi).
281 - Added calls to curs_set(0) and (1) to diable the cursor when
282 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +0000283- es.po:
284 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +0000285
Chris Allegrettaca7a21d2000-11-24 01:35:40 +0000286nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +0000287- AUTHORS
288 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +0000289- nano.c:
290 main()
291 - Changed check for argc == 1 to argv[optind] == NULL to decide
292 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +0000293- search.c:
294 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +0000295 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +0000296 search_init()
297 - Silly typo in our "one simple call" of statusq. Stopped
298 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +0000299 do_replace()
300 - Copy back the previous value of last_replace into answer if
301 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +0000302- winio.c:
303 do_up()
304 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +0000305- nano.1, nano.1.html
306 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +0000307
Chris Allegretta6da149a2000-11-19 02:23:03 +0000308nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +0000309- General
310 - Ran source through indent -kr again. Make everything pretty.
311 - Changed behavior of "search" and "replace" prompts to make all
312 previous values editable. This change was made so that you can
313 replace with the null string without needing a special key for it.
314 changed code in search_init(), do_replace(), nanogetstr (see
315 below).
316 - Added some missing gettext calls here and there (Jordi).
317 - Revamped nanogetsr() and calls to it to use variable length strings.
318 MANY changes in nanogetstr(), many chances in search.c, new
319 function mallocstrcpy which is sure to be a programmatic
320 nightmare, changed last_search, last_replace, answer to
321 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +0000322 truncated strings in satusbar when the string is not found
323 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000324 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +0000325 - New spelling code by Rocco Corsi. New functions
326 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
327 New functions search_init_globals and do_replace_loop, changes
328 to search_init(), do_replace, findnextstr, moved last_search and
329 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +0000330 - New tab completion code. Used check_wildcard_match, input_tab,
331 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +0000332 hacked them a lot, changes to nanogetstr(). nanogetstr() and
333 statusq() now take an arg for whether or not to allow tab
334 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +0000335 - Fixed value being input in statusbar during a search or replace
336 and CASE_SENSITIVE or the other search is called and the
337 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000338 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
339 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000340- files.c:
341 do_writeout()
342 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000343- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000344 - New global replace_list_2, for 2nd half of the replace dialog
345 ("Replace with:"), has fewer options than first half because
346 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000347 toggle_init()
348 - Added #ifdef around toggle_regex_msg to get rid of compiler
349 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000350
351- nano.c:
352 keypad_on()
353 - New function, toggles turning the keypad on and off in edit and
354 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000355- search.c
356 findnexstr()
357 - New arg for begin_x variable, basically a rewrite that
358 makes a little more sense and isn't quite as messy (Rocco Corsi).
359 - Update the line we're checking if not the whole screen, because
360 it's quite possible the search team could exist somewhere way
361 to the right on the same line, for example.
362 replace_abort()
363 - Add reset of placewewant, stops cursor from jumping when moving
364 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000365 do_replace()
366 - Added code for Gotoline key after entering the search term.
367 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000368 - Removed redundant code involving processing replacemenet string.
369 Converted if statements to switch statements.
370 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000371 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000372 do_search()
373 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000374- winio.c
375 nanogetstr()
376 - Added check for 343 in while loop to get rid of getting "locked"
377 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000378 - Changed check to return -2 on "enter" from answer == ""
379 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000380 - Fixed fallthrough code because there was no break. Make much
381 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000382 - Added check for ASCII 54[124] when using PDCURSES, ignore them
383 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000384 nanoget_repaint()
385 - New function, removes about 30 lines of duplicate code in
386 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000387 - Black magic code to make $ appear in prompt if we're past
388 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000389 blank_edit()
390 - Removed wrefresh() call, much less choppy now. If there's a need
391 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000392- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000393 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000394
Chris Allegretta07e97d62000-10-03 01:52:50 +0000395nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000396- General
397 - Added PDCurses support under cygwin, which allows building
398 a nice stand-alone nano.exe for those poor Windows users.
399 Extra check in configure.in for initscr() in -lcurses (as
400 PDcurses has no tgetent), some #ifdef PDCURSES statements
401 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000402 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000403- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000404 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000405 main()
406 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000407- search.c
408 - Added initializations for last_search and last_replace (Rocco Corsi)
409
Chris Allegretta629edad2000-09-19 00:27:19 +0000410nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000411- General
412 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
413 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000414- configure.in:
415 - Added default case for cross-compiling to get rid of annoying
416 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000417- cut.c:
418 do_cut_text()
419 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000420 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000421- files.c:
422 open_file()
423 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000424- global.c:
425 shortcut_init()
426 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000427- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000428 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000429 - Added check for _POSIX_VDISABLE and use raw mode if not
430 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000431 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000432 - Revamped a great deal of the F-key and keypad key handling,
433 because we not longer use keypad() (see below).
434 - Removed keypad() call because nano was not working with the
435 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000436 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000437 do_toggle()
438 - Rewrote function to allow NOHELP toggle to wotk on systems
439 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000440 mouse_init()
441 - Add keypad only if mouse support is on, otherwise mouse doesn't
442 work. I guess you have to choose between having the mouse and
443 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000444- winio.c:
445 total_refresh()
446 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000447 onekey()
448 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000449
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000450- search.c:
451 findnextstr()
452 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000453- es.po:
454 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000455- de.po
456 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000457
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000458nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000459- General
460 - New shortcuts to toggle certain options that are normally only
461 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
462 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000463 called from shortcut_init(), and do_toggle in nano.c. Also
464 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000465 signal_init(). Moved "struct sigaction act"into a static in
466 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000467 - Changed from Alt-key symbol (@) which is completely nonstandard
468 to the *nix "Meta" symbol (M-). Changed help_init to show
469 the M-key usage and the help text to explain keys whcih generate
470 Meta. Moved the toggle Meta keystrokes to the first column
471 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000472 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000473 - Changed last_search and last_replace vars to statically
474 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000475- global.c:
476 toggle_init()
477 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
478 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000479- nano.c:
480 do_mouse()
481 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000482 do_wrap()
483 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000484 do_toggle()
485 - Added checks for no help and no wrap mode, and print opposite
486 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000487 do_suspend(), do_cont():
488 - New functions, handle suspend signal in a Pico-like manner and
489 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000490- winio.c:
491 total_refresh()
492 - Added edit_refresh() call to actually update the screen if messy.
493 edit_refresh_clearok()
494 - New function, does a total update for edit refresh, needed to fix
495 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000496 onekey()
497 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000498
Chris Allegretta6306a112000-09-02 07:55:41 +0000499 update_line()
500 - Added check for binary data >= 1 and <= 26, and use ^+letter
501 to display it. Should fix editing text files with binary
502 data in them. Placing of the cursor seems to be a bit screwed
503 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000504- search.c:
505 search_abort()
506 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
507 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000508 findnextstr():
509 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000510 - Fixed check for string that only occurs on the same line failing
511 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000512
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000513nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000514- cut.c:
515 do_cut_text()
516 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000517 - Added check_statblank().
518 - Check for fileptr == filebot, if so return, we shouldn't bother
519 cutting the magic line.
520 do_uncut_text()
521 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000522- nano.c:
523 main()
524 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000525- po/Makefile.in.in:
526 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
527 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000528- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000529 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000530
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000531nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000532- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
533 Affects many many functions. Removed functions edit_update_top and
534 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000535- Added global variable tabsize, we no longer screw with the curses
536 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000537- configure.in:
538 - Finally fixed check for slang to report "no" if not called
539 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000540- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000541 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000542 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000543 null_at()
544 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000545 delete_buffer()
546 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000547 do_backspace()
548 - Now calls page_up_center instead of page_up (as it should?)
549 do_enter()
550 - Fixed typo (?) in check for inptr->next. Caused lots of
551 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000552 main()
553 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000554- search.c:
555 replace_abort()
556 - redundant, now just calls search abort until it does something
557 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000558- winio.c:
559 edit_refresh()
560 - Added check for current line "running" off the screen.
561 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000562 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000563 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000564 edit_update()
565 - Rewritten, hopefully this will remove a lot of the
566 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000567- move.c:
568 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000569 - do an edit_update() at last case. Made function more like
570 Pico's version, only move down to two lines before editbot.
571 page_up()
572 - Made function more like Pico's version, only move down to two
573 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000574
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000575nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000576- nano.h:
577 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
578- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000579 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000580 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000581 - Simplified check for freeing cutbuffer. Added checks for doing
582 multiple cuts with -k, now sets marked_cut to 2 for later
583 processing by do_uncut_text().
584 do_uncut_text()
585 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000586- files.c:
587 write_file()
588 - Removed (redundant) check for writing out files with -t.
589 do_writeout()
590 - Changed check for filename to filename[0]. Added some code,
591 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000592- nano.c:
593 do_justify() & do_wrap():
594 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000595- de.po
596 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000597
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000598nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000599- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000600 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
601 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000602- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
603 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000604- move.c
605 page_down()
606 - Don't edit_refresh() if the bottom of the file is in the edit
607 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000608- nano.c:
609 main():
610 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000611 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000612 die():
613 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000614 do_spell():
615 - Changed exit semantincs a bit so that aspell wouldn't get
616 all screwy (bug disovered by Joshua Jensen.
617- files.c:
618 read_file():
619 - Added init of buf variable, hopefully this will stop the
620 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000621 write_file():
622 - Added code to check to see if using -l and the file is not
623 in fact a link. This should fix the behavior where a file
624 that does not have write permission but could be removed and
625 rewritten is saved without error. Please test this feature
626 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000627- search.c:
628 search_init():
629 - Added " (to replace)" statement to end of search string if
630 we are doing a replace. Manually converted all the translations
631 from '%s' to '%s%s' to ensure they still work with the new code.
632 Also put in the translation for " (replace)" in the .po's. Hope
633 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000634 do_search(), do_replace():
635 - Removed call to search_abort()/replace_abort() before call to
636 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000637 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000638 findnextstr()
639 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000640- fr.po:
641 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000642- es.po:
643 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000644
Chris Allegrettae955dae2000-07-07 22:24:59 +0000645nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000646- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000647 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
648 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
649 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000650 search_init() and do_replace() and strstrwrapper().
651 - Added _POSIX_VERSION check to regexp code. Better than nothing
652 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000653 - Made search functions & keys more like Pico. Added goto line from
654 search and replace function, changed wording to "No Replace" instead
655 of "To Search", "To Replace" to simply "Replace", and changed to
656 Pico's keystroke by default, ^R. Affects search_init(),
657 do_search() in search.c, globals in nano.h and
658 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000659 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000660- cut.c
661 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000662- files.c:
663 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000664 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000665- nano.c:
666 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000667 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
668 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000669 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000670 - Corrected FIXME in do_enter with explanation. (Rob)
671 - Fixed FIXME in do_justify, resulted in creation of
672 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000673 help_init():
674 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000675 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000676 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000677 do_backspace(), do_delete():
678 - Added magic line code here too.
679
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000680- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000681 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000682- fi.po:
683 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000684- utils.c:
685 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000686- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000687 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000688 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000689 do_yesno(), nanogetstr():
690 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000691 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
692 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000693 clear_bottomwin():
694 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000695 edit_update_top():
696 - Fixed a bug that caused nano to not update when
697 current->next == NULL (e.g. paging down to the very bottom of
698 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000699 fix_editbot:
700 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000701 edit_add:
702 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000703
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000704nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000705- New flag "-T" or "--tabsize" to specify how to display tab widths.
706 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
707 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000708 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000709- id.po:
710 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000711- es.po:
712 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000713- winio.c
714 - Rewrite of display functions to correct the display problems
715 we had been seeing. Affects: add_marked_sameline, edit_add,
716 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000717 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000718 total_refresh():
719 - Cut dispaly_main_list call, as this function is only supposed to refresh
720 what's already on the screen, not go through the process of adding the
721 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000722- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000723 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000724- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000725 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000726 - Removed editwineob, as it was redundant for (editwinrows - 1).
727 Changed all calls to editwinrows - 1 in nano.c and move.c.
728 - Removed all functions that were split into other files.
729 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000730 do_enter():
731 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000732 do_insertfile():
733 - Fix display problem when using ctrl-r to load a file
734 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000735 handle_sigwinch():
736 - Added titlebar(), edit_refresh() and display_main_list() calls because
737 a resize wasn't picking up on possible different width correctly.
738- utils.c:
739 - Moved nmalloc() and nrealloc() here.
740- move.c:
741 - New file, contains movement functions (like do_home(), do_up(),
742 do_down(), page_up(), etc...).
743- files.c:
744 - Contains functions for files (read_file, insert_file,
745 do_writeout(), etc).
746- search.c:
747 - Contains all our searching and related functions, (do_search(),
748 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000749
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000750nano-0.9.10 - 06/04/2000
751- es.po:
752 - Translation updates (Jordi).
753- AUTHORS, nano.1.html, TODO, README:
754 - Documentation and email address updates (Jordi).
755- nano.c:
756 main():
757 - Moved Adam's termio code down to after getopt() and before initscr()
758 to stop people losing their SIGINT character when using args that
759 exit nano before it runs (--version, --help, etc).
760
761nano-0.9.9 - 05/31/2000
762- Makeile.am:
763 - Added proper lines for defining LOCALEDIR.
764- configure.in:
765 - Spelling fixes (Jordi Mallach)
766 - Removed CFLAGS changes for gcc, reduces portability according to
767 some, and it certainly doesn't seem to decrease exe size.
768- es.po:
769 - Spanish ranslation updates (Jordi Mallach)
770- POTFILES.in:
771 - Added global.c file, was screwing up translations (i.e. they
772 weren't getting done).
773- cut.c:
774 add_to_cutbuffer():
775 - Added totsize increment.
776 - Cut fixes and optimizations (Rob Siemborski).
777 do_uncut_text():
778 - Added totsize increment in several places.
779- nano.c:
780 headers:
781 - Removed LOCALEDIR define.
782 do_justify():
783 - Added edit_refresh() call (bug discovered by Adam).
784 page_down_center():
785 - Added call to edit_update(current) for last case. Removed
786 increment of current_y since it's now just wasteful.
787 do_enter():
788 - Added totsize increment.
789 renumber(), renumber_all():
790 - Removed totsize-- and totsize init in renumber_all.
791 do_mouse():
792 - Added edit_refresh() call to show hilight updates. Removed
793 unnecessary wrefresh(edit).
794 main():
795 - Moved up locale calls so that translated --help messages would
796 actually get translated.
797 do_backspace(), do_delete():
798 - Added decrement of totsize.
799 init_help_msg():
800 - New function, initializes help text if NANO_SMALL isn't set (fixes
801 broken i18n).
802 read_file():
803 - malloc call changed to nmalloc (Rob Siemborski).
804- winio.c:
805 total_refresh():
806 - Completely rewrote function, not quite so braindamaged now.
807
808nano-0.9.8 - 05/18/2000
809- nano.c:
810 main():
811 - Added awesome code that disables the CINTR and CQUIT
812 character (Adam Rogoyski). Removed raw()/noraw() calls so that
813 nano gets input in 'normal' mode, which is the Right Way(tm) to
814 do it. ^S, ^Z and ^Q now work properly as a result, as well as
815 ^C. New variable term, global bariable oldterm to save previous
816 term settings, and changes to finish() and die().
817 - Added extra #ifdefs in getopt code, so that above code and
818 flag init is run even if GETOPT_LONG is not #defined.
819 - Added memset line before sigactions. (Adam Rogoyski)
820 do_suspend():
821 Removed function, see above for why.
822- winio.c:
823 update_line(), center_cursor():
824 - Removed wrefresh(edit) from bottom of functions. wrefresh
825 should now only be called once, at the bottom of the main()
826 loop.
827- global.c:
828 shortcut_init():
829 - Removed suspend sc_init call and suspend message because suspend is no
830 longer needed in the shortcut list to work properly.
831
832nano-0.9.7 - 05/14/2000
833- nano.c:
834 do_home(), do_end():
835 - Added calls to update_line for the current line, fixes
836 lack of update (bug discovered by Alberto García).
837 main():
838 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
839 following symlinks even when -l isn't set, and "no changes"
840 error when nano is called from crontab -e (Adam Rogoyski).
841- cut.c:
842 do_cut_text():
843 - Added edit_update_top to cut when mark is set, fixes lack of
844 display update (bug discovered by Ken Tyler).
845
846nano-0.9.6 - 05/08/2000
847- New Italian translation (it.po), by Daniele Medri.
848- nano.c:
849 page_up(), page_down():
850 - Added reset of placewewant to 0, as it should be.
851 do_up(), do_down():
852 - Added call to update_line() for line we move from and line we
853 move to, in order to keep the highlighting correct.
854 do_wrap():
855 - Added var chop, new code to wrap lines more like Pico, mostly.
856 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
857- winio.c:
858 do_help():
859 - Added edit_refresh() before exit.
860 update_cursor():
861 - Removed cursor updating which really wasn't needed anyway.
862 edit_update():
863 - Removed yucky code that didn't work, this function now just
864 computes edittop and editbot and calls edit_refresh() to do the
865 rest, which removes a lot of dupliicate code..
866
867nano-0.9.5 - 05/01/2000
868- Removed bytes from file struct because it was computationally wasteful.
869- cut.c:
870 do_uncut_text():
871 - Added call to edit_refresh().
872- nano.c:
873 do_backspace():
874 - Added reset of editbot when deleting the last line of the file
875 (bug discovered by Adam).
876 do_char():
877 - Removed call to reset_cursor().
878 do_delete():
879 - Added similar check as to do_backspace().
880 do_enter():
881 - Added call to edit_refresh().
882 do_left(), right():
883 - Added call to update_line(), still redundant but better...
884 do_up(), do_down():
885 - Added refresh calls both for current line and line to which
886 we are moving.
887 main():
888 - Removed inefficient call to edit_refresh() after every keystroke.
889 It is now up each function to leave the screen in a good state.
890- winio.c:
891 do_cursorpos()
892 - Rewritten to not use bytes from filestruct by an incremental sum.
893 update_line(), reset_cursor():
894 - Optimized calls to xplustabs() through a single variable.
895 - update_line() now takes a new arg, an index into the string
896 for where to update the line from. Needed for new update
897 code.
898- configure.in:
899 - Better checks for slang, allows argument to --with-slang.
900 (Albert Chin-A-Young)
901 - Removed -Iintl from CFLAGS in gcc check.
902- Makefile.am:
903 - Addition of -Iintl for gettext (Albert Chin-A-Young)
904
905nano-0.9.4 - 04/25/2000
906 - Fixed calls to no_help and changed them to the more consistent
907 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
908 not 1. Code to temporarily disable NO_HELP when in the
909 help system. (Adam Rogoyski)
910- cut.c:
911 do_marked_cut(), do_cut(), do_uncut():
912 - Commented out unnecessary bits when NANO_SMALL is being used.
913- winio.c:
914 xpt(), strlenpt(), actual_x():
915 - Added check for value of data[i] & 0x80, if so do not make
916 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
917 edit_refresh():
918 - New check for temp == NULL (bad thing), if so go back to the
919 previous line. New filestruct var hold points to prev line.
920 Fixes segfault when paging down to the end of a file.
921- nano.c:
922 write_file():
923 - Added check for if file exists and is not equal to the current
924 filename, prompt for overwrite (Adam Rogoyski).
925 do_down():
926 - Removed check for current->next == NULL, now checks return value
927 of do_down before setting current_x = 0 (discovered by Adam).
928 do_justify():
929 - Fixed segfault when reaching the last line (tried to assign
930 currrent->next->data when current->next == NULL) (discovered
931 by Adam).
932- utils.c:
933 - Removed extra macro defs that are now in nano.h.
934- nano.h:
935 - Changed macro SET() to use |= instead of ^=. Fixes bug in
936 cut code when cutting more than one line, and cutbuffer gets
937 blown away when it shouldnt.
938
939nano-0.9.3 - 04/29/2000
940- cut.c:
941 do_marked_cut():
942 - Fixed off by one error in cut code for marked text.
943 do_cut_text():
944 - Removed check for being on the last line, part of
945 magic line code.
946 add_to_cutbuffer():
947 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
948 - Added inptr->prev = NULL for case where cutbuffer == NULL.
949- nano.c:
950 do_backspace(), do_char():
951 - Removed "magic line" code. It was basically causing more bugs
952 than it was helping for the sake of compatibillity. This fixes
953 at least one known segfault condition.
954 do_enter():
955 - Added setting editbot to new node if the new node is the last
956 node in the file.
957 write_file():
958 - Changed writing file bahavior. Now, if last line of the file
959 has any data on it, we write a newline on it, else we dont.
960- winio.c:
961 add_marked_sameline():
962 - New code that checks for whether the begin and end of the marker
963 are on different lines. Missing previously.
964 edit_add():
965 - added some more checks for text length. Cleaned up some mvwaddnstrs that
966 could be written more simply as waddnstrs.
967 edit_refresh():
968 - Removed check for temp == filebot, it is now treated like any other line.
969 Fixes a bug where selected text on the last line shows normally.
970 xpt():
971 - Removed an extra computation for tabs variable that was incorrect.
972 xplustabs():
973 - Since xpt now actualy works, this func is now just a wrapper for
974 xpt(current, current_x)
975- nano.1, nano.1.html:
976 - Added -l option to man pages.
977- configure.in:
978 - New option --enable-tiny, #defines NANO_SMALL in config.h.
979 Disables call to gettext in functions and other i18n stuff in
980 nano.c, the detailed help mode, the resize functions, and the
981 justify code which no one ever uses.
982 - New option --with-slang. Enables slang libraries instead of
983 ncurses, requires slcurses.h for wrapper functions. (Based
984 on patches for 0.8.7 by Glenn McGrath).
985
986nano-0.9.2 - 04/15/2000
987- This release just fixes the serious segfault problem if nano is
988 invoked any way other than using the absolute path. The bug was
989 in the new code for checking whether nano is invoked as pico.
990
991nano-0.9.1 - 04/14/2000
992- Added pico compatibility for ^T when in search or switch to switch
993 to the opposite function. Added one to REPLACE_LIST_LEN and
994 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
995 new strings that will have to be gettex()ed. New argument 'replacing'
996 to search_init(). Handlers in do_replace and do_search().
997- New write code, now follows symbolic links instead of replacing them
998 with the new file. New option (-l, --nofollow) to enable the old
999 (incorrect, but secure) behavior (Adam Rogoyski).
1000- nano.c:
1001 do_wrap():
1002 - Fixed another bug relating to wrapping, and which would cause
1003 a segfault *sigh*.
1004 do_replace():
1005 - Incremented current_x by the length of the replacement
1006 text inside the main repalce loop. Fixes bug #15.
1007 add_marked_sameline():
1008 - New function, handles marked text when start & end of marker is
1009 on one line, also supports most marked text when cursor > COLS.
1010 main():
1011 - Code to check if nano is invoked as 'pico', and if so
1012 automatically set pico_msgs (Robert Jones).
1013
1014nano-0.9.0 - 04/07/2000
1015- nano.1, nano.1.html: Updated man page with my email address and homepage.
1016- winio.c:
1017 reset_cursor(), update_line():
1018 - Changed update algorithm for x value to (COLS - 7) multiple when x
1019 value > (COLS - 2).
1020- edit_refresh():
1021 - Removed inner loop code, now calls update_line() for each line
1022 in question, MUCH nicer.
1023- xplustabs(), xpt():
1024 - Removed redundant increment of tabs when collumn no % 8 == 0.
1025 - Added check for data[i] < 32, most of such bits are 2 chars wide.
1026- update_line():
1027 - Fixed a stupid call to strlenpt with col when we should have
1028 been using actual_col. Ugh.
1029
1030nano-0.8.9 - 03/22/2000
1031- nano.c:
1032 empty_line(), no_spaces(), justify_format(), do_justify():
1033 Actually added these (screwup applying patch).
1034 do_justify(): Added call to set_modified().
1035
1036nano-0.8.8 - 03/12/2000
1037- Preliminary internationalization support. Many many functions modified
1038 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
1039 New dirs po/ and intl/, changes to configure.in and Automake.am to
1040 support i18n.
1041- nano.c:
1042 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
1043 statics: Changed some things that were not necessarily static
1044 (Adam Rogoyski).
1045 nrealloc(): New function, similar to nmalloc(). Changed calls from
1046 realloc() to nrealloc (Adam Rogoyski).
1047 empty_line(), no_spaces(), justify_format(), do_justify():
1048 New functions for justify function (Adam Rogoyski).
1049- winio.c:
1050 blank_edit(): Added wrefresh call to edit so that screen updates (like
1051 on ^L) actually work.
1052 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
1053
1054nano-0.8.7 - 03/01/2000
1055- main.c:
1056 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
1057 to a single character on one line when no good place to
1058 break the line exists, and for wrapping lines longer than COLS.
1059- nano.1.html:
1060 Html version of man page, now included in dist. For
1061 the benefit of nano packages in Linux distributions.
1062
1063nano-0.8.6 - 02/24/2000
1064- gobal.c:
1065 shortcut_init():
1066 Added shortcuts for goto_line and do_replace when using
1067 pico_msgs. Oops.
1068- nano.c:
1069 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
1070 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
1071 Removed check for backing up past spaces first.
1072 main(): Added for loop to check for alt keys instead of hard list.
1073 do_enter(): Fix for bug #14, added call to reset_cursor and messed
1074 up do_char quite a bit.
1075 version(): Added time and date stamp for compile on version message.
1076 Added mail and web page info.
1077- README: Updated mailing list info.
1078
1079nano-0.8.5 - 02/18/2000
1080- nano.c:
1081 main(): Finally fixed tilde being input on page up/down keys in
1082 certain terminal types. Fix was input 26->91->5[34] check
1083 for 126, if so make the kbinput PAGE UP/DOWN, else unget
1084 the keystroke and continue. Added #include <ioctl.h> for
1085 ioctl call.
1086 handle_hup():
1087 Handler for hangup signal. Belated include of patch from
1088 Tim Sherwood.
1089- winio.c:
1090 edit_refresh():
1091 Temporary fix for selecting text when temp == current.
1092 edit_refresh() is now unmanagably complex, and must be
1093 revamped.
1094 check_statblank():
1095 Added check for constupdate, makes things less choppy
1096 (Adam Rogoyski)
1097
1098nano-0.8.4 - 02/11/2000
1099- Moved global variables that were only (or mostly) used in one file into
1100 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
1101- global.c:
1102 shortcut_init():
1103 Removed redundant NANO_CONTROL_H from backspace shortcut,
1104 added char 127 which should have been there.
1105- nano.c:
1106 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
1107 segfaults (Adam Rogoyski).
1108- Makefile.am: Added all source filenames (Adam Rogoyski).
1109- nano.1: Fixed mail addressed and added mailing list address.
1110- README: Updated my email address and the nano web page.
1111
1112nano-0.8.3 - 02/08/2000
1113- New pico mode (-p, --pico), toggles (more) compatibility with the
1114 Pico messages displayed in the shortcut list. Note that there are still
1115 small differences in this mode.
1116- nano.h: New shortcut struct format, for the benefit of i18n and
1117 our help menu. Removed shortcut message macros, they are
1118 now all in shortcut_init in global.c.
1119- nano.c:
1120 do_wrap(): Removed resetting of current_x when we are in fact
1121 wrapping to the next line, fixes a bug in -i mode.
1122 do_enter():
1123 Rewrote the autoindent mode code to be a lot less pretty,
1124 but a lot more magical.
1125 main():
1126 Removed case for ignoring char 126 (~). That's kind of
1127 important, we'll have to fix handling that sequence when
1128 pageing up/down on a terminal some other way... Revamped
1129 main switch loop in much snazzier fashion based on the
1130 shortcut list.
1131- winio.c:
1132 New function display_main_list. Affects all functions
1133 that used to call bottombars() with main_list. Added
1134 because we now only call bottombars with the macro
1135 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
1136 changes to the main_list shortcut list (see global.c below).
1137 New function do_help, our preliminary dynamic help system.
1138- Many many funcs:
1139 Changed from int to void to allow one uniform type to call
1140 from the shortcut struct. Also a few functions that do
1141 not simple have void argument have new functions called
1142 funcname_void(void) to be called from the shortcut list.
1143 do_cut_text and do_uncut_text were changed to void
1144 arguments because they were never called with a filestruct
1145 other than *current anyway.
1146- global.c:
1147 Shortcut list main_list was expanded to cover all
1148 shortcuts that could be caught in the main loop.
1149 Consequently there is a new macro MAIN_VISIBLE which tells
1150 how many items in the main list to actually show.
1151
1152nano-0.8.2 - 02/02/2000
1153- Added initial mouse (-m, --mouse) support. New global variable
1154 use_mouse. (Adam Rogoyski)
1155
1156- nano.c: Set intial value of fill to COLS - 8 rather than just 72
1157 regardless. (Adam Rogoyski).
1158 do_delete():
1159 Deleted call to do_backspace() when on the end of a line,
1160 because it won't update the line properly.
1161 do_backspace():
1162 Removed unnecessary pointer manipulation that was being
1163 handled by unlink_node().
1164 open_file():
1165 Added check for trying to open a directory (currently we
1166 segfault on this). Bug pointed out by Chad Ziccardi.
1167
1168nano-0.8.1 - 01/28/2000
1169- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
1170 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
1171 global.c and proto.h.
1172- nano.c:
1173write_file(): Added (incredibly) necessary check for EPERM when
1174 link() fails. This allows us to actually save
1175 files via rename() on filesystems that dont
1176 support hard links (AIEEEEEE).
1177do_goto():
1178 Fixed a stupid mistake where we were calling
1179 bottombars() with replace_list instead of goto_list.
1180- nano.h:
1181 New char *help in shortcut structure for help
1182 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
1183 for help function and i18n.
1184- global.c:
1185 New functions shortcut_init (called in nano.c) and
1186 sc_init_one() to initialize the shortcuts without
1187 using {}s (for i18n).
1188
1189nano-0.8.0 - 01/25/2000
1190- View flag (-v, --view) implemented. Global variable view_mode, affects
1191 main loop of nano.c and new_file(). (me)
1192- nano.c:
1193 split checks for TERMIOS_H and TERMIO_H up so we
1194 can (theoretically) include them both, which is good.
1195handle_sigwinch():
1196 Added check for ncurses.h. (Andy Kahn)
1197do_spell():
1198 We now only try ispell because we don't as of yet
1199 handle the 'spell' program the right way, now that
1200 I finally know what the right way is =-). Added
1201 call to edit_update(fileage) to stop segfaults.
1202global_init():
1203 Added initialization of edit* filestruct pointers
1204 to stop segfaults on spell check.
1205usage():
1206 Check for getopt_long, and if no leave out the
1207 GNU options everyone seems to love so much (Andy Kahn)
1208main():
1209 Added checks for getopt_long (Andy Kahn)
1210 We ignore character 126 because it gets put into
1211 the buffer when we page up/down on a vt terminal.
1212write_file():
1213 Fixes for umask (Adam Rogoyski). Renamed tmpfile
1214 variable to tmp. Documented the tmp opttion
1215 better in the function comments. Fixed my
1216 stupidly commented out check for tmp on setting
1217 umask which I really like =>
1218- nano.h:
1219 Made desc variable in shortcut struct a pointer
1220 instead of a fixed-length string.
1221- utils.c:
1222 Fixed check for config.h before nano.h.
1223- configure.in:
1224 New checks for getopt_long, getopt.h, removed
1225 CFLAGS and LDFLAGS changes. Gonna have to run
1226 strip manually now =-) (Andy Kahn)
1227 Added check for HAVE_WRESIZE, new file acconfig.h (me).
1228
1229nano-0.7.9 - 01/24/2000
1230- New autoindent feature. Command flag 'i' or '--autoindent'. New
1231 function do_char() to clean up character output, global
1232 variable autoindent in global.c. (Graham Mainwaring)
1233- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
1234 files on exit without prompting. Affects do_writeout(). Also
1235 do_writeout() now takes a parameter for if exiting.
1236 Global variable temp_opt in global.c (Graham Mainwaring)
1237- Preliminary spell program support. Added command flag '-s' or
1238 '--speller' for alternative speller command. Added function do_spell()
1239 and exit_spell() to nano.c. New global variable alt_speller.
1240- nano.c:
1241 main(): We now ignore input of decimal 410 because these get entered
1242 when we resize the screen. Sorted options in getopt()
1243 switch statement.
1244 usage(): Sorted options and changed tabs to make room for -s option.
1245 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1246 doesn't print the number of lines written on the statusbar.
1247 global_init():
1248 Added more initializations to globals to support do_spell().
1249
1250nano-0.7.8 - 01/23/2000
1251- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1252- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1253 and main() in nano.c
1254- Removed redundant reset_cursor() calls from the blank() routines.
1255- nano.c:
1256 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1257 Removed check for isprint() characters in main while loop
1258 for people with odd character sets *shrug*. Added some X
1259 window F-key combos.
1260 read_line(): New function, consolidates of most of the special
1261 sections of the file reading code. (Rob Siemborski)
1262 do_replace(): Many scattered fixes. (Rob Siemborski)
1263 write_file(): Added check for empty filename.
1264- winio.c:
1265 nanogetstr(): Fixes for deleting at places other than the end of the
1266 buffer, cut support. (Adam Rogoyski)
1267 blank_edit(): New function, blanks edit buffer. Added call to it in
1268 total_refresh().
1269- configure: Checks for glib if snprintf of vsnprintf aren't available
1270 (Andy Kahn). Changed warning message when no termcap lib
1271 is found.
1272
1273nano-0.7.7 - 01/19/2000
1274- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1275 mode (affects getopt() in main() and usage() function in nano.c
1276- New flag -c, always show cursor position. Affects main() in nano.c and
1277 statusbar() in winio.c
1278- Option '-x' doesn't show help window at the bottom of the editor.
1279 New variable no_help in nano.h and proto.h, affects main(), usage(),
1280 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1281 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1282 hand =P) (Adam Rogoyski)
1283- nano.c:
1284 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1285 page_up(), page_down():
1286 - New functions. We now set the cursor at the top right corner,
1287 not at the center line, and page up and down a full screen
1288 rather than a half screen. Original functions renamed to
1289 page_up_center() and page_down_center().
1290 main():
1291 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1292 in main while loop because suspend mode was broken. This should
1293 fix it, at least for now.
1294 - Added long option support (By popular harassment ;-) - Added
1295 #include for getopt.h, changed getopt() to getopt_long().
1296 Options added so far: --version (-V), --nowrap (-w), --suspend
1297 (-z), --help (-h), --nohelp (-x).
1298 - Rewrote signal statements (Adam Rogoyski)
1299
1300nano 0.7.6 - 01/15/2000
1301- New ChangeLog format
1302- nano.c:
1303 main(): Bound CONTROL_H to backspace (oops)
1304 Added more Alt-[-key combinations, for page up & down.
1305 read_bytes(): New function (Adam Rogoyski)
1306 read_file(): Optimizations - malloc()s *buf a little at a time rather
1307 than one huge buffer, and replaced the strcat at the end
1308 with an index variable. Added call to read_bytes().
1309 do_next_word(): New function, binding is control-space (0) (me)
1310
1311- winio.c:
1312 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1313 (formula is extra space needed = COLS / 6 - 13).
1314 actual_x() & strlenpt():
1315 Added bug#9 fix - when tabs % 8 == 0, we should only
1316 increment tabs by 1.
1317 titlebar(): Fixed overrun in titlebar on very long filenames.
1318
13190.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1320 writing a newline at EOF. do_cursorpos and do_replace are now not
1321 directly bound to signals but picked up as their control sequences
1322 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
13230.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1324 available memory, align bug fixed (Big Gaute).
1325
1326--- As of version 0.7.4 TIP is renamed to nano.
1327
13280.7.3 Fixed a double blank_statusbar() when jumping to first and last
1329 lines. Took out unnecessary updates in load_file. Bug fix in
1330 do_left. Missing updates to totlines, fixed bug #7 (last line not
1331 having a newline at the end doesnt get read, bugfix in do_replace
1332 with replace all, more/better comments (Robert Siemborski)
13330.7.2 Our first patch accepted into the source! configure fixes
1334 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1335 Bug fix in update_line for editing long lines. Fixed arguments
1336 being put into the filename when none is specified. Preliminary
1337 +line command argument function.
13380.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1339 edit_refresh to stop cursor "jumping" during screen updates. This
1340 will probably cause a bug or two. Replace is now Alt-R (@R) and
1341 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1342 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1343 Control-G will become the Help key, but for now is stubbed out.
13440.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1345 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1346 length file. Added Esc-[-A,B,C,D cursor key sequences.
13470.6.9 Preliminary cursor position function. Split up tip.c more, made
1348 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1349 that was leaving out a character.
13500.6.8 By request, optchr in main() is now an int. Removed unneeded
1351 globals. Bound functions for next/prev page, and wrote functions
1352 do_home and do_end.
13530.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1354 created read_file. Implemented Insert File. Fixes in tipgetstr
1355 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
13560.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1357 aborted searches and more Pico-compatible messages. statusq() now
1358 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
13590.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1360 regarding buffers with filebot in them. Fixins in do_backspace
1361 and do_enter. Removed unused variables. Removed strip_newline.
13620.6.4 Took out the awful newlines from each string buffers. This will
1363 certainly cause more bugs. Fixes in do_exit(). Better empty file
1364 handling (I hope).
13650.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1366 do_enter() rewritten.
13670.6.2 Better default file permissions. Complete rewrite of do_wrap().
1368 Better handling of editing with cursor near COLS - 1.
13690.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1370 codes being entered into the buffer. Bug fix in actual_x; more
1371 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1372 locked into cutbuffer when cutting more than one marked screen of text.
13730.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1374 width on the screen we want to be, not an index of current->data.
1375 New functions xplustabs and actual_x convert the actual place
1376 the cursor should be on the screen to and from the place in the
1377 string.
13780.5.5 Changed do_right to test do_down before setting current_x to 0,
1379 eliminiating the "looping" on the last line when holding the right
1380 arrow. Preliminary support for longer than COLS - 1 lines.
1381 Wrote do_delete.
13820.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1383 tipgetstr is much more messy but text is now more editable ;)
1384 Fixed crash on entering a new file, hopefully. Awful stub for tab
1385 handling, only in do_right() to save me some sanity.
13860.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1387 Fixed a few bugs in do_uncut when not uncutting from marked text.
1388 I would not trust your data with the mark code right now, but then
1389 we're not at version 1.0 yet so dont trust anything ;)
13900.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1391 jump after each keystroke entered. Select text stubbed. Fixed
1392 a bug in total_refresh(). Setting a mark will hilight properly,
1393 but does not actually affect what gets put in the cutbuffer (yet).
13940.5.1 Writing a file out causes modified to be set back to 0. Good.
1395 Set_modified function written. Cut and uncut text now set
1396 modified when called.
13970.5.0 Half way there! Implemented write out, save function seems
1398 stable. Changed statusbar blank routing to not refresh, a separte
1399 program calls it and then refreshes. Made the program not clear
1400 the srceen on exit, just the bottom two lines (like Pico).
14010.4.2 Implemented replace all in replace function. Crude exit function
1402 (asks yes or no if modified but does not write to file).
14030.4.1 Implementing search & replace. Fixed crash on deleting at top of
1404 edit buffer. Implemented "timeout" of statusbar messages.
1405 Implemented ^A and ^E (beginning and end of line).
14060.4.0 Split code into global.c and proto.h to allow for better multiple
1407 file handling. Added #defines for the majority of the shortcut
1408 kets in tip.h for easy modification.
14090.3.1 Write edit_refresh which doesn't move the screen around, just
1410 updates what's there already. do_wrap() and do_enter() added.
14110.3.0 Preliminary cutbuffer (cut and uncut) support.
14120.2.7 Check for Modification added. do_search() works.
14130.2.5 Rewrite of file data struct.
14140.2 Read in data to buffer, bound keystrokes to stub functions,
1415 initial cursor movement on screen. Initial autoconf support.
14160.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001417
1418$Id$