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
8b86af3f
Commit
8b86af3f
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: adjust the indentation after the previous change
parent
21a59780
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/files.c
+12
-12
src/files.c
with
12 additions
and
12 deletions
+12
-12
src/files.c
View file @
8b86af3f
...
...
@@ -2863,9 +2863,9 @@ void save_history(void)
char
*
searchhist
;
FILE
*
hist
;
/*
Don't sav
e unchanged or empty
histories
. */
/*
If the histories ar
e unchanged or empty
, don't bother saving them
. */
if
(
!
history_has_changed
()
||
(
searchbot
->
lineno
==
1
&&
replacebot
->
lineno
==
1
))
replacebot
->
lineno
==
1
))
return
;
searchhist
=
histfilename
();
...
...
@@ -2873,23 +2873,23 @@ void save_history(void)
if
(
searchhist
==
NULL
)
return
;
hist
=
fopen
(
searchhist
,
"wb"
);
hist
=
fopen
(
searchhist
,
"wb"
);
if
(
hist
==
NULL
)
fprintf
(
stderr
,
_
(
"Error writing %s: %s
\n
"
),
searchhist
,
if
(
hist
==
NULL
)
fprintf
(
stderr
,
_
(
"Error writing %s: %s
\n
"
),
searchhist
,
strerror
(
errno
));
else
{
else
{
/* Don't allow others to read or write the history file. */
chmod
(
searchhist
,
S_IRUSR
|
S_IWUSR
);
chmod
(
searchhist
,
S_IRUSR
|
S_IWUSR
);
if
(
!
writehist
(
hist
,
searchage
)
||
!
writehist
(
hist
,
replaceage
))
fprintf
(
stderr
,
_
(
"Error writing %s: %s
\n
"
),
searchhist
,
if
(
!
writehist
(
hist
,
searchage
)
||
!
writehist
(
hist
,
replaceage
))
fprintf
(
stderr
,
_
(
"Error writing %s: %s
\n
"
),
searchhist
,
strerror
(
errno
));
fclose
(
hist
);
}
fclose
(
hist
);
}
free
(
searchhist
);
free
(
searchhist
);
}
/* Save the recorded last file positions to ~/.nano/filepos_history. */
...
...
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