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
a083d7f1
Commit
a083d7f1
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable to be more distinct and greppable
parent
919df09f
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/global.c
+2
-2
src/global.c
src/nano.c
+1
-1
src/nano.c
src/proto.h
+1
-1
src/proto.h
src/winio.c
+1
-1
src/winio.c
with
5 additions
and
5 deletions
+5
-5
src/global.c
View file @
a083d7f1
...
...
@@ -32,8 +32,8 @@ volatile sig_atomic_t the_window_resized = FALSE;
#endif
#ifdef __linux__
bool
c
on
sole
;
/* Whether we're running on a Linux V
C (TRUE) or under X (FALSE)
. */
bool
on
_a_vt
;
/* Whether we're running on a Linux V
T or on something else
. */
#endif
bool
meta_key
;
...
...
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
a083d7f1
...
...
@@ -1994,7 +1994,7 @@ int main(int argc, char **argv)
struct
vt_stat
dummy
;
/* Check whether we're running on a Linux console. */
c
on
sole
=
(
ioctl
(
0
,
VT_GETSTATE
,
&
dummy
)
==
0
);
on
_a_vt
=
(
ioctl
(
0
,
VT_GETSTATE
,
&
dummy
)
==
0
);
#endif
/* Back up the terminal settings so that they can be restored. */
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
a083d7f1
...
...
@@ -30,7 +30,7 @@ extern volatile sig_atomic_t the_window_resized;
#endif
#ifdef __linux__
extern
bool
c
on
sole
;
extern
bool
on
_a_vt
;
#endif
extern
bool
meta_key
;
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
a083d7f1
...
...
@@ -573,7 +573,7 @@ int parse_kbinput(WINDOW *win)
* Shift/Ctrl/Alt are being held together with them. */
unsigned
char
modifiers
=
6
;
if
(
c
on
sole
&&
ioctl
(
0
,
TIOCLINUX
,
&
modifiers
)
>=
0
)
{
if
(
on
_a_vt
&&
ioctl
(
0
,
TIOCLINUX
,
&
modifiers
)
>=
0
)
{
#ifndef NANO_TINY
/* Is Shift being held? */
if
(
modifiers
&
0x01
)
{
...
...
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