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
03148804
Commit
03148804
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: scrap some debugging stuff
parent
3b86c7a1
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/winio.c
+2
-15
src/winio.c
with
2 additions
and
15 deletions
+2
-15
src/winio.c
View file @
03148804
...
...
@@ -2515,9 +2515,6 @@ void edit_draw(filestruct *fileptr, const char *converted,
if
(
end_line
!=
fileptr
)
{
mvwaddnstr
(
edit
,
row
,
margin
,
converted
,
-
1
);
fileptr
->
multidata
[
varnish
->
id
]
=
CWHOLELINE
;
#ifdef DEBUG
fprintf
(
stderr
,
" Marking for id %i row %i as CWHOLELINE
\n
"
,
varnish
->
id
,
row
);
#endif
goto
tail_of_loop
;
}
...
...
@@ -2528,9 +2525,7 @@ void edit_draw(filestruct *fileptr, const char *converted,
mvwaddnstr
(
edit
,
row
,
margin
,
converted
,
paintlen
);
}
fileptr
->
multidata
[
varnish
->
id
]
=
CBEGINBEFORE
;
#ifdef DEBUG
fprintf
(
stderr
,
" Marking for id %i row %i as CBEGINBEFORE
\n
"
,
varnish
->
id
,
row
);
#endif
step_two:
/* Second step: look for starts on this line, but begin
* looking only after an end match, if there is one. */
...
...
@@ -2568,9 +2563,6 @@ void edit_draw(filestruct *fileptr, const char *converted,
thetext
,
paintlen
);
fileptr
->
multidata
[
varnish
->
id
]
=
CSTARTENDHERE
;
#ifdef DEBUG
fprintf
(
stderr
,
" Marking for id %i row %i as CSTARTENDHERE
\n
"
,
varnish
->
id
,
row
);
#endif
}
index
=
endmatch
.
rm_eo
;
/* If both start and end match are anchors, advance. */
...
...
@@ -2596,14 +2588,9 @@ void edit_draw(filestruct *fileptr, const char *converted,
break
;
}
/* Paint the rest of the line. */
/* Paint the rest of the line
, and we're done
. */
mvwaddnstr
(
edit
,
row
,
margin
+
start_col
,
thetext
,
-
1
);
fileptr
->
multidata
[
varnish
->
id
]
=
CENDAFTER
;
#ifdef DEBUG
fprintf
(
stderr
,
" Marking for id %i row %i as CENDAFTER
\n
"
,
varnish
->
id
,
row
);
#endif
/* We've painted to the end of the line, so don't
* bother checking for any more starts. */
break
;
}
tail_of_loop:
...
...
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