diff --git a/README.md b/README.md index c3a1a617..1a5e6310 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ You can run `$ micro -version` to get the version number. Since there is no rele commit hash. The version is unknown if you built with `go get`, instead use `make install` or `make` to get a binary with a version number defined. -#### Help text +### Help text See the [help text](./runtime/help/help.md) for information about keybindings, editor commands, colorschemes and configuration options. diff --git a/cmd/micro/statusline.go b/cmd/micro/statusline.go index 37bd222c..34185ba6 100644 --- a/cmd/micro/statusline.go +++ b/cmd/micro/statusline.go @@ -40,9 +40,9 @@ func (sline *Statusline) Display() { // Add the filetype file += " " + sline.view.buf.filetype - centerText := "Press Ctrl-g to open help" + rightText := "Ctrl-g for help " if helpOpen { - centerText = "Press Ctrl-g to close help" + rightText = "Ctrl-g to close help " } statusLineStyle := defStyle.Reverse(true) @@ -55,8 +55,8 @@ func (sline *Statusline) Display() { for x := 0; x < sline.view.width; x++ { if x < len(fileRunes) { screen.SetContent(x, y, fileRunes[x], nil, statusLineStyle) - } else if x >= sline.view.width/2-len(centerText)/2 && x < len(centerText)+sline.view.width/2-len(centerText)/2 { - screen.SetContent(x, y, []rune(centerText)[x-sline.view.width/2+len(centerText)/2], nil, statusLineStyle) + } else if x >= sline.view.width-len(rightText) && x < len(rightText)+sline.view.width-len(rightText) { + screen.SetContent(x, y, []rune(rightText)[x-sline.view.width+len(rightText)], nil, statusLineStyle) } else { screen.SetContent(x, y, ' ', nil, statusLineStyle) } diff --git a/cmd/micro/view.go b/cmd/micro/view.go index 184803bc..264a8b77 100644 --- a/cmd/micro/view.go +++ b/cmd/micro/view.go @@ -10,7 +10,7 @@ import ( ) // The View struct stores information about a view into a buffer. -// It has a stores information about the cursor, and the viewport +// It stores information about the cursor, and the viewport // that the user sees the buffer from. type View struct { cursor Cursor diff --git a/screenshot.png b/screenshot.png index 22f39dae..ccac7dd6 100644 Binary files a/screenshot.png and b/screenshot.png differ