ChangeLog 64.7 KB
Newer Older
1
2014-03-19  Benno Schulenberg  <bensberg@justemail.net>
2
	* doc/nanorc.sample.in - Document the changed whitespace defaults.
3
	* src/global.c, doc/man/nanorc.5 - Allow softwrap to be rebound.
4
5
	* doc/nanorc.sample.in - Sort the includes alphabetically, and
	add the ones for Lua, Magicpoint, and Spec files.
6
	* doc/nanorc.sample.in - Add "poslog", plus tiny textual tweaks.
7

8
9
10
11
2014-03-18  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init) - In the file browser one cannot
	search for a regular expression, so do not mention it.

12
13
14
2014-03-17  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init) - Show ^F and ^B instead of kright
	and kleft in the help lines of the tiny version.
Benno Schulenberg's avatar
Benno Schulenberg committed
15
16
17
	* src/global.c (shortcut_init) - Remove some inconsistent spaces
	and newlines, condense three statements into one, place an #endif
	better, melt two #ifndefs into one, and add a comment.
18
	* src/winio.c (edit_scroll) - Remove the old softwrap scrolling code.
19
20
21
	* src/{nano.h,proto.h,color.c,cut.c,files.c,global.c,help.c,nano.c,
	search.c,text.c,utils.c} - Add, fix, and remove some #endif comments,
	remove an obsolete comment, and remove some superfluous #ifndefs.
22
23
	* src/global.c (shortcut_init) - Put ^B and ^F in the same order as
	all other command keys: first the backward then the forward motion.
24
	* src/{nano.h,*.c} - Remove stray spaces before tabs.
25

26
27
28
2014-03-16  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.h - Display more help items when the terminal is wider.

29
30
31
32
33
2014-03-14  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main) - When in a UTF-8 locale, use prettier characters
	(»·) for indicating whitespace, and for similarity use ">." instead of
	":." when not in a UTF-8 locale.  Changes suggested by Mike Frysinger.

34
35
2014-03-05  Benno Schulenberg  <bensberg@justemail.net>
	* src/move.c (do_down) - Initialize the correct variable to zero.
Benno Schulenberg's avatar
Benno Schulenberg committed
36
	Solves jumpy scrolling behaviour reported by Chris Allegretta.
37

38
39
2014-03-04 Chris Allegretta <chrisa@asty.org>
	* global.c (first_sc_for) - Return raw keystrokes last, so
Benno Schulenberg's avatar
Benno Schulenberg committed
40
	  they will not be displayed if there are F-keys or Meta keys
41
42
	  mapped for an item in the shortcut list.

43
44
45
2014-03-04  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/nanorc.nanorc - Add keyword 'quiet', sort 'locking',
	and concatenate the two separate strings into one.
46
47
	* src/nano.c (main), doc/nanorc.sample.in - Make the M-P toggle
	actually do something by default, by using visible characters.
48
49
50
	* src/global.c (shortcut_init) - Normalize the writing of three
	help-line items: "Write Out", "Uncut Text", and "Unjustify", to
	better stress the O and U -- the big C and J were distracting.
51
52
53
	* doc/{syntax/nanorc.nanorc,man/nanorc.5,texinfo/nano.texi} -
	Remove erroneous 'suspendenable' -- it is not a settable option
	but a bindable function.
54

Benno Schulenberg's avatar
Benno Schulenberg committed
55
2014-03-03 Chris Allegretta <chrisa@asty.org>
56
	* global.c (shortcut_init) - Don't actually free the shortcut
Benno Schulenberg's avatar
Benno Schulenberg committed
57
58
	  list, since the next pass via justifying will then remove all
	  custom shortcuts.  Fixes bug discovered by Benno Schulenberg.
59
60
61
	* text.c (do_linter) - Remove some unused variables to quiet
	  -pedanic -Wall.

62
63
64
2014-03-03  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (add_to_funcs) - Add a newline, for clarity.
	* src/global.c (shortcut_init) - Mark, don't translate yet.
65
66
67
	* src/move.c (do_down) - Correctly compute the minimum amount
	to scroll when softwrap is on and there are overlong lines.
	* src/winio.c (edit_scroll) - Disable amount computation here.
68
69
70
	* src/move.c (do_down) - Trim some redundant code, and correct
	the scrolling behaviour when softwrap is off -- the construct
	(amount ? amount : 1) wasn't doing what I intended.
71
	* doc/man/nano{.1,rc.5} - Slightly improve formatting and wording.
72
73
	* doc/{texinfo/nano.texi,man/nanorc.5} - Add some missing options
	to the texinfo documentation, and improve alphabetization a bit.
74
	* src/nano.c (usage) - Don't mention --softwrap in tiny version.
75

76
2014-03-01 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
77
78
79
	* global.c (shortcut_init) - Fix an issue with the split
	  do_research() setup when using --enable-tiny.
	* rcfile.c (parse_linter) - Allow linter to be unset using "".
80
81
82
	* rcfile.c - Allow syntaxes to be extended via "extendsyntax"
	  directive.  Color, header, magic and linter should all be
	  able to be extended.  Man page updates for nanorc(5).
Benno Schulenberg's avatar
Benno Schulenberg committed
83
	* doc/nanorc.sample.in - Document 'set quiet'.
84

85
86
87
88
89
90
91
92
93
2014-03-01  Mike Frysinger  <vapier@gentoo.org>
	* src/color.c (color_update) - Do not write to stderr on magic
	errors.  If the magic db has errors such that magic_load() fails,
	the current code dumps to stderr which messes up the terminal.
	The error message is also vague to the point where it's confusing
	-- I thought nano had problems writing to the file I was editing.
	Instead, use statusbar() and clarify the messages.
	(Patch tweaked by Benno.)

94
2014-02-28  Benno Schulenberg  <bensberg@justemail.net>
95
96
97
	* src/text.c (execute_command) - Equalize pipe error messages.
	* src/global.c (thanks_for_all_the_fish) - Remove a redundant
	'#ifdef DEBUG', it is contained within a wider one.
98
	* src/global.c (strtosc) - Correct a misspelled keyword.
99
100
	* src/rcfile.c (check_vitals_mapped) - Actually translate a
	helpful message, and reword it somewhat for clarity.
101
	* src/global.c - Remove unused function 'free_shortcutage'.
102
	* src/global.c (strtosc) - Indent conditions consistently.
103

104
105
106
107
2014-02-28  Eitan Adler  <lists@eitanadler.com>
	* src/nano.c (do_toggle) - Constify a char pointer, to fix
	a warning when compiling with clang (and -Wall).

108
109
110
2014-02-27  Mike Frysinger  <vapier@gentoo.org>
	* doc/man/nanorc.5 - Relocate the misplaced unbind section,
	and improve formatting.  (Patch tweaked by Benno.)
111
112
	* doc/syntax/nanorc.nanorc - Add the bind/unbind commands,
	so they will look supported when using syntax highlighting.
113

114
2014-02-27  Benno Schulenberg  <bensberg@justemail.net>
115
	* src/help.c (parse_help_input) - Make 'Space' again an alias
116
117
118
	for PageDown and 'Minus' for PageUp -- they were mistakenly
	swapped during code conversion in revision 4223.

119
120
121
122
2014-02-26  Mike Frysinger  <vapier@gentoo.org>
	* doc/syntax/sh.nanorc - Highlight more shell builtins and
	common commands, and rewrite the variable highlighting to be
	more exact and handle cases where string operations are used.
123
124
125
	* doc/syntax/gentoo.nanorc - Update to newer EAPIs, and fold
	in updated shell changes too.  Much of this is based on work
	by Davide Pesavento <pesa@gentoo.org>.
126
	* doc/syntax/makefile.nanorc: Highlight trailing whitespace.
127

128
129
130
131
132
2014-02-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/global.c (shortcut_init) -  Put PageUp and PageDown
	and also WhereIs and WhereIsNext together in the help lines
	of the file browser, and WriteOut and Readfile in the help
	lines of the main window -- related stuff in one column.
133
	* doc/syntax/man.nanorc - Better colouring of manpage files.
134

135
136
137
138
2014-02-26  Konstantin Abakumov  <abakumov@Savannah>  (tiny change)
	* doc/syntax/python.nanorc - Slightly improve the regexes for
	multiline strings in Python, reducing spillage.

139
140
141
142
143
144
2014-02-26  Benno Schulenberg  <bensberg@justemail.net>
	* src/move.c (do_down), src/winio.c (edit_scroll) - Scroll an
	extra amount when softwrap is on and the current line would
	otherwise run off the screen, and recalculate maxrows after
	each scroll.  Solves bug #27550 reported by Hannes Schueller.

145
146
2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
	* NEWS - Fix some typos and wordings, and rewrap a few lines.
147
148
149
	* src/global.c - Correcting some translator comments, removal
	of a few superfluous blank lines, and some pedantic comment
	tweaks (mainly adding missing periods and stars).
150
151
152
153
	* src/global.c - Ordering "Prev Word" and "Next Word" better.
	* src/global.c - Make ^G not only call help but also exit from
	it, and make ^C also exit from help and from the file browser.
	Also remove two redundant shortcut definitions.
154

155
156
157
158
2014-02-25  Mike Frysinger  <vapier@gentoo.org>
	* src/Makefile.am - Rename 'INCLUDES' to 'AM_CPPFLAGS', since
	Automake changed the naming of these a while ago, and at least
	version 1.13 now starts warning about it.
159
	* .gitignore - Ignore generated files (and bak files).
160

161
162
163
164
165
2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (write_lockfile, do_lockfile) - Fix a typo reported
	by Jean-Philippe Guérard and inconsistent spelling of "lock file"
	reported by myself on nano-devel in March 2013.

166
167
168
169
170
171
2014-02-25  Benno Schulenberg  <bensberg@justemail.net>
	* src/help.c (do_help_void) - Call the help browser with the correct
	refresher for afterwards.  This solves a bug reported by myself on
	nano-devel in August 2010: after typing ^R ^T ^W ^G ^X, the file
	being edited would get displayed instead of the list of files.

172
2014-02-24 Chris Allegretta <chrisa@asty.org>
Benno Schulenberg's avatar
Benno Schulenberg committed
173
	* New linter functionality, rcfile option "linter".
174
175
	* src/global.c (shortcut_init) - Actually free the sclist
	  if it was allocated before.
176
	* src/winio.c (do_credits) - Add Benno, my children,
Benno Schulenberg's avatar
Benno Schulenberg committed
177
	  update copyright info.
178

179
180
2014-02-23  Benno Schulenberg  <bensberg@justemail.net>
	* doc/syntax/*.nanorc - Comment and punctuation tweaks.
181
182
183
	* doc/syntax/sh.nanorc - Colour $VAR within a "" string
	but not within a '' string, and do not colour strings
	within comments.  Fixes bug #29943.
184

185
186
187
188
2014-02-23  Benno Schulenberg  <bensberg@justemail.net>
	* src/text.c (do_undo, do_redo, add_undo) - Make warning
	sentences in the status bar consistently end in a period.

189
190
191
192
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/files.c (write_file) - Add a missing malloc.
	Reported by an anonymous cross compiler, bug #30671.

193
194
195
196
197
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/winio.c (get_mouseinput) - Correct an oversight,
	use the proper 'do_up_void' and 'do_down_void' names.
	Reported by Zhou Z.J. <zzj666@Savannah>, bug #38268.

198
199
200
201
202
2014-02-22  Lauri Kasanen  <laxy@Savannah>  (tiny change)
	* doc/syntax/html.nanorc - Also recognize htm as extension,
	use cyan for tags (more visible on dark background), correct
	the expression for ampersand codes, and colour strings too.

203
204
205
2014-02-22  Dennis Jenkins  <dennisjenkins@Savannah>  (tiny change)
	* doc/syntax/c.nanorc - Also recognize c++ as extension.

206
207
208
209
210
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (move_to_filestruct) - Update the data in 'mark_begin'
	when mark and cursor are on the same line.  This avoids a segfault
	after M-A, right, M-T, left, ^K, or a hang when the left is left out.

211
212
213
214
215
216
2014-02-22  Benno Schulenberg  <bensberg@justemail.net>
	* src/nano.c (main) - Add two conditions on ENABLE_NANORC.
	* src/files.c (close_buffer, do_insertfile) - Likewise.
	This avoids compilation failure when nano is configured
	with both --disable-color and --disable-nanorc.

217
218
219
2014-02-22  Felipe Bugno  <capent@Savannah>  (tiny change)
	* doc/nanorc.sample.in - Add an include for CMake files.

220
2014-02-22  David Lawrence Ramsey  <pooka109@gmail.com>
221
222
	* src/nano.c (allow_pending_sigwinch) - A (char *) cast for pedantic purposes.
	* src/cut.c (do_cut_text) - Wrap a reference to 'copy_text' in NANO_TINY.
223

224
2014-02-22  David Lawrence Ramsey  <pooka109@gmail.com>
225
226
	* ChangeLog, NEWS, doc/faq.html - Fix typos, wording, and spacing.

227
228
229
230
2014-01-25 Chris Allegretta <chrisa@asty.org>
	* src/winio.c (set_modified) - Check for a filename before trying to lock.

2014-01-24  Benno Schulenberg  <bensberg@justemail.net>
231
232
233
	* src/nano.c (copy_from_filestruct) - Check explicitly for mark being set when
	  trying to partition, as we shouldn't be messing with the x address, etc.

234
235
2014-01-01 Chris Allegretta <chrisa@asty.org>
	* doc/texinfo/nano.texi - Change '@sp4' since makeinfo 5.1 hates the
236
	  lack of spacing.  Fixes bug #40103 reported by flapane@Savannah.
237
238
	  Also change SVN status to non-binary so diffs work.

239
240
2014-01-01 Chris Allegretta <chrisa@asty.org>
	* src/global.c (strtokeytype) - Check for lower-case 'f' for defining F-key
241
242
	  sequences for consistency (previously was two checks for upper case 'F').
	  Fixes bug #40815 reported by David Binderman <dcb314@Savannah>.
243

244
2013-06-13 Matthew Fischer <mfisch@Savannah>
245
	* doc/syntax/c.nanorc - Add the 'auto' keyword.
246

247
2013-06-13  David Lawrence Ramsey <pooka109@gmail.com>
248
	* src/global.c (first_sc_for) - Try to more consistently display keystrokes,
249
250
	  useful when the user has re-binded a bunch of them.

251
252
253
2013-06-13 Kamil Dudka <kdudka@redhat.com>
	* doc/man/nano.1 - Actually document the -P (--poslog) option.

254
2013-04-12 Chris Allegretta <chrisa@asty.org>
255
	* src/files.c (do_insertfile): Check for saved cursor position when inserting a
256
	  file as well.  Fixes Savannah bug #38600 reported by Craig Barnes.
257
	* src/files.c (write_file): Don't re-stat() the file if we're writing out
258
259
	  a marked portion (especially because it would give the wrong stat info).
	  Part two of issue reported by Benno Schulenberg.
260

261
2013-04-07 Michael Berg <mike@berg-net.us>
262
263
	* do_cut_text - Fix copying (not cutting) text setting Modified state.
	  Partly fixes an issue reported by Benno Schulenberg.
264

265
GNU nano 2.3.2 - 2013.03.23
266
2013-03-17 Chris Allegretta <chrisa@asty.org>
267
268
	* Revert r4547 as we should have a new release and the overlap code is not yet
	  ready for public consumption.
269

270
2013-01-20 Chris Allegretta <chrisa@asty.org>
271
	* src/text.c (do_histify): Don't allow sigwinch to be received while justifying
272
	  as that puts us into a wacky state.  Fixes crash on justify by Joshua Rogers.
273
	* configure.ac: Added --with-wordbounds option to let cross compilers force
274
	  whether their target system support GNU-style word boundaries or not.
275
	  Originally reported by dave festing.
276
277
	* doc/man/nanorc.5: Fix typo in softwrap description, reported by
	  cbart387@Savannah.
278

279
2013-01-19 Chris Allegretta <chrisa@asty.org>
280
281
	* configure.ac: Make ncurses checking to set $LIBS and check the ncursesw lib
	  actually works before defaulting to it over ncurses!  Shock!
282

283
2013-01-13 Chris Allegretta <chrisa@asty.org>
284
	* src/utils.c (parse_num): Initialize errno before calling strtol().  Fixes issue
285
286
	  where trying to go to a line number too long will break legitimate goto-lines
	  for the remainder of the editing session, reported by Joshua Rogers.
287
288

2013-01-09 Mike Frysinger <vapier@gentoo.org>
289
	* configure.ac: Check for ncursesw5-config and base $CPPFLAGS on it.
290

291
2013-01-09 Fabian Groffen <grobian@Savannah>
292
	* configure.ac, src/nano.h: Make the search for ncursesw more generalized.
293

294
2013-01-02 David Benjamin <davidben@Savannah>
295
296
	* src/search.c (parse_syntax): Fix blatantly and dangerously incorrect code
	  for deleting old syntaxes.
297

298
2013-01-02 Mike Frysinger <vapier@gentoo.org>
299
300
	* src/files.c (cwd_tab_completion): Remove unnecessary variables.
	* src/search.c (search_init): Fix gcc complaints on certain versions.
301

302
2013-01-02 Eitan Adler <lists@eitanadler.com>
303
304
	* configure.ac: Remove unnecessary checks.
	* src/nano.h, NEWS: Fix redundant wording.
305

306
2012-12-31 Chris Allegretta <chrisa@asty.org>
307
	* src/*: Introduce (basic) vim-style file locks.  Does not allow vim to recover
308
309
310
	  our changes, and just lets a vim user know we're editing a file.  Command-line
	  option "-G" or "--locking", nanorc option "locking".  New functions in
	  src/files.c: do_lockfile(), write_lockfile(), and delete_lockfile().
311

312
2012-02-05 Chris Allegretta <chrisa@asty.org>
313
314
315
316
317
318
	* src/*: Fix overlapping strings highlighting each other.  New variables in edit_draw
	  (slmatcharray, pbegin, paintok), new logic (with repeated setting of values in the
	  array but it's BFI after all).  FIXME: Need to create a new 'overlap'.
	* src/*: Fix a silly issue with the argument to nregcomp, as it's confusing to the caller.
	* src/nano.h: Change the color types to a compiler macro (COLORWIDTH), may not actually
	  even be worth doing, but someday who knows how wide a color curses implementation might
319
320
	  be, and maybe we'll even start checking for it in autoconf!

Chris Allegretta's avatar
Chris Allegretta committed
321
GNU nano 2.3.1 - 2011.05.10
322
2011-05-10 Chris Allegretta <chrisa@asty.org>
323
324
	* text.c (do_enter): Only increment totsize by the auto-indented amount, since the previous
	  line's size was already counted.  Fixes bug reported by Robert Spanjaard.
325

326
2011-05-08 Chris Allegretta <chrisa@asty.org>
327
	* doc/syntax/Makefile.am: Finally get around to sorting the syntax file list.
328
329

2011-05-08 Matthew Wild <mattj100@Savannah>
330
	* doc/syntax/spec.nanorc: New lua syntax highlighting config.
331

332
2011-03-28 Asterios Dramis <asterios.dramis@gmail.com>
333
	* doc/syntax/spec.nanorc: New RPM spec file highlighting config.
334

335
336
337
2011-03-12 Chris Allegretta <chrisa@asty.org>
	* po/*: Sync latest translation fixes, add an update_linguas.sh script.  Rename
	  existing update.pl to update_sources.pl to make it more specific.
338

339
340
341
342
343
2011-03-04 Chris Allegretta <chrisa@asty.org>
	* color.c (color_update): Add check for whether the file even exists
	  before we try to run the magic check on it.  Fixes error messages to stderr
	  when reading in files that don't exist, reported by Mike Frysinger.

344
2011-03-03 Chris Allegretta <chrisa@asty.org>
345
346
	* color.c (color_update): Remove unneeded debugging message from libmagic commit.
	  Fixed extra messages going to stderr, reported by Mike Frysinger.
347
348

GNU nano 2.3.0 - 2011.02.26
349
2011-02-26 Chris Allegretta <chrisa@asty.org>
350
	* Change RAW in function_type enum to RAWINPUT, to fix compilation on AIX,
351
	  reported by Richard G Daniel <skunk@iskunk.org>.
352

353
2011-02-23 Chris Allegretta <chrisa@asty.org>
354
355
	* Fix some more severe warnings from 'g++ -pedantic', from patch originally
	  by Eitan Adler <lists@eitanadler.com>.
356

357
2011-02-23 Kamil Dudka <kdudka@redhat.com>
358
	* doc/man/nanorc.5: Fix small typo.
359

360
361
2011-02-22 Chris Allegretta <chrisa@asty.org>
	* color.c (nfreeregex): Fix that we were trying to set the pointer passed by value
362
	  to NULL.  Fixes crashes on file save reported by Ken Tyler and Matthieu Lejeune.
363

364
365
366
2011-02-18 Chris Allegretta <chrisa@asty.org>
	* New saved cursor position history option.  Command line option -P or --poslog, rc file
	  entry "poslog".  Search history changes to ~/.nano/search_history, cursor position log
367
368
	  is ~/.nano/filepos_history.  Added checks to move the legacy .nano_history file to the
	  new location.  Several new functions to files.c: load_poshistory(), save_poshistory(),
369
370
	  check_poshistory(), update_poshistory(), and reworking of histfilename().  New FAQ entry
	  4.15 discussing the change and offering an interoperability workaround.
371
	* files.c (load_history): Set last_search to the last search value we loaded from history,
372
	  so do_research will succeed without needing to manually load the last search in.  Fixes
373
	  bug reported by Matthieu Lejeune.
374

375
376
377
378
2011-02-12 Chris Allegretta <chrisa@asty.org>
	* Initial libmagic implementation, adapted from Eitan Adler <eitanadlerlist@gmail.com>.
	  New nanorc entry "magic" to enable this functionality, nanorc file and man page updates.

379
2011-02-06 Chris Allegretta <chrisa@asty.org>
380
	* src/*: Retire iso_me_harder_funcmap based on suggestion by <bernd.spaeth@gmx.net>
381
382
383
384
	  This does add 20KB to nano's executable size but it gets rid of a lot of indirection
	  that makes people stomach turn.  There are several new stub functions and need of more
	  tidying as a result of this.
	* files.c (write_file): Fix problems with writing the backup file (albeit interactively)
385
386
	  with new function prompt_failed_backupwrite(), allows more secure handling of problems
	  with failing to write the backup file compared to 'allow_insecure_backup'.
387
	* winio.c (edit_redraw): Removed unused variable.
388

389
390
391
2010-11-15 Chris Allegretta <chrisa@asty.org>
	* Add a section to the FAQ about using nanorc on Win32 systems.

392
2010-11-12 Chris Allegretta <chrisa@asty.org>
393
394
395
	* Add check for RESTRICTED mode back to speller, suspend and insert file routines,
	  since adding key bindings broke the fact that they should be disabled in restricted\
	  mode.  Fixes Savannah bug #31625 reported by Charlie Somerville.
396

Chris Allegretta's avatar
Chris Allegretta committed
397
GNU nano 2.2.5 - 2010.08.05
398
2010-08-04 Lauri Kasanen <curaga@operamail.comcuraga@operamail.com>
399
	* doc/syntax/mgp.nanorc: New Magicpoint syntax highlighting definition.
400

401
402
403
2010-08-04 Peter <exodus@savannah>
	* doc/syntax/tex.nanorc: No longer highlight escaped comments

404
405
406
2010-06-20 Chris Allegretta <chrisa@asty.org>
	* New rc file option allow_insecure_backup, allows the previous security
	  fixes for backup files to be overridden if you're really positive
407
	  you want to.  Fixes Savannah bug #29732 by Brian Szymanski <skibrianski>.
408

409
410
411
412
2010-05-23 Chris Allegretta <chrisa@asty.org>
	* files.c (write_file): Don't even try to chown() the backup
	  file unless we're root, since it's probably going to fail if
	  we're editing a file we don't own.  Fixes Savannah bug
413
	  #29514: [nano 2.2.2] backup should ignore chown errors.
414

Chris Allegretta's avatar
Chris Allegretta committed
415
GNU nano 2.2.4 - 2010.04.15
416
417
2010-04-07 Chris Allegretta <chrisa@asty.org>
	* doc/man/nano.1,nanorc.5: Remove the backup file warnings now
418
	  that a sufficient security fix exists for the backup file code.
419

420
2010-04-14 Chris Allegretta <chrisa@asty.org>
421
422
	* text.c (do_alt_speller): Skip invoking the alt speller if the file size
	  is 0 bytes.  Fixes Savannah bug #29393 reported by Mike Frysinger.
423
	* files.c (write_file): Don't set current_stat when tmp == TRUE, check
424
425
	  whether current_stat is set when trying to use it, and don't do the
	  modification check if the filename changed, since we have no way
426
	  of knowing about it in that case.  Fixes Savannah bug #29392, reported
427
	  by Mike Frysinger.  [CVE-2010-1160]
428

429
430
431
2010-04-13 Felipe Bugno <necron@bol.com.br>
	* doc/syntax/cmake.nanorc: Added cmake syntax highlighting file.

432
2010-04-09 Chris Allegretta <chrisa@asty.org>
433
434
	* files.c (do_writeout): Better security fixes for backup file writing,
	  mangled from submission by Dan Rosenberg <dan.j.rosenberg at gmail>.
435
	  [CVE-2010-1161]
436
437

2010-04-08 Chris Allegretta <chrisa@asty.org>
438
	* files.c (do_writeout): Previous fixes should not cause a crash
439
440
	  when saving a new file.  Discovered by Mike Frysinger <vapier@gentoo.org>.

441
442
443
2010-04-07 Chris Allegretta <chrisa@asty.org>
	* doc/man/nano.1,nanorc.5: Add warnings about using backup
	  mode as root due to the Dan Rosenberg security analysis.
444

445
446
2010-04-02 Chris Allegretta <chrisa@asty.org>
	* files.c (do_writeout): Expand modification check to include both the
447
	  original file's device ID and inode number as reasons to warn the
448
	  user that the file has been modified.  Also abort on writing a backup
449
450
	  file when its owner doesn't match the edited file. Based on security
	  analysis on nano by Dan Rosenberg.  [CVE-2010-1160]
451

452
453
2010-03-21 Chris Allegretta <chrisa@asty.org>
	* nano.c (page_stdin et al): Don't attempt to reset/reopen the terminal
454
455
	  settings when reading stdin if it was aborted with SIGINT.  May fix
	  Savannah bug #29114 reported by  Mike Frysinger.
456

457
2010-03-21 Mike Frysinger <vapier@gentoo.org>
458
	* doc/syntax/c.nanorc: Add additional support for #include_next and #pragma.
459

460
2010-03-21 Chris Allegretta <chrisa@asty.org>
461
462
463
	* move.c (do_page_up, do_page_down()): Explicitly set current_y to 0 when
	  paging up when not in smooth scroll mode, as previous fixes would otherwise
	  cause the cursor to not really be moved to the top of the screen.
464

465
466
2010-03-07 Chris Allegretta <chrisa@asty.org>
	* configure.ac, nano.c (handle_sigwinch): Create check for whether LINES and
467
468
469
470
471
	  COLS can safely be redefined.  Fixes compilation issues with Cygwin, and likely
	  with newer versions of ncurses.  Fixes Savannah bug #28984 reported by Andy Koppe
	  and by Eric Oliver via mailing list.
	* winio.c (get_mouseinput) - Fix stray semicolon in code, also reported in
	  bug #28984.
472

Chris Allegretta's avatar
Chris Allegretta committed
473
GNU nano 2.2.3 - 2010.02.11
474
2010-01-28 Chris Allegretta <chrisa@asty.org>
475
476
	* move.c (do_page_up, do_page_down): Fix for smooth mode not preserving cursor
	  position.  Part one of fix for Savannah bug #21178 by Mike Frysinger.
477
478

GNU nano 2.2.2 - 2010.01.17
479
2010-01-17 Chris Allegretta <chrisa@asty.org>
480
481
	* nano.c (main), prompt.c (do_statusbar_input): Handle problems with an unmapped
	  function due to key rebinding, fixes crashes on FreeBSD reported by Eitan
482
483
	  Adler <eitanadlerlist@gmail.com>.

484
485
486
487
2010-01-14 Chris Allegretta <chrisa@asty.org>
	* files.c (do_writeout): Fix for crash / incorrect external modification warning
	  due to earlier fix in r4467.

488
489
490
2010-01-12 Chris Allegretta <chrisa@asty.org>
	* move.c (do_page_up, do_page_down): Fix issues with not enough scrolling down/up
	  and cursor centering.
491
	* winio.c (edit_scroll): Remove lots of needless checking of line length for
492
493
494
495
	  soft wrapping code.
	* winio.c (edit_update) - Remove extra code for when updating with old_current outside
	  of the new buffer boundary and centering issues.

496
2010-01-05 Tito <farmatito@tiscali.it>
497
	* search.c (update_history): Fix bad length check causing search crash on armel platform.
498

499
2010-01-04 Chris Allegretta <chrisa@asty.org>
500
	* winio.c: edit_update, edit_redraw: Fix search not scrolling to the middle of the screen
501
502
	  (reported by alpha@qzx.com) and places where we rely on maxrows but should not.

503
504
505
506
2009-12-26 Jordi Mallach <jordi@gnu.org>
	* doc/man/nano.1: Avoid a groff warning by prepending a zero-width
	space to a line starting with '.

507
508
509
510
511
512
513
2009-12-22 Chris Allegretta <chrisa@asty.org>
	* files.c (write_file): Fix compatibility with previous stat fix and tiny mode.

2009-12-22 David Lawrence Ramsey <pooka109@gmail.com>
	* global.c: Add new strings for forward/back in the file browser.  New variables
	  nano_forwardfile_msg and nano_backfile_msg.

514
515
2009-12-20 Chris Allegretta <chrisa@asty.org>
	* files.c (is_file_writable): remove assert check for f, since it's not
516
	  initialized at the time.  Fixes Savannah bug #28309, reported by Zoltan Kovacs.
517

518
2009-12-20 Brian Szymanski <skibrianski via Savannah>
519
520
521
	* src/files.c (write_file): Check whether stat struct exists, and if not, use the
	  just obtained stat data.  Fixes Ubuntu bug 471568, "reproducible crash in nano on
	  trying to save to a file different than the one specified on the command line".
522

523
2009-12-15 Chris Allegretta <chrisa@asty.org>
524
	* doc/nanorc.sample.in - Remove erroneous 'set suspendenable' as it's actually a
525
	  key binding (e.g. 'bind M-Z suspendenable all') and not a settable flag.  Fixes
526
	  Savannah bug #28299 reported by Mike Frysinger.
527

Chris Allegretta's avatar
Chris Allegretta committed
528
GNU nano 2.2.1 - 2009.12.12
529
2009-12-12 Chris Allegretta <chrisa@asty.org>
530
	* text.c (do_delete), nano.c (do_output): Add check for length of current line
531
532
533
534
535
	  before and after adding/deleting text, and do full refresh if it is now
	  a different multiple of COLS.  Also get rid of superfluous do_refresh
	  vars now that we have edit_refresh_needed.

2009-12-09 David Lawrence Ramsey <pooka109@gmail.com>
536
	* global.c (shortcut_init), browser.c (do_browser): Fix M-W not being bound to
537
538
	  research in either main menu or browser.

539
540
2009-12-09 Chris Allegretta <chrisa@asty.org>
	* files.c (read_file) - Add parameter for whether we should even try to check
541
542
	  file writability, as the message is useless when we're inserting into an
	  existing buffer.  Fixes Savannah bug #28219.
543

544
545
2009-12-07 David Lawrence Ramsey <pooka109@gmail.com>
	* global.c (shortcut_init): Many fixes for keybindings code oversights, including
546
547
548
	  restore page up/down and GotoDir in browser.
	* browser.c (do_browser): Fix breaking out of a submenu (e.g. gotodir), it broke
	  out of the browser altogether.
549
550
	* doc/nanorc.sample.in: Add missing entries for fortran/ObjC/OCaml entries.

551
2009-12-03 David Lawrence Ramsey <pooka109@gmail.com>
552
	* global.c (shortcut_init) - Remove help shortcut from help shortcut list. :-)  Tweaked
553
554
	  to reorder exit shortcut to end of list to not mess up prev/next shortcut symmetry.

555
2009-12-03 Eitan Adler <eitanadlerlist@gmail.com>
556
557
	* doc/syntax/makefile.nanorc - Fix poor regex for all alpha characters which sometimes
	  leads to error messages, reported by gibboris@gmail.com.
558

559
2009-12-02 Chris Allegretta <chrisa@asty.org>
560
561
	* text.c (add_undo, do_undo, do_redo) - Do not execute cases for SPLIT when
	  DISABLE_WRAPPING is defined.  Fixes Savannah bug #28151 (anon).
562

563
564
565
2009-12-02 Jordi Mallach <jordi@gnu.org>
	* doc/man/nano.1: Fix escaping of hyphens for the -$ option.

566
567
568
569
570
571
572
2009-12-01 Kamil Dudka <kdudka@redhat.com>
	* chars.c, file.c - Better handle unused results for things like mbtowc(), new
	  macro IGNORE_CALL_RESULT.

2009-12-01 Chris Allegretta <chrisa@asty.org>
	* global.c (shortcut_init) - Remove redundant entries for ^Y/^V reported by
	  Christian Weisgerber.
573
	* doc/man/nanorc.5 - Fix typo in Meta documentation, reported by <gibboris@gmail.com>.
574

575
2009-12-01 David Lawrence Ramsey <pooka109@gmail.com>
576
	* global.c (shortcut_init) - Add support for ^P and ^N in the help menu.
577
	* Update documentation for 2.2 features including sample nanorc file, texinfo
578
	  file, man pages, UPGRADE file, and update copyright notice for the current year.
579

Chris Allegretta's avatar
Chris Allegretta committed
580
GNU nano 2.2.0 - 2009.11.30
581
2009-11-29 Chris Allegretta <chrisa@asty.org>
582
583
	* prompt.c (get_prompt_string) - Universally handle help key when it is disabled.
	  Fixes Savannah bug #28117 by David Lawrence Ramsey <pooka109@gmail.com>.
584
585
586
587
	* chars.c, files.c: Add junk vars to silence the compiler.  Sigh.

2009-11-29 David Lawrence Ramsey <pooka109@gmail.com>
	* Change several *chars to const char, additional cleanups and casts to make compilers happier.
588
	* global.c: Fix replace and insert file initializations for proper compilation options.
589
590
591
	* nano.c (do_suspend): Update comments to reflect actual code path, bad Chris, and thanks for
	  noticing, Jordi.
	* configure.ac: Fix typos.
592

593
594
595
2009-11-27 Chris Allegretta <chrisa@asty.org>
	* nano.c (do_suspend): Don't clear the screen but do move the cursor down to the last line
	  first in an effort to not corrupt the screen, which contradicts Pico but is consistent
596
	  with almost all other text editors.  Fixes Savannah bug #28110 / Debian bug 460510
597
	  reported by Tim Connors <reportbug@rather.puzzling.org>.
598
	* doc/syntax/makefile.nanorc - Sample Makefile highlighting based on wiki.linuxhelp.net version.
599

600
601
2009-11-26 Chris Allegretta <chrisa@asty.org>
	* winio.c (edit_scroll): Adjust for long lines when scrolling.
602
	* rcfile.c (parse_rcfile): initialize size argument to getline(), fixes crash on FreeBSD
603
	  reported by Eitan Adler <eitanadlerlist@gmail.com>.
604

605
2009-11-26 Jordi Mallach <jordi@gnu.org>
Chris Allegretta's avatar
Chris Allegretta committed
606
	* doc/man/*: Update all man pages to escape unescaped hyphens.
607

608
609
610
611
612
2009-11-24 Chris Allegretta <chrisa@asty.org>
	* move.c (do_page_up, do_page_down): Make these functions work better with soft
	  line wrapping.
	* winio.c (compute_maxrows): Make maxrows calculation more accurate when all lines are > COLS.

613
614
2009-11-22 Chris Allegretta <chrisa@asty.org>
	* nano.c (main): Allow edit_refresh_needed to take effect when using --enable-tiny
615
	  (fixes Savannah bug #28076 reported by David Lawrence Ramsey).
616
617
618
619
620

2009-11-22 David Lawrence Ramsey <pooka109@gmail.com>
	* nano.c (move_to_filestruct): Fix bug 71 (cut at top of line recenters)
	* Fix compilation with --enable-tiny

621
622
623
2009-11-22 Mike Frysinger <vapier@gentoo.org>
	* doc/syntax/gentoo.nanorc: Tweak comment highlighting.

Chris Allegretta's avatar
Chris Allegretta committed
624
GNU nano 2.1.99pre2 - 2009.11.21
625
2009-11-21 Chris Allegretta <chrisa@asty.org>
626
	* rcfile.c: Add unbinding keyword, fixes Savannah bug #22852 reported by frankd.
627
	* prompt.c (update_statusbar_line): Set statusbar_pww when updating the line.
628
	  Fixes Savannah bug #24957 reported by Mike Frysinger.
629

630
2009-11-19 Chris Allegretta <chrisa@asty.org>
631
	* nano.c (die_save_file) Try and match the permissions of the file we were
632
	  editing but only make a minimal effort to do so. Fixes Savannah bug #27273
633
634
	  reported by Mike Frysinger.

635
2009-11-18 Adrian Bunk <bunk via Savannah>
636
637
	* nano.c (main): Allow --fill and --nowrap to override nanorc entries
	  and each other on the command line.
638

639
640
2009-11-15 Chris Allegretta <chrisa@asty.org>
	* winio.c (edit_refresh): Always computer maxsize regardless of whether smooth scrolling
641
	  is enabled.  Fixes Savannah bug #28024 by Mike Frysinger.
642

Chris Allegretta's avatar
Chris Allegretta committed
643
GNU nano 2.1.99pre1 - 2009.11.15
644
2009-11-14 Chris Allegretta <chrisa@asty.org>
645
646
647
648
	* move.c (do_first_line, do_last_line): Just set edit_refresh_needed
	  rather than get messy.
	* files.c (do_writeout) - Only mention file modification if we're
	  writing the same file we originally opened.
649

650
651
652
2009-11-13 Chris Allegretta <chrisa@asty.org>
	* winio.c: Add new static maxsize to be able to easier calculation with
	  softwrap.
653
654
	* nano.c (do_mouse): Fix mouse support not working with soft wrapping.
	  Fixes Savannah bug #27549 reported by Hannes Schueller.
655

656
2009-11-11 Chris Allegretta <chrisa@asty.org>
657
	* winio.c: Large tweaking of cursor and text display based on COLS not COLS - 1,
658
	  due to finally understanding that display_string wasn't being called properly
659
660
661
	  when softwrap was enabled.  Fixes Savannah bug #27603, "Return key doesn't scroll
	  viewport" reported by Hannes Schueller.
	* Fix size_t formatting issues with -pedantic
662

663
2009-11-09 Chris Allegretta <chrisa@asty.org>
664
665
	* files.c (read_file): - Remove debugging messages from file load.
	  Fixes Savannah bug #27838.
666

667
668
2009-11-07 Chris Allegretta <chrisa@asty.org>
	* nano.h - Add bogus value at begin of flags enumeration because it
669
670
	  caused the casesens rcfile option to misbehave, reported by Helmut
	  Jarausch <jarausch@igpm.rwth-aachen.de>.
671

672
673
2009-11-03 Chris Allegretta <chrisa@asty.org>
	* nano.h - Fix comma at end of enumerator list which angers -pedantic.
674
675
	* rcfile.c - Add in specific check for UNDOABLE and fix declaration as
	  to what flag it toggles.  Fixes undo mode being able to be called from
676
	  the rc file, reported by Helmut Jarausch <jarausch@igpm.rwth-aachen.de>.
677
678
679
680

2009-11-03 Mike Frysinger <vapier@gentoo.org>
	* files.c - Move up is_file_writable() to stop implicit definition complaints.

681
2009-10-27 Chris Allegretta <chrisa@asty.org>
682
	* browser.c (browser_init): Set column width to something sane when
683
	  initializing in a directory with no file entries.  Fixes Savannah
684
	  bug #24163 found (and initial patch) by Paul Wise.
685

Chris Allegretta's avatar
Chris Allegretta committed
686
687
688
2009-09-15 Chris Allegretta <chrisa@asty.org>
	* winio.c: Clean up some unused variables from the soft wrapping code.

Chris Allegretta's avatar
Chris Allegretta committed
689
GNU nano 2.1.11 - 2009.09.14
690
691
2009-09-12 Chris Allegretta <chrisa@asty.org>
	* winio.c (edit_update) - properly update edittop when using soft wrapping.
692
693
	  Fixes lack of centering for searching for off-screen answers, found by
	  Hannes Schueller <mr_creosote@mutantwatch.de>.
694

695
696
2009-09-03 Chris Allegretta <chrisa@asty.org>
	* global.c (shortcut_init): Fix up/down keys not responding in the file browser,
697
698
699
	  discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
	* move.c (do_up) - Fix another scrolling issue with softwrap when the cursor
	  is beyond COLS, discovered by Hannes Schueller <mr_creosote@mutantwatch.de>.
700

701
702
703
704
705
2009-09-02 Chris Allegretta <chrisa@asty.org>
	* Attempt to check file writability and emit a warning on the status bar
	  if nano doesn't think the file can be written to.  Feature originally
	  requested by Damien Jolders <madamien@skullsquad.com> et al.

706
2009-08-29 Chris Allegretta <chrisa@asty.org>
707
	* Fix more soft wrapping issues, particularly with scrolling,
708
709
	  discovered by Hannes <mr_creosote@mutantwatch.de>.

710
711
712
713
2009-08-19 Chris Allegretta <chrisa@asty.org>
	* Fix issue with soft wrapping not displaying the last character of each line,
	  fixed bug discovered by Hannes <mr_creosote@mutantwatch.de>.

714
715
2009-08-17 Mike Frysinger <vapier@gentoo.org>
	* doc/syntax/(gentoo|sh|tcl).nanorc: Fix problems with empty regexes on POSIX.
716
	  Fixes Savannah bug #27175.
717

718
2009-08-17 Chris Allegretta <chrisa@asty.org>
719
	* Initial soft line wrapping implementation.  Command-line flags -$ or --softwrap.
720
721
	* nano.c, text.c: Clean up some fprintf warnings in debug mode due to printing
	  a size_t without using the zd specifier.
722
723
2009-08-13 Chris Allegretta <chrisa@asty.org>
	* New global flag implementation courtesy of Adam Wysocki <gophi@arcabit.pl>, allows
724
	  previous undo flag to be implemented consistent with other flags.
725

Chris Allegretta's avatar
Chris Allegretta committed
726
GNU nano 2.1.10 - 2009.07.28
727
2009-07-27 Chris Allegretta <chrisa@asty.org>
728
	* text.c (undo_cut, redo_cut): Don't actually try and undo/redo an empty cut, i.e. the magicline.
729
730
	  Fixes crash on cutting last line discovered by Eitan Adler <eitanadlerlist@gmail.com>.

731
732
2009-07-11 Chris Allegretta <chrisa@asty.org>
	* nano-regress: Small tweaks
733
	* Change undo code to off unless enabled via a command line option (-u/--undo).  Until this code
734
735
	  stabilizes this is the only responsible way to treat it.

736
2009-03-08 Chris Allegretta <chrisa@asty.org>
737
	* TODO - Break out some targets for various features into 2.2
738
739
	  and 2.4 series for things which are feasible.

740
741
2009-02-28 Chris Allegretta <chrisa@asty.org>
	* configure.ac: Add check for whether _XOPEN_SOURCE_EXTENDED is needed for
742
	  curses to work w/color.  Fixes compilation on HP-UX with older GCC,
743
744
	  reported by jay.krell@cornell.edu.

745
2009-02-23 Eitan Adler <eitanadlerlist@gmail.com>
746
	* doc/man/Makefile.am: Fix make variable substitution to be more portable.
747

748
749
750
751
2009-02-23 Chris Allegretta <chrisa@asty.org>
	* rcfile.c (parse_keybinding) - Define a var before tryung to use it.  Whoops!
	* fix some redefinitions causing compiler warnings, from Eitan Adler.  Other
	  (hopefully) fixes for uncasted malloc()s, reported by the same.
752
	* doc/man/fr/Makefile.am: Add groff check fix to fr files.
753
754

GNU nano 2.1.9 - 2009.02.16
755
756
2009-02-16 Chris Allegretta <chrisa@asty.org>
	* Add new argument to reset_multis for force redraws without attempting to
757
	  guess whether we need to, for functions that we don't have good info about
758
	  the text state.  New utility function color.c:reset_multis_for_id().
759

760
761
762
763
764
765
2009-02-15 Chris Allegretta <chrisa@asty.org>
	* configure.ac, doc/man/Makefile.am - Add check for HTML output support in GNU
	  groff.  Fixes Savannah bug #24461: build traps on groff.  Also, add installation
	  of html-ized man pages to $datadir/nano/man-html, since we should probably
	  install files we went to all the trouble of generating.

766
2009-02-14 Chris Allegretta <chrisa@asty.org>
767
768
	* nano.c (precalc_multicolorinfo) - Add debugging so we have a better clue if further
	  issues arise.   Also start at the beginning of later lines when trying to match the
769
	  end of a multi-line regex.  Fixes more overly aggressive highlighting found by
770
	  Mike Frysinger.  Finally, advance to the match end for performance.
771

772
773
774
775
776
2009-02-11 Chris Allegretta <chrisa@asty.org>
	* nanorc.c (parse_include): Do call real_dir_from_tilde() on included
	  files in .nanorc, but still avoiding bug #25297.  Fixes ~ and ~user
	  specifications for nanorc include files, as reported by Eitan Adler.

777
778
779
780
781
2009-02-09 Chris Allegretta <chrisa@asty.org>
	* New option -q, --quiet, rcfile option "quiet" implemented.  Skips printing
	  errors about the rcfile and asking user to press enter.  Also, nano should
	  now only ask for one enter press when there is an error when not using -q.
	  Based on discussion between Eitan Adler and Mike Frysinger.
782
	* rcfile.c (parse_keybinding) -  Significant cleanups and fixes for
783
784
	  detecting and reporting errors in key bindings code.

785
2009-02-08 Chris Allegretta <chrisa@asty.org>
786
787
788
	* Make reset_multidata reset more lines, since contrary to previous problems the
	  syntax highlting is now too *un*ambitious, causing display glitches when
	  deleting a regex boundary.
789
790
791
	* Add more multidata initliazers for new buffers and 'magic lines'.  Fixes segfaults
	  with syntax highlighting in new buffers, initially reported by Mike Frysinger.

Chris Allegretta's avatar
Chris Allegretta committed
792
GNU nano 2.1.8 - 2009.02.07
793
2009-02-06 Chris Allegretta <chrisa@asty.org>
794
795
796
	* rcfile.c (parse_include): Abort on being unable to open an included rcfile.
	  Fixes Savannah bug #25490, nanorc: "include"ing a file which doesn't exist
	  causes nano to segfault.
797

798
799
800
2009-02-05 Chris Allegretta <chrisa@asty.org>
	* More color syntax speedups:  Determine in reset_multis() whether we really need to call
	  edit_refresh().  Additional global var edit_refresh_needed() to hopefully reduce
801
	  repeated calls to the function.  New helper funcs reset_multis_before() and
802
803
804
805
	  reset_multis_after().

2009-02-02 Chris Allegretta <chrisa@asty.org>
	* New color precalculation code for mult-line regexes.  New function precalc_multicolorinfo(),
806
	  new structure multidata for keeping track of where regexes start/stop.  More
807
808
	  performance improvements forthcoming.

809
810
2009-01-29 Chris Allegretta <chrisa@asty.org>
	* nano.c (move_to_filestruct) - properky initialize new fileage for multiswatching, sigh.
811
	  Fix cut segfaults discovered by Mike Frysinger.
812

813
814
2009-01-29 Chris Allegretta <chrisa@asty.org>
	* nano.c (main): Add support for nano acting like a pager when invoked with - as first
815
	  file argument.
816

817
818
819
2009-01-28 Davide Pesavento <davidepesa@gmail.com>
	* doc/syntax/gentoo.nanorc: Updates from David and Mike Frysinger.

820
2009-01-25 Chris Allegretta <chrisa@asty.org>
821
822
823
	* files.c (open_file), nanorc.c (parse_include): Don't get_full_path on included
	  rc files, due to it potentially impacting the ability to read files in nano's
	  cwd().  Fixes Savnanah bug #25297 reported by Mike Frysinger.
824

825
2009-01-24 Chris Allegretta <chrisa@asty.org>
826
827
	* First pass at some caching of caching color info.  Right now it's only for
	  multi-line regexes but this may not be enough to increase performance.
828
829
	* Add interruptability to search functions.  New functions enable_nodelay and
	  disable_nodelay and changes to the routines to handle checking for pending
830
	  searches.  Fixes Savnnah bug #24946: Need interrrupt for search.
831

832
2009-01-19 Chris Allegretta <chrisa@asty.org>
833
	* Change function definitions to shorts instead of (void *)s.  New mapping function
834
	  iso_me_harder_funcmap().  Fixes compilation complaints with -pedantic,
835
836
	  reported by Eitan Adler <eitanadlerlist@gmail.com>.

Chris Allegretta's avatar
Chris Allegretta committed
837
GNU nano 2.1.7 - 2008.11.10
838
839
840
841
2008-10-20 Chris Allegretta <chrisa@asty.org>
	* files.c (do_writeout): Add check for file modification when saving
	  the file so the user can at least know they may be blowing away changes.

842
843
2008-10-14 Chris Allegretta <chrisa@asty.org>
	* nanorc.5: Fix redo man page entry and update explanation, reported by
844
	  Eitan Adler <eitanadlerlist@gmail.com>.
845
	* global.c (shortcut_init), search.c (search_init): Fix add_to_sclist for ^W^T so
846
	  invalid messages will display properly.  Fixes Savannah bug #24507.
847

848
849
2008-10-13 Chris Allegretta <chrisa@asty.org>
	* Remove CUTTOEND as an undo type as it's unneeded, fix u->to_end logic in undo struct.
850
	* undo.c (update_undo): Don't free cutbuffer if NULL, fixes Savannah bug #24499.
851

852
2008-10-04 Chris Allegretta <chrisa@asty.org>
853
854
	* cut.c (Add_undo): Save last cut undo information so it can be used for
	  next uncut, fixes Savannah bug #24183.
855

Chris Allegretta's avatar
Chris Allegretta committed
856
GNU nano 2.1.6 - 2008.10.03
857
2008-10-03 Pascal Gentil <pascal.gentil@univ-rennes1.fr>
858
	* fortran.nanorc: Sample Fortran syntax highlighting file.
859
860

2008-09-30 Dirkjan Ochtman <dirkjan@ochtman.nl>
861
	* python.nanorc: Small Python syntax update.
862

863
2008-09-30 <bluestorm_dylc@hotmail.com>
864
	* ocaml.nanorc: Sample OCaml syntax highlighting file.
865
866

2008-09-30 Dave Geering <dgeering@toshiba-tap.com>
867
	* objc.nanorc: Sample Objective-C syntax hightlighting file.
868

869
2008-09-30 Chris Allegretta <chrisa@asty.org>
870
871
872
	* configure.ac: Change extra, multibuffer, color and rcfile configure options
	  to default to enabled --enable-tiny will now disable these options as well.
	* python.nanorc, ruby.nanorc: Add header lines for Python and Ruby as well.
873

874
2008-09-21 Chris Allegretta <chrisa@asty.org>
875
876
877
	* rcfile.c, color.c, nano.h: Add new capability for matching a syntax type by
	  the "header" (1st line) of a file being edited.  Based on Savannah bug #24197
	  and inital proof of concept by Dave Geering <dgeering@toshiba-tap.com>.
878

879
2008-09-16 Chris Allegretta <chrisa@asty.org>
880
881
	* text.c: Add support for undoing a text uncut.  Split out the undo and redo
	  of a text cut in order to avoid code duplication.
882

883
2008-09-06 Chris Allegretta <chrisa@asty.org>
884
885
	* nano.c: Do call disable_signals at startup regardless, since under Cygwin
	  we can't generate ^C without it.
886

Chris Allegretta's avatar
Chris Allegretta committed
887
GNU nano 2.1.5 - 2008.08.30
888
889
890
891
2008-08-29 Chris Allegretta <chrisa@asty.org>
	* configure.ac, color.c, rcfile.c, utils.c: 1st attempt at supporting systems which don't support
	  GNU-style word boundaries.  New function fixbounds() to translate from GNU-style to 
	  BSD-style, autoconf option GNU_WORDBOUNDS.
892
893
894
895
	* nano-regress: New perl script to check for some of the more obvious issues with compilation
	  issues with certain configure options.
	* global.c, help.c, browser.c, files.c, proto.h: Fix several compipation and programmatic 
	  issues with --disable-help, especially that do-writeout was treating ^G the same as ^M.
896

897
898
899
900
901
2008-08-28 Chris Allegretta <chrisa@asty.org>
	* configure.ac, rcfile.c:  Add support for an alternate rcfilename at configure time.  Maybe this
	  should become a command line option some day, but I don't see the need currently.  Start of
	  fix for Savannah bug #24128: Add nanorc support to win32 platform.

902
903
904
2008-08-21 Chris Allegretta <chrisa@asty.org>
	* text.c: Change error messages where we may possibly get into a bad state and urge
	  the user to save when this happens.  Originally by Benno Schulenberg <bensberg@justemail.net>
905
	* text.c (do_enter):  Fix issue when compiled with --enable-debug, fixes Savannah bug 24092.
906

907
2008-08-08 Magnus Granberg <zorry@ume.nu> / Adam Conrad <?>
908
	* files.c (write_file): Add needed flags to open() calls when writing out files.  Fixes Savannah bug 
909
910
	  #23827: Compilation fails with -D_FORTIFY_SOURCE=2

911
912
913
914
915
2008-08-08 Chris Allegretta <chrisa@asty.org>
	* files.c (write_file): Check exit code of fclose(), since in certain out of space conditions the OS will
	  happily report successful fwrite()s until you try and close the file.  Fix for Savannah bug
	  #24000: no free space on partition - nano claims successful write - file empty 

Chris Allegretta's avatar
Chris Allegretta committed
916
GNU nano 2.1.4 - 2008.08.09
917
2008-08-08 Chris Allegretta <chrisa@asty.org>
918
	* files.c (write_file): Do not go on and attempt to write the main file if writing the backup file failed,
919
	  related to Savannah bug 24000.
920
	* text.c (do_redo): Fix improperly restoring the text when redoing a line split.
921
	* text.c (add_undo): Fix check for multi-line cut check skips adding other new legit events.
922

923
924
925
2008-07-23 Chris Allegretta <chrisa@asty.org>
	* text.c: Reset openfile-> to OTHER after an undo or redo so we don't mistakenly
	  mistakenly think this is an update when it's really an add.  Also
926
927
	  Fix an extra ; after an if statement which makes nano try to free a struct which
	  may be NULL
928

Chris Allegretta's avatar
Chris Allegretta committed
929
GNU nano 2.1.3 - 2008.08.04
930
931
932
2008-07-23 Chris Allegretta <chrisa@asty.org>
	* configure.ac: Add ncursesw dir to include path if lib detected

933
934
935
2008-07-11 Mike Frysinger <vapier@gentoo.org>
	* doc/nanorc.sample.in: Include the updates files in the default sample nanorc.

936
937
938
939
2008-07-11 Fabian Groffen <grobian@gentoo.org>
	* nano.c: Don't include langinfo.h if not using ENABLE_UTF8
	  (Savannah patch 6565)

940
941
2008-07-11 Mitsuya Shibata <mty.shibata@gmail.com>
	* text.c: Fix crashing in help menu when using certain locales
942
	  (Savannah bug 23751)
943

944
2008-07-09 Chris Allegretta <chrisa@asty.org>
945
	* nano.c/nano.h/global.c/text.c: New generalized undo code, currently
946
947
	  just works for adding and deleting text and splitting and unsplitting lines.

948
949
950
951
2008-06-29 Chris Allegretta <chrisa@asty.org>
	* global.c: Fix for not having search history when --disable-justify is used
	  (Savannah bug 23733)

952

Chris Allegretta's avatar
Chris Allegretta committed
953
GNU nano 2.1.2 - 2008.06.24
954
955
956
957
2008-06-24 Chris Allegretta <chrisa@asty.org>
	* rcfile.c: Added function check_bad_binding() to look for sequences which
	  shouldn't be bound, per Savannah bug 22674.

958
2008-05-31 Chris Allegretta <chrisa@asty.org>
959
960
	* prompt.c,search.c,global.c: Tentative fix for bug #23144: using arrow 
	  keys in search buffer affects main window (by Mike Frysinger)
961

962
963
964
965
2008-05-31 Chris Allegretta <chrisa@asty.org>
	* global.c: Fix for Savannah bug #23442: left/right arrow keys 
	  do not work with --enable-tiny (by Mike Frysinger)

966
2008-05-31 Chris Allegretta <chrisa@asty.org>
967
968
969
970
971
972
	* files.c,proto.h,text.c: Fix for conflicts with AIX curses
	  variables, from William Jojo <jojowil@hvcc.edu>

2008-05-31 Chris Allegretta <chrisa@asty.org>
	* global.c: Fix for compile error when --disable-speller is used 
	  (Savannah bug 23227 by Mike Frysinger)
Chris Allegretta's avatar
Chris Allegretta committed
973

974
975
2008-05-31 Chris Allegretta <chrisa@asty.org>
	* Fix for seg fault when window size too small, by 
976
	  Andreas Amann <andreas.amann@tyndall.ie>
977

978
GNU nano 2.1.1 - 2008.04.01
979
980
981
982
983
984
985
986
987
2008-05-31 Chris Allegretta <chrisa@asty.org>
	* Added the following contributed files, by owner:
	  Donnie Berkholz <dberkholz@gentoo.org>
	    * Sample awk.nanorc
	  Simon Rupf <simon.rupf@int-ag.ch>
	    * Sample css.nanorc
	  Josef 'Jupp' Schugt <jupp@rubyforge.org>
	    * sample ruby.nanorc

Chris Allegretta's avatar
Chris Allegretta committed
988
989
990
991
992
993
2008-03-31 Chris Allegretta <chrisa@asty.org>
	* global.c: Fix for issues compiling with --enable-tiny and
	  --enable-multibuffer, as reported by Mike Frysinger.
	* files.c: Fix the fact that the insert file prompt text did not
	  properly appears in tiny mode.

994
995
996
997
2008-03-19  Benno Schulenberg <bensberg@justemail.net>
	* help.c, nano.c: Fix toggle help not being translated, fix allocation
	  issue.

998
999
1000
2008-03-19  Chris Allegretta <chrisa@asty.org>
	* gloabl.c: Fix bracket matching sequence to be M-] not M-[, as reported
	  Nick Warne <nick@ukfsn.org>.
1001
1002
1003
	* doc/syntax/Makefile.am - Actually include new syntaxes from Mike, etc
	* debian.nanorc - New debian sources.list config since we're including
	  gentoo, adapted from Milian Wolff <mail@milianw.de>
1004
1005

2008-03-18  Mike Frysinger <vapier@gentoo.org>
1006
1007
1008
1009
1010
1011
1012
1013
	* winio.c: Remove unneeded variable in parse_kbinput()
	* rcfile.c: relocate check_vitals_mapped() function to just above 
	  where it actually gets used and declare it "static void" in the process
	* global.c: only declare nano_justify_msg when justify support is enabled
	* php.nanorc: Php syntax highlighting config
	* tcl.nanorc: Tcl syntax highlighting config
	* gentoo.nanorc: Gentoo syntax highlighting config

1014
2008-03-17  Benno Schulenberg <bensberg@justemail.net>
1015
	* global.c: Fix incorrect first line jump messsage, fix
1016
	  more comments to assist translators
1017
	* winio.c: Fix shortcut labels not being translated.
1018

1019
2008-03-17  Mike Frysinger <vapier@gentoo.org>
1020
	 * */.gitignore: Git ignore files for those running a local git
1021
1022
	   against SVN.

1023
2008-03-16  Benno Schulenberg <bensberg@justemail.net>
1024
	* src/help.c, src/global: Fix help strings no longer being 
1025
	  translated properly.
1026
	* src/global.c, doc/man/nanorc.5: Fix typos and poorlly worded lines
1027
1028
	  in the source and man pages.

1029
2008-03-04  Chris Allegretta <chrisa@asty.org
1030
	* everything: New shortcut backend.  New structs subnfunc
1031
1032
1033
1034
1035
	for menu functions and toggles and sc for shortcut keys, old 
	'shortcut' and 'toggles' structs are gone.  The current implementation 
	has a bunch of broken stuff (some of which is documented in BUGS). 
	Updated nanorc.5 with some mostly complete documentation on configuring.

1036
1037
1038
2007-12-20  David Lawrence Ramsey  <pooka109@gmail.com>

	* AUTHORS, doc/faq.html: Update maintenance information.
1039
	* NEWS: Resync with NEWS from the 2.0 branch.
1040

1041
1042
1043
1044
1045
1046
2007-12-18  David Lawrence Ramsey  <pooka109@gmail.com>

	* nano.c (print_opt_full): Use strlenpt() instead of strlen(),
	so that tabs are placed properly when displaying translated
	strings in UTF-8, as found by Jean-Philippe Guérard.

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1047
1048
2007-12-17  David Lawrence Ramsey  <pooka109@gmail.com>

