winio.c:bottombars() - Spread out the menu items, feedback definitely needed on this

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@750 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
Chris Allegretta 2001-08-25 16:41:37 +00:00
parent 9b3c7e8be7
commit 96eef7332b
5 changed files with 210 additions and 241 deletions

View File

@ -8,6 +8,8 @@ CVS code -
- corrected the Mouse Toggle section, noticed by Daniel Bonniot. - corrected the Mouse Toggle section, noticed by Daniel Bonniot.
- winio.c: - winio.c:
- Add David Lawrence Ramsey to credits. - Add David Lawrence Ramsey to credits.
bottombars()
- Spread out the menu items, feedback definitely needed on this.
nano-1.1.1 - 07/28/2001 nano-1.1.1 - 07/28/2001
- General - General

22
aclocal.m4 vendored
View File

@ -125,24 +125,6 @@ for am_file in <<$1>>; do
done<<>>dnl>>) done<<>>dnl>>)
changequote([,]))]) changequote([,]))])
#serial 1
# This test replaces the one in autoconf.
# Currently this macro should have the same name as the autoconf macro
# because gettext's gettext.m4 (distributed in the automake package)
# still uses it. Otherwise, the use in gettext.m4 makes autoheader
# give these diagnostics:
# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX
# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX
undefine([AC_ISC_POSIX])
AC_DEFUN([AC_ISC_POSIX],
[
dnl This test replaces the obsolescent AC_ISC_POSIX kludge.
AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"])
]
)
#serial 19 #serial 19
dnl By default, many hosts won't let programs access large files; dnl By default, many hosts won't let programs access large files;
@ -815,7 +797,7 @@ AC_SUBST($1)dnl
# Ulrich Drepper <drepper@cygnus.com>, 1996. # Ulrich Drepper <drepper@cygnus.com>, 1996.
# #
# This file can be copied and used freely without restrictions. It can # This file can be copied and used freely without restrictions. It can
# be used in projects which are not available under the GNU General Public License # be used in projects which are not available under the GNU Public License
# but which still want to provide support for the GNU gettext functionality. # but which still want to provide support for the GNU gettext functionality.
# Please note that the actual code is *not* freely available. # Please note that the actual code is *not* freely available.
@ -823,7 +805,7 @@ AC_SUBST($1)dnl
dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
AC_DEFUN([AM_PATH_PROG_WITH_TEST], AC_DEFUN(AM_PATH_PROG_WITH_TEST,
[# Extract the first word of "$2", so it can be a program name with args. [# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2 set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word]) AC_MSG_CHECKING([for $ac_word])

View File

@ -31,6 +31,9 @@
/* Define to `long' if <sys/types.h> doesn't define. */ /* Define to `long' if <sys/types.h> doesn't define. */
#undef off_t #undef off_t
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Define as the return type of signal handlers (int or void). */ /* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE #undef RETSIGTYPE

418
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -600,7 +600,11 @@ void bottombars(shortcut s[], int slen)
#endif #endif
/* Determine how many extra spaces are needed to fill the bottom of the screen */ /* Determine how many extra spaces are needed to fill the bottom of the screen */
k = COLS / 6 - 13; if (slen < 2)
k = COLS / 6 - 13;
else
k = COLS / (slen / 2) - 13;
clear_bottomwin(); clear_bottomwin();
wmove(bottomwin, 1, 0); wmove(bottomwin, 1, 0);