[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH 2/2] display: use a different color when showing a l
From: |
Benno Schulenberg |
Subject: |
[Nano-devel] [PATCH 2/2] display: use a different color when showing a linting message |
Date: |
Wed, 17 Oct 2018 20:36:28 +0200 |
This is a second step to address https://savannah.gnu.org/bugs/?54714.
---
src/nano.h | 2 +-
src/text.c | 2 +-
src/winio.c | 4 +++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/nano.h b/src/nano.h
index 480e4c3c..3007881d 100644
--- a/src/nano.h
+++ b/src/nano.h
@@ -153,7 +153,7 @@ typedef enum {
} file_format;
typedef enum {
- HUSH, MILD, ALERT
+ HUSH, NOTICE, MILD, ALERT
} message_type;
typedef enum {
diff --git a/src/text.c b/src/text.c
index 19932d4d..3e845961 100644
--- a/src/text.c
+++ b/src/text.c
@@ -3260,7 +3260,7 @@ void do_linter(void)
confirm_margin();
#endif
edit_refresh();
- statusbar(curlint->msg);
+ statusline(NOTICE, curlint->msg);
bottombars(MLINTER);
}
diff --git a/src/winio.c b/src/winio.c
index 0c2a7fa4..c3f9de16 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2233,7 +2233,9 @@ void statusline(message_type importance, const char *msg,
...)
else if (alerts < 4)
beep();
colorpair = interface_color_pair[ERROR_MESSAGE];
- } else
+ } else if (importance == NOTICE)
+ colorpair = interface_color_pair[SELECTED_TEXT];
+ else
colorpair = interface_color_pair[STATUS_BAR];
lastmessage = importance;
--
2.19.1
- [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Benno Schulenberg, 2018/10/17
- [Nano-devel] [PATCH 2/2] display: use a different color when showing a linting message,
Benno Schulenberg <=
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Brand Huntsman, 2018/10/18
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Benno Schulenberg, 2018/10/21
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Brand Huntsman, 2018/10/21
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Benno Schulenberg, 2018/10/22
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Brand Huntsman, 2018/10/22
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Benno Schulenberg, 2018/10/23
- Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Brand Huntsman, 2018/10/23
Re: [Nano-devel] [PATCH 1/2] display: let the title bar show when nano is in linting mode, Marco Diego Aurélio Mesquita, 2018/10/18