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
b5346bcc
Commit
b5346bcc
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: rename a variable, to avoid a possible confusion
Or rather, to make searching for the PRESERVE option easier.
parent
7c3c3cbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/nano.c
+5
-5
src/nano.c
with
5 additions
and
5 deletions
+5
-5
src/nano.c
View file @
b5346bcc
...
...
@@ -1574,8 +1574,8 @@ int do_input(bool allow_funcs)
/* The input buffer for actual characters. */
static
size_t
depth
=
0
;
/* The length of the input buffer. */
bool
p
re
serve
=
FALSE
;
/* Whether to
pre
serve the contents of the cutbuffer. */
bool
re
tain_cuts
=
FALSE
;
/* Whether to
con
serve the
current
contents of the cutbuffer. */
const
sc
*
s
;
bool
have_shortcut
;
...
...
@@ -1680,7 +1680,7 @@ int do_input(bool allow_funcs)
||
s
->
scfunc
==
do_copy_text
||
s
->
scfunc
==
do_cut_till_eof
#endif
)
p
re
serve
=
TRUE
;
re
tain_cuts
=
TRUE
;
#ifdef ENABLE_WORDCOMPLETION
if
(
s
->
scfunc
!=
complete_a_word
)
...
...
@@ -1690,7 +1690,7 @@ int do_input(bool allow_funcs)
if
(
s
->
scfunc
==
do_toggle_void
)
{
do_toggle
(
s
->
toggle
);
if
(
s
->
toggle
!=
CUT_FROM_CURSOR
)
p
re
serve
=
TRUE
;
re
tain_cuts
=
TRUE
;
}
else
#endif
{
...
...
@@ -1725,7 +1725,7 @@ int do_input(bool allow_funcs)
/* If we aren't cutting or copying text, and the key wasn't a toggle,
* blow away the text in the cutbuffer upon the next cutting action. */
if
(
!
p
re
serve
)
if
(
!
re
tain_cuts
)
cutbuffer_reset
();
return
input
;
...
...
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