mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Add quotes in autocomplete when filename contains brackets (#4528)
This commit is contained in:
parent
b13298f3cd
commit
a558f9cf47
2 changed files with 24 additions and 1 deletions
23
news/3766.rst
Normal file
23
news/3766.rst
Normal file
|
@ -0,0 +1,23 @@
|
|||
**Added:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Changed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Deprecated:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Removed:**
|
||||
|
||||
* <news item>
|
||||
|
||||
**Fixed:**
|
||||
|
||||
* Add quotes in autocomplete when filename contains brackets
|
||||
|
||||
**Security:**
|
||||
|
||||
* <news item>
|
|
@ -18,7 +18,7 @@ from xonsh.completers.tools import (
|
|||
|
||||
@xl.lazyobject
|
||||
def PATTERN_NEED_QUOTES():
|
||||
pattern = r'\s`\$\{\}\,\*\(\)"\'\?&#'
|
||||
pattern = r'\s`\$\{\}\[\]\,\*\(\)"\'\?&#'
|
||||
if xp.ON_WINDOWS:
|
||||
pattern += "%"
|
||||
pattern = "[" + pattern + "]" + r"|\band\b|\bor\b"
|
||||
|
|
Loading…
Add table
Reference in a new issue