testifyAssert "github.com/stretchr/testify/assert"
lua "github.com/yuin/gopher-lua"
- ulua "github.com/zyedidia/micro/internal/lua"
+ ulua "github.com/zyedidia/micro/v2/internal/lua"
)
type operation struct {
cursor := cursors[i]
b.SetCurCursor(cursor.Num)
cursor.DeleteSelection()
- cursor.ResetSelection()
b.Insert(cursor.Loc, strings.Join(op.text, "\n"))
}
for i, op := range operations {
cursor := cursors[i]
- if !cursor.HasSelection() {
+ if op.start == op.end {
assert.Equal(op.start, cursor.Loc)
} else {
assert.Equal(op.start, cursor.CurSelection[0])