Skip to content
GitLab
Menu
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
d7d3a876
Commit
d7d3a876
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: elide an unneeded variable
parent
c03ce956
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/browser.c
+2
-4
src/browser.c
with
2 additions
and
4 deletions
+2
-4
src/browser.c
View file @
d7d3a876
...
...
@@ -99,8 +99,6 @@ char *do_browser(char *path, DIR *dir)
while
(
TRUE
)
{
struct
stat
st
;
int
i
;
size_t
fileline
=
selected
/
width
;
/* The line number the selected file is on. */
char
*
new_path
;
/* The path we switch to at the "Go to Directory"
* prompt. */
...
...
@@ -146,7 +144,7 @@ char *do_browser(char *path, DIR *dir)
wmouse_trafo
(
edit
,
&
mouse_y
,
&
mouse_x
,
FALSE
))
{
/* longest is the width of each column. There
* are two spaces between each column. */
selected
=
(
fileline
/
editwinrows
)
*
(
editwinrows
*
width
)
+
selected
=
selected
-
selected
%
(
editwinrows
*
width
)
+
(
mouse_y
*
width
)
+
(
mouse_x
/
(
longest
+
2
));
/* If they clicked beyond the end of a row,
...
...
@@ -526,7 +524,7 @@ void browser_refresh(void)
wmove
(
edit
,
0
,
0
);
i
=
width
*
editwinrows
*
((
selected
/
width
)
/
editwinrows
);
i
=
selected
-
selected
%
(
editwinrows
*
width
);
for
(;
i
<
filelist_len
&&
line
<
editwinrows
;
i
++
)
{
struct
stat
st
;
...
...
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