blob: 982d757c542ae3dbe5d2d81408b2e52c97abd6c1 [file] [log] [blame]
Chris Allegrettabf9da282000-09-04 17:44:59 +00001CVS code -
Chris Allegretta805c26d2000-09-06 13:39:17 +00002- General
3 - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
4 added check for regex.h in configure.in.
Chris Allegretta90bd7122000-09-13 18:12:05 +00005- configure.in:
6 - Added default case for cross-compiling to get rid of annoying
7 AC_TRY_RUN warning.
Chris Allegretta429a5512000-09-05 13:09:56 +00008- cut.c:
9 do_cut_text()
10 - Don't immediately abort if we're on filebot and the marker is
Chris Allegrettad746d902000-09-05 13:15:44 +000011 set (fixes bug #42).
Chris Allegretta16e41682000-09-11 22:33:54 +000012- global.c:
13 shortcut_init()
14 - Added in FKEYs that for some reason were left out. *boggle*
Chris Allegretta9239d742000-09-06 15:19:18 +000015- nano.c:
Chris Allegretta2a42af12000-09-12 23:02:49 +000016 main()
Chris Allegretta9239d742000-09-06 15:19:18 +000017 - Added check for _POSIX_VDISABLE and use raw mode if not
18 available, allows nano to work with cygwin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +000019 - Added gettext calls to enable/disable strings (Jordi).
Chris Allegretta16e41682000-09-11 22:33:54 +000020 - Revamped a great deal of the F-key and keypad key handling,
21 because we not longer use keypad() (see below).
22 - Removed keypad() call because nano was not working with the
23 keypad in many terms, which is very bad.
Chris Allegretta9c35eb02000-09-13 14:24:52 +000024 - Made insert key call do_insertfile().
Chris Allegretta2a42af12000-09-12 23:02:49 +000025 do_toggle()
26 - Rewrote function to allow NOHELP toggle to wotk on systems
27 without a working resizewin(). New function window_init().
Chris Allegretta0b88ce02000-09-15 15:46:32 +000028 mouse_init()
29 - Add keypad only if mouse support is on, otherwise mouse doesn't
30 work. I guess you have to choose between having the mouse and
31 having a working keypad for the time being (thank god for Meta-m).
Chris Allegretta2a42af12000-09-12 23:02:49 +000032- winio.c:
33 total_refresh()
34 - Added titlebar() call.
Chris Allegrettae7034c62000-09-15 03:31:09 +000035 onekey()
36 - Off by one error fix fix ;-) (Rocco Corsi).
Chris Allegretta2a42af12000-09-12 23:02:49 +000037
Chris Allegrettab9bfc9b2000-09-10 05:06:09 +000038- search.c:
39 findnextstr()
40 - Reset starting at current for search instead of begin.
Jordi Mallach2dc0f6b2000-09-07 10:48:00 +000041- es.po:
42 - Translated new strings and minor updates (Jordi).
Chris Allegretta429a5512000-09-05 13:09:56 +000043
Chris Allegretta423cbfd2000-09-04 16:21:29 +000044nano-0.9.17 - 09/04/2000
Chris Allegretta756f2202000-09-01 13:32:47 +000045- General
46 - New shortcuts to toggle certain options that are normally only
47 flags via Alt/Meta. See Alt-C,E,I,K,M,P,X,Z. New struct called
48 toggles in nano.h, toggle_init(), toggle_init_one() in global.c
Chris Allegrettae49f1232000-09-02 07:20:39 +000049 called from shortcut_init(), and do_toggle in nano.c. Also
50 moved the signal code into a separate function in nano.c called
Chris Allegretta18f8be02000-09-04 03:20:38 +000051 signal_init(). Moved "struct sigaction act"into a static in
52 nano.c.
Chris Allegrettae49f1232000-09-02 07:20:39 +000053 - Changed from Alt-key symbol (@) which is completely nonstandard
54 to the *nix "Meta" symbol (M-). Changed help_init to show
55 the M-key usage and the help text to explain keys whcih generate
56 Meta. Moved the toggle Meta keystrokes to the first column
57 instead of the third as they are the primary keystrokes for the
Chris Allegretta9541f2a2000-09-02 07:31:32 +000058 functions. Thanks Mini editor team :->
Chris Allegretta756f2202000-09-01 13:32:47 +000059 - Changed last_search and last_replace vars to statically
60 allocated (hence nulled) and moved to search.c (Matt Kraai).
Chris Allegrettaf0f63a82000-09-02 18:44:21 +000061- global.c:
62 toggle_init()
63 - Changed "No auto wrap" and "No help mode" to "Auto wrap" and
64 "Help mode". See the change to do_toggle() below.
Chris Allegrettae10debd2000-08-22 01:26:42 +000065- nano.c:
66 do_mouse()
67 - Patch for handling lines w/tabs and mouse better (Ben Roberts).
Chris Allegretta340d6e52000-08-29 03:55:29 +000068 do_wrap()
69 - Made wrapping code less ambitious.
Chris Allegrettaf0f63a82000-09-02 18:44:21 +000070 do_toggle()
71 - Added checks for no help and no wrap mode, and print opposite
72 enable/disable message.
Chris Allegretta18f8be02000-09-04 03:20:38 +000073 do_suspend(), do_cont():
74 - New functions, handle suspend signal in a Pico-like manner and
75 work with Meta-Z.
Chris Allegrettaf1d33d32000-08-19 03:53:39 +000076- winio.c:
77 total_refresh()
78 - Added edit_refresh() call to actually update the screen if messy.
79 edit_refresh_clearok()
80 - New function, does a total update for edit refresh, needed to fix
81 lack of reversed text on searching with MARK_ISSET.
Chris Allegrettadabc3cb2000-08-25 01:44:12 +000082 onekey()
83 - Off by one error fix (Rocco Corsi).
Chris Allegrettae7034c62000-09-15 03:31:09 +000084
Chris Allegretta6306a112000-09-02 07:55:41 +000085 update_line()
86 - Added check for binary data >= 1 and <= 26, and use ^+letter
87 to display it. Should fix editing text files with binary
88 data in them. Placing of the cursor seems to be a bit screwed
89 though...
Chris Allegrettaf1d33d32000-08-19 03:53:39 +000090- search.c:
91 search_abort()
92 - Now calls edit_refresh_clearok when MARK_ISSET to handle screen
93 ugliness bug (reported by Ken Tyler).
Chris Allegrettae10debd2000-08-22 01:26:42 +000094 findnextstr():
95 - Added reset for placewewant (Ben Roberts).
Chris Allegretta9babaf32000-08-30 13:49:33 +000096 - Fixed check for string that only occurs on the same line failing
97 (discovered by Ken Tyler).
Chris Allegrettaf1d33d32000-08-19 03:53:39 +000098
Chris Allegrettaba96f7a2000-08-09 21:38:28 +000099nano-0.9.16 - 08/09/2000
Chris Allegretta7dc14e82000-08-05 16:03:19 +0000100- cut.c:
101 do_cut_text()
102 - Fixed getting locked into cutbuffer on cutting first line of file.
Chris Allegrettac86f7142000-08-07 14:39:32 +0000103 - Added check_statblank().
104 - Check for fileptr == filebot, if so return, we shouldn't bother
105 cutting the magic line.
106 do_uncut_text()
107 - Added check_statblank().
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000108- nano.c:
109 main()
110 - Changed tabsize long arg to actually accept an argument *sigh*.
Chris Allegretta81b1eea2000-08-05 16:09:07 +0000111- po/Makefile.in.in:
112 - Patch to handle $DESTDIR (orig by Dan Harnett contributed by
113 Christian Weisgerber)
Chris Allegrettab4dc9e02000-08-05 22:49:30 +0000114- configure.in:
Chris Allegrettaa2efc362000-08-09 03:26:33 +0000115 - New (and severally revised =) slang test code (Albert Chin-A-Young)
Chris Allegretta4dbcc3c2000-08-04 15:44:29 +0000116
Chris Allegretta0bf4e142000-08-04 02:42:04 +0000117nano-0.9.15 - 08/03/2000
Chris Allegretta234a34d2000-07-29 04:33:38 +0000118- Changed edit_update call to take arguments TOP, CENTER or BOTTOM.
119 Affects many many functions. Removed functions edit_update_top and
120 edit_update_bot.
Chris Allegretta6d690a32000-08-03 22:51:21 +0000121- Added global variable tabsize, we no longer screw with the curses
122 library in order to implement -T (suggested by Christian Weisgerber).
Chris Allegretta7a6f0d92000-07-31 13:00:24 +0000123- configure.in:
124 - Finally fixed check for slang to report "no" if not called
125 with --with-slang or --without-slang
Chris Allegretta7975ed82000-07-28 00:58:35 +0000126- nano.c:
Chris Allegretta18bd0292000-07-28 01:18:10 +0000127 splice_node()
Chris Allegretta7975ed82000-07-28 00:58:35 +0000128 - New function, abstracts linking in nodes. Fixes bug #36.
Chris Allegretta6925bbd2000-07-28 01:41:29 +0000129 null_at()
130 - New function, nulls a string at a given index and realigns it.
Chris Allegretta18bd0292000-07-28 01:18:10 +0000131 delete_buffer()
132 - Removed, same as free_filestruct().
Chris Allegrettada721be2000-07-31 01:26:42 +0000133 do_backspace()
134 - Now calls page_up_center instead of page_up (as it should?)
135 do_enter()
136 - Fixed typo (?) in check for inptr->next. Caused lots of
137 grief for editing lines at filebot.
Chris Allegretta99bf73f2000-08-04 00:22:08 +0000138 main()
139 - Removed now useless usrtabsize variable (Christian Weisgerber).
Chris Allegretta18bd0292000-07-28 01:18:10 +0000140- search.c:
141 replace_abort()
142 - redundant, now just calls search abort until it does something
143 different.
Chris Allegretta95b0b522000-07-28 02:58:06 +0000144- winio.c:
145 edit_refresh()
146 - Added check for current line "running" off the screen.
147 Hopefully this will not cause any recursive lockups.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000148 (Who am I kidding, of course it will!)
Chris Allegrettaed022162000-08-03 16:54:11 +0000149 - Added check to stop infinite loop calling edit_update.
Chris Allegretta234a34d2000-07-29 04:33:38 +0000150 edit_update()
151 - Rewritten, hopefully this will remove a lot of the
152 scrolling the cursor back and forth needlessly.
Chris Allegretta1a471392000-07-28 14:08:01 +0000153- move.c:
154 page_down()
Chris Allegretta234a34d2000-07-29 04:33:38 +0000155 - do an edit_update() at last case. Made function more like
156 Pico's version, only move down to two lines before editbot.
157 page_up()
158 - Made function more like Pico's version, only move down to two
159 lines after edittop.
Chris Allegretta7975ed82000-07-28 00:58:35 +0000160
Chris Allegrettaa1a55c72000-07-28 00:36:03 +0000161nano-0.9.14 - 07/27/2000
Chris Allegretta05597192000-07-24 21:16:12 +0000162- nano.h:
163 - Set CUT_TO_END to a different bit than TEMP_OPT. Fixes bug #32.
164- cut.c:
Chris Allegretta962c3c92000-07-24 21:52:17 +0000165 do_cut_text()
Chris Allegretta05597192000-07-24 21:16:12 +0000166 - Added check for MARK_ISSET when using CUT_TO_END. Fixes bug #31.
Chris Allegretta0e5faca2000-07-27 13:32:46 +0000167 - Simplified check for freeing cutbuffer. Added checks for doing
168 multiple cuts with -k, now sets marked_cut to 2 for later
169 processing by do_uncut_text().
170 do_uncut_text()
171 - Added handler for uncutting with -k cuts.
Chris Allegretta962c3c92000-07-24 21:52:17 +0000172- files.c:
173 write_file()
174 - Removed (redundant) check for writing out files with -t.
175 do_writeout()
176 - Changed check for filename to filename[0]. Added some code,
177 overall fixes bug #30 =-)
Robert Siemborskia417ddc2000-07-24 23:18:48 +0000178- nano.c:
179 do_justify() & do_wrap():
180 - totsize-related fixes (Rob)
Chris Allegretta2ece1672000-07-27 15:25:52 +0000181- de.po
182 - Revised translations by floki@bigfoot.com
Chris Allegretta05597192000-07-24 21:16:12 +0000183
Chris Allegretta1d7110d2000-07-23 16:59:07 +0000184nano-0.9.13 - 07/23/2000
Chris Allegretta627de192000-07-12 02:09:17 +0000185- Implemented Pico's -k mode. New flag CUT_TO_END, option (-k, --cut),
Chris Allegrettad19e9912000-07-12 18:14:51 +0000186 affects do_cut_text in cut.c. Not available with SMALL_NANO because it
187 depends on the marker code which is not available with that setting.
Chris Allegretta30885552000-07-14 01:20:12 +0000188- Changed static temp_opt to flag TEMP_OPT. Fixed bug #29 (using
189 -t with an unwritable file causes users to get locked into editor).
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000190- move.c
191 page_down()
192 - Don't edit_refresh() if the bottom of the file is in the edit
193 buffer. (Adam)
Robert Siemborski6967eec2000-07-08 14:23:32 +0000194- nano.c:
195 main():
196 - TABSIZE now set before first call to edit_refresh (Bill Soudan)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000197 - Different ^C kill code (patch by Christian Weisgerber).
Robert Siemborskifcf32bf2000-07-17 03:04:54 +0000198 die():
199 - More intelligent emergency-save filename selection (Rob)
Chris Allegretta8f6c0692000-07-19 01:16:18 +0000200 do_spell():
201 - Changed exit semantincs a bit so that aspell wouldn't get
202 all screwy (bug disovered by Joshua Jensen.
203- files.c:
204 read_file():
205 - Added init of buf variable, hopefully this will stop the
206 "bleeding" of text seen with mutt and using i18n.
Chris Allegrettaacb62342000-07-21 22:42:46 +0000207 write_file():
208 - Added code to check to see if using -l and the file is not
209 in fact a link. This should fix the behavior where a file
210 that does not have write permission but could be removed and
211 rewritten is saved without error. Please test this feature
212 and give feedback.
Chris Allegrettaa4d21622000-07-08 23:57:03 +0000213- search.c:
214 search_init():
215 - Added " (to replace)" statement to end of search string if
216 we are doing a replace. Manually converted all the translations
217 from '%s' to '%s%s' to ensure they still work with the new code.
218 Also put in the translation for " (replace)" in the .po's. Hope
219 I didn't step on your toes doing this Jordi. (Chris)
Chris Allegretta635fae32000-07-09 03:26:34 +0000220 do_search(), do_replace():
221 - Removed call to search_abort()/replace_abort() before call to
222 the opposite function.
Chris Allegrettafa8f7bf2000-07-12 02:41:13 +0000223 - Fixed bug #28.
Adam Rogoyskied0cb892000-07-12 04:02:45 +0000224 findnextstr()
225 - do not center string found if it is currently visable. (Adam)
Chris Allegretta7539a822000-07-09 23:55:13 +0000226- fr.po:
227 - French update by Clement Laforet <clem_laf@wanadoo.fr>.
Jordi Mallach8d7ac1b2000-07-13 03:10:01 +0000228- es.po:
229 - Updated strings to 0.9.13 (Jordi).
Robert Siemborski6967eec2000-07-08 14:23:32 +0000230
Chris Allegrettae955dae2000-07-07 22:24:59 +0000231nano-0.9.12 - 07/07/2000
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000232- all:
Chris Allegretta9fc8d432000-07-07 01:49:52 +0000233 - New regexp search feature by Bill Soudan. New flags USE_REGEXP
234 and REGEXP_COMPILED, new functions regexp_init, regexp_cleanup
235 replace_line, replace_regexp in search.c, changes to
Chris Allegretta47805612000-07-07 02:35:34 +0000236 search_init() and do_replace() and strstrwrapper().
237 - Added _POSIX_VERSION check to regexp code. Better than nothing
238 for non-POSIX systems...
Robert Siemborski6d0e9cd2000-07-01 21:43:16 +0000239 - Made search functions & keys more like Pico. Added goto line from
240 search and replace function, changed wording to "No Replace" instead
241 of "To Search", "To Replace" to simply "Replace", and changed to
242 Pico's keystroke by default, ^R. Affects search_init(),
243 do_search() in search.c, globals in nano.h and
244 shortcut_init() in global.c.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000245 - changed 'sprintf' calls to safer 'snprintf' (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000246- cut.c
247 - further totsize update corrections
Robert Siemborskideca3e72000-07-04 02:40:41 +0000248- files.c:
249 - changed do_insertfile to call fix_editbot (Rob)
Robert Siemborski23ecb172000-07-04 22:21:40 +0000250 - Magic Line code in read_file (Rob)
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000251- nano.c:
252 - Removed dual alt_speller variables, oops! (Rocco Corsi)
Chris Allegrettadbc12b22000-07-03 03:10:14 +0000253 - Removed unnecessary do_oldspell function (Rocco Corsi). Added
254 SMALL_NANO #ifdef around actual spell function.
Chris Allegretta1e57e682000-07-03 04:24:39 +0000255 - Moved page_up() to move.c where is belongs.
Robert Siemborskideca3e72000-07-04 02:40:41 +0000256 - Corrected FIXME in do_enter with explanation. (Rob)
257 - Fixed FIXME in do_justify, resulted in creation of
258 fix_editbot [also fixed in do_enter] (winio.c) (Rob)
Robert Siemborskicdff0152000-07-07 01:58:52 +0000259 help_init():
260 - Moved newline out of if statement (Rocco Corsi)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000261 do_char():
Robert Siemborski23ecb172000-07-04 22:21:40 +0000262 - Magic Line related code in do_char (Rob)
Chris Allegretta28a0f892000-07-05 22:47:54 +0000263 do_backspace(), do_delete():
264 - Added magic line code here too.
265
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000266- de.po:
Chris Allegretta6e805852000-06-22 01:53:29 +0000267 - Revised translations by floki@bigfoot.com.
Chris Allegrettaf7eba0b2000-06-24 01:33:27 +0000268- fi.po:
269 - Finnish translation by pauli.virtanen@saunalahti.fi.
Robert Siemborski23ecb172000-07-04 22:21:40 +0000270- utils.c:
271 - Added new_magicline()
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000272- winio.c:
Chris Allegrettadba37ae2000-07-07 05:13:09 +0000273 - Added stdlib.h to includes, found by OpenBSD gcc.
Robert Siemborski20d61d52000-07-08 00:43:35 +0000274 - lots of new commenting around display functions
Chris Allegretta5204ea92000-06-22 01:56:23 +0000275 do_yesno(), nanogetstr():
276 - Removed now unnecessary raw/cbreak combos.
Jordi Mallach0b0fc492000-06-23 01:00:13 +0000277 - Removed gettext calls from "Y(es)", "N(o)", "A(ll)" and "^C", till
278 we decide if those keybindings should be translated. (Jordi)
Chris Allegretta8c2b40f2000-06-29 01:30:04 +0000279 clear_bottomwin():
280 - Removed wrefresh(edit) call.
Chris Allegretta48fd2cb2000-07-03 04:31:13 +0000281 edit_update_top():
282 - Fixed a bug that caused nano to not update when
283 current->next == NULL (e.g. paging down to the very bottom of
284 ABOUT NLS wouldn't work).
Robert Siemborskideca3e72000-07-04 02:40:41 +0000285 fix_editbot:
286 - Added (should rebuild editbot from a valid edittop) (Rob)
Robert Siemborski20d61d52000-07-08 00:43:35 +0000287 edit_add:
288 - removal of redundant call to mvwaddnstr
Chris Allegretta8a9fe7e2000-06-21 22:29:38 +0000289
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000290nano-0.9.11 - 06/20/2000
Chris Allegretta790198d2000-06-20 00:40:01 +0000291- New flag "-T" or "--tabsize" to specify how to display tab widths.
292 Affects main() in nano.c, strlenpt(), xpt() and actual_x() (et al) in
293 winio.c, and nano.h. Many harcoded "8"s have been changed to the
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000294 TABSIZE int. Added changes to nano.1 and nano.1.html.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000295- id.po:
296 - Indonesian translation by Tedi Heriyanto.
Chris Allegretta4da1fc62000-06-21 03:00:43 +0000297- es.po:
298 - Updated translation (Jordi Mallach).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000299- winio.c
300 - Rewrite of display functions to correct the display problems
301 we had been seeing. Affects: add_marked_sameline, edit_add,
302 and many others. (Rob Siemborski)
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000303 - totsize fixes (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000304 total_refresh():
305 - Cut dispaly_main_list call, as this function is only supposed to refresh
306 what's already on the screen, not go through the process of adding the
307 text again.
Chris Allegretta12de8e82000-06-09 02:40:50 +0000308- cut.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000309 - totsize fixes (Rob Siemborski)
Chris Allegretta12de8e82000-06-09 02:40:50 +0000310- nano.c:
Robert Siemborskib0df9532000-06-09 00:55:16 +0000311 - experimental do_wrap and check_wrap (Adam Rogoyski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000312 - Removed editwineob, as it was redundant for (editwinrows - 1).
313 Changed all calls to editwinrows - 1 in nano.c and move.c.
314 - Removed all functions that were split into other files.
315 Affects LOTS of funcs.
Chris Allegrettab0ae3932000-06-15 23:39:14 +0000316 do_enter():
317 - Added reset of placewewant to end.
Robert Siemborski10eab1d2000-06-18 01:05:00 +0000318 do_insertfile():
319 - Fix display problem when using ctrl-r to load a file
320 into the buffer (Rob Siemborski)
Chris Allegretta97accc62000-06-19 05:45:52 +0000321 handle_sigwinch():
322 - Added titlebar(), edit_refresh() and display_main_list() calls because
323 a resize wasn't picking up on possible different width correctly.
324- utils.c:
325 - Moved nmalloc() and nrealloc() here.
326- move.c:
327 - New file, contains movement functions (like do_home(), do_up(),
328 do_down(), page_up(), etc...).
329- files.c:
330 - Contains functions for files (read_file, insert_file,
331 do_writeout(), etc).
332- search.c:
333 - Contains all our searching and related functions, (do_search(),
334 findnextstr(), do_replace(), do_gotoline()).
Robert Siemborski91413cf2000-06-07 02:20:46 +0000335
Chris Allegrettaa2ea1932000-06-06 05:53:49 +0000336nano-0.9.10 - 06/04/2000
337- es.po:
338 - Translation updates (Jordi).
339- AUTHORS, nano.1.html, TODO, README:
340 - Documentation and email address updates (Jordi).
341- nano.c:
342 main():
343 - Moved Adam's termio code down to after getopt() and before initscr()
344 to stop people losing their SIGINT character when using args that
345 exit nano before it runs (--version, --help, etc).
346
347nano-0.9.9 - 05/31/2000
348- Makeile.am:
349 - Added proper lines for defining LOCALEDIR.
350- configure.in:
351 - Spelling fixes (Jordi Mallach)
352 - Removed CFLAGS changes for gcc, reduces portability according to
353 some, and it certainly doesn't seem to decrease exe size.
354- es.po:
355 - Spanish ranslation updates (Jordi Mallach)
356- POTFILES.in:
357 - Added global.c file, was screwing up translations (i.e. they
358 weren't getting done).
359- cut.c:
360 add_to_cutbuffer():
361 - Added totsize increment.
362 - Cut fixes and optimizations (Rob Siemborski).
363 do_uncut_text():
364 - Added totsize increment in several places.
365- nano.c:
366 headers:
367 - Removed LOCALEDIR define.
368 do_justify():
369 - Added edit_refresh() call (bug discovered by Adam).
370 page_down_center():
371 - Added call to edit_update(current) for last case. Removed
372 increment of current_y since it's now just wasteful.
373 do_enter():
374 - Added totsize increment.
375 renumber(), renumber_all():
376 - Removed totsize-- and totsize init in renumber_all.
377 do_mouse():
378 - Added edit_refresh() call to show hilight updates. Removed
379 unnecessary wrefresh(edit).
380 main():
381 - Moved up locale calls so that translated --help messages would
382 actually get translated.
383 do_backspace(), do_delete():
384 - Added decrement of totsize.
385 init_help_msg():
386 - New function, initializes help text if NANO_SMALL isn't set (fixes
387 broken i18n).
388 read_file():
389 - malloc call changed to nmalloc (Rob Siemborski).
390- winio.c:
391 total_refresh():
392 - Completely rewrote function, not quite so braindamaged now.
393
394nano-0.9.8 - 05/18/2000
395- nano.c:
396 main():
397 - Added awesome code that disables the CINTR and CQUIT
398 character (Adam Rogoyski). Removed raw()/noraw() calls so that
399 nano gets input in 'normal' mode, which is the Right Way(tm) to
400 do it. ^S, ^Z and ^Q now work properly as a result, as well as
401 ^C. New variable term, global bariable oldterm to save previous
402 term settings, and changes to finish() and die().
403 - Added extra #ifdefs in getopt code, so that above code and
404 flag init is run even if GETOPT_LONG is not #defined.
405 - Added memset line before sigactions. (Adam Rogoyski)
406 do_suspend():
407 Removed function, see above for why.
408- winio.c:
409 update_line(), center_cursor():
410 - Removed wrefresh(edit) from bottom of functions. wrefresh
411 should now only be called once, at the bottom of the main()
412 loop.
413- global.c:
414 shortcut_init():
415 - Removed suspend sc_init call and suspend message because suspend is no
416 longer needed in the shortcut list to work properly.
417
418nano-0.9.7 - 05/14/2000
419- nano.c:
420 do_home(), do_end():
421 - Added calls to update_line for the current line, fixes
422 lack of update (bug discovered by Alberto García).
423 main():
424 - Added SET(FOLLOW_SYMLINKS) before getopt call, fixes not
425 following symlinks even when -l isn't set, and "no changes"
426 error when nano is called from crontab -e (Adam Rogoyski).
427- cut.c:
428 do_cut_text():
429 - Added edit_update_top to cut when mark is set, fixes lack of
430 display update (bug discovered by Ken Tyler).
431
432nano-0.9.6 - 05/08/2000
433- New Italian translation (it.po), by Daniele Medri.
434- nano.c:
435 page_up(), page_down():
436 - Added reset of placewewant to 0, as it should be.
437 do_up(), do_down():
438 - Added call to update_line() for line we move from and line we
439 move to, in order to keep the highlighting correct.
440 do_wrap():
441 - Added var chop, new code to wrap lines more like Pico, mostly.
442 THIS STILL DEFINITELY NEEDS TO BE REWRITTEN!
443- winio.c:
444 do_help():
445 - Added edit_refresh() before exit.
446 update_cursor():
447 - Removed cursor updating which really wasn't needed anyway.
448 edit_update():
449 - Removed yucky code that didn't work, this function now just
450 computes edittop and editbot and calls edit_refresh() to do the
451 rest, which removes a lot of dupliicate code..
452
453nano-0.9.5 - 05/01/2000
454- Removed bytes from file struct because it was computationally wasteful.
455- cut.c:
456 do_uncut_text():
457 - Added call to edit_refresh().
458- nano.c:
459 do_backspace():
460 - Added reset of editbot when deleting the last line of the file
461 (bug discovered by Adam).
462 do_char():
463 - Removed call to reset_cursor().
464 do_delete():
465 - Added similar check as to do_backspace().
466 do_enter():
467 - Added call to edit_refresh().
468 do_left(), right():
469 - Added call to update_line(), still redundant but better...
470 do_up(), do_down():
471 - Added refresh calls both for current line and line to which
472 we are moving.
473 main():
474 - Removed inefficient call to edit_refresh() after every keystroke.
475 It is now up each function to leave the screen in a good state.
476- winio.c:
477 do_cursorpos()
478 - Rewritten to not use bytes from filestruct by an incremental sum.
479 update_line(), reset_cursor():
480 - Optimized calls to xplustabs() through a single variable.
481 - update_line() now takes a new arg, an index into the string
482 for where to update the line from. Needed for new update
483 code.
484- configure.in:
485 - Better checks for slang, allows argument to --with-slang.
486 (Albert Chin-A-Young)
487 - Removed -Iintl from CFLAGS in gcc check.
488- Makefile.am:
489 - Addition of -Iintl for gettext (Albert Chin-A-Young)
490
491nano-0.9.4 - 04/25/2000
492 - Fixed calls to no_help and changed them to the more consistent
493 ISSET(NO_HELP). Fixed return val of no_help to be what it should (2,
494 not 1. Code to temporarily disable NO_HELP when in the
495 help system. (Adam Rogoyski)
496- cut.c:
497 do_marked_cut(), do_cut(), do_uncut():
498 - Commented out unnecessary bits when NANO_SMALL is being used.
499- winio.c:
500 xpt(), strlenpt(), actual_x():
501 - Added check for value of data[i] & 0x80, if so do not make
502 character 2 chars wide (orig. by Chris, 0x80 check by Adam).
503 edit_refresh():
504 - New check for temp == NULL (bad thing), if so go back to the
505 previous line. New filestruct var hold points to prev line.
506 Fixes segfault when paging down to the end of a file.
507- nano.c:
508 write_file():
509 - Added check for if file exists and is not equal to the current
510 filename, prompt for overwrite (Adam Rogoyski).
511 do_down():
512 - Removed check for current->next == NULL, now checks return value
513 of do_down before setting current_x = 0 (discovered by Adam).
514 do_justify():
515 - Fixed segfault when reaching the last line (tried to assign
516 currrent->next->data when current->next == NULL) (discovered
517 by Adam).
518- utils.c:
519 - Removed extra macro defs that are now in nano.h.
520- nano.h:
521 - Changed macro SET() to use |= instead of ^=. Fixes bug in
522 cut code when cutting more than one line, and cutbuffer gets
523 blown away when it shouldnt.
524
525nano-0.9.3 - 04/29/2000
526- cut.c:
527 do_marked_cut():
528 - Fixed off by one error in cut code for marked text.
529 do_cut_text():
530 - Removed check for being on the last line, part of
531 magic line code.
532 add_to_cutbuffer():
533 - Moved tmp->prev = inptr line to part where cutbuffer != NULL.
534 - Added inptr->prev = NULL for case where cutbuffer == NULL.
535- nano.c:
536 do_backspace(), do_char():
537 - Removed "magic line" code. It was basically causing more bugs
538 than it was helping for the sake of compatibillity. This fixes
539 at least one known segfault condition.
540 do_enter():
541 - Added setting editbot to new node if the new node is the last
542 node in the file.
543 write_file():
544 - Changed writing file bahavior. Now, if last line of the file
545 has any data on it, we write a newline on it, else we dont.
546- winio.c:
547 add_marked_sameline():
548 - New code that checks for whether the begin and end of the marker
549 are on different lines. Missing previously.
550 edit_add():
551 - added some more checks for text length. Cleaned up some mvwaddnstrs that
552 could be written more simply as waddnstrs.
553 edit_refresh():
554 - Removed check for temp == filebot, it is now treated like any other line.
555 Fixes a bug where selected text on the last line shows normally.
556 xpt():
557 - Removed an extra computation for tabs variable that was incorrect.
558 xplustabs():
559 - Since xpt now actualy works, this func is now just a wrapper for
560 xpt(current, current_x)
561- nano.1, nano.1.html:
562 - Added -l option to man pages.
563- configure.in:
564 - New option --enable-tiny, #defines NANO_SMALL in config.h.
565 Disables call to gettext in functions and other i18n stuff in
566 nano.c, the detailed help mode, the resize functions, and the
567 justify code which no one ever uses.
568 - New option --with-slang. Enables slang libraries instead of
569 ncurses, requires slcurses.h for wrapper functions. (Based
570 on patches for 0.8.7 by Glenn McGrath).
571
572nano-0.9.2 - 04/15/2000
573- This release just fixes the serious segfault problem if nano is
574 invoked any way other than using the absolute path. The bug was
575 in the new code for checking whether nano is invoked as pico.
576
577nano-0.9.1 - 04/14/2000
578- Added pico compatibility for ^T when in search or switch to switch
579 to the opposite function. Added one to REPLACE_LIST_LEN and
580 WHEREIS_LIST_LEN in nano.h, new args to sc_init_one in global.c and
581 new strings that will have to be gettex()ed. New argument 'replacing'
582 to search_init(). Handlers in do_replace and do_search().
583- New write code, now follows symbolic links instead of replacing them
584 with the new file. New option (-l, --nofollow) to enable the old
585 (incorrect, but secure) behavior (Adam Rogoyski).
586- nano.c:
587 do_wrap():
588 - Fixed another bug relating to wrapping, and which would cause
589 a segfault *sigh*.
590 do_replace():
591 - Incremented current_x by the length of the replacement
592 text inside the main repalce loop. Fixes bug #15.
593 add_marked_sameline():
594 - New function, handles marked text when start & end of marker is
595 on one line, also supports most marked text when cursor > COLS.
596 main():
597 - Code to check if nano is invoked as 'pico', and if so
598 automatically set pico_msgs (Robert Jones).
599
600nano-0.9.0 - 04/07/2000
601- nano.1, nano.1.html: Updated man page with my email address and homepage.
602- winio.c:
603 reset_cursor(), update_line():
604 - Changed update algorithm for x value to (COLS - 7) multiple when x
605 value > (COLS - 2).
606- edit_refresh():
607 - Removed inner loop code, now calls update_line() for each line
608 in question, MUCH nicer.
609- xplustabs(), xpt():
610 - Removed redundant increment of tabs when collumn no % 8 == 0.
611 - Added check for data[i] < 32, most of such bits are 2 chars wide.
612- update_line():
613 - Fixed a stupid call to strlenpt with col when we should have
614 been using actual_col. Ugh.
615
616nano-0.8.9 - 03/22/2000
617- nano.c:
618 empty_line(), no_spaces(), justify_format(), do_justify():
619 Actually added these (screwup applying patch).
620 do_justify(): Added call to set_modified().
621
622nano-0.8.8 - 03/12/2000
623- Preliminary internationalization support. Many many functions modified
624 to use gettext (via _() macro). es.po file included. (Jordi Mallach)
625 New dirs po/ and intl/, changes to configure.in and Automake.am to
626 support i18n.
627- nano.c:
628 includes: Ddded sys/param.h and limits.h. (Adam Rogoyski).
629 statics: Changed some things that were not necessarily static
630 (Adam Rogoyski).
631 nrealloc(): New function, similar to nmalloc(). Changed calls from
632 realloc() to nrealloc (Adam Rogoyski).
633 empty_line(), no_spaces(), justify_format(), do_justify():
634 New functions for justify function (Adam Rogoyski).
635- winio.c:
636 blank_edit(): Added wrefresh call to edit so that screen updates (like
637 on ^L) actually work.
638 xplustabs(), xpt(), strlenpt(): Fixed off-by-one buglets (Adam Rogoyski).
639
640nano-0.8.7 - 03/01/2000
641- main.c:
642 do_wrap(): Better fix for segfaults, and fix for lisnes being wrapped
643 to a single character on one line when no good place to
644 break the line exists, and for wrapping lines longer than COLS.
645- nano.1.html:
646 Html version of man page, now included in dist. For
647 the benefit of nano packages in Linux distributions.
648
649nano-0.8.6 - 02/24/2000
650- gobal.c:
651 shortcut_init():
652 Added shortcuts for goto_line and do_replace when using
653 pico_msgs. Oops.
654- nano.c:
655 statics: Changed fill back to 0 from 71 by default (Adam Rogoyski).
656 do_wrap(): Added check for backing up past tabs, which we shouldnt do.
657 Removed check for backing up past spaces first.
658 main(): Added for loop to check for alt keys instead of hard list.
659 do_enter(): Fix for bug #14, added call to reset_cursor and messed
660 up do_char quite a bit.
661 version(): Added time and date stamp for compile on version message.
662 Added mail and web page info.
663- README: Updated mailing list info.
664
665nano-0.8.5 - 02/18/2000
666- nano.c:
667 main(): Finally fixed tilde being input on page up/down keys in
668 certain terminal types. Fix was input 26->91->5[34] check
669 for 126, if so make the kbinput PAGE UP/DOWN, else unget
670 the keystroke and continue. Added #include <ioctl.h> for
671 ioctl call.
672 handle_hup():
673 Handler for hangup signal. Belated include of patch from
674 Tim Sherwood.
675- winio.c:
676 edit_refresh():
677 Temporary fix for selecting text when temp == current.
678 edit_refresh() is now unmanagably complex, and must be
679 revamped.
680 check_statblank():
681 Added check for constupdate, makes things less choppy
682 (Adam Rogoyski)
683
684nano-0.8.4 - 02/11/2000
685- Moved global variables that were only (or mostly) used in one file into
686 its proper file as a static. Affects cut.c, nano.c, global.c (Andy Kahn).
687- global.c:
688 shortcut_init():
689 Removed redundant NANO_CONTROL_H from backspace shortcut,
690 added char 127 which should have been there.
691- nano.c:
692 main(): Fix for loops looping until MAIN_LEN, added -1 to stop
693 segfaults (Adam Rogoyski).
694- Makefile.am: Added all source filenames (Adam Rogoyski).
695- nano.1: Fixed mail addressed and added mailing list address.
696- README: Updated my email address and the nano web page.
697
698nano-0.8.3 - 02/08/2000
699- New pico mode (-p, --pico), toggles (more) compatibility with the
700 Pico messages displayed in the shortcut list. Note that there are still
701 small differences in this mode.
702- nano.h: New shortcut struct format, for the benefit of i18n and
703 our help menu. Removed shortcut message macros, they are
704 now all in shortcut_init in global.c.
705- nano.c:
706 do_wrap(): Removed resetting of current_x when we are in fact
707 wrapping to the next line, fixes a bug in -i mode.
708 do_enter():
709 Rewrote the autoindent mode code to be a lot less pretty,
710 but a lot more magical.
711 main():
712 Removed case for ignoring char 126 (~). That's kind of
713 important, we'll have to fix handling that sequence when
714 pageing up/down on a terminal some other way... Revamped
715 main switch loop in much snazzier fashion based on the
716 shortcut list.
717- winio.c:
718 New function display_main_list. Affects all functions
719 that used to call bottombars() with main_list. Added
720 because we now only call bottombars with the macro
721 MAIN_VISIBLE instead of MAIN_LIST_LEN, because of the
722 changes to the main_list shortcut list (see global.c below).
723 New function do_help, our preliminary dynamic help system.
724- Many many funcs:
725 Changed from int to void to allow one uniform type to call
726 from the shortcut struct. Also a few functions that do
727 not simple have void argument have new functions called
728 funcname_void(void) to be called from the shortcut list.
729 do_cut_text and do_uncut_text were changed to void
730 arguments because they were never called with a filestruct
731 other than *current anyway.
732- global.c:
733 Shortcut list main_list was expanded to cover all
734 shortcuts that could be caught in the main loop.
735 Consequently there is a new macro MAIN_VISIBLE which tells
736 how many items in the main list to actually show.
737
738nano-0.8.2 - 02/02/2000
739- Added initial mouse (-m, --mouse) support. New global variable
740 use_mouse. (Adam Rogoyski)
741
742- nano.c: Set intial value of fill to COLS - 8 rather than just 72
743 regardless. (Adam Rogoyski).
744 do_delete():
745 Deleted call to do_backspace() when on the end of a line,
746 because it won't update the line properly.
747 do_backspace():
748 Removed unnecessary pointer manipulation that was being
749 handled by unlink_node().
750 open_file():
751 Added check for trying to open a directory (currently we
752 segfault on this). Bug pointed out by Chad Ziccardi.
753
754nano-0.8.1 - 01/28/2000
755- Implemented Pico's -r (fill) mode, command line flag -r or --fill. New
756 global variable fill, affects check_wrap(), do_wrap(), main(), usage(),
757 global.c and proto.h.
758- nano.c:
759write_file(): Added (incredibly) necessary check for EPERM when
760 link() fails. This allows us to actually save
761 files via rename() on filesystems that dont
762 support hard links (AIEEEEEE).
763do_goto():
764 Fixed a stupid mistake where we were calling
765 bottombars() with replace_list instead of goto_list.
766- nano.h:
767 New char *help in shortcut structure for help
768 feature. Added NANO_*_MSG and NANO_*_HELP #deifnes
769 for help function and i18n.
770- global.c:
771 New functions shortcut_init (called in nano.c) and
772 sc_init_one() to initialize the shortcuts without
773 using {}s (for i18n).
774
775nano-0.8.0 - 01/25/2000
776- View flag (-v, --view) implemented. Global variable view_mode, affects
777 main loop of nano.c and new_file(). (me)
778- nano.c:
779 split checks for TERMIOS_H and TERMIO_H up so we
780 can (theoretically) include them both, which is good.
781handle_sigwinch():
782 Added check for ncurses.h. (Andy Kahn)
783do_spell():
784 We now only try ispell because we don't as of yet
785 handle the 'spell' program the right way, now that
786 I finally know what the right way is =-). Added
787 call to edit_update(fileage) to stop segfaults.
788global_init():
789 Added initialization of edit* filestruct pointers
790 to stop segfaults on spell check.
791usage():
792 Check for getopt_long, and if no leave out the
793 GNU options everyone seems to love so much (Andy Kahn)
794main():
795 Added checks for getopt_long (Andy Kahn)
796 We ignore character 126 because it gets put into
797 the buffer when we page up/down on a vt terminal.
798write_file():
799 Fixes for umask (Adam Rogoyski). Renamed tmpfile
800 variable to tmp. Documented the tmp opttion
801 better in the function comments. Fixed my
802 stupidly commented out check for tmp on setting
803 umask which I really like =>
804- nano.h:
805 Made desc variable in shortcut struct a pointer
806 instead of a fixed-length string.
807- utils.c:
808 Fixed check for config.h before nano.h.
809- configure.in:
810 New checks for getopt_long, getopt.h, removed
811 CFLAGS and LDFLAGS changes. Gonna have to run
812 strip manually now =-) (Andy Kahn)
813 Added check for HAVE_WRESIZE, new file acconfig.h (me).
814
815nano-0.7.9 - 01/24/2000
816- New autoindent feature. Command flag 'i' or '--autoindent'. New
817 function do_char() to clean up character output, global
818 variable autoindent in global.c. (Graham Mainwaring)
819- New flag 't' or '--tempfile', like Pico's -t mode, automatically saves
820 files on exit without prompting. Affects do_writeout(). Also
821 do_writeout() now takes a parameter for if exiting.
822 Global variable temp_opt in global.c (Graham Mainwaring)
823- Preliminary spell program support. Added command flag '-s' or
824 '--speller' for alternative speller command. Added function do_spell()
825 and exit_spell() to nano.c. New global variable alt_speller.
826- nano.c:
827 main(): We now ignore input of decimal 410 because these get entered
828 when we resize the screen. Sorted options in getopt()
829 switch statement.
830 usage(): Sorted options and changed tabs to make room for -s option.
831 write_file(): Now takes a second parameter 'tmpfile', uses mask 0600 and
832 doesn't print the number of lines written on the statusbar.
833 global_init():
834 Added more initializations to globals to support do_spell().
835
836nano-0.7.8 - 01/23/2000
837- Stubbed justify function. Affects main() in nano.c and nano.h defines.
838- Added Fkey equivalents for Pico compatibilty. Affects nano.h defines
839 and main() in nano.c
840- Removed redundant reset_cursor() calls from the blank() routines.
841- nano.c:
842 main(): Fixed typo in main while loop for NANO_ALT_REPLACE_KEY.
843 Removed check for isprint() characters in main while loop
844 for people with odd character sets *shrug*. Added some X
845 window F-key combos.
846 read_line(): New function, consolidates of most of the special
847 sections of the file reading code. (Rob Siemborski)
848 do_replace(): Many scattered fixes. (Rob Siemborski)
849 write_file(): Added check for empty filename.
850- winio.c:
851 nanogetstr(): Fixes for deleting at places other than the end of the
852 buffer, cut support. (Adam Rogoyski)
853 blank_edit(): New function, blanks edit buffer. Added call to it in
854 total_refresh().
855- configure: Checks for glib if snprintf of vsnprintf aren't available
856 (Andy Kahn). Changed warning message when no termcap lib
857 is found.
858
859nano-0.7.7 - 01/19/2000
860- Option '-v' for version moved to '-V', because -v is Pico's "read only"
861 mode (affects getopt() in main() and usage() function in nano.c
862- New flag -c, always show cursor position. Affects main() in nano.c and
863 statusbar() in winio.c
864- Option '-x' doesn't show help window at the bottom of the editor.
865 New variable no_help in nano.h and proto.h, affects main(), usage(),
866 and global_init() in nano.c, blank_bottombars(), clear_bottomwin(),
867 bottombars(), and do_yesno() in winio.c (I had to apply this patch by
868 hand =P) (Adam Rogoyski)
869- nano.c:
870 handle_sigwinch(): New function (Adam Rogoyski), handles resizing.
871 page_up(), page_down():
872 - New functions. We now set the cursor at the top right corner,
873 not at the center line, and page up and down a full screen
874 rather than a half screen. Original functions renamed to
875 page_up_center() and page_down_center().
876 main():
877 - Added check for keystroke key sequence 407 or NANO_CONTROL_Z
878 in main while loop because suspend mode was broken. This should
879 fix it, at least for now.
880 - Added long option support (By popular harassment ;-) - Added
881 #include for getopt.h, changed getopt() to getopt_long().
882 Options added so far: --version (-V), --nowrap (-w), --suspend
883 (-z), --help (-h), --nohelp (-x).
884 - Rewrote signal statements (Adam Rogoyski)
885
886nano 0.7.6 - 01/15/2000
887- New ChangeLog format
888- nano.c:
889 main(): Bound CONTROL_H to backspace (oops)
890 Added more Alt-[-key combinations, for page up & down.
891 read_bytes(): New function (Adam Rogoyski)
892 read_file(): Optimizations - malloc()s *buf a little at a time rather
893 than one huge buffer, and replaced the strcat at the end
894 with an index variable. Added call to read_bytes().
895 do_next_word(): New function, binding is control-space (0) (me)
896
897- winio.c:
898 bottombars(): Fixed non-expanding shortcut keys at bottom of screen.
899 (formula is extra space needed = COLS / 6 - 13).
900 actual_x() & strlenpt():
901 Added bug#9 fix - when tabs % 8 == 0, we should only
902 increment tabs by 1.
903 titlebar(): Fixed overrun in titlebar on very long filenames.
904
9050.7.5 Pico 'last line' feature added (Rob Siemborski & me). Eliminated
906 writing a newline at EOF. do_cursorpos and do_replace are now not
907 directly bound to signals but picked up as their control sequences
908 in raw mode. Bug fix in do_backspace. Fixed bug #9 (woohoo!)
9090.7.4 Optimized (obfuscated?) edit_refresh. Malloc() calls checked for
910 available memory, align bug fixed (Big Gaute).
911
912--- As of version 0.7.4 TIP is renamed to nano.
913
9140.7.3 Fixed a double blank_statusbar() when jumping to first and last
915 lines. Took out unnecessary updates in load_file. Bug fix in
916 do_left. Missing updates to totlines, fixed bug #7 (last line not
917 having a newline at the end doesnt get read, bugfix in do_replace
918 with replace all, more/better comments (Robert Siemborski)
9190.7.2 Our first patch accepted into the source! configure fixes
920 and optimizations (Erik Anderson). Added missing stdarg.h to winio.c.
921 Bug fix in update_line for editing long lines. Fixed arguments
922 being put into the filename when none is specified. Preliminary
923 +line command argument function.
9240.7.1 configure tweak for better FreeBSD support. Removed refresh() from
925 edit_refresh to stop cursor "jumping" during screen updates. This
926 will probably cause a bug or two. Replace is now Alt-R (@R) and
927 Goto line is Alt-G (@G), but they have control key aliases of ^\ and
928 ^_ respectively. Made Control-F,B,N,P work like they do in Pico.
929 Control-G will become the Help key, but for now is stubbed out.
9300.7.0 Fixed missing stdlib.h from cut.c. Fixed a few message bugs in
931 findnextstr. Bound Control-D to Delete. Refixed segfault on zero
932 length file. Added Esc-[-A,B,C,D cursor key sequences.
9330.6.9 Preliminary cursor position function. Split up tip.c more, made
934 new files cut.c and winio.c. Fixed a bug in cut_marked_segment
935 that was leaving out a character.
9360.6.8 By request, optchr in main() is now an int. Removed unneeded
937 globals. Bound functions for next/prev page, and wrote functions
938 do_home and do_end.
9390.6.7 Bugfix in do_uncut_text for totlines. Broke up open_file and
940 created read_file. Implemented Insert File. Fixes in tipgetstr
941 for erroneous keystrokes. Added leave_cursor arg to do_yesno().
9420.6.6 Fixes in do_search(), do_replace(), do_writeout, and do_exit() for
943 aborted searches and more Pico-compatible messages. statusq() now
944 returns -2 on a blank entry instead of -1. Bug fix in actual_x().
9450.6.5 More BSD compatibility. Fixed two bugs in do_uncut_text
946 regarding buffers with filebot in them. Fixins in do_backspace
947 and do_enter. Removed unused variables. Removed strip_newline.
9480.6.4 Took out the awful newlines from each string buffers. This will
949 certainly cause more bugs. Fixes in do_exit(). Better empty file
950 handling (I hope).
9510.6.3 Implemented ^E. Removed now unneeded wrapline from filestruct.
952 do_enter() rewritten.
9530.6.2 Better default file permissions. Complete rewrite of do_wrap().
954 Better handling of editing with cursor near COLS - 1.
9550.6.1 Starting to implement wrapping toggle. Fix for unhandled control
956 codes being entered into the buffer. Bug fix in actual_x; more
957 > COLS - 1 functionality, especially on lines with TABs. Fixed being
958 locked into cutbuffer when cutting more than one marked screen of text.
9590.6.0 We have TABs!!! To do this, placewewant is now set to the actual
960 width on the screen we want to be, not an index of current->data.
961 New functions xplustabs and actual_x convert the actual place
962 the cursor should be on the screen to and from the place in the
963 string.
9640.5.5 Changed do_right to test do_down before setting current_x to 0,
965 eliminiating the "looping" on the last line when holding the right
966 arrow. Preliminary support for longer than COLS - 1 lines.
967 Wrote do_delete.
9680.5.4 Fixed a big in total_update that wasn't repainting the screen properly.
969 tipgetstr is much more messy but text is now more editable ;)
970 Fixed crash on entering a new file, hopefully. Awful stub for tab
971 handling, only in do_right() to save me some sanity.
9720.5.3 Added check for malloc.h. Implementing uncut from marker slowly.
973 Fixed a few bugs in do_uncut when not uncutting from marked text.
974 I would not trust your data with the mark code right now, but then
975 we're not at version 1.0 yet so dont trust anything ;)
9760.5.2 Added reset_cursor() before end of update_line so cursor doesnt
977 jump after each keystroke entered. Select text stubbed. Fixed
978 a bug in total_refresh(). Setting a mark will hilight properly,
979 but does not actually affect what gets put in the cutbuffer (yet).
9800.5.1 Writing a file out causes modified to be set back to 0. Good.
981 Set_modified function written. Cut and uncut text now set
982 modified when called.
9830.5.0 Half way there! Implemented write out, save function seems
984 stable. Changed statusbar blank routing to not refresh, a separte
985 program calls it and then refreshes. Made the program not clear
986 the srceen on exit, just the bottom two lines (like Pico).
9870.4.2 Implemented replace all in replace function. Crude exit function
988 (asks yes or no if modified but does not write to file).
9890.4.1 Implementing search & replace. Fixed crash on deleting at top of
990 edit buffer. Implemented "timeout" of statusbar messages.
991 Implemented ^A and ^E (beginning and end of line).
9920.4.0 Split code into global.c and proto.h to allow for better multiple
993 file handling. Added #defines for the majority of the shortcut
994 kets in tip.h for easy modification.
9950.3.1 Write edit_refresh which doesn't move the screen around, just
996 updates what's there already. do_wrap() and do_enter() added.
9970.3.0 Preliminary cutbuffer (cut and uncut) support.
9980.2.7 Check for Modification added. do_search() works.
9990.2.5 Rewrite of file data struct.
10000.2 Read in data to buffer, bound keystrokes to stub functions,
1001 initial cursor movement on screen. Initial autoconf support.
10020.1 Initial program setup w/ncurses
Chris Allegrettac87a4112000-08-07 02:16:24 +00001003
1004$Id$