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
566a2daf
Commit
566a2daf
authored
7 years ago
by
David Lawrence Ramsey
Committed by
Benno Schulenberg
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: remove unneeded parentheses and blank line and braces
parent
9f6c3a62
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/global.c
+1
-2
src/global.c
src/winio.c
+5
-5
src/winio.c
with
6 additions
and
7 deletions
+6
-7
src/global.c
View file @
566a2daf
...
...
@@ -451,7 +451,7 @@ int keycode_from_string(const char *keystring)
return
-
1
;
}
else
if
(
keystring
[
0
]
==
'F'
)
{
int
fn
=
atoi
(
&
keystring
[
1
]);
if
(
(
fn
<
0
)
||
(
fn
>
63
)
)
if
(
fn
<
0
||
fn
>
63
)
return
-
1
;
return
KEY_F0
+
fn
;
}
else
if
(
!
strcasecmp
(
keystring
,
"Ins"
))
...
...
@@ -1147,7 +1147,6 @@ void shortcut_init(void)
add_to_sclist
(
MMAIN
|
MHELP
,
"M-
\xE2\x86\x91
"
,
ALT_UP
,
do_findprevious
,
0
);
add_to_sclist
(
MMAIN
|
MHELP
,
"M-
\xE2\x86\x93
"
,
ALT_DOWN
,
do_findnext
,
0
);
#endif
}
else
#endif
{
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
566a2daf
...
...
@@ -523,15 +523,15 @@ int parse_kbinput(WINDOW *win)
}
else
if
(
retval
==
shiftcontrolend
)
{
shift_held
=
TRUE
;
return
CONTROL_END
;
}
else
if
(
retval
==
altleft
)
{
}
else
if
(
retval
==
altleft
)
return
ALT_LEFT
;
}
else
if
(
retval
==
altright
)
{
else
if
(
retval
==
altright
)
return
ALT_RIGHT
;
}
else
if
(
retval
==
altup
)
{
else
if
(
retval
==
altup
)
return
ALT_UP
;
}
else
if
(
retval
==
altdown
)
{
else
if
(
retval
==
altdown
)
return
ALT_DOWN
;
}
else
if
(
retval
==
shiftaltleft
)
{
else
if
(
retval
==
shiftaltleft
)
{
shift_held
=
TRUE
;
return
KEY_HOME
;
}
else
if
(
retval
==
shiftaltright
)
{
...
...
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