Skip to content

Can't comment lines with '%<number>' -- comment:58: invalid capture index #32

@AndydeCleyre

Description

@AndydeCleyre

micro 2.0.3
comment 1.0.0

$ mkdir newconf
$ micro -config-dir newconf filename

Type lines:

one
two
%3

Try commenting each, with alt+/. Commenting the third line fails:

comment:58: invalid capture index
stack traceback:
        [G]: in function 'gsub'
        comment:58: in function 'commentLine'
        comment:96: in main chunk
        [G]: ?

Press enter to continue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions