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
af7201f9
Commit
af7201f9
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: reshuffle three variables
parent
2f80193d
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
+6
-4
src/winio.c
with
6 additions
and
4 deletions
+6
-4
src/winio.c
View file @
af7201f9
...
...
@@ -2350,16 +2350,14 @@ void edit_draw(filestruct *fileptr, const char *converted,
for
(;
varnish
!=
NULL
;
varnish
=
varnish
->
next
)
{
size_t
index
=
0
;
/* Where in the line we currently begin looking for a match. */
int
linelen
;
/* The length of the line we are currently looking at. */
int
start_col
;
/* The starting column of a piece to paint. Zero-based. */
int
paintlen
=
0
;
/* The number of characters to paint. */
const
char
*
thetext
;
/* The place in converted from where painting starts. */
regmatch_t
match
,
startmatch
,
endmatch
;
/*
M
atch positions of
the full, start and end
regex
es
. */
regmatch_t
match
;
/*
The m
atch positions of
a single-line
regex. */
/* Two notes about regexec(). A return value of zero means
* that there is a match. Also, rm_eo is the first
...
...
@@ -2419,6 +2417,10 @@ void edit_draw(filestruct *fileptr, const char *converted,
/* The first line before fileptr that matches 'start'. */
const
filestruct
*
end_line
=
fileptr
;
/* The line that matches 'end'. */
regmatch_t
startmatch
,
endmatch
;
/* The match positions of the start and end regexes. */
int
linelen
;
/* The length of the line we are currently looking at. */
/* First see if the multidata was maybe already calculated. */
if
(
fileptr
->
multidata
[
varnish
->
id
]
==
CNONE
)
...
...
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