From d1d38d1ed796a82305822fdaaa51f6cbaf99284f Mon Sep 17 00:00:00 2001 From: lvyaoting <166296299+lvyaoting@users.noreply.github.com> Date: Mon, 8 Apr 2024 18:04:38 +0800 Subject: [PATCH] chore: fix some typos (#3239) Signed-off-by: lvyaoting --- internal/action/bufpane.go | 2 +- internal/buffer/buffer.go | 2 +- internal/info/infobuffer.go | 2 +- internal/views/splits.go | 2 +- runtime/help/colors.md | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/action/bufpane.go b/internal/action/bufpane.go index 200a972d..73574859 100644 --- a/internal/action/bufpane.go +++ b/internal/action/bufpane.go @@ -318,7 +318,7 @@ func (h *BufPane) ResizePane(size int) { } // PluginCB calls all plugin callbacks with a certain name and displays an -// error if there is one and returns the aggregrate boolean response +// error if there is one and returns the aggregate boolean response func (h *BufPane) PluginCB(cb string) bool { b, err := config.RunPluginFnBool(h.Buf.Settings, cb, luar.New(ulua.L, h)) if err != nil { diff --git a/internal/buffer/buffer.go b/internal/buffer/buffer.go index 54fc266f..6865fe12 100644 --- a/internal/buffer/buffer.go +++ b/internal/buffer/buffer.go @@ -1011,7 +1011,7 @@ func (b *Buffer) MergeCursors() { b.EventHandler.active = b.curCursor } -// UpdateCursors updates all the cursors indicies +// UpdateCursors updates all the cursors indices func (b *Buffer) UpdateCursors() { b.EventHandler.cursors = b.cursors b.EventHandler.active = b.curCursor diff --git a/internal/info/infobuffer.go b/internal/info/infobuffer.go index 8f8d7251..2dbccbca 100644 --- a/internal/info/infobuffer.go +++ b/internal/info/infobuffer.go @@ -7,7 +7,7 @@ import ( ) // The InfoBuf displays messages and other info at the bottom of the screen. -// It is respresented as a buffer and a message with a style. +// It is represented as a buffer and a message with a style. type InfoBuf struct { *buffer.Buffer diff --git a/internal/views/splits.go b/internal/views/splits.go index 5394d982..b28a6c09 100644 --- a/internal/views/splits.go +++ b/internal/views/splits.go @@ -205,7 +205,7 @@ func (n *Node) ResizeSplit(size int) bool { return n.parent.hResizeSplit(ind, size) } -// Resize sets this node's size and resizes all children accordlingly +// Resize sets this node's size and resizes all children accordingly func (n *Node) Resize(w, h int) { n.W, n.H = w, h diff --git a/runtime/help/colors.md b/runtime/help/colors.md index ee49751f..d4f6c586 100644 --- a/runtime/help/colors.md +++ b/runtime/help/colors.md @@ -214,7 +214,7 @@ safe and recommended to use subgroups in your custom syntax files. For example if `constant.string` is found in your colorscheme, micro will us that for highlighting strings. If it's not found, it will use constant instead. Micro tries to match the largest set of groups it can find in the colorscheme -definitions, so if, for examle `constant.bool.true` is found then micro will +definitions, so if, for example `constant.bool.true` is found then micro will use that. If `constant.bool.true` is not found but `constant.bool` is found micro will use `constant.bool`. If not, it uses `constant`.