nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 55537dc2184c64ed7d0d869e56f3e3607f59340c
parent 3a79766da64eaea1ed6a19109db994ce789096ee
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Dec 2018 12:20:06 +0100

display: show it in title bar when starting up in restricted mode

Diffstat:
Msrc/winio.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -2070,7 +2070,7 @@ void titlebar(const char *path) /* Figure out the path, prefix and state strings. */ #ifdef ENABLE_COLOR if (currmenu == MLINTER) { - /* TRANSLATORS: The next four are "labels" in the title bar. */ + /* TRANSLATORS: The next five are "labels" in the title bar. */ prefix = _("Linting --"); path = openfile->filename; } else @@ -2101,6 +2101,8 @@ void titlebar(const char *path) state = _("Modified"); else if (ISSET(VIEW_MODE)) state = _("View"); + else if (ISSET(RESTRICTED)) + state = _("Restricted"); pluglen = strlenpt(_("Modified")) + 1; }