blob: 73452f32a982666e33dbdacff627915dd8baa556 [file] [log] [blame]
Chris Allegretta18666092000-11-24 01:37:14 +00001CVS code -
Chris Allegrettabe77c612000-11-24 14:00:16 +00002- General
Chris Allegrettabe77c612000-11-24 14:00:16 +00003 - Username tab completion code, and cleaned up existing tabcomp
4 code. New functions real_dir_from_tide(), append_slash_if_dir(),
5 username_tab_completion is more than a stub now =-).
Chris Allegretta72623582000-11-29 23:43:28 +00006 - Ignore key sequence 543 & 545, right control and alt keys in
7 windows. Affects main() and winio.c:nanogetstr().
Chris Allegretta56b24b52000-11-29 23:57:20 +00008 - Took out help from spell_list and changed SPELL_LIST_LEN to 1.
9 Is using a spell checker THAT difficult? =-)
Chris Allegrettaff269f82000-12-01 18:46:01 +000010 - New function nano_disabled_msg(), to alert that certain
11 functions have been disabled, similaer to nano_tiny feature.
12- New configure options:
13 - Added configure argument --disable-tabcomp. Affects
14 bottom of files.c and write_file, utils.c:check_wildcard_match()
15 and winio.c:nanogettsr().
16 - New options --enable-extra. New code in nano.c:version() to
17 print out various options from ./configure, function do_credits().
18 - Added --disable-spell option for those who want to just disable
19 the spell check feature. Affects the spellinf fucntions
20 do_spell, do_int_speller and do_alt_speller.
21 - Added --disable-justify to get rid of the justify function.
22 Affects do_justify() (not surprisingly).
Chris Allegretta650e8a42000-11-24 14:15:17 +000023- files.c:
24 write_file()
25 - Unsetting modified on temp files bug fixed (Rocco Corsi).
Chris Allegretta25f4e582000-11-25 05:03:20 +000026 do_insertfile()
Chris Allegretta09a80842000-11-30 02:31:13 +000027 - Added call to real_name_from tilde, oops. Added check for
28 DISABLE_TABCOMP.
Chris Allegretta24946bd2000-11-26 21:34:47 +000029 read_file()
30 - Added check for fileptr == NULL.
Chris Allegretta07798352000-11-27 22:58:23 +000031- global.c:
32 shortcut_init()
33 - Now takes an argument as to whether to display the unjustify
34 shortcut or the normal uncut text one. Needed to accomodate
35 the klugey unjustify code.
Chris Allegretta8be8ce22000-11-28 02:15:30 +000036- nano.1, nano.1.html:
37 - Updated date on pages because of -p changes.
Chris Allegretta9149e612000-11-27 00:23:41 +000038- nano.c:
39 do_justify()
Chris Allegretta8be8ce22000-11-28 02:15:30 +000040 - Wrote unjustify code. Borrows cutbuffer and stores the unjustified
41 text there, then grabs the next keystroke and, if the unjustify
42 key, gets rid of the justified text and calls do_uncut_text.
43 Added macro NANO_UNJUSTIFY_KEY.
Chris Allegrettad00e6df2000-11-29 04:33:26 +000044 do_int_spell*
45 - Various fixes (Rocco Corsi).
46 - Changed abort of program to aborting based on value of "edit a
47 replacement" question, and not caring about the replace loop
48 return value. That way the user can get out of the replace loop
49 and continue spell checking (very important to me anyway).
Chris Allegrettaff269f82000-12-01 18:46:01 +000050 version()
51 - Took out huge check for the various --disabled macros,
52 eventually there will be too many to reasonably check for.
Chris Allegretta4eb7aa02000-12-01 18:57:11 +000053 nano_small_msg(), nano_disabled_msg()
54 - Added checks for disabled functions to see whether or not to
55 declare them.
Chris Allegretta9e2934f2000-12-01 23:49:48 +000056 do_next_word()
57 - Update the previous line as well as the current one in case we
58 have moved beyond COLS or back from COLS, patch submitted
59 by Ryan Krebs.
Chris Allegrettae7a58932000-12-02 02:36:22 +000060 die()
61 - Now creates .save file using variable-length strings. Also
62 calls write_file with tmp == 1, which happens to do exactly what
63 we want (ignore symlinks and use mode 0600).
64 handle_sighup()
65 - Now calls die instead of writing on its own and exiting normally.
Chris Allegrettad00e6df2000-11-29 04:33:26 +000066- search.c:
67 do_replace_hilight()
68 - New function, displays the currently selected word as hilighted
69 in the spell check. Called from do_replace_loop (Rocco Corsi).
70 - Added calls to curs_set(0) and (1) to diable the cursor when
71 hilighting, looks much better.
Jordi Mallachd819a4c2000-11-25 04:50:25 +000072- es.po:
73 - Traditional Spanish strings updates.
Chris Allegrettabe77c612000-11-24 14:00:16 +000074
Chris Allegrettaca7a21d2000-11-24 01:35:40 +000075nano 0.9.21 - 11/23/2000
Chris Allegrettaf26bca72000-11-21 03:04:45 +000076- AUTHORS
77 - Added Rocco Corsi.
Chris Allegretta31c76662000-11-21 06:20:20 +000078- nano.c:
79 main()
80 - Changed check for argc == 1 to argv[optind] == NULL to decide
81 whether or not to display "New File" in the statusbar.
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +000082- search.c:
83 findnextstr()
Chris Allegretta1cc29f62000-11-20 01:29:37 +000084 - Fix curent_x increment bug by using another variable (Rocco Corsi).
Chris Allegrettaef601bb2000-11-19 19:15:03 +000085 search_init()
86 - Silly typo in our "one simple call" of statusq. Stopped
87 previous search string from being displayed.
Chris Allegrettac793c432000-11-21 12:52:55 +000088 do_replace()
89 - Copy back the previous value of last_replace into answer if
90 using PICO_MODE and answer == ""
Chris Allegretta6c5781b2000-11-23 01:19:58 +000091- winio.c:
92 do_up()
93 - Deleted first update_line() call, screws up display when marker is set.
Chris Allegrettad466ab72000-11-19 20:36:41 +000094- nano.1, nano.1.html
95 - Updated man page for new -p definition.
Chris Allegrettaac0e63a2000-11-19 02:25:43 +000096
Chris Allegretta6da149a2000-11-19 02:23:03 +000097nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +000098- General
99 - Ran source through indent -kr again. Make everything pretty.
100 - Changed behavior of "search" and "replace" prompts to make all
101 previous values editable. This change was made so that you can
102 replace with the null string without needing a special key for it.
103 changed code in search_init(), do_replace(), nanogetstr (see
104 below).
105 - Added some missing gettext calls here and there (Jordi).
106 - Revamped nanogetsr() and calls to it to use variable length strings.
107 MANY changes in nanogetstr(), many chances in search.c, new
108 function mallocstrcpy which is sure to be a programmatic
109 nightmare, changed last_search, last_replace, answer to
110 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +0000111 truncated strings in satusbar when the string is not found
112 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000113 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +0000114 - New spelling code by Rocco Corsi. New functions
115 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
116 New functions search_init_globals and do_replace_loop, changes
117 to search_init(), do_replace, findnextstr, moved last_search and
118 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +0000119 - New tab completion code. Used check_wildcard_match, input_tab,
120 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +0000121 hacked them a lot, changes to nanogetstr(). nanogetstr() and
122 statusq() now take an arg for whether or not to allow tab
123 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +0000124 - Fixed value being input in statusbar during a search or replace
125 and CASE_SENSITIVE or the other search is called and the
126 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +0000127 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
128 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +0000129- files.c:
130 do_writeout()
131 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000132- global.c
Chris Allegretta105da332000-10-31 05:10:10 +0000133 - New global replace_list_2, for 2nd half of the replace dialog
134 ("Replace with:"), has fewer options than first half because
135 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +0000136 toggle_init()
137 - Added #ifdef around toggle_regex_msg to get rid of compiler
138 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +0000139
140- nano.c:
141 keypad_on()
142 - New function, toggles turning the keypad on and off in edit and
143 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000144- search.c
145 findnexstr()
146 - New arg for begin_x variable, basically a rewrite that
147 makes a little more sense and isn't quite as messy (Rocco Corsi).
148 - Update the line we're checking if not the whole screen, because
149 it's quite possible the search team could exist somewhere way
150 to the right on the same line, for example.
151 replace_abort()
152 - Add reset of placewewant, stops cursor from jumping when moving
153 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +0000154 do_replace()
155 - Added code for Gotoline key after entering the search term.
156 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000157 - Removed redundant code involving processing replacemenet string.
158 Converted if statements to switch statements.
159 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +0000160 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +0000161 do_search()
162 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +0000163- winio.c
164 nanogetstr()
165 - Added check for 343 in while loop to get rid of getting "locked"
166 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +0000167 - Changed check to return -2 on "enter" from answer == ""
168 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +0000169 - Fixed fallthrough code because there was no break. Make much
170 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +0000171 - Added check for ASCII 54[124] when using PDCURSES, ignore them
172 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +0000173 nanoget_repaint()
174 - New function, removes about 30 lines of duplicate code in
175 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +0000176 - Black magic code to make $ appear in prompt if we're past
177 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +0000178 blank_edit()
179 - Removed wrefresh() call, much less choppy now. If there's a need
180 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +0000181- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +0000182 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +0000183
Chris Allegretta07e97d62000-10-03 01:52:50 +0000184nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +0000185- General
186 - Added PDCurses support under cygwin, which allows building
187 a nice stand-alone nano.exe for those poor Windows users.
188 Extra check in configure.in for initscr() in -lcurses (as
189 PDcurses has no tgetent), some #ifdef PDCURSES statements
190 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000191 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000192- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000193 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000194 main()
195 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000196- search.c
197 - Added initializations for last_search and last_replace (Rocco Corsi)
198
Chris Allegretta629edad2000-09-19 00:27:19 +0000199nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000200- General
201 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
202 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000203- configure.in:
204 - Added default case for cross-compiling to get rid of annoying
205 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000206- cut.c:
207 do_cut_text()
208 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000209 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000210- files.c:
211 open_file()
212 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000213- global.c:
214 shortcut_init()
215 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000216- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000217 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000218 - Added check for _POSIX_VDISABLE and use raw mode if not
219 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000220 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000221 - Revamped a great deal of the F-key and keypad key handling,
222 because we not longer use keypad() (see below).
223 - Removed keypad() call because nano was not working with the
224 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000225 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000226 do_toggle()
227 - Rewrote function to allow NOHELP toggle to wotk on systems
228 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000229 mouse_init()
230 - Add keypad only if mouse support is on, otherwise mouse doesn't
231 work. I guess you have to choose between having the mouse and
232 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000233- winio.c:
234 total_refresh()
235 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000236 onekey()
237 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000238
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000239- search.c:
240 findnextstr()
241 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000242- es.po:
243 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000244- de.po
245 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000246
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000247nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000248- General
249 - New shortcuts to toggle certain options that are normally only
250 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
251 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000252 called from shortcut_init(), and do_toggle in nano.c. Also
253 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000254 signal_init(). Moved "struct sigaction act"into a static in
255 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000256 - Changed from Alt-key symbol (@) which is completely nonstandard
257 to the *nix "Meta" symbol (M-). Changed help_init to show
258 the M-key usage and the help text to explain keys whcih generate
259 Meta. Moved the toggle Meta keystrokes to the first column
260 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000261 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000262 - Changed last_search and last_replace vars to statically
263 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000264- global.c:
265 toggle_init()
266 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
267 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000268- nano.c:
269 do_mouse()
270 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000271 do_wrap()
272 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000273 do_toggle()
274 - Added checks for no help and no wrap mode, and print opposite
275 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000276 do_suspend(), do_cont():
277 - New functions, handle suspend signal in a Pico-like manner and
278 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000279- winio.c:
280 total_refresh()
281 - Added edit_refresh() call to actually update the screen if messy.
282 edit_refresh_clearok()
283 - New function, does a total update for edit refresh, needed to fix
284 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000285 onekey()
286 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000287
Chris Allegretta6306a112000-09-02 07:55:41 +0000288 update_line()
289 - Added check for binary data >= 1 and <= 26, and use ^+letter
290 to display it. Should fix editing text files with binary
291 data in them. Placing of the cursor seems to be a bit screwed
292 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000293- search.c:
294 search_abort()
295 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
296 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000297 findnextstr():
298 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000299 - Fixed check for string that only occurs on the same line failing
300 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000301
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000302nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000303- cut.c:
304 do_cut_text()
305 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000306 - Added check_statblank().
307 - Check for fileptr == filebot, if so return, we shouldn't bother
308 cutting the magic line.
309 do_uncut_text()
310 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000311- nano.c:
312 main()
313 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000314- po/Makefile.in.in:
315 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
316 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000317- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000318 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000319
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000320nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000321- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
322 Affects many many functions. Removed functions edit_update_top and
323 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000324- Added global variable tabsize, we no longer screw with the curses
325 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000326- configure.in:
327 - Finally fixed check for slang to report "no" if not called
328 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000329- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000330 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000331 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000332 null_at()
333 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000334 delete_buffer()
335 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000336 do_backspace()
337 - Now calls page_up_center instead of page_up (as it should?)
338 do_enter()
339 - Fixed typo (?) in check for inptr->next. Caused lots of
340 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000341 main()
342 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000343- search.c:
344 replace_abort()
345 - redundant, now just calls search abort until it does something
346 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000347- winio.c:
348 edit_refresh()
349 - Added check for current line "running" off the screen.
350 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000351 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000352 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000353 edit_update()
354 - Rewritten, hopefully this will remove a lot of the
355 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000356- move.c:
357 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000358 - do an edit_update() at last case. Made function more like
359 Pico's version, only move down to two lines before editbot.
360 page_up()
361 - Made function more like Pico's version, only move down to two
362 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000363
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000364nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000365- nano.h:
366 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
367- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000368 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000369 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000370 - Simplified check for freeing cutbuffer. Added checks for doing
371 multiple cuts with -k, now sets marked_cut to 2 for later
372 processing by do_uncut_text().
373 do_uncut_text()
374 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000375- files.c:
376 write_file()
377 - Removed (redundant) check for writing out files with -t.
378 do_writeout()
379 - Changed check for filename to filename[0]. Added some code,
380 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000381- nano.c:
382 do_justify() & do_wrap():
383 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000384- de.po
385 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000386
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000387nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000388- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000389 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
390 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000391- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
392 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000393- move.c
394 page_down()
395 - Don't edit_refresh() if the bottom of the file is in the edit
396 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000397- nano.c:
398 main():
399 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000400 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000401 die():
402 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000403 do_spell():
404 - Changed exit semantincs a bit so that aspell wouldn't get
405 all screwy (bug disovered by Joshua Jensen.
406- files.c:
407 read_file():
408 - Added init of buf variable, hopefully this will stop the
409 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000410 write_file():
411 - Added code to check to see if using -l and the file is not
412 in fact a link. This should fix the behavior where a file
413 that does not have write permission but could be removed and
414 rewritten is saved without error. Please test this feature
415 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000416- search.c:
417 search_init():
418 - Added " (to replace)" statement to end of search string if
419 we are doing a replace. Manually converted all the translations
420 from '%s' to '%s%s' to ensure they still work with the new code.
421 Also put in the translation for " (replace)" in the .po's. Hope
422 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000423 do_search(), do_replace():
424 - Removed call to search_abort()/replace_abort() before call to
425 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000426 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000427 findnextstr()
428 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000429- fr.po:
430 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000431- es.po:
432 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000433
Chris Allegrettae955dae2000-07-07 22:24:59 +0000434nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000435- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000436 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
437 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
438 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000439 search_init() and do_replace() and strstrwrapper().
440 - Added _POSIX_VERSION check to regexp code. Better than nothing
441 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000442 - Made search functions & keys more like Pico. Added goto line from
443 search and replace function, changed wording to "No Replace" instead
444 of "To Search", "To Replace" to simply "Replace", and changed to
445 Pico's keystroke by default, ^R. Affects search_init(),
446 do_search() in search.c, globals in nano.h and
447 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000448 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000449- cut.c
450 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000451- files.c:
452 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000453 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000454- nano.c:
455 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000456 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
457 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000458 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000459 - Corrected FIXME in do_enter with explanation. (Rob)
460 - Fixed FIXME in do_justify, resulted in creation of
461 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000462 help_init():
463 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000464 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000465 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000466 do_backspace(), do_delete():
467 - Added magic line code here too.
468
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000469- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000470 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000471- fi.po:
472 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000473- utils.c:
474 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000475- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000476 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000477 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000478 do_yesno(), nanogetstr():
479 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000480 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
481 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000482 clear_bottomwin():
483 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000484 edit_update_top():
485 - Fixed a bug that caused nano to not update when
486 current->next == NULL (e.g. paging down to the very bottom of
487 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000488 fix_editbot:
489 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000490 edit_add:
491 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000492
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000493nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000494- New flag "-T" or "--tabsize" to specify how to display tab widths.
495 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
496 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000497 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000498- id.po:
499 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000500- es.po:
501 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000502- winio.c
503 - Rewrite of display functions to correct the display problems
504 we had been seeing. Affects: add_marked_sameline, edit_add,
505 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000506 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000507 total_refresh():
508 - Cut dispaly_main_list call, as this function is only supposed to refresh
509 what's already on the screen, not go through the process of adding the
510 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000511- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000512 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000513- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000514 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000515 - Removed editwineob, as it was redundant for (editwinrows - 1).
516 Changed all calls to editwinrows - 1 in nano.c and move.c.
517 - Removed all functions that were split into other files.
518 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000519 do_enter():
520 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000521 do_insertfile():
522 - Fix display problem when using ctrl-r to load a file
523 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000524 handle_sigwinch():
525 - Added titlebar(), edit_refresh() and display_main_list() calls because
526 a resize wasn't picking up on possible different width correctly.
527- utils.c:
528 - Moved nmalloc() and nrealloc() here.
529- move.c:
530 - New file, contains movement functions (like do_home(), do_up(),
531 do_down(), page_up(), etc...).
532- files.c:
533 - Contains functions for files (read_file, insert_file,
534 do_writeout(), etc).
535- search.c:
536 - Contains all our searching and related functions, (do_search(),
537 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000538
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000539nano-0.9.10 - 06/04/2000
540- es.po:
541 - Translation updates (Jordi).
542- AUTHORS, nano.1.html, TODO, README:
543 - Documentation and email address updates (Jordi).
544- nano.c:
545 main():
546 - Moved Adam's termio code down to after getopt() and before initscr()
547 to stop people losing their SIGINT character when using args that
548 exit nano before it runs (--version, --help, etc).
549
550nano-0.9.9 - 05/31/2000
551- Makeile.am:
552 - Added proper lines for defining LOCALEDIR.
553- configure.in:
554 - Spelling fixes (Jordi Mallach)
555 - Removed CFLAGS changes for gcc, reduces portability according to
556 some, and it certainly doesn't seem to decrease exe size.
557- es.po:
558 - Spanish ranslation updates (Jordi Mallach)
559- POTFILES.in:
560 - Added global.c file, was screwing up translations (i.e. they
561 weren't getting done).
562- cut.c:
563 add_to_cutbuffer():
564 - Added totsize increment.
565 - Cut fixes and optimizations (Rob Siemborski).
566 do_uncut_text():
567 - Added totsize increment in several places.
568- nano.c:
569 headers:
570 - Removed LOCALEDIR define.
571 do_justify():
572 - Added edit_refresh() call (bug discovered by Adam).
573 page_down_center():
574 - Added call to edit_update(current) for last case. Removed
575 increment of current_y since it's now just wasteful.
576 do_enter():
577 - Added totsize increment.
578 renumber(), renumber_all():
579 - Removed totsize-- and totsize init in renumber_all.
580 do_mouse():
581 - Added edit_refresh() call to show hilight updates. Removed
582 unnecessary wrefresh(edit).
583 main():
584 - Moved up locale calls so that translated --help messages would
585 actually get translated.
586 do_backspace(), do_delete():
587 - Added decrement of totsize.
588 init_help_msg():
589 - New function, initializes help text if NANO_SMALL isn't set (fixes
590 broken i18n).
591 read_file():
592 - malloc call changed to nmalloc (Rob Siemborski).
593- winio.c:
594 total_refresh():
595 - Completely rewrote function, not quite so braindamaged now.
596
597nano-0.9.8 - 05/18/2000
598- nano.c:
599 main():
600 - Added awesome code that disables the CINTR and CQUIT
601 character (Adam Rogoyski). Removed raw()/noraw() calls so that
602 nano gets input in 'normal' mode, which is the Right Way(tm) to
603 do it. ^S, ^Z and ^Q now work properly as a result, as well as
604 ^C. New variable term, global bariable oldterm to save previous
605 term settings, and changes to finish() and die().
606 - Added extra #ifdefs in getopt code, so that above code and
607 flag init is run even if GETOPT_LONG is not #defined.
608 - Added memset line before sigactions. (Adam Rogoyski)
609 do_suspend():
610 Removed function, see above for why.
611- winio.c:
612 update_line(), center_cursor():
613 - Removed wrefresh(edit) from bottom of functions. wrefresh
614 should now only be called once, at the bottom of the main()
615 loop.
616- global.c:
617 shortcut_init():
618 - Removed suspend sc_init call and suspend message because suspend is no
619 longer needed in the shortcut list to work properly.
620
621nano-0.9.7 - 05/14/2000
622- nano.c:
623 do_home(), do_end():
624 - Added calls to update_line for the current line, fixes
625 lack of update (bug discovered by Alberto García).
626 main():
627 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
628 following symlinks even when -l isn't set, and "no changes"
629 error when nano is called from crontab -e (Adam Rogoyski).
630- cut.c:
631 do_cut_text():
632 - Added edit_update_top to cut when mark is set, fixes lack of
633 display update (bug discovered by Ken Tyler).
634
635nano-0.9.6 - 05/08/2000
636- New Italian translation (it.po), by Daniele Medri.
637- nano.c:
638 page_up(), page_down():
639 - Added reset of placewewant to 0, as it should be.
640 do_up(), do_down():
641 - Added call to update_line() for line we move from and line we
642 move to, in order to keep the highlighting correct.
643 do_wrap():
644 - Added var chop, new code to wrap lines more like Pico, mostly.
645 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
646- winio.c:
647 do_help():
648 - Added edit_refresh() before exit.
649 update_cursor():
650 - Removed cursor updating which really wasn't needed anyway.
651 edit_update():
652 - Removed yucky code that didn't work, this function now just
653 computes edittop and editbot and calls edit_refresh() to do the
654 rest, which removes a lot of dupliicate code..
655
656nano-0.9.5 - 05/01/2000
657- Removed bytes from file struct because it was computationally wasteful.
658- cut.c:
659 do_uncut_text():
660 - Added call to edit_refresh().
661- nano.c:
662 do_backspace():
663 - Added reset of editbot when deleting the last line of the file
664 (bug discovered by Adam).
665 do_char():
666 - Removed call to reset_cursor().
667 do_delete():
668 - Added similar check as to do_backspace().
669 do_enter():
670 - Added call to edit_refresh().
671 do_left(), right():
672 - Added call to update_line(), still redundant but better...
673 do_up(), do_down():
674 - Added refresh calls both for current line and line to which
675 we are moving.
676 main():
677 - Removed inefficient call to edit_refresh() after every keystroke.
678 It is now up each function to leave the screen in a good state.
679- winio.c:
680 do_cursorpos()
681 - Rewritten to not use bytes from filestruct by an incremental sum.
682 update_line(), reset_cursor():
683 - Optimized calls to xplustabs() through a single variable.
684 - update_line() now takes a new arg, an index into the string
685 for where to update the line from. Needed for new update
686 code.
687- configure.in:
688 - Better checks for slang, allows argument to --with-slang.
689 (Albert Chin-A-Young)
690 - Removed -Iintl from CFLAGS in gcc check.
691- Makefile.am:
692 - Addition of -Iintl for gettext (Albert Chin-A-Young)
693
694nano-0.9.4 - 04/25/2000
695 - Fixed calls to no_help and changed them to the more consistent
696 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
697 not 1. Code to temporarily disable NO_HELP when in the
698 help system. (Adam Rogoyski)
699- cut.c:
700 do_marked_cut(), do_cut(), do_uncut():
701 - Commented out unnecessary bits when NANO_SMALL is being used.
702- winio.c:
703 xpt(), strlenpt(), actual_x():
704 - Added check for value of data[i] & 0x80, if so do not make
705 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
706 edit_refresh():
707 - New check for temp == NULL (bad thing), if so go back to the
708 previous line. New filestruct var hold points to prev line.
709 Fixes segfault when paging down to the end of a file.
710- nano.c:
711 write_file():
712 - Added check for if file exists and is not equal to the current
713 filename, prompt for overwrite (Adam Rogoyski).
714 do_down():
715 - Removed check for current->next == NULL, now checks return value
716 of do_down before setting current_x = 0 (discovered by Adam).
717 do_justify():
718 - Fixed segfault when reaching the last line (tried to assign
719 currrent->next->data when current->next == NULL) (discovered
720 by Adam).
721- utils.c:
722 - Removed extra macro defs that are now in nano.h.
723- nano.h:
724 - Changed macro SET() to use |= instead of ^=. Fixes bug in
725 cut code when cutting more than one line, and cutbuffer gets
726 blown away when it shouldnt.
727
728nano-0.9.3 - 04/29/2000
729- cut.c:
730 do_marked_cut():
731 - Fixed off by one error in cut code for marked text.
732 do_cut_text():
733 - Removed check for being on the last line, part of
734 magic line code.
735 add_to_cutbuffer():
736 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
737 - Added inptr->prev = NULL for case where cutbuffer == NULL.
738- nano.c:
739 do_backspace(), do_char():
740 - Removed "magic line" code. It was basically causing more bugs
741 than it was helping for the sake of compatibillity. This fixes
742 at least one known segfault condition.
743 do_enter():
744 - Added setting editbot to new node if the new node is the last
745 node in the file.
746 write_file():
747 - Changed writing file bahavior. Now, if last line of the file
748 has any data on it, we write a newline on it, else we dont.
749- winio.c:
750 add_marked_sameline():
751 - New code that checks for whether the begin and end of the marker
752 are on different lines. Missing previously.
753 edit_add():
754 - added some more checks for text length. Cleaned up some mvwaddnstrs that
755 could be written more simply as waddnstrs.
756 edit_refresh():
757 - Removed check for temp == filebot, it is now treated like any other line.
758 Fixes a bug where selected text on the last line shows normally.
759 xpt():
760 - Removed an extra computation for tabs variable that was incorrect.
761 xplustabs():
762 - Since xpt now actualy works, this func is now just a wrapper for
763 xpt(current, current_x)
764- nano.1, nano.1.html:
765 - Added -l option to man pages.
766- configure.in:
767 - New option --enable-tiny, #defines NANO_SMALL in config.h.
768 Disables call to gettext in functions and other i18n stuff in
769 nano.c, the detailed help mode, the resize functions, and the
770 justify code which no one ever uses.
771 - New option --with-slang. Enables slang libraries instead of
772 ncurses, requires slcurses.h for wrapper functions. (Based
773 on patches for 0.8.7 by Glenn McGrath).
774
775nano-0.9.2 - 04/15/2000
776- This release just fixes the serious segfault problem if nano is
777 invoked any way other than using the absolute path. The bug was
778 in the new code for checking whether nano is invoked as pico.
779
780nano-0.9.1 - 04/14/2000
781- Added pico compatibility for ^T when in search or switch to switch
782 to the opposite function. Added one to REPLACE_LIST_LEN and
783 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
784 new strings that will have to be gettex()ed. New argument 'replacing'
785 to search_init(). Handlers in do_replace and do_search().
786- New write code, now follows symbolic links instead of replacing them
787 with the new file. New option (-l, --nofollow) to enable the old
788 (incorrect, but secure) behavior (Adam Rogoyski).
789- nano.c:
790 do_wrap():
791 - Fixed another bug relating to wrapping, and which would cause
792 a segfault *sigh*.
793 do_replace():
794 - Incremented current_x by the length of the replacement
795 text inside the main repalce loop. Fixes bug #15.
796 add_marked_sameline():
797 - New function, handles marked text when start & end of marker is
798 on one line, also supports most marked text when cursor > COLS.
799 main():
800 - Code to check if nano is invoked as 'pico', and if so
801 automatically set pico_msgs (Robert Jones).
802
803nano-0.9.0 - 04/07/2000
804- nano.1, nano.1.html: Updated man page with my email address and homepage.
805- winio.c:
806 reset_cursor(), update_line():
807 - Changed update algorithm for x value to (COLS - 7) multiple when x
808 value > (COLS - 2).
809- edit_refresh():
810 - Removed inner loop code, now calls update_line() for each line
811 in question, MUCH nicer.
812- xplustabs(), xpt():
813 - Removed redundant increment of tabs when collumn no % 8 == 0.
814 - Added check for data[i] < 32, most of such bits are 2 chars wide.
815- update_line():
816 - Fixed a stupid call to strlenpt with col when we should have
817 been using actual_col. Ugh.
818
819nano-0.8.9 - 03/22/2000
820- nano.c:
821 empty_line(), no_spaces(), justify_format(), do_justify():
822 Actually added these (screwup applying patch).
823 do_justify(): Added call to set_modified().
824
825nano-0.8.8 - 03/12/2000
826- Preliminary internationalization support. Many many functions modified
827 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
828 New dirs po/ and intl/, changes to configure.in and Automake.am to
829 support i18n.
830- nano.c:
831 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
832 statics: Changed some things that were not necessarily static
833 (Adam Rogoyski).
834 nrealloc(): New function, similar to nmalloc(). Changed calls from
835 realloc() to nrealloc (Adam Rogoyski).
836 empty_line(), no_spaces(), justify_format(), do_justify():
837 New functions for justify function (Adam Rogoyski).
838- winio.c:
839 blank_edit(): Added wrefresh call to edit so that screen updates (like
840 on ^L) actually work.
841 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
842
843nano-0.8.7 - 03/01/2000
844- main.c:
845 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
846 to a single character on one line when no good place to
847 break the line exists, and for wrapping lines longer than COLS.
848- nano.1.html:
849 Html version of man page, now included in dist. For
850 the benefit of nano packages in Linux distributions.
851
852nano-0.8.6 - 02/24/2000
853- gobal.c:
854 shortcut_init():
855 Added shortcuts for goto_line and do_replace when using
856 pico_msgs. Oops.
857- nano.c:
858 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
859 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
860 Removed check for backing up past spaces first.
861 main(): Added for loop to check for alt keys instead of hard list.
862 do_enter(): Fix for bug #14, added call to reset_cursor and messed
863 up do_char quite a bit.
864 version(): Added time and date stamp for compile on version message.
865 Added mail and web page info.
866- README: Updated mailing list info.
867
868nano-0.8.5 - 02/18/2000
869- nano.c:
870 main(): Finally fixed tilde being input on page up/down keys in
871 certain terminal types. Fix was input 26->91->5[34] check
872 for 126, if so make the kbinput PAGE UP/DOWN, else unget
873 the keystroke and continue. Added #include <ioctl.h> for
874 ioctl call.
875 handle_hup():
876 Handler for hangup signal. Belated include of patch from
877 Tim Sherwood.
878- winio.c:
879 edit_refresh():
880 Temporary fix for selecting text when temp == current.
881 edit_refresh() is now unmanagably complex, and must be
882 revamped.
883 check_statblank():
884 Added check for constupdate, makes things less choppy
885 (Adam Rogoyski)
886
887nano-0.8.4 - 02/11/2000
888- Moved global variables that were only (or mostly) used in one file into
889 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
890- global.c:
891 shortcut_init():
892 Removed redundant NANO_CONTROL_H from backspace shortcut,
893 added char 127 which should have been there.
894- nano.c:
895 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
896 segfaults (Adam Rogoyski).
897- Makefile.am: Added all source filenames (Adam Rogoyski).
898- nano.1: Fixed mail addressed and added mailing list address.
899- README: Updated my email address and the nano web page.
900
901nano-0.8.3 - 02/08/2000
902- New pico mode (-p, --pico), toggles (more) compatibility with the
903 Pico messages displayed in the shortcut list. Note that there are still
904 small differences in this mode.
905- nano.h: New shortcut struct format, for the benefit of i18n and
906 our help menu. Removed shortcut message macros, they are
907 now all in shortcut_init in global.c.
908- nano.c:
909 do_wrap(): Removed resetting of current_x when we are in fact
910 wrapping to the next line, fixes a bug in -i mode.
911 do_enter():
912 Rewrote the autoindent mode code to be a lot less pretty,
913 but a lot more magical.
914 main():
915 Removed case for ignoring char 126 (~). That's kind of
916 important, we'll have to fix handling that sequence when
917 pageing up/down on a terminal some other way... Revamped
918 main switch loop in much snazzier fashion based on the
919 shortcut list.
920- winio.c:
921 New function display_main_list. Affects all functions
922 that used to call bottombars() with main_list. Added
923 because we now only call bottombars with the macro
924 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
925 changes to the main_list shortcut list (see global.c below).
926 New function do_help, our preliminary dynamic help system.
927- Many many funcs:
928 Changed from int to void to allow one uniform type to call
929 from the shortcut struct. Also a few functions that do
930 not simple have void argument have new functions called
931 funcname_void(void) to be called from the shortcut list.
932 do_cut_text and do_uncut_text were changed to void
933 arguments because they were never called with a filestruct
934 other than *current anyway.
935- global.c:
936 Shortcut list main_list was expanded to cover all
937 shortcuts that could be caught in the main loop.
938 Consequently there is a new macro MAIN_VISIBLE which tells
939 how many items in the main list to actually show.
940
941nano-0.8.2 - 02/02/2000
942- Added initial mouse (-m, --mouse) support. New global variable
943 use_mouse. (Adam Rogoyski)
944
945- nano.c: Set intial value of fill to COLS - 8 rather than just 72
946 regardless. (Adam Rogoyski).
947 do_delete():
948 Deleted call to do_backspace() when on the end of a line,
949 because it won't update the line properly.
950 do_backspace():
951 Removed unnecessary pointer manipulation that was being
952 handled by unlink_node().
953 open_file():
954 Added check for trying to open a directory (currently we
955 segfault on this). Bug pointed out by Chad Ziccardi.
956
957nano-0.8.1 - 01/28/2000
958- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
959 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
960 global.c and proto.h.
961- nano.c:
962write_file(): Added (incredibly) necessary check for EPERM when
963 link() fails. This allows us to actually save
964 files via rename() on filesystems that dont
965 support hard links (AIEEEEEE).
966do_goto():
967 Fixed a stupid mistake where we were calling
968 bottombars() with replace_list instead of goto_list.
969- nano.h:
970 New char *help in shortcut structure for help
971 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
972 for help function and i18n.
973- global.c:
974 New functions shortcut_init (called in nano.c) and
975 sc_init_one() to initialize the shortcuts without
976 using {}s (for i18n).
977
978nano-0.8.0 - 01/25/2000
979- View flag (-v, --view) implemented. Global variable view_mode, affects
980 main loop of nano.c and new_file(). (me)
981- nano.c:
982 split checks for TERMIOS_H and TERMIO_H up so we
983 can (theoretically) include them both, which is good.
984handle_sigwinch():
985 Added check for ncurses.h. (Andy Kahn)
986do_spell():
987 We now only try ispell because we don't as of yet
988 handle the 'spell' program the right way, now that
989 I finally know what the right way is =-). Added
990 call to edit_update(fileage) to stop segfaults.
991global_init():
992 Added initialization of edit* filestruct pointers
993 to stop segfaults on spell check.
994usage():
995 Check for getopt_long, and if no leave out the
996 GNU options everyone seems to love so much (Andy Kahn)
997main():
998 Added checks for getopt_long (Andy Kahn)
999 We ignore character 126 because it gets put into
1000 the buffer when we page up/down on a vt terminal.
1001write_file():
1002 Fixes for umask (Adam Rogoyski). Renamed tmpfile
1003 variable to tmp. Documented the tmp opttion
1004 better in the function comments. Fixed my
1005 stupidly commented out check for tmp on setting
1006 umask which I really like =>
1007- nano.h:
1008 Made desc variable in shortcut struct a pointer
1009 instead of a fixed-length string.
1010- utils.c:
1011 Fixed check for config.h before nano.h.
1012- configure.in:
1013 New checks for getopt_long, getopt.h, removed
1014 CFLAGS and LDFLAGS changes. Gonna have to run
1015 strip manually now =-) (Andy Kahn)
1016 Added check for HAVE_WRESIZE, new file acconfig.h (me).
1017
1018nano-0.7.9 - 01/24/2000
1019- New autoindent feature. Command flag 'i' or '--autoindent'. New
1020 function do_char() to clean up character output, global
1021 variable autoindent in global.c. (Graham Mainwaring)
1022- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
1023 files on exit without prompting. Affects do_writeout(). Also
1024 do_writeout() now takes a parameter for if exiting.
1025 Global variable temp_opt in global.c (Graham Mainwaring)
1026- Preliminary spell program support. Added command flag '-s' or
1027 '--speller' for alternative speller command. Added function do_spell()
1028 and exit_spell() to nano.c. New global variable alt_speller.
1029- nano.c:
1030 main(): We now ignore input of decimal 410 because these get entered
1031 when we resize the screen. Sorted options in getopt()
1032 switch statement.
1033 usage(): Sorted options and changed tabs to make room for -s option.
1034 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
1035 doesn't print the number of lines written on the statusbar.
1036 global_init():
1037 Added more initializations to globals to support do_spell().
1038
1039nano-0.7.8 - 01/23/2000
1040- Stubbed justify function. Affects main() in nano.c and nano.h defines.
1041- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
1042 and main() in nano.c
1043- Removed redundant reset_cursor() calls from the blank() routines.
1044- nano.c:
1045 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
1046 Removed check for isprint() characters in main while loop
1047 for people with odd character sets *shrug*. Added some X
1048 window F-key combos.
1049 read_line(): New function, consolidates of most of the special
1050 sections of the file reading code. (Rob Siemborski)
1051 do_replace(): Many scattered fixes. (Rob Siemborski)
1052 write_file(): Added check for empty filename.
1053- winio.c:
1054 nanogetstr(): Fixes for deleting at places other than the end of the
1055 buffer, cut support. (Adam Rogoyski)
1056 blank_edit(): New function, blanks edit buffer. Added call to it in
1057 total_refresh().
1058- configure: Checks for glib if snprintf of vsnprintf aren't available
1059 (Andy Kahn). Changed warning message when no termcap lib
1060 is found.
1061
1062nano-0.7.7 - 01/19/2000
1063- Option '-v' for version moved to '-V', because -v is Pico's "read only"
1064 mode (affects getopt() in main() and usage() function in nano.c
1065- New flag -c, always show cursor position. Affects main() in nano.c and
1066 statusbar() in winio.c
1067- Option '-x' doesn't show help window at the bottom of the editor.
1068 New variable no_help in nano.h and proto.h, affects main(), usage(),
1069 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
1070 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
1071 hand =P) (Adam Rogoyski)
1072- nano.c:
1073 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
1074 page_up(), page_down():
1075 - New functions. We now set the cursor at the top right corner,
1076 not at the center line, and page up and down a full screen
1077 rather than a half screen. Original functions renamed to
1078 page_up_center() and page_down_center().
1079 main():
1080 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
1081 in main while loop because suspend mode was broken. This should
1082 fix it, at least for now.
1083 - Added long option support (By popular harassment ;-) - Added
1084 #include for getopt.h, changed getopt() to getopt_long().
1085 Options added so far: --version (-V), --nowrap (-w), --suspend
1086 (-z), --help (-h), --nohelp (-x).
1087 - Rewrote signal statements (Adam Rogoyski)
1088
1089nano 0.7.6 - 01/15/2000
1090- New ChangeLog format
1091- nano.c:
1092 main(): Bound CONTROL_H to backspace (oops)
1093 Added more Alt-[-key combinations, for page up & down.
1094 read_bytes(): New function (Adam Rogoyski)
1095 read_file(): Optimizations - malloc()s *buf a little at a time rather
1096 than one huge buffer, and replaced the strcat at the end
1097 with an index variable. Added call to read_bytes().
1098 do_next_word(): New function, binding is control-space (0) (me)
1099
1100- winio.c:
1101 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1102 (formula is extra space needed = COLS / 6 - 13).
1103 actual_x() & strlenpt():
1104 Added bug#9 fix - when tabs % 8 == 0, we should only
1105 increment tabs by 1.
1106 titlebar(): Fixed overrun in titlebar on very long filenames.
1107
11080.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1109 writing a newline at EOF. do_cursorpos and do_replace are now not
1110 directly bound to signals but picked up as their control sequences
1111 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
11120.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1113 available memory, align bug fixed (Big Gaute).
1114
1115--- As of version 0.7.4 TIP is renamed to nano.
1116
11170.7.3 Fixed a double blank_statusbar() when jumping to first and last
1118 lines. Took out unnecessary updates in load_file. Bug fix in
1119 do_left. Missing updates to totlines, fixed bug #7 (last line not
1120 having a newline at the end doesnt get read, bugfix in do_replace
1121 with replace all, more/better comments (Robert Siemborski)
11220.7.2 Our first patch accepted into the source! configure fixes
1123 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1124 Bug fix in update_line for editing long lines. Fixed arguments
1125 being put into the filename when none is specified. Preliminary
1126 +line command argument function.
11270.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1128 edit_refresh to stop cursor "jumping" during screen updates. This
1129 will probably cause a bug or two. Replace is now Alt-R (@R) and
1130 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1131 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1132 Control-G will become the Help key, but for now is stubbed out.
11330.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1134 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1135 length file. Added Esc-[-A,B,C,D cursor key sequences.
11360.6.9 Preliminary cursor position function. Split up tip.c more, made
1137 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1138 that was leaving out a character.
11390.6.8 By request, optchr in main() is now an int. Removed unneeded
1140 globals. Bound functions for next/prev page, and wrote functions
1141 do_home and do_end.
11420.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1143 created read_file. Implemented Insert File. Fixes in tipgetstr
1144 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
11450.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1146 aborted searches and more Pico-compatible messages. statusq() now
1147 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
11480.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1149 regarding buffers with filebot in them. Fixins in do_backspace
1150 and do_enter. Removed unused variables. Removed strip_newline.
11510.6.4 Took out the awful newlines from each string buffers. This will
1152 certainly cause more bugs. Fixes in do_exit(). Better empty file
1153 handling (I hope).
11540.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1155 do_enter() rewritten.
11560.6.2 Better default file permissions. Complete rewrite of do_wrap().
1157 Better handling of editing with cursor near COLS - 1.
11580.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1159 codes being entered into the buffer. Bug fix in actual_x; more
1160 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1161 locked into cutbuffer when cutting more than one marked screen of text.
11620.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1163 width on the screen we want to be, not an index of current->data.
1164 New functions xplustabs and actual_x convert the actual place
1165 the cursor should be on the screen to and from the place in the
1166 string.
11670.5.5 Changed do_right to test do_down before setting current_x to 0,
1168 eliminiating the "looping" on the last line when holding the right
1169 arrow. Preliminary support for longer than COLS - 1 lines.
1170 Wrote do_delete.
11710.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1172 tipgetstr is much more messy but text is now more editable ;)
1173 Fixed crash on entering a new file, hopefully. Awful stub for tab
1174 handling, only in do_right() to save me some sanity.
11750.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1176 Fixed a few bugs in do_uncut when not uncutting from marked text.
1177 I would not trust your data with the mark code right now, but then
1178 we're not at version 1.0 yet so dont trust anything ;)
11790.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1180 jump after each keystroke entered. Select text stubbed. Fixed
1181 a bug in total_refresh(). Setting a mark will hilight properly,
1182 but does not actually affect what gets put in the cutbuffer (yet).
11830.5.1 Writing a file out causes modified to be set back to 0. Good.
1184 Set_modified function written. Cut and uncut text now set
1185 modified when called.
11860.5.0 Half way there! Implemented write out, save function seems
1187 stable. Changed statusbar blank routing to not refresh, a separte
1188 program calls it and then refreshes. Made the program not clear
1189 the srceen on exit, just the bottom two lines (like Pico).
11900.4.2 Implemented replace all in replace function. Crude exit function
1191 (asks yes or no if modified but does not write to file).
11920.4.1 Implementing search & replace. Fixed crash on deleting at top of
1193 edit buffer. Implemented "timeout" of statusbar messages.
1194 Implemented ^A and ^E (beginning and end of line).
11950.4.0 Split code into global.c and proto.h to allow for better multiple
1196 file handling. Added #defines for the majority of the shortcut
1197 kets in tip.h for easy modification.
11980.3.1 Write edit_refresh which doesn't move the screen around, just
1199 updates what's there already. do_wrap() and do_enter() added.
12000.3.0 Preliminary cutbuffer (cut and uncut) support.
12010.2.7 Check for Modification added. do_search() works.
12020.2.5 Rewrite of file data struct.
12030.2 Read in data to buffer, bound keystrokes to stub functions,
1204 initial cursor movement on screen. Initial autoconf support.
12050.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001206
1207$Id$