Skip to content
GitLab
Menu
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
a1be8b6a
Commit
a1be8b6a
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: condense a comment and elide an 'if'
parent
de4fbadf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/rcfile.c
+3
-8
src/rcfile.c
with
3 additions
and
8 deletions
+3
-8
src/rcfile.c
View file @
a1be8b6a
...
...
@@ -327,22 +327,17 @@ void parse_syntax(char *ptr)
}
#endif
/* ENABLE_COLOR */
/* Check whether the given executable function is "universal" (meaning
* any horizontal movement or deletion) and thus is present in almost
* all menus. */
/* Return TRUE when the given function is present in almost all menus. */
bool
is_universal
(
void
(
*
func
)(
void
))
{
if
(
func
==
do_left
||
func
==
do_right
||
return
(
func
==
do_left
||
func
==
do_right
||
func
==
do_home
||
func
==
do_end
||
#ifndef NANO_TINY
func
==
do_prev_word_void
||
func
==
do_next_word_void
||
#endif
func
==
do_delete
||
func
==
do_backspace
||
func
==
do_cut_text_void
||
func
==
do_uncut_text
||
func
==
do_tab
||
func
==
do_enter
||
func
==
do_verbatim_input
)
return
TRUE
;
else
return
FALSE
;
func
==
do_tab
||
func
==
do_enter
||
func
==
do_verbatim_input
);
}
/* Bind or unbind a key combo, to or from a function. */
...
...
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