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
5f4d7596
Commit
5f4d7596
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: fix compilation when configured with --enable-tiny
Reported-by:
Mike Scalora
<
mike@scalora.org
>
parent
ec7b20ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+5
-2
src/text.c
with
5 additions
and
2 deletions
+5
-2
src/text.c
View file @
5f4d7596
...
...
@@ -137,10 +137,13 @@ void do_deletion(undo_type action)
strlen
(
openfile
->
current
->
data
)
+
strlen
(
foo
->
data
)
+
1
);
strcat
(
openfile
->
current
->
data
,
foo
->
data
);
/* Adjust the file size
, and remember it for a possible redo
. */
openfile
->
current_undo
->
newsize
=
--
(
openfile
->
totsize
)
;
/* Adjust the file size. */
openfile
->
totsize
--
;
#ifndef NANO_TINY
/* Remember the new file size for a possible redo. */
openfile
->
current_undo
->
newsize
=
openfile
->
totsize
;
if
(
openfile
->
mark_set
&&
openfile
->
mark_begin
==
openfile
->
current
->
next
)
{
openfile
->
mark_begin
=
openfile
->
current
;
...
...
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