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
bdd89200
Commit
bdd89200
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
bindings: make a key defined as string work also in browser and viewer
parent
ae9ec6d4
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/browser.c
+4
-0
src/browser.c
src/help.c
+4
-0
src/help.c
src/rcfile.c
+1
-1
src/rcfile.c
with
9 additions
and
1 deletion
+9
-1
src/browser.c
View file @
bdd89200
...
...
@@ -303,6 +303,10 @@ char *do_browser(char *path)
/* Try opening and reading the selected directory. */
path
=
mallocstrcpy
(
path
,
filelist
[
selected
]);
goto
read_directory_contents
;
#ifdef ENABLE_NANORC
}
else
if
(
func
==
(
void
*
)
implant
)
{
implant
(
first_sc_for
(
MBROWSER
,
func
)
->
expansion
);
#endif
}
else
if
(
func
==
do_exit
)
{
/* Exit from the file browser. */
break
;
...
...
This diff is collapsed.
Click to expand it.
src/help.c
View file @
bdd89200
...
...
@@ -215,6 +215,10 @@ void do_help(void)
do_findprevious
();
}
else
if
(
func
==
do_findnext
)
{
do_findnext
();
#ifdef ENABLE_NANORC
}
else
if
(
func
==
(
void
*
)
implant
)
{
implant
(
first_sc_for
(
MHELP
,
func
)
->
expansion
);
#endif
}
else
if
(
kbinput
==
KEY_WINCH
)
{
;
/* Nothing to do. */
#endif
...
...
This diff is collapsed.
Click to expand it.
src/rcfile.c
View file @
bdd89200
...
...
@@ -458,7 +458,7 @@ void parse_binding(char *ptr, bool dobind)
/* Now limit the given menu to those where the function exists. */
if
(
is_universal
(
newsc
->
func
))
menu
=
menu
&
MMOST
;
menu
=
menu
&
(
MMOST
|
(
newsc
->
func
==
(
void
*
)
implant
?
MHELP
:
0
))
;
else
menu
=
menu
&
mask
;
...
...
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