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
55b14035
Commit
55b14035
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: adjust some whitespace and a comment
parent
9d5ee166
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/winio.c
+4
-6
src/winio.c
with
4 additions
and
6 deletions
+4
-6
src/winio.c
View file @
55b14035
...
...
@@ -2940,15 +2940,13 @@ void edit_refresh(void)
/* Figure out what maxrows should really be. */
compute_maxrows
();
/* If the current line is out of view, get it back on screen. */
if
(
openfile
->
current
->
lineno
<
openfile
->
edittop
->
lineno
||
openfile
->
current
->
lineno
>=
openfile
->
edittop
->
lineno
+
maxrows
)
{
openfile
->
current
->
lineno
>=
openfile
->
edittop
->
lineno
+
maxrows
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"edit_refresh(): line = %ld, edittop %ld + maxrows %d
\n
"
,
(
long
)
openfile
->
current
->
lineno
,
(
long
)
openfile
->
edittop
->
lineno
,
maxrows
);
#endif
/* Make sure the current line is on the screen. */
adjust_viewport
((
focusing
||
!
ISSET
(
SMOOTH_SCROLL
))
?
CENTERING
:
STATIONARY
);
}
...
...
@@ -2960,7 +2958,7 @@ void edit_refresh(void)
for
(
nlines
=
0
;
nlines
<
editwinrows
&&
foo
!=
NULL
;
nlines
++
)
{
nlines
+=
update_line
(
foo
,
(
foo
==
openfile
->
current
)
?
openfile
->
current_x
:
0
);
openfile
->
current_x
:
0
);
foo
=
foo
->
next
;
}
...
...
@@ -3014,7 +3012,7 @@ void adjust_viewport(update_type manner)
while
(
goal
>
0
&&
openfile
->
edittop
->
prev
!=
NULL
)
{
openfile
->
edittop
=
openfile
->
edittop
->
prev
;
goal
--
;
goal
--
;
#ifndef NANO_TINY
if
(
ISSET
(
SOFTWRAP
))
{
goal
-=
strlenpt
(
openfile
->
edittop
->
data
)
/
editwincols
;
...
...
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