David Lawrence Ramsey
fa394047ba
add DB's changes to titlebar() (with a few tweaks of mine) to make it
...
handle shorter screen widths better and display the filename using
display_string(), my strnlen() equivalent so the new titlebar() will
work on systems without strnlen(), and a few of DB's other minor changes
to make other display-related functions handle shorter screen widths
better, among other things
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1754 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-23 21:11:14 +00:00
David Lawrence Ramsey
14bf80399f
add missing #ifdefs around prototypes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1752 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-22 20:19:15 +00:00
David Lawrence Ramsey
c7acf69cb2
add smart home key
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1751 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-22 20:15:20 +00:00
David Lawrence Ramsey
e608f94a6f
go back to cbreak mode and disable_signals() instead of raw mode, as
...
disable_signals() doesn't take up much space and we need one fewer slang
workaround that way
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1748 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-19 16:04:27 +00:00
David Lawrence Ramsey
837a02b256
add missing bit from DB's refactoring of do_credits(): translate the
...
messages in xlcredits[] after they're initialized in order to avoid an
error when compiling with -pedantic
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1746 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-18 15:23:31 +00:00
David Lawrence Ramsey
d7fd200a6a
minor overhaul of terminal-related things
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1745 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-18 01:20:36 +00:00
David Lawrence Ramsey
1cadddd111
tweak justification so that it works the same way as the current version
...
of Pico does
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1743 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-17 20:32:51 +00:00
David Lawrence Ramsey
7097d7b6d2
remove some unneeded edit_update()s in do_para_search() and do_justify()
...
per DB's patch, and simplify an if statement in do_justify()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1742 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-17 16:11:18 +00:00
David Lawrence Ramsey
1d43db879e
if multibuffer support is compiled in, properly read in multiple files
...
at the command line even if multibuffer mode isn't turned on
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1740 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-14 17:57:00 +00:00
David Lawrence Ramsey
97133f5963
in main(), don't open the first file in quiet mode, since if we do, an
...
error message won't be shown if it's unreadable
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1739 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-14 17:39:19 +00:00
David Lawrence Ramsey
d4693cb0be
the last of the minor fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1737 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-14 01:17:25 +00:00
David Lawrence Ramsey
1122c85e34
reformat the test programs in configure.ac to be on multiple lines for
...
greater readability, and remove unnecessary inclusion of stdio.h in the
slang tests
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1732 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-13 17:46:57 +00:00
David Lawrence Ramsey
8d3e7f3217
add support for Pico's ability to justify the entire file at once ("full
...
justify", accessible via ^W^J)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1731 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-13 17:28:03 +00:00
David Lawrence Ramsey
9830d7500f
add isblank() equivalent and use it instead of checking for (tab or
...
space) all over the code, properly detect whether we have strcasestr()
and only use nstristr() if we don't, and bump up CVS build requirements
to account for setting _GNU_SOURCE when running the test programs for
both
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1730 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-13 17:19:54 +00:00
David Lawrence Ramsey
71d0a1fab3
nanorc.sample updates: add missing mouse entry, and add backupdir and
...
mouse entries to the nanorc sample regexes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1729 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-08 00:06:15 +00:00
David Lawrence Ramsey
2c4c788477
fix more info page inaccuracies
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1728 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-07 18:00:20 +00:00
David Lawrence Ramsey
5aa39834aa
disable "Where Is Next" in tiny mode
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1727 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-05 21:36:50 +00:00
David Lawrence Ramsey
0381c2199d
clarifications to comments explaining exactly what control characters
...
and escape sequences are supported
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1725 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-05-01 01:21:38 +00:00
David Lawrence Ramsey
4b741b9c7b
add DB's overhaul of regexp_init() and a few other regex-related bits,
...
and convert REGEXP_COMPILED to a static int in search.c, since it's only
used there
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1724 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-30 19:40:03 +00:00
David Lawrence Ramsey
d893fa946d
add restricted mode, per IO ERROR's patch
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1723 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-30 04:49:02 +00:00
David Lawrence Ramsey
e5b2f83031
in edit_add(), do minor cosmetic reformatting and remove unused int
...
searched_later_lines
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1722 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-29 06:30:36 +00:00
David Lawrence Ramsey
d62b63492a
remove another unused prototype
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1721 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-28 21:49:30 +00:00
David Lawrence Ramsey
b88234049d
spell Christian Weisgerber's name right
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1720 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-27 21:06:11 +00:00
David Lawrence Ramsey
dc35cb8e16
use napms() instead of nanosleep(), as it does the same thing (aside
...
from taking an argument in milliseconds instead of microseconds) and
curses includes it
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1719 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-24 18:30:23 +00:00
David Lawrence Ramsey
0a25808f34
work around the NumLock glitch
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1718 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-23 18:02:37 +00:00
David Lawrence Ramsey
805547fed0
make the verbatim and escape sequence input routines use size_t's to
...
hold lengths, and use a properly cast nrealloc() instead of an uncast
realloc() in the former
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1717 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-22 03:41:04 +00:00
David Lawrence Ramsey
45108343c8
cosmetic changelog fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1716 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-21 23:04:55 +00:00
David Lawrence Ramsey
f38230ae6d
a few more minor cleanups
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1715 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-21 22:25:16 +00:00
David Lawrence Ramsey
9be546b2f3
fix info page inaccuracies
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1714 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-20 19:19:21 +00:00
David Lawrence Ramsey
604caf3d6c
DB's changes to do_delete(), and a few more minor bits
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1713 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-19 02:44:13 +00:00
David Lawrence Ramsey
07d3febe1b
remove apparently unneeded leaveok() calls per DB's patch, and make a
...
few cosmetic cleanups
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1712 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-16 05:15:11 +00:00
David Lawrence Ramsey
e1e7cb250e
fix debugging output in get_verbatim_kbinput()
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1711 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-15 06:15:55 +00:00
David Lawrence Ramsey
5520e85ee4
make sure the special control keys are handled the same way after a
...
continue or a window resize
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1708 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-07 00:44:35 +00:00
David Lawrence Ramsey
a3370c4232
miscellaneous fixes
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1707 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-04-05 01:08:14 +00:00
David Lawrence Ramsey
befb25a4e6
Back to CVS
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1706 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-31 18:53:07 +00:00
David Lawrence Ramsey
f70f0cf6bd
GNU nano 1.3.2
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1704 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-31 18:42:52 +00:00
David Lawrence Ramsey
44e7f82e0e
minor tweaks; also remove the need for the JUSTIFY_MODE flag
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1703 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-30 04:17:10 +00:00
David Lawrence Ramsey
0b047c561d
fix error in changelog and add missing size_t cast
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1702 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-29 23:09:08 +00:00
David Lawrence Ramsey
ce991bb3ad
set the input mode before turning the keypad on, and don't turn the
...
keypad on in a window before that window's initialized (oddly, ncurses
didn't segfault on the latter, but slang did)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1701 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-29 18:36:39 +00:00
David Lawrence Ramsey
1576d537a6
rename a few variables and make a few cosmetic cleanups
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1699 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-19 21:46:34 +00:00
David Lawrence Ramsey
7947544460
fix entry
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1698 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-19 20:47:57 +00:00
David Lawrence Ramsey
b977515bd7
avoid any more editbot-related segfaults by removing the last of the
...
references to it, as in DB's patch
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1697 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-19 02:15:42 +00:00
David Lawrence Ramsey
aca5d04f42
typo fix
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1696 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-19 01:35:57 +00:00
David Lawrence Ramsey
6aec4b85e6
fix potential memory corruption problems caused by passing answer in as
...
the value of def in statusq(), etc.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1695 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-15 20:26:30 +00:00
David Lawrence Ramsey
dc10ecbbd6
revert the Meta-P and Meta-N aliases for the paragraph searches for now;
...
Meta-P was being interpreted as such even when it was used for the
Prepend toggle at the writeout prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1694 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-15 20:03:01 +00:00
David Lawrence Ramsey
b6aa42864e
add DB's similar simplification of do_prev_word() too
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1693 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-14 01:42:17 +00:00
David Lawrence Ramsey
bf3c93e268
add DB's patch to simplify do_next_word() and remove references to
...
editbot in it so as to avoid a segfault
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1692 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-13 19:42:58 +00:00
David Lawrence Ramsey
c6908f28b7
minor bits
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1691 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-11 02:20:25 +00:00
David Lawrence Ramsey
35557c555c
change instances of "int main ()" to "int main(void)"
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1688 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-07 15:14:56 +00:00
David Lawrence Ramsey
da35251e98
wrap one reference to NANO_EXTCMD_KEY in a NANO_SMALL #ifdef
...
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1686 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
2004-03-05 20:04:44 +00:00