diff options
Diffstat (limited to 'core/Prompt.zig')
| -rw-r--r-- | core/Prompt.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Prompt.zig b/core/Prompt.zig index d5f9a374..0b74ee68 100644 --- a/core/Prompt.zig +++ b/core/Prompt.zig @@ -1109,6 +1109,8 @@ pub fn head(p: *Pardes, arena: std.mem.Allocator, pane: *Pane) !TagState.Head { const text = &b.text; const spans = &b.spans; try styled(arena, text, spans, info.get(pr.op).cell, .key); + // `SPC :`'s line runs at the project's root (Root): its scope named. + if (pr.op == .command and pr.command.root) try text.appendSlice(arena, " root"); try text.append(arena, ' '); const caret: u32 = @intCast(text.items.len + s.field.caret); const line = s.field.text(); |
