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
4e03a245
Commit
4e03a245
authored
7 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: adjust two comments, and correct and a few cosmetic mistakes
parent
028d12f4
master
feature/match-parens
refactor/readbility
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/global.c
+2
-3
src/global.c
src/history.c
+3
-3
src/history.c
src/rcfile.c
+0
-1
src/rcfile.c
with
5 additions
and
7 deletions
+5
-7
src/global.c
View file @
4e03a245
...
...
@@ -1850,9 +1850,10 @@ void thanks_for_all_the_fish(void)
}
#endif
/* !DISABLE_COLOR */
#ifdef ENABLE_HISTORIES
/* Free the search
and
replace history lists. */
/* Free the search
,
replace
, and execute
history lists. */
free_filestruct
(
searchtop
);
free_filestruct
(
replacetop
);
free_filestruct
(
executetop
);
#endif
/* Free the list of functions. */
while
(
allfuncs
!=
NULL
)
{
...
...
@@ -1866,8 +1867,6 @@ void thanks_for_all_the_fish(void)
sclist
=
sclist
->
next
;
free
(
s
);
}
#ifdef ENABLE_NANORC
free
(
homedir
);
#endif
}
#endif
/* DEBUG */
This diff is collapsed.
Click to expand it.
src/history.c
View file @
4e03a245
...
...
@@ -294,9 +294,9 @@ void load_history(void)
strerror
(
errno
));
}
}
else
{
/* Load the t
wo
history lists -- first
the
search
history, then
* the
replace history
-- from
the
oldest entry to
the
newest.
*
The two lists are separated by
an empty line. */
/* Load the t
hree
history lists -- first search
, then replace,
* the
n execute
-- from oldest entry to newest.
Between two
*
lists there is
an empty line. */
filestruct
**
history
=
&
search_history
;
char
*
line
=
NULL
;
size_t
buf_len
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/rcfile.c
View file @
4e03a245
...
...
@@ -872,7 +872,6 @@ void pick_up_name(const char *kind, char *ptr, char **storage)
}
*
storage
=
mallocstrcpy
(
*
storage
,
ptr
);
}
#endif
/* !DISABLE_COLOR */
...
...
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