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
b4737072
Commit
b4737072
authored
8 years ago
by
Benno Schulenberg
Browse files
Options
Download
Email Patches
Plain Diff
tweaks: delete an element that is always FALSE and never used
parent
8507dd4b
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/color.c
+0
-2
src/color.c
src/nano.c
+0
-4
src/nano.c
src/nano.h
+0
-2
src/nano.h
with
0 additions
and
8 deletions
+0
-8
src/color.c
View file @
b4737072
...
...
@@ -62,12 +62,10 @@ void set_colorpairs(void)
if
(
background
==
-
1
&&
!
using_defaults
)
background
=
COLOR_BLACK
;
init_pair
(
i
+
1
,
foreground
,
background
);
interface_color_pair
[
i
].
bright
=
FALSE
;
interface_color_pair
[
i
].
pairnum
=
COLOR_PAIR
(
i
+
1
)
|
(
bright
?
A_BOLD
:
A_NORMAL
);
}
else
{
interface_color_pair
[
i
].
bright
=
FALSE
;
if
(
i
!=
FUNCTION_TAG
)
interface_color_pair
[
i
].
pairnum
=
hilite_attribute
;
else
...
...
This diff is collapsed.
Click to expand it.
src/nano.c
View file @
b4737072
...
...
@@ -2510,10 +2510,6 @@ int main(int argc, char **argv)
interface_color_pair
[
STATUS_BAR
].
pairnum
=
hilite_attribute
;
interface_color_pair
[
KEY_COMBO
].
pairnum
=
hilite_attribute
;
interface_color_pair
[
FUNCTION_TAG
].
pairnum
=
A_NORMAL
;
interface_color_pair
[
TITLE_BAR
].
bright
=
FALSE
;
interface_color_pair
[
STATUS_BAR
].
bright
=
FALSE
;
interface_color_pair
[
KEY_COMBO
].
bright
=
FALSE
;
interface_color_pair
[
FUNCTION_TAG
].
bright
=
FALSE
;
#endif
#if !defined(NANO_TINY) && defined(HAVE_KEY_DEFINED)
...
...
This diff is collapsed.
Click to expand it.
src/nano.h
View file @
b4737072
...
...
@@ -203,8 +203,6 @@ typedef struct color_pair {
int
pairnum
;
/* The color pair number used for this foreground color and
* background color. */
bool
bright
;
/* Is this color A_BOLD? */
}
color_pair
;
#ifndef 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