- winio.c:nanogetstr() - Add handler for Alt-[-H and F as home and end when -K is used. Basically a workaround until a cleaner way can be found.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1509 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6d97d18fba
commit
13f094e80e
|
@ -14,6 +14,8 @@ CVS code -
|
||||||
added at the bottom of the history (but which was not in the
|
added at the bottom of the history (but which was not in the
|
||||||
history) would not be preserved after scrolling down to the
|
history) would not be preserved after scrolling down to the
|
||||||
blank bottom entry and then scrolling back up. (DLR)
|
blank bottom entry and then scrolling back up. (DLR)
|
||||||
|
- Add handler for Alt-[-H and F as home and end when -K is
|
||||||
|
used. Basically a workaround until a cleaner way can be found.
|
||||||
- configure.ac:
|
- configure.ac:
|
||||||
- Change the program used to detect a broken regexec() function
|
- Change the program used to detect a broken regexec() function
|
||||||
so that it works properly, using information found at
|
so that it works properly, using information found at
|
||||||
|
|
8
winio.c
8
winio.c
|
@ -294,10 +294,12 @@ int nanogetstr(int allowtabs, const char *buf, const char *def,
|
||||||
#endif
|
#endif
|
||||||
case NANO_HOME_KEY:
|
case NANO_HOME_KEY:
|
||||||
case KEY_HOME:
|
case KEY_HOME:
|
||||||
|
do_home:
|
||||||
x = 0;
|
x = 0;
|
||||||
break;
|
break;
|
||||||
case NANO_END_KEY:
|
case NANO_END_KEY:
|
||||||
case KEY_END:
|
case KEY_END:
|
||||||
|
do_end:
|
||||||
x = xend;
|
x = xend;
|
||||||
break;
|
break;
|
||||||
case KEY_RIGHT:
|
case KEY_RIGHT:
|
||||||
|
@ -485,6 +487,12 @@ int nanogetstr(int allowtabs, const char *buf, const char *def,
|
||||||
if (x > 0)
|
if (x > 0)
|
||||||
x--;
|
x--;
|
||||||
break;
|
break;
|
||||||
|
case 'F':
|
||||||
|
goto do_end;
|
||||||
|
break;
|
||||||
|
case 'H':
|
||||||
|
goto do_home;
|
||||||
|
break;
|
||||||
case '1':
|
case '1':
|
||||||
case '7':
|
case '7':
|
||||||
x = 0;
|
x = 0;
|
||||||
|
|
Loading…
Reference in New Issue