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
df41114e
Commit
df41114e
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: drop some old debugging code plus a superfluous comment
parent
dc3618a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/cut.c
+0
-6
src/cut.c
src/proto.h
+0
-1
src/proto.h
src/utils.c
+0
-11
src/utils.c
with
0 additions
and
18 deletions
+0
-18
src/cut.c
View file @
df41114e
...
...
@@ -284,16 +284,10 @@ void do_uncut_text(void)
/* Set the desired x position to where the pasted text ends. */
openfile
->
placewewant
=
xplustabs
();
/* Mark the file as modified. */
set_modified
();
refresh_needed
=
TRUE
;
#ifdef ENABLE_COLOR
check_the_multis
(
openfile
->
current
);
#endif
#ifdef DEBUG
dump_filestruct_reverse
();
#endif
}
This diff is collapsed.
Click to expand it.
src/proto.h
View file @
df41114e
...
...
@@ -616,7 +616,6 @@ filestruct *fsfromline(ssize_t lineno);
#endif
#ifdef DEBUG
void
dump_filestruct
(
const
filestruct
*
inptr
);
void
dump_filestruct_reverse
(
void
);
#endif
/* Most functions in winio.c. */
...
...
This diff is collapsed.
Click to expand it.
src/utils.c
View file @
df41114e
...
...
@@ -587,15 +587,4 @@ void dump_filestruct(const filestruct *inptr)
inptr
=
inptr
->
next
;
}
}
/* Dump the current buffer to stderr in reverse. */
void
dump_filestruct_reverse
(
void
)
{
const
filestruct
*
fileptr
=
openfile
->
filebot
;
while
(
fileptr
!=
NULL
)
{
fprintf
(
stderr
,
"(%zd) %s
\n
"
,
fileptr
->
lineno
,
fileptr
->
data
);
fileptr
=
fileptr
->
prev
;
}
}
#endif
/* DEBUG */
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