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
9de0f158
Commit
9de0f158
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
help: keep the same position also after M-\ or M-/ has been used
parent
3d62d32c
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/help.c
+12
-15
src/help.c
with
12 additions
and
15 deletions
+12
-15
src/help.c
View file @
9de0f158
...
...
@@ -175,28 +175,14 @@ void do_help(void)
display_the_help_text
(
FALSE
);
curs_set
(
0
);
edit_refresh
();
while
(
TRUE
)
{
edit_refresh
();
lastmessage
=
HUSH
;
focusing
=
TRUE
;
kbinput
=
get_kbinput
(
edit
);
#ifndef NANO_TINY
if
(
kbinput
==
KEY_WINCH
)
continue
;
#endif
#ifndef DISABLE_MOUSE
if
(
kbinput
==
KEY_MOUSE
)
{
int
mouse_x
,
mouse_y
;
get_mouseinput
(
&
mouse_x
,
&
mouse_y
,
TRUE
);
continue
;
/* Redraw the screen. */
}
#endif
func
=
parse_help_input
(
&
kbinput
);
if
(
func
==
total_refresh
)
{
...
...
@@ -224,6 +210,15 @@ void do_help(void)
do_research
();
currmenu
=
MHELP
;
curs_set
(
1
);
#ifndef NANO_TINY
}
else
if
(
kbinput
==
KEY_WINCH
)
{
;
/* Nothing to do. */
#endif
#ifndef DISABLE_MOUSE
}
else
if
(
kbinput
==
KEY_MOUSE
)
{
int
dummy_x
,
dummy_y
;
get_mouseinput
(
&
dummy_x
,
&
dummy_y
,
TRUE
);
#endif
}
else
if
(
func
==
do_exit
)
{
/* Exit from the help viewer. */
close_buffer
();
...
...
@@ -231,6 +226,8 @@ void do_help(void)
}
else
unbound_key
(
kbinput
);
edit_refresh
();
location
=
0
;
line
=
openfile
->
fileage
;
...
...
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