preserve mark order in f[sx] variables

This commit is contained in:
Olivier Perret committed 2017-01-02 15:52:46 +01:00
1 parent 79ca4cfe9d
commit e02c5e8bb3
4 files changed
+35 -36

No files matched your search

+2 -4
View File
@@ -108,14 +108,12 @@ func (app *app) exportVars() {
envFile = f.Path
}
marks := app.nav.currMarks()
envFiles := strings.Join(marks, gOpts.filesep)
envFiles := strings.Join(app.nav.marks, gOpts.filesep)
os.Setenv("f", envFile)
os.Setenv("fs", envFiles)
if len(marks) == 0 {
if len(app.nav.marks) == 0 {
os.Setenv("fx", envFile)
} else {
os.Setenv("fx", envFiles)