File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -438,8 +438,8 @@ func (e *setExpr) eval(app *app, args []string) {
438
438
}
439
439
440
440
func (e * setLocalExpr ) eval (app * app , args []string ) {
441
- path : = replaceTilde (e .path )
442
- if ! filepath .IsAbs (path ) {
441
+ e . path = replaceTilde (e .path )
442
+ if ! filepath .IsAbs (e . path ) {
443
443
app .ui .echoerr ("setlocal: path should be absolute" )
444
444
return
445
445
}
@@ -476,7 +476,7 @@ func (e *setLocalExpr) eval(app *app, args []string) {
476
476
}
477
477
case "info" :
478
478
if e .val == "" {
479
- gLocalOpts .infos [path ] = nil
479
+ gLocalOpts .infos [e . path ] = nil
480
480
return
481
481
}
482
482
toks := strings .Split (e .val , ":" )
@@ -488,14 +488,14 @@ func (e *setLocalExpr) eval(app *app, args []string) {
488
488
return
489
489
}
490
490
}
491
- gLocalOpts .infos [path ] = toks
491
+ gLocalOpts .infos [e . path ] = toks
492
492
case "sortby" :
493
493
method := sortMethod (e .val )
494
494
if ! isValidSortMethod (method ) {
495
495
app .ui .echoerr (invalidSortErrorMessage )
496
496
return
497
497
}
498
- gLocalOpts .sortbys [path ] = method
498
+ gLocalOpts .sortbys [e . path ] = method
499
499
app .nav .sort ()
500
500
app .ui .sort ()
501
501
default :
You can’t perform that action at this time.
0 commit comments