File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1212> - [ Exposing replacement functions for deprecated IOUtil functions #3393 ] ( https://github.com/zyedidia/micro/pull/3393 )
1313> - [ Adding timeout when fetching plugin & more clear plugin error message #3389 ] ( https://github.com/zyedidia/micro/pull/3389 )
1414> - [ Adding Jumping to opening and closing brace logic and actions #3384 ] ( https://github.com/zyedidia/micro/pull/3384 )
15+ > - [ Allowing plugin to add cursor in custom Loc #3441 ] ( https://github.com/zyedidia/micro/pull/3441 )
1516>
1617> To see the diff between this and upstream master, click [ here] ( https://github.com/zyedidia/micro/compare/master...Neko-Box-Coder:micro-dev:dev )
1718
Original file line number Diff line number Diff line change @@ -1972,6 +1972,14 @@ func (h *BufPane) SpawnMultiCursor() bool {
19721972 return true
19731973}
19741974
1975+ // SpawnCursorAtLoc spawns a new cursor at a location and merges the cursors
1976+ func (h * BufPane ) SpawnCursorAtLoc (loc buffer.Loc ) * buffer.Cursor {
1977+ c := buffer .NewCursor (h .Buf , loc )
1978+ h .Buf .AddCursor (c )
1979+ h .Buf .MergeCursors ()
1980+ return c
1981+ }
1982+
19751983// SpawnMultiCursorUpN is not an action
19761984func (h * BufPane ) SpawnMultiCursorUpN (n int ) bool {
19771985 lastC := h .Buf .GetCursor (h .Buf .NumCursors () - 1 )
You can’t perform that action at this time.
0 commit comments