Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: micro crashes if search query is \Q #3700

@nikitax44

Description

@nikitax44

steps to reproduce:

  1. open any file
  2. go to the end of any non-empty line
  3. open find panel in regex mode
  4. try to search for \Q
  5. the micro will crash
Micro encountered an error: *errors.errorString regexp: Compile(`.(?:\Q)`): error parsing regexp: missing closing ): `.(?:\Q)`
regexp/regexp.go:313 (0x593cf4)
github.com/zyedidia/micro/v2/internal/buffer/search.go:45 (0x8bb84a)
github.com/zyedidia/micro/v2/internal/buffer/search.go:71 (0x8bbab0)
github.com/zyedidia/micro/v2/internal/buffer/search.go:170 (0x8bc506)
github.com/zyedidia/micro/v2/internal/action/actions.go:1122 (0x8f39f6)
github.com/zyedidia/micro/v2/internal/action/infopane.go:117 (0x90d0fb)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:516 (0x947757)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:455 (0x947130)
internal/runtime/atomic/types.go:194 (0x43bc2b)
runtime/asm_amd64.s:1700 (0x478d41)

If you can reproduce this error, please report it at https://github.com/zyedidia/micro/issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions