Chris Allegretta
|
b0f5282de2
|
Fix segfault when width == 0
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@442 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-04 05:20:23 +00:00 |
|
Chris Allegretta
|
fe41584102
|
Make functions return themselves when do_browser() aborts
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@441 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-04 05:08:37 +00:00 |
|
Chris Allegretta
|
0e9d3c6c28
|
Commented file browser code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@440 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-04 04:59:17 +00:00 |
|
Chris Allegretta
|
6e82741931
|
Added fkey equivs to browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@439 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-04 04:41:08 +00:00 |
|
Chris Allegretta
|
f0999a18f0
|
use lstat instead of stat in filestat, so we can check for if the file is a symlink in the browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@438 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-04 02:49:56 +00:00 |
|
Chris Allegretta
|
63c8ab94fb
|
Tadaa. Keypad issue fixed. It was the stupid timeout(0) call. UGH
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@437 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-04 02:33:52 +00:00 |
|
Chris Allegretta
|
425a266a92
|
Some better page up/down fixes, added keypad_on() call for now
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@435 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-03 15:09:27 +00:00 |
|
Chris Allegretta
|
f4b9601c1b
|
First try at browser
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@434 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-03 07:11:47 +00:00 |
|
Rocco Corsi
|
8b6cccc5cc
|
TAB-TAB completion segfaulting with more than 2048 files fixed. (Rocco)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@432 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2001-01-02 06:21:07 +00:00 |
|
Chris Allegretta
|
ee289d7a2b
|
Don't skip . and .. in cwd_tab_completion()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@431 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-27 16:12:47 +00:00 |
|
Chris Allegretta
|
3a7c0bee6b
|
Fix segfault when read_file encounters an error opening the file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@410 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-18 01:09:07 +00:00 |
|
Chris Allegretta
|
1a6e904583
|
Rid nano of PATH_MAX\!
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-14 13:56:28 +00:00 |
|
Chris Allegretta
|
b04a98dc86
|
Use MAX_PATH in write_file strncpy (for now) instead of 132
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@408 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-14 13:24:08 +00:00 |
|
Chris Allegretta
|
7960dcf919
|
Removed unneeded st2 var, don't open device files in open_file()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@407 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-13 15:01:29 +00:00 |
|
Chris Allegretta
|
544d9b0210
|
Update comment in write_file
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@406 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-11 02:47:13 +00:00 |
|
Chris Allegretta
|
1cd506612d
|
Remove useless fstat call
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@405 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-11 02:47:12 +00:00 |
|
Chris Allegretta
|
321590a59d
|
More totsize fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@402 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-10 06:03:40 +00:00 |
|
Chris Allegretta
|
f597777323
|
Remove the append check we just added :>
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@398 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-09 23:58:41 +00:00 |
|
Chris Allegretta
|
d62614cbc4
|
Let's just copy joe word for word and just change the name to nano!!!!
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@397 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-09 23:37:00 +00:00 |
|
Chris Allegretta
|
33084397dd
|
More fun security crap
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@396 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-09 22:50:38 +00:00 |
|
Chris Allegretta
|
da13f0b45c
|
Oops, misplaced comment
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@391 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-06 05:59:31 +00:00 |
|
Chris Allegretta
|
1bd0ce2832
|
Okay, now the permissions should be fixed too
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@390 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-06 05:56:08 +00:00 |
|
Chris Allegretta
|
b5bb24c949
|
Commented the code that got us into this mess in the first place 9 releases ago
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@388 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-06 00:57:54 +00:00 |
|
Chris Allegretta
|
71e464034d
|
Line up link/unlink/rename check if conditional with top if conditional
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@387 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-06 00:40:26 +00:00 |
|
Chris Allegretta
|
21e3c28af2
|
Oops, get rid of my debugging code
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@386 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-05 12:04:16 +00:00 |
|
Chris Allegretta
|
fb62f73a9a
|
Rocco fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@385 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-05 11:36:41 +00:00 |
|
Chris Allegretta
|
fb2226a9ae
|
Okay, we'll use O_EXCL also
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@383 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-04 05:25:47 +00:00 |
|
Chris Allegretta
|
37f627f2f8
|
Oops, we didn't want the latter check because if this is a new file there wont be any previous inodes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@382 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-04 05:19:25 +00:00 |
|
Chris Allegretta
|
07f9ee059f
|
Okay, forget O_EXCL, do lots of other obscure checks instead =)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@381 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-04 05:15:39 +00:00 |
|
Chris Allegretta
|
20c131cf67
|
Added tmp check to TMP_OPT section (how apropriate).
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@379 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-04 04:20:09 +00:00 |
|
Chris Allegretta
|
5982849325
|
Added O_EXCL call to open is tmp == 1
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@378 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-04 03:31:39 +00:00 |
|
Chris Allegretta
|
581bc60d0c
|
Okay last time, now if there's any file at all, dont save the .save file. (foolproof? :)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@368 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-03 03:01:12 +00:00 |
|
Chris Allegretta
|
f7ee9e6996
|
Okay, now abort if the symlink isn't owned by the user, and some mode fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@364 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-02 21:13:50 +00:00 |
|
Chris Allegretta
|
3dbb2783d3
|
Okay, so if the .save file is a symlink, don't write to it, abort
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@361 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-02 04:36:50 +00:00 |
|
Chris Allegretta
|
331fc7a6f4
|
Okay, now write_file never trusts symlinks at all, no chance of spelling symlink attack :)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@360 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-12-02 03:06:37 +00:00 |
|
Chris Allegretta
|
09a8084943
|
DISABLE_TABCOMP checks - #ifdef around check_wildchar_match and don't call real_dir_from_tilde in do_insertfile() if set
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@354 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-30 02:31:13 +00:00 |
|
Chris Allegretta
|
2773184d92
|
Handle ~~ in tab comp without segfaulting =)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@339 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-28 05:53:41 +00:00 |
|
Chris Allegretta
|
9956e530d0
|
Make nano at least not crash on weird binary data
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@326 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-26 02:09:53 +00:00 |
|
Chris Allegretta
|
25f4e58ff4
|
do_insertfile(): - Added call to real_name_from tilde, oops.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@319 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-25 05:03:20 +00:00 |
|
Chris Allegretta
|
04fec91362
|
Oops, how about we actually make username completion work if they didn't complete before
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@317 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-25 04:43:43 +00:00 |
|
Chris Allegretta
|
8a0de3bb3f
|
New arg --enable-extra, checks for ./configure options, oher stuff :-)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@316 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-24 20:45:14 +00:00 |
|
Chris Allegretta
|
650e8a406b
|
Rocco's unset modified on tmp file write fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@315 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-24 14:15:17 +00:00 |
|
Chris Allegretta
|
0f5dfef8b0
|
Oops, better free realname in write_file if we're done using it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@314 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-24 14:02:57 +00:00 |
|
Chris Allegretta
|
be77c6119f
|
Implemented username tab completion, cleaned up existing tabcomp code, added --disable-tabcomp option
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@313 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-24 14:00:16 +00:00 |
|
Chris Allegretta
|
63a89d386b
|
comment out username completino code with macros since unimplemented, fix -Wall warnings on Irix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@290 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-18 03:05:50 +00:00 |
|
Chris Allegretta
|
2c9752291d
|
tab completion fixes, removed wefresh() from blank_edit
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@284 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-15 01:25:42 +00:00 |
|
Chris Allegretta
|
b5b89aeb93
|
Aha, works even better now. Made input_tab much more grabby, it touches lastWasTab now also...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@283 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-14 18:25:26 +00:00 |
|
Chris Allegretta
|
442f2c5156
|
Latest tab completion update, sort of works =)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@281 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-14 17:46:06 +00:00 |
|
Chris Allegretta
|
85b19e9110
|
*sigh*, okay, if there's only 1 match, dont beep either. Done, I swear
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@277 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-06 05:47:36 +00:00 |
|
Chris Allegretta
|
24dd8d6532
|
Oops, dont beep so much ;) Yes when we find one match and fill in buf, no otherwise
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@276 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
|
2000-11-06 05:45:48 +00:00 |
|