Skip to content

Conversation

@Andriamanitra
Copy link

The API of the GetVisualX function was changed in micro v2.0.15 to take a boolean parameter. This patch fixes the crash caused by that change:

Lua API error: align:33: invalid number of function arguments (2 expected, got 1)
stack traceback:
    [G]: in function 'GetVisualX'
    align:33: in function 'f'
    align:25: in function 'map'
    align:33: in main chunk
    [G]: ?

If you care about distribution through the plugin channel you may also want to release a new version and specify that it requires micro >=2.0.15.

Fixes a crash "invalid number of function arguments (2 expected, got 1)" in micro v2.0.15. The API of the GetVisualX function has changed to take a boolean parameter.

https://pkg.go.dev/github.com/zyedidia/micro/v2/internal/buffer#Cursor.GetVisualX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant