Removed now useless usrtabsize variable (Christian Weisgerber)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@159 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
d7c31c1123
commit
99bf73fe66
|
@ -19,6 +19,8 @@ CVS code
|
||||||
do_enter()
|
do_enter()
|
||||||
- Fixed typo (?) in check for inptr->next. Caused lots of
|
- Fixed typo (?) in check for inptr->next. Caused lots of
|
||||||
grief for editing lines at filebot.
|
grief for editing lines at filebot.
|
||||||
|
main()
|
||||||
|
- Removed now useless usrtabsize variable (Christian Weisgerber).
|
||||||
- search.c:
|
- search.c:
|
||||||
replace_abort()
|
replace_abort()
|
||||||
- redundant, now just calls search abort until it does something
|
- redundant, now just calls search abort until it does something
|
||||||
|
|
8
nano.c
8
nano.c
|
@ -1539,7 +1539,6 @@ int main(int argc, char *argv[])
|
||||||
struct sigaction act; /* For our lovely signals */
|
struct sigaction act; /* For our lovely signals */
|
||||||
int keyhandled = 0; /* Have we handled the keystroke yet? */
|
int keyhandled = 0; /* Have we handled the keystroke yet? */
|
||||||
int tmpkey = 0, i;
|
int tmpkey = 0, i;
|
||||||
int usrtabsize = 0; /* User defined tab size */
|
|
||||||
char *argv0;
|
char *argv0;
|
||||||
struct termios term;
|
struct termios term;
|
||||||
|
|
||||||
|
@ -1588,8 +1587,8 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
switch (optchr) {
|
switch (optchr) {
|
||||||
case 'T':
|
case 'T':
|
||||||
usrtabsize = atoi(optarg);
|
tabsize = atoi(optarg);
|
||||||
if (usrtabsize <= 0) {
|
if (tabsize <= 0) {
|
||||||
usage(); /* To stop bogus data for tab width */
|
usage(); /* To stop bogus data for tab width */
|
||||||
finish(1);
|
finish(1);
|
||||||
}
|
}
|
||||||
|
@ -1772,9 +1771,6 @@ int main(int argc, char *argv[])
|
||||||
else
|
else
|
||||||
edit_update(fileage, CENTER);
|
edit_update(fileage, CENTER);
|
||||||
|
|
||||||
if (usrtabsize > 0)
|
|
||||||
tabsize = usrtabsize;
|
|
||||||
|
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
reset_cursor();
|
reset_cursor();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue