This commit is contained in:
Zachary Yedidia
2021-08-21 17:58:35 -04:00
5 changed files with 29 additions and 22 deletions

View File

@@ -256,7 +256,7 @@ func NewBufferFromFileAtLoc(path string, btype BufType, cursorLoc Loc) (*Buffer,
}
if readonly && prompt != nil {
prompt.Message("Warning: file is readonly - sudo will be attempted when saving")
prompt.Message(fmt.Sprintf("Warning: file is readonly - %s will be attempted when saving", config.GlobalSettings["sucmd"].(string)))
// buf.SetOptionNative("readonly", true)
}