blob: 44004a8e77c940ae591030d7894dea7620ab8df6 [file] [log] [blame]
Chris Allegrettaac0e63a2000-11-19 02:25:43 +00001CVS code -
Chris Allegrettaaaabe1f2000-11-19 18:20:07 +00002- search.c:
3 findnextstr()
4 - Set current_x back before aborting (oops!).
Chris Allegrettaac0e63a2000-11-19 02:25:43 +00005
Chris Allegretta6da149a2000-11-19 02:23:03 +00006nano 0.9.20 - 11/18/2000
Chris Allegretta67574f42000-11-03 03:35:29 +00007- General
8 - Ran source through indent -kr again. Make everything pretty.
9 - Changed behavior of "search" and "replace" prompts to make all
10 previous values editable. This change was made so that you can
11 replace with the null string without needing a special key for it.
12 changed code in search_init(), do_replace(), nanogetstr (see
13 below).
14 - Added some missing gettext calls here and there (Jordi).
15 - Revamped nanogetsr() and calls to it to use variable length strings.
16 MANY changes in nanogetstr(), many chances in search.c, new
17 function mallocstrcpy which is sure to be a programmatic
18 nightmare, changed last_search, last_replace, answer to
19 pointers. New function not_found_msg in search.c for displaying
Chris Allegrettacbb0f8b2000-11-15 03:50:02 +000020 truncated strings in satusbar when the string is not found
21 (-pedantic fixes by Rocco Corsi). We disable this feature when
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +000022 using PICO_MODE (-p).
Chris Allegretta27eb13f2000-11-05 16:52:21 +000023 - New spelling code by Rocco Corsi. New functions
24 do_int_speller, do_alt_speller, changes to do_spell in nano.c,
25 New functions search_init_globals and do_replace_loop, changes
26 to search_init(), do_replace, findnextstr, moved last_search and
27 last_replace back to nano.c (*shrug*).
Chris Allegretta04d848e2000-11-05 17:54:41 +000028 - New tab completion code. Used check_wildcard_match, input_tab,
29 cwd_tab_completion, username_tab_completion from busybox,
Chris Allegretta7da4e9f2000-11-06 02:57:22 +000030 hacked them a lot, changes to nanogetstr(). nanogetstr() and
31 statusq() now take an arg for whether or not to allow tab
32 completion.
Chris Allegretta5bf51d32000-11-16 06:01:10 +000033 - Fixed value being input in statusbar during a search or replace
34 and CASE_SENSITIVE or the other search is called and the
35 string being typed in is blown away. Reported by Ken Tyler.
Chris Allegrettabf9a8cc2000-11-17 01:37:39 +000036 - Changed PICO_MSGS flag to PICO_MODE, changed help strings
37 accordingly.
Chris Allegretta92d2bab2000-11-02 14:53:46 +000038- files.c:
39 do_writeout()
40 - Change strcpy to answer to mallocstrcpy.
Chris Allegrettad7934d42000-10-03 05:39:29 +000041- global.c
Chris Allegretta105da332000-10-31 05:10:10 +000042 - New global replace_list_2, for 2nd half of the replace dialog
43 ("Replace with:"), has fewer options than first half because
44 they were inapropriate.
Chris Allegrettad7934d42000-10-03 05:39:29 +000045 toggle_init()
46 - Added #ifdef around toggle_regex_msg to get rid of compiler
47 warning.
Chris Allegretta1cc0b7f2000-11-03 01:29:04 +000048
49- nano.c:
50 keypad_on()
51 - New function, toggles turning the keypad on and off in edit and
52 bottomwin(). Added call to this in finish(), fixes bug #45.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +000053- search.c
54 findnexstr()
55 - New arg for begin_x variable, basically a rewrite that
56 makes a little more sense and isn't quite as messy (Rocco Corsi).
57 - Update the line we're checking if not the whole screen, because
58 it's quite possible the search team could exist somewhere way
59 to the right on the same line, for example.
60 replace_abort()
61 - Add reset of placewewant, stops cursor from jumping when moving
62 cursor after a replace.
Chris Allegretta810632d2000-10-27 04:36:01 +000063 do_replace()
64 - Added code for Gotoline key after entering the search term.
65 Fixes bug #46.
Chris Allegretta9c371a22000-10-27 05:48:05 +000066 - Removed redundant code involving processing replacemenet string.
67 Converted if statements to switch statements.
68 - Optimizations by Rocco Corsi.
Chris Allegretta105da332000-10-31 05:10:10 +000069 - Removed code for deleted shortcuts from in replace_list_2.
Chris Allegretta9c371a22000-10-27 05:48:05 +000070 do_search()
71 - Converted if statements to one switch statement.
Chris Allegrettaf9b6c9b2000-10-18 19:35:59 +000072- winio.c
73 nanogetstr()
74 - Added check for 343 in while loop to get rid of getting "locked"
75 into statusbar" bug in odd $TERMs like iris-ansi.
Chris Allegretta105da332000-10-31 05:10:10 +000076 - Changed check to return -2 on "enter" from answer == ""
77 to answer == def.
Chris Allegretta04d848e2000-11-05 17:54:41 +000078 - Fixed fallthrough code because there was no break. Make much
79 more sense now.
Chris Allegretta5b1faac2000-11-16 19:55:30 +000080 - Added check for ASCII 54[124] when using PDCURSES, ignore them
81 if noticed.
Chris Allegrettaa0e957b2000-10-24 22:25:36 +000082 nanoget_repaint()
83 - New function, removes about 30 lines of duplicate code in
84 nanogetstr().
Chris Allegretta90594e22000-11-02 15:53:40 +000085 - Black magic code to make $ appear in prompt if we're past
86 COLS.
Chris Allegretta2c975222000-11-15 01:25:42 +000087 blank_edit()
88 - Removed wrefresh() call, much less choppy now. If there's a need
89 for a wrefresh after a specific call, let me know.
Jordi Mallach0ae0dcd2000-10-28 12:38:02 +000090- es.po:
Jordi Mallachd25385b2000-11-18 03:31:21 +000091 - Updated translation for 0.9.20 (Jordi).
Chris Allegrettad7934d42000-10-03 05:39:29 +000092
Chris Allegretta07e97d62000-10-03 01:52:50 +000093nano 0.9.19 - 10/02/2000
Chris Allegrettaad1dacc2000-09-21 04:25:45 +000094- General
95 - Added PDCurses support under cygwin, which allows building
96 a nice stand-alone nano.exe for those poor Windows users.
97 Extra check in configure.in for initscr() in -lcurses (as
98 PDcurses has no tgetent), some #ifdef PDCURSES statements
99 in main().
Chris Allegretta66989d62000-09-27 03:16:11 +0000100 - Changed web site and email to new nano-editor.org domain.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000101- nano.c
Chris Allegretta9e7efa32000-10-02 03:42:55 +0000102 - Added (int) casts to remove compile warnings with -Wall.
Chris Allegretta7c44b682000-09-21 04:27:01 +0000103 main()
104 - Added check for _POSIX_VDISABLE around term variable definition.
Chris Allegrettadf3afdc2000-10-01 17:50:29 +0000105- search.c
106 - Added initializations for last_search and last_replace (Rocco Corsi)
107
Chris Allegretta629edad2000-09-19 00:27:19 +0000108nano 0.9.18 - 09/18/2000
Chris Allegretta805c26d2000-09-06 13:39:17 +0000109- General
110 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
111 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +0000112- configure.in:
113 - Added default case for cross-compiling to get rid of annoying
114 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +0000115- cut.c:
116 do_cut_text()
117 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +0000118 set (fixes bug #42).
Chris Allegrettaf45c18d2000-09-16 05:25:06 +0000119- files.c:
120 open_file()
121 - Fix for bug #44 (Rocco Corsi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000122- global.c:
123 shortcut_init()
124 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +0000125- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +0000126 main()
Chris Allegretta9239d742000-09-06 15:19:18 +0000127 - Added check for _POSIX_VDISABLE and use raw mode if not
128 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000129 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +0000130 - Revamped a great deal of the F-key and keypad key handling,
131 because we not longer use keypad() (see below).
132 - Removed keypad() call because nano was not working with the
133 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +0000134 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +0000135 do_toggle()
136 - Rewrote function to allow NOHELP toggle to wotk on systems
137 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +0000138 mouse_init()
139 - Add keypad only if mouse support is on, otherwise mouse doesn't
140 work. I guess you have to choose between having the mouse and
141 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000142- winio.c:
143 total_refresh()
144 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +0000145 onekey()
146 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +0000147
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +0000148- search.c:
149 findnextstr()
150 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +0000151- es.po:
152 - Translated new strings and minor updates (Jordi).
Chris Allegretta834a69d2000-09-18 17:11:33 +0000153- de.po
154 - Revised translations by floki@bigfoot.com
Chris Allegretta429a5512000-09-05 13:09:56 +0000155
Chris Allegretta423cbfd2000-09-04 16:21:29 +0000156nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +0000157- General
158 - New shortcuts to toggle certain options that are normally only
159 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
160 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +0000161 called from shortcut_init(), and do_toggle in nano.c. Also
162 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +0000163 signal_init(). Moved "struct sigaction act"into a static in
164 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +0000165 - Changed from Alt-key symbol (@) which is completely nonstandard
166 to the *nix "Meta" symbol (M-). Changed help_init to show
167 the M-key usage and the help text to explain keys whcih generate
168 Meta. Moved the toggle Meta keystrokes to the first column
169 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +0000170 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +0000171 - Changed last_search and last_replace vars to statically
172 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000173- global.c:
174 toggle_init()
175 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
176 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +0000177- nano.c:
178 do_mouse()
179 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +0000180 do_wrap()
181 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +0000182 do_toggle()
183 - Added checks for no help and no wrap mode, and print opposite
184 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +0000185 do_suspend(), do_cont():
186 - New functions, handle suspend signal in a Pico-like manner and
187 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000188- winio.c:
189 total_refresh()
190 - Added edit_refresh() call to actually update the screen if messy.
191 edit_refresh_clearok()
192 - New function, does a total update for edit refresh, needed to fix
193 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +0000194 onekey()
195 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +0000196
Chris Allegretta6306a112000-09-02 07:55:41 +0000197 update_line()
198 - Added check for binary data >= 1 and <= 26, and use ^+letter
199 to display it. Should fix editing text files with binary
200 data in them. Placing of the cursor seems to be a bit screwed
201 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000202- search.c:
203 search_abort()
204 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
205 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +0000206 findnextstr():
207 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +0000208 - Fixed check for string that only occurs on the same line failing
209 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +0000210
Chris Allegrettaba96f7a2000-08-09 21:38:28 +0000211nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000212- cut.c:
213 do_cut_text()
214 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000215 - Added check_statblank().
216 - Check for fileptr == filebot, if so return, we shouldn't bother
217 cutting the magic line.
218 do_uncut_text()
219 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000220- nano.c:
221 main()
222 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000223- po/Makefile.in.in:
224 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
225 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000226- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000227 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000228
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000229nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000230- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
231 Affects many many functions. Removed functions edit_update_top and
232 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000233- Added global variable tabsize, we no longer screw with the curses
234 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000235- configure.in:
236 - Finally fixed check for slang to report "no" if not called
237 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000238- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000239 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000240 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000241 null_at()
242 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000243 delete_buffer()
244 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000245 do_backspace()
246 - Now calls page_up_center instead of page_up (as it should?)
247 do_enter()
248 - Fixed typo (?) in check for inptr->next. Caused lots of
249 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000250 main()
251 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000252- search.c:
253 replace_abort()
254 - redundant, now just calls search abort until it does something
255 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000256- winio.c:
257 edit_refresh()
258 - Added check for current line "running" off the screen.
259 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000260 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000261 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000262 edit_update()
263 - Rewritten, hopefully this will remove a lot of the
264 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000265- move.c:
266 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000267 - do an edit_update() at last case. Made function more like
268 Pico's version, only move down to two lines before editbot.
269 page_up()
270 - Made function more like Pico's version, only move down to two
271 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000272
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000273nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000274- nano.h:
275 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
276- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000277 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000278 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000279 - Simplified check for freeing cutbuffer. Added checks for doing
280 multiple cuts with -k, now sets marked_cut to 2 for later
281 processing by do_uncut_text().
282 do_uncut_text()
283 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000284- files.c:
285 write_file()
286 - Removed (redundant) check for writing out files with -t.
287 do_writeout()
288 - Changed check for filename to filename[0]. Added some code,
289 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000290- nano.c:
291 do_justify() & do_wrap():
292 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000293- de.po
294 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000295
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000296nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000297- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000298 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
299 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000300- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
301 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000302- move.c
303 page_down()
304 - Don't edit_refresh() if the bottom of the file is in the edit
305 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000306- nano.c:
307 main():
308 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000309 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000310 die():
311 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000312 do_spell():
313 - Changed exit semantincs a bit so that aspell wouldn't get
314 all screwy (bug disovered by Joshua Jensen.
315- files.c:
316 read_file():
317 - Added init of buf variable, hopefully this will stop the
318 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000319 write_file():
320 - Added code to check to see if using -l and the file is not
321 in fact a link. This should fix the behavior where a file
322 that does not have write permission but could be removed and
323 rewritten is saved without error. Please test this feature
324 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000325- search.c:
326 search_init():
327 - Added " (to replace)" statement to end of search string if
328 we are doing a replace. Manually converted all the translations
329 from '%s' to '%s%s' to ensure they still work with the new code.
330 Also put in the translation for " (replace)" in the .po's. Hope
331 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000332 do_search(), do_replace():
333 - Removed call to search_abort()/replace_abort() before call to
334 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000335 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000336 findnextstr()
337 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000338- fr.po:
339 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000340- es.po:
341 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000342
Chris Allegrettae955dae2000-07-07 22:24:59 +0000343nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000344- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000345 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
346 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
347 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000348 search_init() and do_replace() and strstrwrapper().
349 - Added _POSIX_VERSION check to regexp code. Better than nothing
350 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000351 - Made search functions & keys more like Pico. Added goto line from
352 search and replace function, changed wording to "No Replace" instead
353 of "To Search", "To Replace" to simply "Replace", and changed to
354 Pico's keystroke by default, ^R. Affects search_init(),
355 do_search() in search.c, globals in nano.h and
356 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000357 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000358- cut.c
359 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000360- files.c:
361 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000362 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000363- nano.c:
364 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000365 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
366 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000367 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000368 - Corrected FIXME in do_enter with explanation. (Rob)
369 - Fixed FIXME in do_justify, resulted in creation of
370 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000371 help_init():
372 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000373 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000374 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000375 do_backspace(), do_delete():
376 - Added magic line code here too.
377
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000378- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000379 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000380- fi.po:
381 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000382- utils.c:
383 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000384- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000385 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000386 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000387 do_yesno(), nanogetstr():
388 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000389 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
390 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000391 clear_bottomwin():
392 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000393 edit_update_top():
394 - Fixed a bug that caused nano to not update when
395 current->next == NULL (e.g. paging down to the very bottom of
396 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000397 fix_editbot:
398 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000399 edit_add:
400 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000401
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000402nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000403- New flag "-T" or "--tabsize" to specify how to display tab widths.
404 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
405 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000406 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000407- id.po:
408 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000409- es.po:
410 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000411- winio.c
412 - Rewrite of display functions to correct the display problems
413 we had been seeing. Affects: add_marked_sameline, edit_add,
414 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000415 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000416 total_refresh():
417 - Cut dispaly_main_list call, as this function is only supposed to refresh
418 what's already on the screen, not go through the process of adding the
419 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000420- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000421 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000422- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000423 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000424 - Removed editwineob, as it was redundant for (editwinrows - 1).
425 Changed all calls to editwinrows - 1 in nano.c and move.c.
426 - Removed all functions that were split into other files.
427 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000428 do_enter():
429 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000430 do_insertfile():
431 - Fix display problem when using ctrl-r to load a file
432 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000433 handle_sigwinch():
434 - Added titlebar(), edit_refresh() and display_main_list() calls because
435 a resize wasn't picking up on possible different width correctly.
436- utils.c:
437 - Moved nmalloc() and nrealloc() here.
438- move.c:
439 - New file, contains movement functions (like do_home(), do_up(),
440 do_down(), page_up(), etc...).
441- files.c:
442 - Contains functions for files (read_file, insert_file,
443 do_writeout(), etc).
444- search.c:
445 - Contains all our searching and related functions, (do_search(),
446 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000447
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000448nano-0.9.10 - 06/04/2000
449- es.po:
450 - Translation updates (Jordi).
451- AUTHORS, nano.1.html, TODO, README:
452 - Documentation and email address updates (Jordi).
453- nano.c:
454 main():
455 - Moved Adam's termio code down to after getopt() and before initscr()
456 to stop people losing their SIGINT character when using args that
457 exit nano before it runs (--version, --help, etc).
458
459nano-0.9.9 - 05/31/2000
460- Makeile.am:
461 - Added proper lines for defining LOCALEDIR.
462- configure.in:
463 - Spelling fixes (Jordi Mallach)
464 - Removed CFLAGS changes for gcc, reduces portability according to
465 some, and it certainly doesn't seem to decrease exe size.
466- es.po:
467 - Spanish ranslation updates (Jordi Mallach)
468- POTFILES.in:
469 - Added global.c file, was screwing up translations (i.e. they
470 weren't getting done).
471- cut.c:
472 add_to_cutbuffer():
473 - Added totsize increment.
474 - Cut fixes and optimizations (Rob Siemborski).
475 do_uncut_text():
476 - Added totsize increment in several places.
477- nano.c:
478 headers:
479 - Removed LOCALEDIR define.
480 do_justify():
481 - Added edit_refresh() call (bug discovered by Adam).
482 page_down_center():
483 - Added call to edit_update(current) for last case. Removed
484 increment of current_y since it's now just wasteful.
485 do_enter():
486 - Added totsize increment.
487 renumber(), renumber_all():
488 - Removed totsize-- and totsize init in renumber_all.
489 do_mouse():
490 - Added edit_refresh() call to show hilight updates. Removed
491 unnecessary wrefresh(edit).
492 main():
493 - Moved up locale calls so that translated --help messages would
494 actually get translated.
495 do_backspace(), do_delete():
496 - Added decrement of totsize.
497 init_help_msg():
498 - New function, initializes help text if NANO_SMALL isn't set (fixes
499 broken i18n).
500 read_file():
501 - malloc call changed to nmalloc (Rob Siemborski).
502- winio.c:
503 total_refresh():
504 - Completely rewrote function, not quite so braindamaged now.
505
506nano-0.9.8 - 05/18/2000
507- nano.c:
508 main():
509 - Added awesome code that disables the CINTR and CQUIT
510 character (Adam Rogoyski). Removed raw()/noraw() calls so that
511 nano gets input in 'normal' mode, which is the Right Way(tm) to
512 do it. ^S, ^Z and ^Q now work properly as a result, as well as
513 ^C. New variable term, global bariable oldterm to save previous
514 term settings, and changes to finish() and die().
515 - Added extra #ifdefs in getopt code, so that above code and
516 flag init is run even if GETOPT_LONG is not #defined.
517 - Added memset line before sigactions. (Adam Rogoyski)
518 do_suspend():
519 Removed function, see above for why.
520- winio.c:
521 update_line(), center_cursor():
522 - Removed wrefresh(edit) from bottom of functions. wrefresh
523 should now only be called once, at the bottom of the main()
524 loop.
525- global.c:
526 shortcut_init():
527 - Removed suspend sc_init call and suspend message because suspend is no
528 longer needed in the shortcut list to work properly.
529
530nano-0.9.7 - 05/14/2000
531- nano.c:
532 do_home(), do_end():
533 - Added calls to update_line for the current line, fixes
534 lack of update (bug discovered by Alberto García).
535 main():
536 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
537 following symlinks even when -l isn't set, and "no changes"
538 error when nano is called from crontab -e (Adam Rogoyski).
539- cut.c:
540 do_cut_text():
541 - Added edit_update_top to cut when mark is set, fixes lack of
542 display update (bug discovered by Ken Tyler).
543
544nano-0.9.6 - 05/08/2000
545- New Italian translation (it.po), by Daniele Medri.
546- nano.c:
547 page_up(), page_down():
548 - Added reset of placewewant to 0, as it should be.
549 do_up(), do_down():
550 - Added call to update_line() for line we move from and line we
551 move to, in order to keep the highlighting correct.
552 do_wrap():
553 - Added var chop, new code to wrap lines more like Pico, mostly.
554 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
555- winio.c:
556 do_help():
557 - Added edit_refresh() before exit.
558 update_cursor():
559 - Removed cursor updating which really wasn't needed anyway.
560 edit_update():
561 - Removed yucky code that didn't work, this function now just
562 computes edittop and editbot and calls edit_refresh() to do the
563 rest, which removes a lot of dupliicate code..
564
565nano-0.9.5 - 05/01/2000
566- Removed bytes from file struct because it was computationally wasteful.
567- cut.c:
568 do_uncut_text():
569 - Added call to edit_refresh().
570- nano.c:
571 do_backspace():
572 - Added reset of editbot when deleting the last line of the file
573 (bug discovered by Adam).
574 do_char():
575 - Removed call to reset_cursor().
576 do_delete():
577 - Added similar check as to do_backspace().
578 do_enter():
579 - Added call to edit_refresh().
580 do_left(), right():
581 - Added call to update_line(), still redundant but better...
582 do_up(), do_down():
583 - Added refresh calls both for current line and line to which
584 we are moving.
585 main():
586 - Removed inefficient call to edit_refresh() after every keystroke.
587 It is now up each function to leave the screen in a good state.
588- winio.c:
589 do_cursorpos()
590 - Rewritten to not use bytes from filestruct by an incremental sum.
591 update_line(), reset_cursor():
592 - Optimized calls to xplustabs() through a single variable.
593 - update_line() now takes a new arg, an index into the string
594 for where to update the line from. Needed for new update
595 code.
596- configure.in:
597 - Better checks for slang, allows argument to --with-slang.
598 (Albert Chin-A-Young)
599 - Removed -Iintl from CFLAGS in gcc check.
600- Makefile.am:
601 - Addition of -Iintl for gettext (Albert Chin-A-Young)
602
603nano-0.9.4 - 04/25/2000
604 - Fixed calls to no_help and changed them to the more consistent
605 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
606 not 1. Code to temporarily disable NO_HELP when in the
607 help system. (Adam Rogoyski)
608- cut.c:
609 do_marked_cut(), do_cut(), do_uncut():
610 - Commented out unnecessary bits when NANO_SMALL is being used.
611- winio.c:
612 xpt(), strlenpt(), actual_x():
613 - Added check for value of data[i] & 0x80, if so do not make
614 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
615 edit_refresh():
616 - New check for temp == NULL (bad thing), if so go back to the
617 previous line. New filestruct var hold points to prev line.
618 Fixes segfault when paging down to the end of a file.
619- nano.c:
620 write_file():
621 - Added check for if file exists and is not equal to the current
622 filename, prompt for overwrite (Adam Rogoyski).
623 do_down():
624 - Removed check for current->next == NULL, now checks return value
625 of do_down before setting current_x = 0 (discovered by Adam).
626 do_justify():
627 - Fixed segfault when reaching the last line (tried to assign
628 currrent->next->data when current->next == NULL) (discovered
629 by Adam).
630- utils.c:
631 - Removed extra macro defs that are now in nano.h.
632- nano.h:
633 - Changed macro SET() to use |= instead of ^=. Fixes bug in
634 cut code when cutting more than one line, and cutbuffer gets
635 blown away when it shouldnt.
636
637nano-0.9.3 - 04/29/2000
638- cut.c:
639 do_marked_cut():
640 - Fixed off by one error in cut code for marked text.
641 do_cut_text():
642 - Removed check for being on the last line, part of
643 magic line code.
644 add_to_cutbuffer():
645 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
646 - Added inptr->prev = NULL for case where cutbuffer == NULL.
647- nano.c:
648 do_backspace(), do_char():
649 - Removed "magic line" code. It was basically causing more bugs
650 than it was helping for the sake of compatibillity. This fixes
651 at least one known segfault condition.
652 do_enter():
653 - Added setting editbot to new node if the new node is the last
654 node in the file.
655 write_file():
656 - Changed writing file bahavior. Now, if last line of the file
657 has any data on it, we write a newline on it, else we dont.
658- winio.c:
659 add_marked_sameline():
660 - New code that checks for whether the begin and end of the marker
661 are on different lines. Missing previously.
662 edit_add():
663 - added some more checks for text length. Cleaned up some mvwaddnstrs that
664 could be written more simply as waddnstrs.
665 edit_refresh():
666 - Removed check for temp == filebot, it is now treated like any other line.
667 Fixes a bug where selected text on the last line shows normally.
668 xpt():
669 - Removed an extra computation for tabs variable that was incorrect.
670 xplustabs():
671 - Since xpt now actualy works, this func is now just a wrapper for
672 xpt(current, current_x)
673- nano.1, nano.1.html:
674 - Added -l option to man pages.
675- configure.in:
676 - New option --enable-tiny, #defines NANO_SMALL in config.h.
677 Disables call to gettext in functions and other i18n stuff in
678 nano.c, the detailed help mode, the resize functions, and the
679 justify code which no one ever uses.
680 - New option --with-slang. Enables slang libraries instead of
681 ncurses, requires slcurses.h for wrapper functions. (Based
682 on patches for 0.8.7 by Glenn McGrath).
683
684nano-0.9.2 - 04/15/2000
685- This release just fixes the serious segfault problem if nano is
686 invoked any way other than using the absolute path. The bug was
687 in the new code for checking whether nano is invoked as pico.
688
689nano-0.9.1 - 04/14/2000
690- Added pico compatibility for ^T when in search or switch to switch
691 to the opposite function. Added one to REPLACE_LIST_LEN and
692 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
693 new strings that will have to be gettex()ed. New argument 'replacing'
694 to search_init(). Handlers in do_replace and do_search().
695- New write code, now follows symbolic links instead of replacing them
696 with the new file. New option (-l, --nofollow) to enable the old
697 (incorrect, but secure) behavior (Adam Rogoyski).
698- nano.c:
699 do_wrap():
700 - Fixed another bug relating to wrapping, and which would cause
701 a segfault *sigh*.
702 do_replace():
703 - Incremented current_x by the length of the replacement
704 text inside the main repalce loop. Fixes bug #15.
705 add_marked_sameline():
706 - New function, handles marked text when start & end of marker is
707 on one line, also supports most marked text when cursor > COLS.
708 main():
709 - Code to check if nano is invoked as 'pico', and if so
710 automatically set pico_msgs (Robert Jones).
711
712nano-0.9.0 - 04/07/2000
713- nano.1, nano.1.html: Updated man page with my email address and homepage.
714- winio.c:
715 reset_cursor(), update_line():
716 - Changed update algorithm for x value to (COLS - 7) multiple when x
717 value > (COLS - 2).
718- edit_refresh():
719 - Removed inner loop code, now calls update_line() for each line
720 in question, MUCH nicer.
721- xplustabs(), xpt():
722 - Removed redundant increment of tabs when collumn no % 8 == 0.
723 - Added check for data[i] < 32, most of such bits are 2 chars wide.
724- update_line():
725 - Fixed a stupid call to strlenpt with col when we should have
726 been using actual_col. Ugh.
727
728nano-0.8.9 - 03/22/2000
729- nano.c:
730 empty_line(), no_spaces(), justify_format(), do_justify():
731 Actually added these (screwup applying patch).
732 do_justify(): Added call to set_modified().
733
734nano-0.8.8 - 03/12/2000
735- Preliminary internationalization support. Many many functions modified
736 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
737 New dirs po/ and intl/, changes to configure.in and Automake.am to
738 support i18n.
739- nano.c:
740 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
741 statics: Changed some things that were not necessarily static
742 (Adam Rogoyski).
743 nrealloc(): New function, similar to nmalloc(). Changed calls from
744 realloc() to nrealloc (Adam Rogoyski).
745 empty_line(), no_spaces(), justify_format(), do_justify():
746 New functions for justify function (Adam Rogoyski).
747- winio.c:
748 blank_edit(): Added wrefresh call to edit so that screen updates (like
749 on ^L) actually work.
750 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
751
752nano-0.8.7 - 03/01/2000
753- main.c:
754 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
755 to a single character on one line when no good place to
756 break the line exists, and for wrapping lines longer than COLS.
757- nano.1.html:
758 Html version of man page, now included in dist. For
759 the benefit of nano packages in Linux distributions.
760
761nano-0.8.6 - 02/24/2000
762- gobal.c:
763 shortcut_init():
764 Added shortcuts for goto_line and do_replace when using
765 pico_msgs. Oops.
766- nano.c:
767 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
768 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
769 Removed check for backing up past spaces first.
770 main(): Added for loop to check for alt keys instead of hard list.
771 do_enter(): Fix for bug #14, added call to reset_cursor and messed
772 up do_char quite a bit.
773 version(): Added time and date stamp for compile on version message.
774 Added mail and web page info.
775- README: Updated mailing list info.
776
777nano-0.8.5 - 02/18/2000
778- nano.c:
779 main(): Finally fixed tilde being input on page up/down keys in
780 certain terminal types. Fix was input 26->91->5[34] check
781 for 126, if so make the kbinput PAGE UP/DOWN, else unget
782 the keystroke and continue. Added #include <ioctl.h> for
783 ioctl call.
784 handle_hup():
785 Handler for hangup signal. Belated include of patch from
786 Tim Sherwood.
787- winio.c:
788 edit_refresh():
789 Temporary fix for selecting text when temp == current.
790 edit_refresh() is now unmanagably complex, and must be
791 revamped.
792 check_statblank():
793 Added check for constupdate, makes things less choppy
794 (Adam Rogoyski)
795
796nano-0.8.4 - 02/11/2000
797- Moved global variables that were only (or mostly) used in one file into
798 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
799- global.c:
800 shortcut_init():
801 Removed redundant NANO_CONTROL_H from backspace shortcut,
802 added char 127 which should have been there.
803- nano.c:
804 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
805 segfaults (Adam Rogoyski).
806- Makefile.am: Added all source filenames (Adam Rogoyski).
807- nano.1: Fixed mail addressed and added mailing list address.
808- README: Updated my email address and the nano web page.
809
810nano-0.8.3 - 02/08/2000
811- New pico mode (-p, --pico), toggles (more) compatibility with the
812 Pico messages displayed in the shortcut list. Note that there are still
813 small differences in this mode.
814- nano.h: New shortcut struct format, for the benefit of i18n and
815 our help menu. Removed shortcut message macros, they are
816 now all in shortcut_init in global.c.
817- nano.c:
818 do_wrap(): Removed resetting of current_x when we are in fact
819 wrapping to the next line, fixes a bug in -i mode.
820 do_enter():
821 Rewrote the autoindent mode code to be a lot less pretty,
822 but a lot more magical.
823 main():
824 Removed case for ignoring char 126 (~). That's kind of
825 important, we'll have to fix handling that sequence when
826 pageing up/down on a terminal some other way... Revamped
827 main switch loop in much snazzier fashion based on the
828 shortcut list.
829- winio.c:
830 New function display_main_list. Affects all functions
831 that used to call bottombars() with main_list. Added
832 because we now only call bottombars with the macro
833 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
834 changes to the main_list shortcut list (see global.c below).
835 New function do_help, our preliminary dynamic help system.
836- Many many funcs:
837 Changed from int to void to allow one uniform type to call
838 from the shortcut struct. Also a few functions that do
839 not simple have void argument have new functions called
840 funcname_void(void) to be called from the shortcut list.
841 do_cut_text and do_uncut_text were changed to void
842 arguments because they were never called with a filestruct
843 other than *current anyway.
844- global.c:
845 Shortcut list main_list was expanded to cover all
846 shortcuts that could be caught in the main loop.
847 Consequently there is a new macro MAIN_VISIBLE which tells
848 how many items in the main list to actually show.
849
850nano-0.8.2 - 02/02/2000
851- Added initial mouse (-m, --mouse) support. New global variable
852 use_mouse. (Adam Rogoyski)
853
854- nano.c: Set intial value of fill to COLS - 8 rather than just 72
855 regardless. (Adam Rogoyski).
856 do_delete():
857 Deleted call to do_backspace() when on the end of a line,
858 because it won't update the line properly.
859 do_backspace():
860 Removed unnecessary pointer manipulation that was being
861 handled by unlink_node().
862 open_file():
863 Added check for trying to open a directory (currently we
864 segfault on this). Bug pointed out by Chad Ziccardi.
865
866nano-0.8.1 - 01/28/2000
867- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
868 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
869 global.c and proto.h.
870- nano.c:
871write_file(): Added (incredibly) necessary check for EPERM when
872 link() fails. This allows us to actually save
873 files via rename() on filesystems that dont
874 support hard links (AIEEEEEE).
875do_goto():
876 Fixed a stupid mistake where we were calling
877 bottombars() with replace_list instead of goto_list.
878- nano.h:
879 New char *help in shortcut structure for help
880 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
881 for help function and i18n.
882- global.c:
883 New functions shortcut_init (called in nano.c) and
884 sc_init_one() to initialize the shortcuts without
885 using {}s (for i18n).
886
887nano-0.8.0 - 01/25/2000
888- View flag (-v, --view) implemented. Global variable view_mode, affects
889 main loop of nano.c and new_file(). (me)
890- nano.c:
891 split checks for TERMIOS_H and TERMIO_H up so we
892 can (theoretically) include them both, which is good.
893handle_sigwinch():
894 Added check for ncurses.h. (Andy Kahn)
895do_spell():
896 We now only try ispell because we don't as of yet
897 handle the 'spell' program the right way, now that
898 I finally know what the right way is =-). Added
899 call to edit_update(fileage) to stop segfaults.
900global_init():
901 Added initialization of edit* filestruct pointers
902 to stop segfaults on spell check.
903usage():
904 Check for getopt_long, and if no leave out the
905 GNU options everyone seems to love so much (Andy Kahn)
906main():
907 Added checks for getopt_long (Andy Kahn)
908 We ignore character 126 because it gets put into
909 the buffer when we page up/down on a vt terminal.
910write_file():
911 Fixes for umask (Adam Rogoyski). Renamed tmpfile
912 variable to tmp. Documented the tmp opttion
913 better in the function comments. Fixed my
914 stupidly commented out check for tmp on setting
915 umask which I really like =>
916- nano.h:
917 Made desc variable in shortcut struct a pointer
918 instead of a fixed-length string.
919- utils.c:
920 Fixed check for config.h before nano.h.
921- configure.in:
922 New checks for getopt_long, getopt.h, removed
923 CFLAGS and LDFLAGS changes. Gonna have to run
924 strip manually now =-) (Andy Kahn)
925 Added check for HAVE_WRESIZE, new file acconfig.h (me).
926
927nano-0.7.9 - 01/24/2000
928- New autoindent feature. Command flag 'i' or '--autoindent'. New
929 function do_char() to clean up character output, global
930 variable autoindent in global.c. (Graham Mainwaring)
931- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
932 files on exit without prompting. Affects do_writeout(). Also
933 do_writeout() now takes a parameter for if exiting.
934 Global variable temp_opt in global.c (Graham Mainwaring)
935- Preliminary spell program support. Added command flag '-s' or
936 '--speller' for alternative speller command. Added function do_spell()
937 and exit_spell() to nano.c. New global variable alt_speller.
938- nano.c:
939 main(): We now ignore input of decimal 410 because these get entered
940 when we resize the screen. Sorted options in getopt()
941 switch statement.
942 usage(): Sorted options and changed tabs to make room for -s option.
943 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
944 doesn't print the number of lines written on the statusbar.
945 global_init():
946 Added more initializations to globals to support do_spell().
947
948nano-0.7.8 - 01/23/2000
949- Stubbed justify function. Affects main() in nano.c and nano.h defines.
950- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
951 and main() in nano.c
952- Removed redundant reset_cursor() calls from the blank() routines.
953- nano.c:
954 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
955 Removed check for isprint() characters in main while loop
956 for people with odd character sets *shrug*. Added some X
957 window F-key combos.
958 read_line(): New function, consolidates of most of the special
959 sections of the file reading code. (Rob Siemborski)
960 do_replace(): Many scattered fixes. (Rob Siemborski)
961 write_file(): Added check for empty filename.
962- winio.c:
963 nanogetstr(): Fixes for deleting at places other than the end of the
964 buffer, cut support. (Adam Rogoyski)
965 blank_edit(): New function, blanks edit buffer. Added call to it in
966 total_refresh().
967- configure: Checks for glib if snprintf of vsnprintf aren't available
968 (Andy Kahn). Changed warning message when no termcap lib
969 is found.
970
971nano-0.7.7 - 01/19/2000
972- Option '-v' for version moved to '-V', because -v is Pico's "read only"
973 mode (affects getopt() in main() and usage() function in nano.c
974- New flag -c, always show cursor position. Affects main() in nano.c and
975 statusbar() in winio.c
976- Option '-x' doesn't show help window at the bottom of the editor.
977 New variable no_help in nano.h and proto.h, affects main(), usage(),
978 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
979 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
980 hand =P) (Adam Rogoyski)
981- nano.c:
982 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
983 page_up(), page_down():
984 - New functions. We now set the cursor at the top right corner,
985 not at the center line, and page up and down a full screen
986 rather than a half screen. Original functions renamed to
987 page_up_center() and page_down_center().
988 main():
989 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
990 in main while loop because suspend mode was broken. This should
991 fix it, at least for now.
992 - Added long option support (By popular harassment ;-) - Added
993 #include for getopt.h, changed getopt() to getopt_long().
994 Options added so far: --version (-V), --nowrap (-w), --suspend
995 (-z), --help (-h), --nohelp (-x).
996 - Rewrote signal statements (Adam Rogoyski)
997
998nano 0.7.6 - 01/15/2000
999- New ChangeLog format
1000- nano.c:
1001 main(): Bound CONTROL_H to backspace (oops)
1002 Added more Alt-[-key combinations, for page up & down.
1003 read_bytes(): New function (Adam Rogoyski)
1004 read_file(): Optimizations - malloc()s *buf a little at a time rather
1005 than one huge buffer, and replaced the strcat at the end
1006 with an index variable. Added call to read_bytes().
1007 do_next_word(): New function, binding is control-space (0) (me)
1008
1009- winio.c:
1010 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
1011 (formula is extra space needed = COLS / 6 - 13).
1012 actual_x() & strlenpt():
1013 Added bug#9 fix - when tabs % 8 == 0, we should only
1014 increment tabs by 1.
1015 titlebar(): Fixed overrun in titlebar on very long filenames.
1016
10170.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
1018 writing a newline at EOF. do_cursorpos and do_replace are now not
1019 directly bound to signals but picked up as their control sequences
1020 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
10210.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
1022 available memory, align bug fixed (Big Gaute).
1023
1024--- As of version 0.7.4 TIP is renamed to nano.
1025
10260.7.3 Fixed a double blank_statusbar() when jumping to first and last
1027 lines. Took out unnecessary updates in load_file. Bug fix in
1028 do_left. Missing updates to totlines, fixed bug #7 (last line not
1029 having a newline at the end doesnt get read, bugfix in do_replace
1030 with replace all, more/better comments (Robert Siemborski)
10310.7.2 Our first patch accepted into the source! configure fixes
1032 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
1033 Bug fix in update_line for editing long lines. Fixed arguments
1034 being put into the filename when none is specified. Preliminary
1035 +line command argument function.
10360.7.1 configure tweak for better FreeBSD support. Removed refresh() from
1037 edit_refresh to stop cursor "jumping" during screen updates. This
1038 will probably cause a bug or two. Replace is now Alt-R (@R) and
1039 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
1040 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
1041 Control-G will become the Help key, but for now is stubbed out.
10420.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
1043 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
1044 length file. Added Esc-[-A,B,C,D cursor key sequences.
10450.6.9 Preliminary cursor position function. Split up tip.c more, made
1046 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
1047 that was leaving out a character.
10480.6.8 By request, optchr in main() is now an int. Removed unneeded
1049 globals. Bound functions for next/prev page, and wrote functions
1050 do_home and do_end.
10510.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
1052 created read_file. Implemented Insert File. Fixes in tipgetstr
1053 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
10540.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
1055 aborted searches and more Pico-compatible messages. statusq() now
1056 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
10570.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
1058 regarding buffers with filebot in them. Fixins in do_backspace
1059 and do_enter. Removed unused variables. Removed strip_newline.
10600.6.4 Took out the awful newlines from each string buffers. This will
1061 certainly cause more bugs. Fixes in do_exit(). Better empty file
1062 handling (I hope).
10630.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
1064 do_enter() rewritten.
10650.6.2 Better default file permissions. Complete rewrite of do_wrap().
1066 Better handling of editing with cursor near COLS - 1.
10670.6.1 Starting to implement wrapping toggle. Fix for unhandled control
1068 codes being entered into the buffer. Bug fix in actual_x; more
1069 > COLS - 1 functionality, especially on lines with TABs. Fixed being
1070 locked into cutbuffer when cutting more than one marked screen of text.
10710.6.0 We have TABs!!! To do this, placewewant is now set to the actual
1072 width on the screen we want to be, not an index of current->data.
1073 New functions xplustabs and actual_x convert the actual place
1074 the cursor should be on the screen to and from the place in the
1075 string.
10760.5.5 Changed do_right to test do_down before setting current_x to 0,
1077 eliminiating the "looping" on the last line when holding the right
1078 arrow. Preliminary support for longer than COLS - 1 lines.
1079 Wrote do_delete.
10800.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
1081 tipgetstr is much more messy but text is now more editable ;)
1082 Fixed crash on entering a new file, hopefully. Awful stub for tab
1083 handling, only in do_right() to save me some sanity.
10840.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
1085 Fixed a few bugs in do_uncut when not uncutting from marked text.
1086 I would not trust your data with the mark code right now, but then
1087 we're not at version 1.0 yet so dont trust anything ;)
10880.5.2 Added reset_cursor() before end of update_line so cursor doesnt
1089 jump after each keystroke entered. Select text stubbed. Fixed
1090 a bug in total_refresh(). Setting a mark will hilight properly,
1091 but does not actually affect what gets put in the cutbuffer (yet).
10920.5.1 Writing a file out causes modified to be set back to 0. Good.
1093 Set_modified function written. Cut and uncut text now set
1094 modified when called.
10950.5.0 Half way there! Implemented write out, save function seems
1096 stable. Changed statusbar blank routing to not refresh, a separte
1097 program calls it and then refreshes. Made the program not clear
1098 the srceen on exit, just the bottom two lines (like Pico).
10990.4.2 Implemented replace all in replace function. Crude exit function
1100 (asks yes or no if modified but does not write to file).
11010.4.1 Implementing search & replace. Fixed crash on deleting at top of
1102 edit buffer. Implemented "timeout" of statusbar messages.
1103 Implemented ^A and ^E (beginning and end of line).
11040.4.0 Split code into global.c and proto.h to allow for better multiple
1105 file handling. Added #defines for the majority of the shortcut
1106 kets in tip.h for easy modification.
11070.3.1 Write edit_refresh which doesn't move the screen around, just
1108 updates what's there already. do_wrap() and do_enter() added.
11090.3.0 Preliminary cutbuffer (cut and uncut) support.
11100.2.7 Check for Modification added. do_search() works.
11110.2.5 Rewrite of file data struct.
11120.2 Read in data to buffer, bound keystrokes to stub functions,
1113 initial cursor movement on screen. Initial autoconf support.
11140.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001115
1116$Id$