1049
1050
1051
	* configure.ac, doc/texinfo/nano.texi, nano.c (terminal_init):
	Change slang curses emulation support to turn off the same
	options as --enable-tiny, as it's hopelessly broken otherwise.
1052
	* nano.c (disable_signals, main): Simplify terminal handling by
1053
	using raw mode instead of cbreak mode.
1054
1055
1056
	* text.c (execute_command): Call terminal_init() instead of just
	disable_signals() after executing the command, as the command
	may have changed the terminal settings.
1057
1058
	* ChangeLog.pre-2.1: Add missing attribution.
	* NEWS: Resync with NEWS from the 2.0 branch.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1059

1060
1061
1062
1063
2007-12-10  David Lawrence Ramsey  <pooka109@gmail.com>

	* nano.c (main): Exit if initscr() fails.

1064
1065
1066
1067
1068
2007-12-09  David Lawrence Ramsey  <pooka109@gmail.com>

	* faq.html: Add minor punctuation and wording fixes, and update
	various sections to account for Alpine.

1069
1070
1071
1072
1073
1074
1075
2007-12-08  David Lawrence Ramsey  <pooka109@gmail.com>

	* prompt.c (do_statusbar_mouse, reset_statusbar_cursor,
	update_statusbar_line, need_statusbar_horizontal_update): Fix
	minor display and cursor placement problems when scrolling
	between pages at the statusbar prompt.

