fix bug where calculated filename space on the titlebar is short by one
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1533 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
27863665ca
commit
ec290f2385
|
@ -45,6 +45,10 @@ CVS code -
|
||||||
support, pressing Ctrl-Z to suspend nano at the Linux console
|
support, pressing Ctrl-Z to suspend nano at the Linux console
|
||||||
with keypad(TRUE) generates Ctrl-Z instead of KEY_SUSPEND
|
with keypad(TRUE) generates Ctrl-Z instead of KEY_SUSPEND
|
||||||
(which is what ncurses generates then). (DLR)
|
(which is what ncurses generates then). (DLR)
|
||||||
|
- winio.c:
|
||||||
|
titlebar()
|
||||||
|
- Fix problem with the available space for a filename on the
|
||||||
|
titlebar's being short by one. (DLR)
|
||||||
- AUTHORS
|
- AUTHORS
|
||||||
- Updated to show 1.2/1.3 maintainers.
|
- Updated to show 1.2/1.3 maintainers.
|
||||||
|
|
||||||
|
|
2
winio.c
2
winio.c
|
@ -779,7 +779,7 @@ void titlebar(const char *path)
|
||||||
mvwaddstr(topwin, 0, 0, hblank);
|
mvwaddstr(topwin, 0, 0, hblank);
|
||||||
mvwaddnstr(topwin, 0, 2, VERMSG, COLS - 3);
|
mvwaddnstr(topwin, 0, 2, VERMSG, COLS - 3);
|
||||||
|
|
||||||
space = COLS - sizeof(VERMSG) - 22;
|
space = COLS - sizeof(VERMSG) - 23;
|
||||||
|
|
||||||
namelen = strlen(what);
|
namelen = strlen(what);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue