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
7013039c
Commit
7013039c
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable, for consistency
parent
925ad639
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/move.c
+8
-8
src/move.c
with
8 additions
and
8 deletions
+8
-8
src/move.c
View file @
7013039c
...
...
@@ -149,7 +149,7 @@ void do_page_down(void)
* afterwards. */
void
do_para_begin
(
bool
allow_update
)
{
filestruct
*
current
_save
=
openfile
->
current
;
filestruct
*
was_
current
=
openfile
->
current
;
if
(
openfile
->
current
!=
openfile
->
fileage
)
{
do
{
...
...
@@ -161,7 +161,7 @@ void do_para_begin(bool allow_update)
openfile
->
current_x
=
0
;
if
(
allow_update
)
edit_redraw
(
current
_save
);
edit_redraw
(
was_
current
);
}
/* Move up to the beginning of the last beginning-of-paragraph line
...
...
@@ -179,7 +179,7 @@ void do_para_begin_void(void)
* paragraph or isn't in a paragraph. */
void
do_para_end
(
bool
allow_update
)
{
filestruct
*
current
_save
=
openfile
->
current
;
filestruct
*
was_
current
=
openfile
->
current
;
while
(
openfile
->
current
!=
openfile
->
filebot
&&
!
inpar
(
openfile
->
current
))
...
...
@@ -199,7 +199,7 @@ void do_para_end(bool allow_update)
openfile
->
current_x
=
strlen
(
openfile
->
current
->
data
);
if
(
allow_update
)
edit_redraw
(
current
_save
);
edit_redraw
(
was_
current
);
}
/* Move down to the beginning of the last line of the current paragraph.
...
...
@@ -256,7 +256,7 @@ void do_next_block(void)
* screen afterwards. */
void
do_prev_word
(
bool
allow_punct
,
bool
allow_update
)
{
filestruct
*
current
_save
=
openfile
->
current
;
filestruct
*
was_
current
=
openfile
->
current
;
bool
seen_a_word
=
FALSE
,
step_forward
=
FALSE
;
assert
(
openfile
->
current
!=
NULL
&&
openfile
->
current
->
data
!=
NULL
);
...
...
@@ -296,7 +296,7 @@ void do_prev_word(bool allow_punct, bool allow_update)
/* If allow_update is TRUE, update the screen. */
if
(
allow_update
)
{
focusing
=
FALSE
;
edit_redraw
(
current
_save
);
edit_redraw
(
was_
current
);
}
}
...
...
@@ -313,7 +313,7 @@ void do_prev_word_void(void)
* otherwise. */
bool
do_next_word
(
bool
allow_punct
,
bool
allow_update
)
{
filestruct
*
current
_save
=
openfile
->
current
;
filestruct
*
was_
current
=
openfile
->
current
;
bool
started_on_word
=
is_word_mbchar
(
openfile
->
current
->
data
+
openfile
->
current_x
,
allow_punct
);
bool
seen_space
=
!
started_on_word
;
...
...
@@ -348,7 +348,7 @@ bool do_next_word(bool allow_punct, bool allow_update)
/* If allow_update is TRUE, update the screen. */
if
(
allow_update
)
{
focusing
=
FALSE
;
edit_redraw
(
current
_save
);
edit_redraw
(
was_
current
);
}
/* Return whether we started on a word. */
...
...
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