Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

inappropriate type conversion in rtags#JumpToHandler #129

@ziny0902

Description

@ziny0902

vim 8.2 think lnum and col as string in rtags#JumpToHandler
Therefore call cursor(lnum, col) cause exception(E474) in rtags#jumpToLocationInternal.
But neovim can covert it to number properly.

I have to fix it as below code:

function! rtags#JumpToHandler(results, args)
                                        ...
        let [jump_file, lnum, col; rest] = split(location, ':')

        let lnum = str2nr(lnum)
        let col = str2nr(col)
                                      ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions