feat!: remove recursive dir support for setlocal (#2415)
* feat!: remove recursive dir support for `setlocal` * Update version in man page * Update `CHANGELOG.md`
This commit is contained in:
1 parent
941866b62f
commit
374ae19cb2
7 files changed
+17
-88
No files matched your search
@@ -456,11 +456,6 @@ func (e *setExpr) eval(app *app, _ []string) {
|
||||
}
|
||||
|
||||
func (e *setLocalExpr) eval(app *app, _ []string) {
|
||||
recursive := strings.HasSuffix(e.path, string(os.PathSeparator)) && e.path != string(os.PathSeparator)
|
||||
if recursive {
|
||||
e.path = strings.TrimSuffix(e.path, string(os.PathSeparator))
|
||||
}
|
||||
|
||||
var err error
|
||||
e.path, err = filepath.Abs(replaceTilde(e.path))
|
||||
if err != nil {
|
||||
@@ -468,10 +463,6 @@ func (e *setLocalExpr) eval(app *app, _ []string) {
|
||||
return
|
||||
}
|
||||
|
||||
if recursive && e.path != string(os.PathSeparator) {
|
||||
e.path += string(os.PathSeparator)
|
||||
}
|
||||
|
||||
switch e.opt {
|
||||
case "dircounts", "nodircounts", "dircounts!":
|
||||
err = applyLocalBoolOpt(gLocalOpts.dircounts, gOpts.dircounts, e)
|
||||
|
||||
Reference in new issue
Block a user