xonsh/news/fix-cd-rmdir-completions.rst
Adam Schwalm 27ed9be301
Perform path completion filtering based on expanded path (#4115)
* Perform path completion filtering based on expanded path

This fixes issues with the cd and rmdir completers not working
correctly due to os.path.isdir returning false for paths like
'~/example'.

* Avoid running subsequent completers for cd/rmdir

Raise StopIteration in the cd and rmdir completers if nothing is
found. This prevents the later completers like the generic 'path'
completer from running and returning incorrect results.
2021-03-01 11:44:32 -05:00

23 lines
235 B
ReStructuredText

**Added:**
* <news item>
**Changed:**
* <news item>
**Deprecated:**
* <news item>
**Removed:**
* <news item>
**Fixed:**
* Fixed a bug where "cd" and "rmdir" would return non-directory completions
**Security:**
* <news item>