mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-22 21:01:24 +03:00
tweaks: define a symbol to make the code itself a little simpler
This commit is contained in:
parent
06416e3d5c
commit
a4e7d6b80b
11
src/global.c
11
src/global.c
@ -284,6 +284,11 @@ size_t length_of_list(int menu)
|
|||||||
#define NOVIEW FALSE
|
#define NOVIEW FALSE
|
||||||
#define BLANKAFTER TRUE /* A blank line after this one. */
|
#define BLANKAFTER TRUE /* A blank line after this one. */
|
||||||
#define TOGETHER FALSE
|
#define TOGETHER FALSE
|
||||||
|
#ifdef ENABLE_MULTIBUFFER
|
||||||
|
#define CAN_OPEN_OTHER_BUFFER TRUE
|
||||||
|
#else
|
||||||
|
#define CAN_OPEN_OTHER_BUFFER FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Empty functions, for the most part corresponding to toggles. */
|
/* Empty functions, for the most part corresponding to toggles. */
|
||||||
void case_sens_void(void)
|
void case_sens_void(void)
|
||||||
@ -728,11 +733,7 @@ void shortcut_init(void)
|
|||||||
N_("Read File"), WITHORSANS(readfile_gist), BLANKAFTER,
|
N_("Read File"), WITHORSANS(readfile_gist), BLANKAFTER,
|
||||||
/* We allow inserting files in view mode if multibuffer mode
|
/* We allow inserting files in view mode if multibuffer mode
|
||||||
* is switched on, so that we can view multiple files. */
|
* is switched on, so that we can view multiple files. */
|
||||||
#ifdef ENABLE_MULTIBUFFER
|
CAN_OPEN_OTHER_BUFFER);
|
||||||
VIEW);
|
|
||||||
#else
|
|
||||||
NOVIEW);
|
|
||||||
#endif
|
|
||||||
} else {
|
} else {
|
||||||
#ifdef ENABLE_JUSTIFY
|
#ifdef ENABLE_JUSTIFY
|
||||||
add_to_funcs(do_justify_void, MMAIN,
|
add_to_funcs(do_justify_void, MMAIN,
|
||||||
|
Loading…
Reference in New Issue
Block a user