Add raw command to view raw terminal esc codes

This commit is contained in:
Zachary Yedidia
2017-11-29 01:06:16 -05:00
parent acd42df13c
commit bdb699211a
7 changed files with 51 additions and 7 deletions

View File

@@ -158,7 +158,7 @@ func NewBuffer(reader io.Reader, size int64, path string) *Buffer {
InitLocalSettings(b)
if b.Settings["savecursor"].(bool) || b.Settings["saveundo"].(bool) {
if len(*flagStartPos) == 0 && (b.Settings["savecursor"].(bool) || b.Settings["saveundo"].(bool)) {
// If either savecursor or saveundo is turned on, we need to load the serialized information
// from ~/.config/micro/buffers
file, err := os.Open(configDir + "/buffers/" + EscapePath(b.AbsPath))