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
7373e4cd
Commit
7373e4cd
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: fix compilation when configured with --disable-wrapping
parent
5f30775d
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/text.c
+6
-3
src/text.c
with
6 additions
and
3 deletions
+6
-3
src/text.c
View file @
7373e4cd
...
...
@@ -3724,7 +3724,9 @@ void complete_a_word(void)
int
start_of_shard
,
shard_length
=
0
;
int
i
=
0
,
j
=
0
;
completion_word
*
some_word
;
#ifndef DISABLE_WRAPPING
bool
was_set_wrapping
=
!
ISSET
(
NO_WRAP
);
#endif
/* If this is a fresh completion attempt... */
if
(
pletion_line
==
NULL
)
{
...
...
@@ -3827,19 +3829,20 @@ void complete_a_word(void)
some_word
->
next
=
list_of_completions
;
list_of_completions
=
some_word
;
#ifndef DISABLE_WRAPPING
/* Temporarily disable wrapping so only one undo item is added. */
SET
(
NO_WRAP
);
#endif
/* Inject the completion into the buffer. */
do_output
(
&
completion
[
shard_length
],
strlen
(
completion
)
-
shard_length
,
FALSE
);
#ifndef DISABLE_WRAPPING
/* If needed, reenable wrapping and wrap the current line. */
if
(
was_set_wrapping
)
{
UNSET
(
NO_WRAP
);
do_wrap
(
openfile
->
current
);
}
#endif
/* Set the position for a possible next search attempt. */
pletion_x
=
++
i
;
...
...
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