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
57265148
Commit
57265148
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
linting: drop messages for other files when configured for one buffer
This fixes
https://savannah.gnu.org/bugs/?53445
.
parent
88234c90
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/text.c
+6
-2
src/text.c
with
6 additions
and
2 deletions
+6
-2
src/text.c
View file @
57265148
...
...
@@ -3198,19 +3198,21 @@ void do_linter(void)
while
(
TRUE
)
{
int
kbinput
;
functionptrtype
func
;
#ifdef ENABLE_MULTIBUFFER
struct
stat
lintfileinfo
;
if
(
stat
(
curlint
->
filename
,
&
lintfileinfo
)
!=
-
1
&&
openfile
->
current_stat
->
st_ino
!=
lintfileinfo
.
st_ino
)
{
openfilestruct
*
tmpof
=
openfile
;
#ifdef ENABLE_MULTIBUFFER
while
(
tmpof
!=
openfile
->
next
)
{
if
(
tmpof
->
current_stat
->
st_ino
==
lintfileinfo
.
st_ino
)
break
;
tmpof
=
tmpof
->
next
;
}
#endif
if
(
tmpof
->
current_stat
->
st_ino
!=
lintfileinfo
.
st_ino
)
{
#ifdef ENABLE_MULTIBUFFER
char
*
msg
=
charalloc
(
1024
+
strlen
(
curlint
->
filename
));
int
i
;
...
...
@@ -3225,6 +3227,7 @@ void do_linter(void)
}
else
if
(
i
==
1
)
{
open_buffer
(
curlint
->
filename
,
TRUE
);
}
else
{
#endif
char
*
dontwantfile
=
mallocstrcpy
(
NULL
,
curlint
->
filename
);
lintstruct
*
restlint
=
NULL
;
...
...
@@ -3259,10 +3262,11 @@ void do_linter(void)
free
(
dontwantfile
);
}
#ifdef ENABLE_MULTIBUFFER
}
else
openfile
=
tmpof
;
#endif
}
#endif
/* ENABLE_MULTIBUFFER */
if
(
tmplint
!=
curlint
)
{
goto_line_posx
(
curlint
->
lineno
,
curlint
->
colno
-
1
);
...
...
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