toggle_init(), usage(), do_tab(), main(), nanorc.sample,
nano.1, nanorc.5, and nano.texi. (DLR, suggested by many
people)
+ - Change the SMOOTHSCROLL flag to the SMOOTH_SCROLL flag. (DLR)
- Change the NO_UTF8 flag to the USE_UTF8 flag, and reverse its
meaning. (DLR)
- chars.c:
toggle_init_one(TOGGLE_BACKUP_KEY, N_("Backup files"),
BACKUP_FILE);
toggle_init_one(TOGGLE_SMOOTH_KEY, N_("Smooth scrolling"),
- SMOOTHSCROLL);
+ SMOOTH_SCROLL);
toggle_init_one(TOGGLE_SMARTHOME_KEY, N_("Smart home key"),
SMART_HOME);
#ifdef ENABLE_COLOR
/* If we're in smooth scrolling mode and there's at least one
* page of text left, move the current line of the edit window
* up a page. */
- if (ISSET(SMOOTHSCROLL) && current->lineno > editwinrows - 2) {
+ if (ISSET(SMOOTH_SCROLL) && current->lineno > editwinrows - 2) {
int i;
for (i = 0; i < editwinrows - 2; i++)
current = current->prev;
/* If we're in smooth scrolling mode and there's at least one
* page of text left, move the current line of the edit window
* down a page. */
- if (ISSET(SMOOTHSCROLL) && current->lineno + editwinrows - 2 <=
+ if (ISSET(SMOOTH_SCROLL) && current->lineno + editwinrows - 2 <=
filebot->lineno) {
int i;
for (i = 0; i < editwinrows - 2; i++)
if (current_y == 0)
edit_scroll(UP,
#ifndef NANO_SMALL
- ISSET(SMOOTHSCROLL) ? 1 :
+ ISSET(SMOOTH_SCROLL) ? 1 :
#endif
editwinrows / 2);
if (current_y == editwinrows - 1)
edit_scroll(DOWN,
#ifndef NANO_SMALL
- ISSET(SMOOTHSCROLL) ? 1 :
+ ISSET(SMOOTH_SCROLL) ? 1 :
#endif
editwinrows / 2);
#endif
#ifndef NANO_SMALL
case 'S':
- SET(SMOOTHSCROLL);
+ SET(SMOOTH_SCROLL);
break;
#endif
case 'T':
#define CUT_TO_END (1<<13)
#define REVERSE_SEARCH (1<<14)
#define MULTIBUFFER (1<<15)
-#define SMOOTHSCROLL (1<<16)
+#define SMOOTH_SCROLL (1<<16)
#define DISABLE_CURPOS (1<<17) /* Damn, we still need it. */
#define REBIND_DELETE (1<<18)
#define NO_CONVERT (1<<19)
{"rebinddelete", REBIND_DELETE},
#ifndef NANO_SMALL
{"smarthome", SMART_HOME},
- {"smooth", SMOOTHSCROLL},
+ {"smooth", SMOOTH_SCROLL},
#endif
#ifndef DISABLE_SPELLER
{"speller", 0},
* is no danger of getting an infinite loop. */
edit_update(
#ifndef NANO_SMALL
- ISSET(SMOOTHSCROLL) ? NONE :
+ ISSET(SMOOTH_SCROLL) ? NONE :
#endif
CENTER);
else {