Merge pull request #3620 from JoeKar/feature/cursor-overwrite-indicator

statusline: Provide `overwrite` mode indicator
This commit is contained in:
Jöran Karl
2025-01-31 17:59:36 +01:00
committed by GitHub
6 changed files with 17 additions and 11 deletions

View File

@@ -209,6 +209,11 @@ type Buffer struct {
LastSearchRegex bool
// HighlightSearch enables highlighting all instances of the last successful search
HighlightSearch bool
// OverwriteMode indicates that we are in overwrite mode (toggled by
// Insert key by default) i.e. that typing a character shall replace the
// character under the cursor instead of inserting a character before it.
OverwriteMode bool
}
// NewBufferFromFileAtLoc opens a new buffer with a given cursor location