Compare commits
2 Commits
505b2d0ffa
...
82e1c33db5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82e1c33db5 | ||
|
|
78917e28fb |
@@ -693,8 +693,10 @@ void CMD_SetWorkDir() {
|
|||||||
BSet main = GetBSet(LastActiveLayoutWindowID);
|
BSet main = GetBSet(LastActiveLayoutWindowID);
|
||||||
WorkDir = GetDir(main.buffer);
|
WorkDir = GetDir(main.buffer);
|
||||||
For (Buffers) {
|
For (Buffers) {
|
||||||
String name = SkipToLastSlash(it->name);
|
if (it->special) {
|
||||||
it->name = Intern(&GlobalInternTable, Format(scratch, "%S/%S", WorkDir, name));
|
String name = SkipToLastSlash(it->name);
|
||||||
|
it->name = Intern(&GlobalInternTable, Format(scratch, "%S/%S", WorkDir, name));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} RegisterCommand(CMD_SetWorkDir, "");
|
} RegisterCommand(CMD_SetWorkDir, "");
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ void StatusWindowUpdate() {
|
|||||||
const char *case_sens = SearchCaseSensitive ? " C" : "";
|
const char *case_sens = SearchCaseSensitive ? " C" : "";
|
||||||
const char *word_bound = SearchWordBoundary ? " W" : "";
|
const char *word_bound = SearchWordBoundary ? " W" : "";
|
||||||
const char *dirty = main.buffer->dirty ? " !" : "";
|
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) {
|
For (ActiveProcesses) {
|
||||||
if (it.view_id == main.view->id.id) {
|
if (it.view_id == main.view->id.id) {
|
||||||
s = Format(scratch, "%S %lld :KillProcess", s, (long long)it.id);
|
s = Format(scratch, "%S %lld :KillProcess", s, (long long)it.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user