rcfile: rename bindable function 'suspendenable' to 'suspendable'
The name of a toggle function should match the name of the corresponding option, like for 'mouse' and 'linenumbers' and 'smarthome' and such.
Этот коммит содержится в:
родитель
4dedb1c1b1
Коммит
3690d60b71
@ -1406,7 +1406,7 @@ Refreshes the screen.
|
|||||||
|
|
||||||
@item suspend
|
@item suspend
|
||||||
Suspends the editor (if the suspending function is enabled, see the
|
Suspends the editor (if the suspending function is enabled, see the
|
||||||
"suspendenable" entry below).
|
@code{suspendable} toggle item below).
|
||||||
|
|
||||||
@item casesens
|
@item casesens
|
||||||
Toggles whether searching/replacing ignores or respects the case of
|
Toggles whether searching/replacing ignores or respects the case of
|
||||||
@ -1517,9 +1517,10 @@ Toggles whether typed tabs will be converted to spaces.
|
|||||||
@item mouse
|
@item mouse
|
||||||
Toggles mouse support.
|
Toggles mouse support.
|
||||||
|
|
||||||
@item suspendenable
|
@item suspendable
|
||||||
Toggles whether the suspend keystroke (@kbd{^Z} by default)
|
Toggles whether the suspend keystroke (@kbd{^Z} by default)
|
||||||
will actually suspend the editor.
|
will actually suspend the editor.
|
||||||
|
(The old name of this function, 'suspendenable', is deprecated.)
|
||||||
|
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
|
@ -727,7 +727,7 @@ Refreshes the screen.
|
|||||||
.TP
|
.TP
|
||||||
.B suspend
|
.B suspend
|
||||||
Suspends the editor (if the suspending function is enabled, see the
|
Suspends the editor (if the suspending function is enabled, see the
|
||||||
"suspendenable" entry below).
|
\fBsuspendable\fR toggle item below).
|
||||||
.TP
|
.TP
|
||||||
.B casesens
|
.B casesens
|
||||||
Toggles whether searching/replacing ignores or respects the case of
|
Toggles whether searching/replacing ignores or respects the case of
|
||||||
@ -838,9 +838,10 @@ Toggles whether typed tabs will be converted to spaces.
|
|||||||
.B mouse
|
.B mouse
|
||||||
Toggles mouse support.
|
Toggles mouse support.
|
||||||
.TP
|
.TP
|
||||||
.B suspendenable
|
.B suspendable
|
||||||
Toggles whether the suspend keystroke (\fB^Z\fR by default)
|
Toggles whether the suspend keystroke (\fB^Z\fR by default)
|
||||||
will actually suspend the editor.
|
will actually suspend the editor.
|
||||||
|
(The old name of this function, 'suspendenable', is deprecated.)
|
||||||
.RE
|
.RE
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
@ -466,7 +466,8 @@ keystruct *strtosc(const char *input)
|
|||||||
else if (!strcmp(input, "mouse"))
|
else if (!strcmp(input, "mouse"))
|
||||||
s->toggle = USE_MOUSE;
|
s->toggle = USE_MOUSE;
|
||||||
#endif
|
#endif
|
||||||
else if (!strcmp(input, "suspendenable"))
|
else if (!strcmp(input, "suspendable") ||
|
||||||
|
!strcmp(input, "suspendenable")) /* Deprecated; remove in 2022. */
|
||||||
s->toggle = SUSPENDABLE;
|
s->toggle = SUSPENDABLE;
|
||||||
else
|
else
|
||||||
#endif /* !NANO_TINY */
|
#endif /* !NANO_TINY */
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user