Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] rename dir failed (E65: illegal back reference) when path contains number #1093

Closed
6 of 15 tasks
ZSaberLv0 opened this issue Mar 18, 2020 · 0 comments · Fixed by #1094
Closed
6 of 15 tasks
Labels

Comments

@ZSaberLv0
Copy link

Self-Diagnosis

  • I have searched the issues for an answer to my question.
  • I have reviewed the NERDTree documentation. :h NERDTree
  • I have reviewed the Wiki.
  • I have searched the web for an answer to my question.

Environment (for bug reports)

  • Operating System: Windows gVim
  • Vim/Neovim version :echo v:version: 8.1
  • NERDTree version, found on 1st line in NERDTree quickhelp ?: latest (e67324f)
  • vimrc settings
    • NERDTree variables
    nothing, just install NERDTree
    • Other NERDTree-dependent Plugins
      • jistr/vim-nerdtree-tabs
      • ryanoasis/vim-devicons
      • tiagofumo/vim-nerdtree-syntax-highlight
      • Xuyuanp/nerdtree-git-plugin
      • Others (specify):
    • I've verified the issue occurs with only NERDTree installed.

Steps to Reproduce the Issue

  1. navigate to a dir whose path contains number, e.g. C:\path\2\abc\
  2. using NERDTree's menu to rename the dir

Current Result (Include screenshots where appropriate.)

Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..83[33]..82[3]..<SNR>84_showMenu[2]..56[29]..73[9]..NERDTreeMoveNode:
line   12:
E65: Illegal back reference
E65: Illegal back reference
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..83[33]..82[3]..<SNR>84_showMenu[2]..56[29]..73:
line    9:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..83[33]..82[3]..<SNR>84_showMenu[2]..56:
line   29:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..83[33]..82:
line    3:
E171: Missing :endif
Error detected while processing function nerdtree#ui_glue#invokeKeyMap[1]..83:
line   33:
E171: Missing :endif

Expected Result

note:

  • fail only when rename dir, won't fail when: rename file/add dir/delete dir
  • I think the \2 was treated as regexp causing illegal back reference, but I can't find which code caused that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant