browser.c: Added [read-only] indication to title bar

This commit is contained in:
Yorhel 2011-10-31 13:10:36 +01:00
parent 260f138d3f
commit 53e3bcbd2b

View file

@ -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 */