From 2fd59adffad3d4f80fd6cfce1de260021173870d Mon Sep 17 00:00:00 2001 From: Rein F Date: Sun, 9 Feb 2020 01:34:35 +0100 Subject: [PATCH] Show that the file is readonly (#1486) * Show that the file is readonly) * change the (readonly) statusline msg into [ro] --- internal/display/statusline.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/display/statusline.go b/internal/display/statusline.go index c139c8c6..c55be988 100644 --- a/internal/display/statusline.go +++ b/internal/display/statusline.go @@ -47,6 +47,9 @@ var statusInfo = map[string]func(*buffer.Buffer) string{ if b.Modified() { return "+ " } + if b.Type.Readonly { + return "[ro] " + } return "" }, }