Compare commits

...

2 Commits

Author SHA1 Message Date
Krzosa Karol
82e1c33db5 Fix SetWorkDir 2026-01-01 18:33:53 +01:00
Krzosa Karol
78917e28fb Misc 2026-01-01 18:01:40 +01:00
2 changed files with 5 additions and 3 deletions

View File

@@ -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, "");

View File

@@ -79,7 +79,7 @@ void StatusWindowUpdate() {
const char *case_sens = SearchCaseSensitive ? " C" : "";
const char *word_bound = SearchWordBoundary ? " W" : "";
const char *dirty = main.buffer->dirty ? " !" : "";
String s = Format(scratch, " %S:%lld:%lld%s%s%s", main.buffer->name, (long long)xy.line + 1ll, (long long)xy.col + 1ll, dirty, case_sens, word_bound, reopen);
String s = Format(scratch, "%S:%lld:%lld%s%s%s", main.buffer->name, (long long)xy.line + 1ll, (long long)xy.col + 1ll, dirty, case_sens, word_bound, reopen);
For (ActiveProcesses) {
if (it.view_id == main.view->id.id) {
s = Format(scratch, "%S %lld :KillProcess", s, (long long)it.id);