Fix SetWorkDir
This commit is contained in:
@@ -693,8 +693,10 @@ void CMD_SetWorkDir() {
|
||||
BSet main = GetBSet(LastActiveLayoutWindowID);
|
||||
WorkDir = GetDir(main.buffer);
|
||||
For (Buffers) {
|
||||
String name = SkipToLastSlash(it->name);
|
||||
it->name = Intern(&GlobalInternTable, Format(scratch, "%S/%S", WorkDir, name));
|
||||
if (it->special) {
|
||||
String name = SkipToLastSlash(it->name);
|
||||
it->name = Intern(&GlobalInternTable, Format(scratch, "%S/%S", WorkDir, name));
|
||||
}
|
||||
}
|
||||
} RegisterCommand(CMD_SetWorkDir, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user