1076
1077
1078
1079
1080
2007-12-07  David Lawrence Ramsey  <pooka109@gmail.com>

	* winio.c (get_mouseinput): Fix longstanding problem where mouse
	clicks on the statusbar prompt text wouldn't be recognized
	unless the NO_HELP flag was turned off.
1081
1082
1083
	* doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices,
	as Thijs Kinkhorst's copyrights have now been assigned to the
	Free Software Foundation.
1084

1085
1086
1087
1088
1089
1090
1091
2007-12-04  David Lawrence Ramsey  <pooka109@gmail.com>

	* nano.c (main), prompt.c (get_prompt_string), winio.c
	(do_replace_highlight): Per OKATA Akio's patch, with minor
	tweaks by me, add wnoutrefresh() calls after
	reset_(statusbar_)?cursor() calls, to ensure that the cursor is
	placed properly when using NetBSD curses.
1092
1093
1094
	* nano.c (disable_mouse_support, enable_mouse_support): When
	toggling mouse support on or off, save and restore the mouse
	click interval.
1095

1096
1097
1098
1099
1100
1101
2007-11-29  Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>

	* doc/man/fr/*.1, doc/man/fr/nanorc.5: Fix copyright notices.
	The copyrights are disclaimed on these translations, but the
	copyrights of the untranslated works also apply.

1102
1103
1104
1105
2007-11-28  David Lawrence Ramsey  <pooka109@gmail.com>

	* doc/man/fr/nanorc.5: Remove trailing whitespace.

1106
1107
1108
1109
1110
1111
2007-11-17  David Lawrence Ramsey  <pooka109@gmail.com>

	* files.c (read_file): Improve autodetection of DOS and Mac
	format files to not trigger on carriage returns in the middle of
	files, as found by Kjell Braden.

1112
1113
1114
1115
1116
1117
2007-11-06  David Lawrence Ramsey  <pooka109@gmail.com>

	* doc/man/rnano.1, doc/man/fr/rnano.1: Update copyright notices,
	as Jordi Mallach's copyrights have now been assigned to the Free
	Software Foundation.

1118
1119
1120
1121
1122
1123
2007-11-05  David Lawrence Ramsey  <pooka109@gmail.com>

	* search.c (do_gotolinecolumn): Use a clearer error message if
	we enter an invalid line or column number, per Mike Melanson's
	suggestion.

1124
1125
1126
1127
1128
1129
1130
1131
2007-10-11  David Lawrence Ramsey  <pooka109@gmail.com>

	* doc/man/nano.1, doc/man/fr/nano.1, doc/texinfo/nano.texi,
	src/*.c, src/*.h: Update copyright notices, as Chris
	Allegretta's copyrights have now been assigned to the Free
	Software Foundation.
	* doc/man/nanorc.5, doc/man/fr/nanorc.5: Make copyright notices
	for these files consistent in style.
1132
	* files.c (cwd_tab_completion): Remove unneeded assert.
1133
1134
	* files.c (username_tab_completion, cwd_tab_completion): Rename
	variable buflen to buf_len, for consistency.
1135
1136
1137
1138
1139
	* files.c (input_tab): Disable completion of usernames,
	directories, and filenames if the cursor isn't at the end of the
	line, as it can lead to odd behavior (e.g. adding a copy of the
	entire match to the middle of the line instead of just the
	uncompleted part of the match).
1140

1141
1142
1143
1144
1145
2007-10-05  David Lawrence Ramsey  <pooka109@gmail.com>

	* src/*.c, src/*.h: Update copyright notices, as my copyrights
	have now been assigned to the Free Software Foundation.

1146
1147
1148
1149
1150
1151
2007-09-16  David Lawrence Ramsey  <pooka109@gmail.com>

	* winio.c (edit_scroll): Fix problem where the screen wouldn't
	be updated properly if you paged up with the first line of the
	file onscreen and the mark on.

1152
1153
1154
1155
2007-08-26  David Lawrence Ramsey  <pooka109@gmail.com>

	* doc/faq.html: Update links to the Free Translation Project.

1156
1157
1158
1159
1160
2007-08-23  Jean-Philippe Guérard <jean-philippe.guerard@tigreraye.org>

	* doc/man/fr/*.1, doc/man/fr/nanorc.5: Add translation of new
	licensing terms.

1161
1162
1163
1164
1165
2007-08-23  David Lawrence Ramsey  <pooka109@gmail.com>

	* doc/man/fr/*.1, doc/man/fr/nanorc.5: Delete translation of
	old licensing terms, until it can be updated.

1166
1167
1168
1169
1170
1171
1172
1173
1174
2007-08-22  David Lawrence Ramsey  <pooka109@gmail.com>

	* COPYING.DOC: Add a copy of the GNU FDL version 1.2.
	* Makefile.am: Add COPYING.DOC to EXTRA_DIST.
	* doc/man/*.1, doc/man/nanorc.5, doc/man/fr/*.1,
	doc/man/fr/nanorc.5, doc/texinfo/nano.texi: Relicense to the GNU
	GPL version 3 or later/the GNU FDL version 1.2 or later with no
	Invariant Sections, Front-Cover Texts, or Back-Cover Texts.

1175
1176
2007-08-21  David Lawrence Ramsey  <pooka109@gmail.com>

1177
1178
1179
1180
	* doc/man/rnano.1, doc/man/fr/rnano.1: Add missing copyright
	notice from nano-tiny.1, which rnano.1 is based on.
	* doc/man/fr/nano.1, doc/man/fr/nanorc.5, doc/man/fr/rnano.1:
	Make all copyright notices consistent.
1181

1182
1183
1184
1185
1186
1187
1188
2007-08-16  David Lawrence Ramsey  <pooka109@gmail.com>

	* files.c (do_insertfile): Properly handle more cases of
	inserting a file with the mark on.
	* nano.c (copy_from_file): Properly handle more cases of
	uncutting text with the mark on.

1189
1190
1191
1192
1193
2007-08-15  David Lawrence Ramsey  <pooka109@gmail.com>

	* Makefile.am: Remove erroneous backslash after
	ChangeLog.pre-2.1 in EXTRA_DIST, so that "make dist" works
	again.
1194
	* files.c (do_insertfile): Make sure the mark is always properly
1195
1196
1197
	positioned after inserting a file with the mark on.
	* nano.c (copy_from_file): Make sure the mark is always properly
	positioned after uncutting multiple lines with the mark on.
1198

1199
1200
1201
1202
1203
1204
2007-08-11  David Lawrence Ramsey  <pooka109@gmail.com>

	* COPYING: Add a copy of the GNU GPL version 3.
	* configure.ac, *.c, *.h: Relicense to the GNU GPL version 3 or
	later.

1205
1206
2007-08-10  David Lawrence Ramsey  <pooka109@gmail.com>

1207
1208
1209
	* files.c (username_tab_completion, cwd_tab_completion,
	input_tab): Update copyright notice to account for
	modifications.
1210
1211
1212
1213
	* utils.c (ngetdelim): Simplify.
	* utils.c (ngetline, ngetdelim): Update copyright notice to
	account for modifications.

1214
1215
1216
1217
1218
1219
1220
1221
2007-08-07  David Lawrence Ramsey  <pooka109@gmail.com>

	* nano.c (copy_from_file): Fix potential segfault, found by Paul
	Goins, after uncutting one line of text with the mark on by
	properly preserving the beginning of the mark.
	* nano.c (copy_from_file): Make sure the mark is always properly
	positioned after uncutting one line of text with the mark on.

1222
1223
1224
1225
2007-08-01  David Lawrence Ramsey  <pooka109@gmail.com>

	* nano.c (version): Display copyright notices.

1226
1227
2007-07-31  David Lawrence Ramsey  <pooka109@gmail.com>

1228
1229
	* configure.ac: Update copyright notice to account for
	modifications.
1230

1231
1232
1233
1234
2007-07-29  David Lawrence Ramsey  <pooka109@gmail.com>

	* doc/faq.html: Update RPM links for nano 2.0.x.

1235
1236
1237
1238
1239
2007-07-11  David Lawrence Ramsey  <pooka109@gmail.com>

	* files.c (copy_file): Assert that inn and out don't both point
	to the same file.

1240
1241
1242
2007-07-10  David Lawrence Ramsey  <pooka109@gmail.com>

	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1243
1244
	mbrevstrcasestr): Simplify and rewrite to use the strncasecmp()
	equivalents.
1245

1246
1247
2007-07-09  David Lawrence Ramsey  <pooka109@gmail.com>

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1248
1249
1250
	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
	mbrevstrcasestr): Fix typo that broke the check for needle's
	being blank.
1251
1252
1253
1254
	* chars.c (mbstrncasecmp, mbstrnlen, mbstrpbrk,
	has_blank_mbchars): Simplify by using for loops instead of while
	loops where possible, to match the single-byte versions of these
	functions.
1255
1256
1257
	* search.c (do_replace_loop): Fix problem where replacing e.g.
	single-byte characters with multibyte ones could result in
	openfile->totsize's being miscalculated.
1258

1259
1260
1261
1262
1263
2007-07-06  David Lawrence Ramsey  <pooka109@gmail.com>

	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
	mbrevstrcasestr): Return char* instead of const char*.

1264
1265
1266
2007-07-02  David Lawrence Ramsey  <pooka109@gmail.com>

	* chars.c (nstrcasestr, mbstrcasestr, revstrstr, revstrcasestr,
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1267
1268
	mbrevstrcasestr): For efficiency, return haystack/rev_start
	immediately if needle is blank.
1269

1270
1271
1272
1273
1274
2007-07-01  David Lawrence Ramsey  <pooka109@gmail.com>

	* chars.c (nstrncasecmp, mbstrncasecmp): For efficiency, return
	zero immediately if s1 and s2 point to the same string.

1275
1276
1277
1278
1279
2007-06-30  David Lawrence Ramsey  <pooka109@gmail.com>

	* prompt.c (do_yesno_prompt): Remove redundant check for
	NO_HELP's being FALSE.

1280
1281
1282
1283
1284
2007-06-28  David Lawrence Ramsey  <pooka109@gmail.com>

	* browser.c (do_browser), nano.c (do_mouse), prompt.c
	(do_statusbar_mouse, do_yesno_prompt): Further simplify
	processing of mouse events by consolidating if clauses.
1285
1286
1287
	* winio.c (do_mouseinput): Return unconditionally if we get a
	mouse event that we don't deal with, instead of inside an else
	clause.
1288

1289
1290
1291
1292
1293
1294
2007-05-29  David Lawrence Ramsey  <pooka109@gmail.com>

	* winio.c (do_mouseinput): Deal with clicks of the first mouse
	button again.  Oddly, ncurses built without --enable-ext-mouse
	needs this, but ncurses built with --enable-ext-mouse doesn't.

1295
1296
1297
1298
2007-05-25  David Lawrence Ramsey  <pooka109@gmail.com>

	* configure.ac, nano.c (main): Replace the current hackish check
	for a UTF-8 locale with a proper call to nl_langinfo().
1299
	* winio.c (get_key_buffer): Fix inaccurate comments.
1300

1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
2007-05-22  David Lawrence Ramsey  <pooka109@gmail.com>

	* browser.c (do_browser), nano.c (do_mouse), prompt.c
	(do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput):
	Simplify processing of mouse events.  Instead of calling
	wenclose() to get the window a mouse event took place in and
	manually adjusting the returned coordinates to be relative to
	that window the mouse event took place in, call wmouse_trafo(),
	which does both.

1311
1312
2007-05-20  David Lawrence Ramsey  <pooka109@gmail.com>

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1313
1314
1315
1316
	* browser.c (do_browser), nano.c (do_mouse), prompt.c
	(do_statusbar_mouse, do_yesno_prompt), winio.c (do_mouseinput):
	Fix processing of mouse events so that those we don't handle are
	ignored instead of being erroneously passed through.
1317
	* winio.c (do_mouseinput): Simplify handling of mouse events
1318
	involving the first mouse button by only dealing with releases.
1319
1320
1321
	* winio.c (do_mouseinput): Improve mouse wheel support to only
	move the cursor if we're in the edit window or on the statusbar.

1322
1323
1324
2007-05-15  David Lawrence Ramsey  <pooka109@gmail.com>

	* winio.c (do_mouseinput): Add mouse wheel support, per Helmut
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1325
1326
	Jarausch's suggestion.  Now, if mouse support is enabled, and
	nano is using a version of ncurses compiled with the
1327
1328
1329
	--enable-ext-mouse option, rolling the mouse wheel up or down
	will move the cursor three lines up or down.

1330
1331
1332
1333
1334
2007-04-23  David Lawrence Ramsey  <pooka109@gmail.com>

	* TODO: Add entries for fixing limitations with pasting text and
	handling bad/incomplete UTF-8 sequences.

1335
1336
1337
1338
1339
2007-04-22  David Lawrence Ramsey  <pooka109@gmail.com>

	* text.c (backup_lines): Avoid a segfault when the mark begins
	and ends on the line after the last line of the paragraph.

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1340
1341
2007-04-21  David Lawrence Ramsey  <pooka109@gmail.com>

1342
1343
1344
	* files.c (do_writeout): If we're in restricted mode, we're not
	allowed to write selections to files, so don't display the
	"Write Selection to File" prompt.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1345
1346
	* files.c (do_writeout): Simplify.

1347
1348
1349
1350
2007-04-19  David Lawrence Ramsey  <pooka109@gmail.com>

	* files.c (tail): Remove unneeded if statement.

1351
1352
1353
1354
1355
1356
2007-04-18  John M. Gabriele  <jmg3000@gmail.com>

	* doc/faq.html: Add a new section 4.14 (with minor tweaks by
	David Lawrence Ramsey) to explain how autoindent affects pasted
	text.

1357
1358
2007-04-18  David Lawrence Ramsey  <pooka109@gmail.com>

1359
1360
1361
	* files.c (open_file): Open files using their full paths
	whenever possible, so that ~user/file.txt and "~user/file.txt"
	are treated the same way if ~user is a user's home directory.
1362
	* files.c (real_dir_from_tilde): Simplify.
1363
1364
1365
1366
1367
	* files.c (do_writeout): Properly display the warning in all
	cases if we try to save (a) an existing file under a different
	name, or (b) a file with no name under an existing file's name.
	* files.c (do_writeout): Rename variable different_name to
	do_warning, for clarity.
1368
1369
1370
1371
1372
1373
1374
1375
	* rcfile.c (parse_include): Open files using their full paths
	whenever possible, so that ~user/file.txt and "~user/file.txt"
	are treated the same way if ~user is a user's home directory.
	* rcfile.c (parse_include): Properly check for the included
	file's being a directory, a character file, or a block file.
	* rcfile.c (parse_include): For consistency, display the
	filename as the user entered it if we can't read the specified
	file.
1376
	* winio.c (parse_kbinput): Interpret Cancel and Shift-Cancel.
1377
1378
	* winio.c (get_escape_seq_kbinput): Add missing comments.

1379
1380
2007-04-17  David Lawrence Ramsey  <pooka109@gmail.com>

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1381
1382
1383
1384
1385
	* files.c (real_dir_from_tilde): Fix long-standing problem,
	found by Justin Fletcher, where directory names that began with
	"~", but that weren't users' home directories, could be
	erroneously treated as users' home directories (e.g. "~d/" would
	be treated as "~daemon/").
1386
	* files.c (input_tab): Don't bother checking if num_matches is
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1387
	less than zero, as it's a size_t and hence unsigned.
1388

1389
1390
2007-04-16  David Lawrence Ramsey  <pooka109@gmail.com>

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1391
1392
1393
	* files.c (real_dir_from_tilde): Fix segfault, found by Justin
	Fletcher, when dealing with directory names that begin with "~",
	but that aren't users' home directories.
1394

1395
1396
1397
1398
2007-04-11  Mike Frysinger  <vapier@gentoo.org>

	* doc/syntax/asm.nanorc, doc/syntax/c.nanorc,
	doc/syntax/sh.nanorc: Copy the regex that highlights trailing
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1399
1400
1401
	whitespace (with minor tweaks by David Lawrence Ramsey) from
	doc/syntax/java.nanorc to these files, as it's also useful in
	them.
1402

David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1403
1404
1405
2007-04-04  David Lawrence Ramsey  <pooka109@gmail.com>

	* AUTHORS, faq.html: Update email address.
1406
1407
	* winio.c (get_escape_seq_kbinput): Add escape sequences for
	Terminal.
David Lawrence Ramsey's avatar
David Lawrence Ramsey committed
1408

1409
1410
1411
1412
1413
1414
1415
2007-02-01  Benno Schulenberg  <bensberg@justemail.net>

	* global.c (shortcut_init): Reword the movement shortcut
	descriptions so that they use "Go to" instead of "Move to",
	since not all of them move the cursor in the same way.
	* global.c (shortcut_init): Reword the paragraph movement
	shortcut descriptions to more accurately describe how they work.
1416
1417
1418
	* nano.c (usage): Reword the description of the -S/--smooth
	command line option in order to differentiate it from the
	associated toggle description.
1419

Jordi Mallach's avatar
Jordi Mallach committed
1420
2007-01-29  David Lawrence Ramsey  <pooka109@cox.net>
1421
1422
1423
1424
1425

	* ChangeLog: Rework the 2.1 branch's changelog to be more
	readable, per Jordi Mallach's suggestion.
	* ChangeLog.pre-2.1: Move the 2.0 branch's changelog here, per
	Jordi Mallach's suggestion.
1426
	* Makefile.am: Add ChangeLog.pre-2.1 to EXTRA_DIST.
1427
1428
	* src/help.c (help_init): Add a missing space to the "Execute
	Command" help text.