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
2fa93ae9
Commit
2fa93ae9
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename two variables to make more sense
parent
c8c6340c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+9
-8
src/winio.c
with
9 additions
and
8 deletions
+9
-8
src/winio.c
View file @
2fa93ae9
...
...
@@ -2810,21 +2810,22 @@ void compute_maxrows(void)
{
#ifndef NANO_TINY
if
(
ISSET
(
SOFTWRAP
))
{
int
n
;
filestruct
*
foo
=
openfile
->
edittop
;
int
screenrow
;
filestruct
*
line
=
openfile
->
edittop
;
maxrows
=
0
;
for
(
n
=
0
;
n
<
editwinrows
&&
foo
;
n
++
)
{
for
(
screenrow
=
0
;
screenrow
<
editwinrows
&&
line
!=
NULL
;
screenrow
++
)
{
screenrow
+=
strlenpt
(
line
->
data
)
/
editwincols
;
line
=
line
->
next
;
maxrows
++
;
n
+=
strlenpt
(
foo
->
data
)
/
editwincols
;
foo
=
foo
->
next
;
}
if
(
n
<
editwinrows
)
maxrows
+=
editwinrows
-
n
;
if
(
screenrow
<
editwinrows
)
maxrows
+=
editwinrows
-
screenrow
;
#ifdef DEBUG
fprintf
(
stderr
,
"compute
_maxrows()
: maxrows = %d
\n
"
,
maxrows
);
fprintf
(
stderr
,
"
re
compute
d
: maxrows = %d
\n
"
,
maxrows
);
#endif
}
else
#endif
/* !NANO_TINY */
...
...
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