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
f7d320d9
Commit
f7d320d9
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a function, to show it refers to screen rows
parent
0208ae71
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/browser.c
+1
-1
src/browser.c
src/proto.h
+1
-1
src/proto.h
src/winio.c
+11
-11
src/winio.c
with
13 additions
and
13 deletions
+13
-13
src/browser.c
View file @
f7d320d9
...
...
@@ -528,7 +528,7 @@ void browser_refresh(void)
the_column
=
col
;
}
blank_
line
(
edit
,
line
,
col
,
longest
);
blank_
row
(
edit
,
line
,
col
,
longest
);
/* If the name is too long, we display something like "...ename". */
if
(
dots
)
...
...
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
f7d320d9
...
...
@@ -727,7 +727,7 @@ int *parse_verbatim_kbinput(WINDOW *win, size_t *count);
int
get_mouseinput
(
int
*
mouse_x
,
int
*
mouse_y
,
bool
allow_shortcuts
);
#endif
const
sc
*
get_shortcut
(
int
*
kbinput
);
void
blank_
line
(
WINDOW
*
win
,
int
y
,
int
x
,
int
n
);
void
blank_
row
(
WINDOW
*
win
,
int
y
,
int
x
,
int
n
);
void
blank_titlebar
(
void
);
void
blank_edit
(
void
);
void
blank_statusbar
(
void
);
...
...
This diff is collapsed.
Click to expand it.
src/winio.c
View file @
f7d320d9
...
...
@@ -1726,7 +1726,7 @@ const sc *get_shortcut(int *kbinput)
/* Move to (x, y) in win, and display a line of n spaces with the
* current attributes. */
void
blank_
line
(
WINDOW
*
win
,
int
y
,
int
x
,
int
n
)
void
blank_
row
(
WINDOW
*
win
,
int
y
,
int
x
,
int
n
)
{
wmove
(
win
,
y
,
x
);
...
...
@@ -1737,23 +1737,23 @@ void blank_line(WINDOW *win, int y, int x, int n)
/* Blank the first line of the top portion of the window. */
void
blank_titlebar
(
void
)
{
blank_
line
(
topwin
,
0
,
0
,
COLS
);
blank_
row
(
topwin
,
0
,
0
,
COLS
);
}
/* Blank all the lines of the middle portion of the window, i.e. the
* edit window. */
void
blank_edit
(
void
)
{
int
i
;
int
row
;
for
(
i
=
0
;
i
<
editwinrows
;
i
++
)
blank_
line
(
edit
,
i
,
0
,
COLS
);
for
(
row
=
0
;
row
<
editwinrows
;
row
++
)
blank_
row
(
edit
,
row
,
0
,
COLS
);
}
/* Blank the first line of the bottom portion of the window. */
void
blank_statusbar
(
void
)
{
blank_
line
(
bottomwin
,
0
,
0
,
COLS
);
blank_
row
(
bottomwin
,
0
,
0
,
COLS
);
}
/* If the NO_HELP flag isn't set, blank the last two lines of the bottom
...
...
@@ -1761,8 +1761,8 @@ void blank_statusbar(void)
void
blank_bottombars
(
void
)
{
if
(
!
ISSET
(
NO_HELP
)
&&
LINES
>
4
)
{
blank_
line
(
bottomwin
,
1
,
0
,
COLS
);
blank_
line
(
bottomwin
,
2
,
0
,
COLS
);
blank_
row
(
bottomwin
,
1
,
0
,
COLS
);
blank_
row
(
bottomwin
,
2
,
0
,
COLS
);
}
}
...
...
@@ -2682,7 +2682,7 @@ int update_line(filestruct *fileptr, size_t index)
return
1
;
/* First, blank out the line. */
blank_
line
(
edit
,
line
,
0
,
COLS
);
blank_
row
(
edit
,
line
,
0
,
COLS
);
/* Next, convert variables that index the line to their equivalent
* positions in the expanded line. */
...
...
@@ -2721,7 +2721,7 @@ int update_line(filestruct *fileptr, size_t index)
#ifdef DEBUG
fprintf
(
stderr
,
"update_line(): softwrap code, moving to %d index %lu
\n
"
,
line
,
(
unsigned
long
)
index
);
#endif
blank_
line
(
edit
,
line
,
0
,
COLS
);
blank_
row
(
edit
,
line
,
0
,
COLS
);
/* Expand the line, replacing tabs with spaces, and control
* characters with their displayed forms. */
...
...
@@ -2961,7 +2961,7 @@ void edit_refresh(void)
}
while
(
row
<
editwinrows
)
blank_
line
(
edit
,
row
++
,
0
,
COLS
);
blank_
row
(
edit
,
row
++
,
0
,
COLS
);
reset_cursor
();
wnoutrefresh
(
edit
);
...
...
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