Former-commit-id: 35d375188e
This commit is contained in:
Henrique Dias committed 2017-01-03 15:10:33 +00:00
1 parent 5fc83eff7e
commit f1f248e4d6
10 files changed
+160 -99

No files matched your search

+1 -1
View File
@@ -22,7 +22,7 @@ type Editor struct {
func GetEditor(i *file.Info) (*Editor, error) {
// Create a new editor variable and set the mode
editor := new(Editor)
editor.Mode = strings.TrimPrefix(filepath.Ext(i.Name()), ".")
editor.Mode = strings.TrimPrefix(filepath.Ext(i.Name), ".")
switch editor.Mode {
case "md", "markdown", "mdown", "mmark":