Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs24-19fa
git_rec_nano
Commits
de4fbadf
Commit
de4fbadf
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle some code, to be slightly less ugly
parent
bdd89200
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rcfile.c
+6
-8
src/rcfile.c
with
6 additions
and
8 deletions
+6
-8
src/rcfile.c
View file @
de4fbadf
...
...
@@ -336,9 +336,6 @@ bool is_universal(void (*func)(void))
func
==
do_home
||
func
==
do_end
||
#ifndef NANO_TINY
func
==
do_prev_word_void
||
func
==
do_next_word_void
||
#endif
#ifdef ENABLE_NANORC
func
==
(
void
*
)
implant
||
#endif
func
==
do_delete
||
func
==
do_backspace
||
func
==
do_cut_text_void
||
func
==
do_uncut_text
||
...
...
@@ -455,12 +452,13 @@ void parse_binding(char *ptr, bool dobind)
if
(
newsc
->
func
==
do_toggle_void
)
mask
=
MMAIN
;
#endif
#ifdef ENABLE_NANORC
/* Handle the special case of a key defined as a string. */
if
(
newsc
->
func
==
(
void
*
)
implant
)
mask
=
MMOST
|
MHELP
;
#endif
/* Now limit the given menu to those where the function exists. */
if
(
is_universal
(
newsc
->
func
))
menu
=
menu
&
(
MMOST
|
(
newsc
->
func
==
(
void
*
)
implant
?
MHELP
:
0
));
else
menu
=
menu
&
mask
;
menu
=
menu
&
(
is_universal
(
newsc
->
func
)
?
MMOST
:
mask
);
if
(
!
menu
)
{
rcfile_error
(
N_
(
"Function '%s' does not exist in menu '%s'"
),
funcptr
,
menuptr
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help