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
88234c90
Commit
88234c90
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: adjust the indentation after the previous changes
parent
02719ec4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/text.c
+58
-58
src/text.c
with
58 additions
and
58 deletions
+58
-58
src/text.c
View file @
88234c90
...
...
@@ -3199,69 +3199,69 @@ void do_linter(void)
int
kbinput
;
functionptrtype
func
;
#ifdef ENABLE_MULTIBUFFER
struct
stat
lintfileinfo
;
struct
stat
lintfileinfo
;
if
(
stat
(
curlint
->
filename
,
&
lintfileinfo
)
!=
-
1
&&
openfile
->
current_stat
->
st_ino
!=
lintfileinfo
.
st_ino
)
{
openfilestruct
*
tmpof
=
openfile
;
if
(
stat
(
curlint
->
filename
,
&
lintfileinfo
)
!=
-
1
&&
openfile
->
current_stat
->
st_ino
!=
lintfileinfo
.
st_ino
)
{
openfilestruct
*
tmpof
=
openfile
;
while
(
tmpof
!=
openfile
->
next
)
{
if
(
tmpof
->
current_stat
->
st_ino
==
lintfileinfo
.
st_ino
)
break
;
tmpof
=
tmpof
->
next
;
}
if
(
tmpof
->
current_stat
->
st_ino
!=
lintfileinfo
.
st_ino
)
{
char
*
msg
=
charalloc
(
1024
+
strlen
(
curlint
->
filename
));
int
i
;
sprintf
(
msg
,
_
(
"This message is for unopened file %s,"
" open it in a new buffer?"
),
curlint
->
filename
);
i
=
do_yesno_prompt
(
FALSE
,
msg
);
free
(
msg
);
if
(
i
==
-
1
)
{
statusbar
(
_
(
"Cancelled"
));
goto
free_lints_and_return
;
}
else
if
(
i
==
1
)
{
open_buffer
(
curlint
->
filename
,
TRUE
);
while
(
tmpof
!=
openfile
->
next
)
{
if
(
tmpof
->
current_stat
->
st_ino
==
lintfileinfo
.
st_ino
)
break
;
tmpof
=
tmpof
->
next
;
}
if
(
tmpof
->
current_stat
->
st_ino
!=
lintfileinfo
.
st_ino
)
{
char
*
msg
=
charalloc
(
1024
+
strlen
(
curlint
->
filename
));
int
i
;
sprintf
(
msg
,
_
(
"This message is for unopened file %s,"
" open it in a new buffer?"
),
curlint
->
filename
);
i
=
do_yesno_prompt
(
FALSE
,
msg
);
free
(
msg
);
if
(
i
==
-
1
)
{
statusbar
(
_
(
"Cancelled"
));
goto
free_lints_and_return
;
}
else
if
(
i
==
1
)
{
open_buffer
(
curlint
->
filename
,
TRUE
);
}
else
{
char
*
dontwantfile
=
mallocstrcpy
(
NULL
,
curlint
->
filename
);
lintstruct
*
restlint
=
NULL
;
while
(
curlint
!=
NULL
)
{
if
(
strcmp
(
curlint
->
filename
,
dontwantfile
)
==
0
)
{
if
(
curlint
==
lints
)
lints
=
curlint
->
next
;
else
curlint
->
prev
->
next
=
curlint
->
next
;
if
(
curlint
->
next
!=
NULL
)
curlint
->
next
->
prev
=
curlint
->
prev
;
tmplint
=
curlint
;
curlint
=
curlint
->
next
;
free
(
tmplint
->
msg
);
free
(
tmplint
->
filename
);
free
(
tmplint
);
}
else
{
char
*
dontwantfile
=
mallocstrcpy
(
NULL
,
curlint
->
filename
);
lintstruct
*
restlint
=
NULL
;
while
(
curlint
!=
NULL
)
{
if
(
strcmp
(
curlint
->
filename
,
dontwantfile
)
==
0
)
{
if
(
curlint
==
lints
)
lints
=
curlint
->
next
;
else
curlint
->
prev
->
next
=
curlint
->
next
;
if
(
curlint
->
next
!=
NULL
)
curlint
->
next
->
prev
=
curlint
->
prev
;
tmplint
=
curlint
;
curlint
=
curlint
->
next
;
free
(
tmplint
->
msg
);
free
(
tmplint
->
filename
);
free
(
tmplint
);
}
else
{
if
(
restlint
==
NULL
)
restlint
=
curlint
;
curlint
=
curlint
->
next
;
}
}
if
(
restlint
==
NULL
)
restlint
=
curlint
;
curlint
=
curlint
->
next
;
}
}
if
(
restlint
==
NULL
)
{
statusbar
(
_
(
"No more errors in unopened files, cancelling"
));
napms
(
2400
);
break
;
}
else
{
curlint
=
restlint
;
continue
;
}
if
(
restlint
==
NULL
)
{
statusbar
(
_
(
"No more errors in unopened files, cancelling"
));
napms
(
2400
);
break
;
}
else
{
curlint
=
restlint
;
continue
;
}
free
(
dontwantfile
);
}
}
else
openfile
=
tmpof
;
}
free
(
dontwantfile
);
}
}
else
openfile
=
tmpof
;
}
#endif
/* ENABLE_MULTIBUFFER */
if
(
tmplint
!=
curlint
)
{
...
...
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