Skip to content

Commit

Permalink
Fixed a message
Browse files Browse the repository at this point in the history
  • Loading branch information
noborus committed Apr 9, 2021
1 parent 54405da commit b2304a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions oviewer/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ func (root *Root) setViewMode(input string) {
c, ok := root.Config.Mode[input]
if !ok {
if input != "general" {
root.setMessage(fmt.Sprintf("Not Mode %s", input))
root.setMessage(fmt.Sprintf("%s mode not found", input))
return
}
c = root.General
Expand All @@ -238,7 +238,7 @@ func (root *Root) setViewMode(input string) {
root.setWrapHeaderLen()
root.Doc.ClearCache()
root.ViewSync()
root.setMessage(fmt.Sprintf("Set Mode %s", input))
root.setMessage(fmt.Sprintf("Set mode %s", input))
}

// setDelimiter sets the delimiter string.
Expand Down
2 changes: 1 addition & 1 deletion oviewer/keybind.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ func KeyBindString(k KeyBind) string {
k.writeKeyBind(&b, actionNextBackSearch, "repeat backward search")

fmt.Fprintf(&b, "\n\tChange display\n\n")
k.writeKeyBind(&b, actionViewMode, "view mode selection")
k.writeKeyBind(&b, actionWrap, "wrap/nowrap toggle")
k.writeKeyBind(&b, actionColumnMode, "column mode toggle")
k.writeKeyBind(&b, actionAlternate, "color to alternate rows toggle")
k.writeKeyBind(&b, actionLineNumMode, "line number toggle")

fmt.Fprintf(&b, "\n\tChange Display with Input\n\n")
k.writeKeyBind(&b, actionViewMode, "view mode selection")
k.writeKeyBind(&b, actionDelimiter, "delimiter string")
k.writeKeyBind(&b, actionHeader, "number of header lines")
k.writeKeyBind(&b, actionTabWidth, "TAB width")
Expand Down

0 comments on commit b2304a8

Please sign in to comment.