We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc195b6 commit 87930b6Copy full SHA for 87930b6
internal/action/actions.go
@@ -1955,6 +1955,14 @@ func (h *BufPane) SpawnMultiCursor() bool {
1955
return true
1956
}
1957
1958
+// SpawnCursorAtLoc spawns a new cursor at a location and merges the cursors
1959
+func (h *BufPane) SpawnCursorAtLoc(loc buffer.Loc) *buffer.Cursor {
1960
+ c := buffer.NewCursor(h.Buf, loc)
1961
+ h.Buf.AddCursor(c)
1962
+ h.Buf.MergeCursors()
1963
+ return c
1964
+}
1965
+
1966
// SpawnMultiCursorUpN is not an action
1967
func (h *BufPane) SpawnMultiCursorUpN(n int) bool {
1968
lastC := h.Buf.GetCursor(h.Buf.NumCursors() - 1)
0 commit comments