From 53e3bcbd2b44445956ed641f52bb783203184cf1 Mon Sep 17 00:00:00 2001 From: Yorhel <git@yorhel.nl> Date: Mon, 31 Oct 2011 13:10:36 +0100 Subject: [PATCH] browser.c: Added [read-only] indication to title bar --- src/browser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/browser.c b/src/browser.c index e934591..964c6ed 100644 --- a/src/browser.c +++ b/src/browser.c @@ -166,6 +166,8 @@ void browse_draw() { mvhline(0, 0, ' ', wincols); mvhline(winrows-1, 0, ' ', wincols); mvprintw(0,0,"%s %s ~ Use the arrow keys to navigate, press ? for help", PACKAGE_NAME, PACKAGE_VERSION); + if(read_only) + mvaddstr(0, wincols-11, "[read-only]"); attroff(A_REVERSE); /* second line - the path */ -- GitLab