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
f5c87a7f
Commit
f5c87a7f
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: swap the row and col parameters to a more consistent order
parent
90ebff00
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
src/browser.c
+1
-1
src/browser.c
src/help.c
+2
-2
src/help.c
src/nano.c
+1
-1
src/nano.c
src/prompt.c
+1
-1
src/prompt.c
src/proto.h
+1
-1
src/proto.h
src/winio.c
+1
-1
src/winio.c
with
7 additions
and
7 deletions
+7
-7
src/browser.c
View file @
f5c87a7f
...
...
@@ -121,7 +121,7 @@ char *do_browser(char *path)
int
mouse_x
,
mouse_y
;
/* We can click on the edit window to select a filename. */
if
(
get_mouseinput
(
&
mouse_
x
,
&
mouse_
y
,
TRUE
)
==
0
&&
if
(
get_mouseinput
(
&
mouse_
y
,
&
mouse_
x
,
TRUE
)
==
0
&&
wmouse_trafo
(
edit
,
&
mouse_y
,
&
mouse_x
,
FALSE
))
{
/* longest is the width of each column. There
* are two spaces between each column. */
...
...
This diff is collapsed.
Click to expand it.
src/help.c
View file @
f5c87a7f
...
...
@@ -220,8 +220,8 @@ void do_help(void)
#endif
#ifdef ENABLE_MOUSE
}
else
if
(
kbinput
==
KEY_MOUSE
)
{
int
dummy_
x
,
dummy_
y
;
get_mouseinput
(
&
dummy_
x
,
&
dummy_
y
,
TRUE
);
int
dummy_
row
,
dummy_
col
;
get_mouseinput
(
&
dummy_
row
,
&
dummy_
col
,
TRUE
);
#endif
}
else
if
(
func
==
do_exit
)
{
/* Exit from the help viewer. */
...
...
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
f5c87a7f
...
...
@@ -1565,7 +1565,7 @@ void unbound_key(int code)
int
do_mouse
(
void
)
{
int
click_row
,
click_col
;
int
retval
=
get_mouseinput
(
&
click_
col
,
&
click_
row
,
TRUE
);
int
retval
=
get_mouseinput
(
&
click_
row
,
&
click_
col
,
TRUE
);
/* If the click is wrong or already handled, we're done. */
if
(
retval
!=
0
)
...
...
This diff is collapsed.
Click to expand it.
src/prompt.c
View file @
f5c87a7f
...
...
@@ -33,7 +33,7 @@ static size_t statusbar_x = HIGHEST_POSITIVE;
int
do_statusbar_mouse
(
void
)
{
int
click_row
,
click_col
;
int
retval
=
get_mouseinput
(
&
click_
col
,
&
click_
row
,
TRUE
);
int
retval
=
get_mouseinput
(
&
click_
row
,
&
click_
col
,
TRUE
);
/* We can click on the statusbar window text to move the cursor. */
if
(
retval
==
0
&&
wmouse_trafo
(
bottomwin
,
&
click_row
,
&
click_col
,
FALSE
))
{
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
f5c87a7f
...
...
@@ -629,7 +629,7 @@ int get_control_kbinput(int kbinput);
int
*
get_verbatim_kbinput
(
WINDOW
*
win
,
size_t
*
kbinput_len
);
int
*
parse_verbatim_kbinput
(
WINDOW
*
win
,
size_t
*
count
);
#ifdef ENABLE_MOUSE
int
get_mouseinput
(
int
*
mouse_
x
,
int
*
mouse_
y
,
bool
allow_shortcuts
);
int
get_mouseinput
(
int
*
mouse_
row
,
int
*
mouse_
col
,
bool
allow_shortcuts
);
#endif
const
sc
*
get_shortcut
(
int
*
kbinput
);
void
blank_row
(
WINDOW
*
win
,
int
y
,
int
x
,
int
n
);
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
f5c87a7f
...
...
@@ -1597,7 +1597,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *count)
* it's been handled by putting back keystrokes that need to be handled.
* or 2 if it's been ignored. Assume that KEY_MOUSE has already been
* read in. */
int
get_mouseinput
(
int
*
mouse_
x
,
int
*
mouse_
y
,
bool
allow_shortcuts
)
int
get_mouseinput
(
int
*
mouse_
y
,
int
*
mouse_
x
,
bool
allow_shortcuts
)
{
MEVENT
mevent
;
bool
in_bottomwin
;
...
...
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