DB's minor efficiency tweak for do_mark()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1560 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
5dcba30395
commit
f03c78b382
|
@ -87,6 +87,10 @@ CVS code -
|
||||||
- Document the support for Esc Esc [character]'s being
|
- Document the support for Esc Esc [character]'s being
|
||||||
interpreted as Ctrl-[character], and the support for Pico's
|
interpreted as Ctrl-[character], and the support for Pico's
|
||||||
Esc Esc [three-digit decimal ASCII code] input method. (DLR)
|
Esc Esc [three-digit decimal ASCII code] input method. (DLR)
|
||||||
|
do_mark()
|
||||||
|
- Toggle MARK_ISSET() at the beginning of the function instead
|
||||||
|
of setting it in one place and unsetting it in another place.
|
||||||
|
(David Benbennick)
|
||||||
abcd()
|
abcd()
|
||||||
- Removed, as it's unneeded due to the low-level input overhaul.
|
- Removed, as it's unneeded due to the low-level input overhaul.
|
||||||
(DLR)
|
(DLR)
|
||||||
|
|
|
@ -1289,14 +1289,13 @@ int do_mark(void)
|
||||||
#ifdef NANO_SMALL
|
#ifdef NANO_SMALL
|
||||||
nano_disabled_msg();
|
nano_disabled_msg();
|
||||||
#else
|
#else
|
||||||
if (!ISSET(MARK_ISSET)) {
|
TOGGLE(MARK_ISSET);
|
||||||
|
if (ISSET(MARK_ISSET)) {
|
||||||
statusbar(_("Mark Set"));
|
statusbar(_("Mark Set"));
|
||||||
SET(MARK_ISSET);
|
|
||||||
mark_beginbuf = current;
|
mark_beginbuf = current;
|
||||||
mark_beginx = current_x;
|
mark_beginx = current_x;
|
||||||
} else {
|
} else {
|
||||||
statusbar(_("Mark UNset"));
|
statusbar(_("Mark UNset"));
|
||||||
UNSET(MARK_ISSET);
|
|
||||||
edit_refresh();
|
edit_refresh();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue