diff options
author | Blaž Hrastnik | 2020-12-22 07:32:15 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-12-22 07:32:15 +0000 |
commit | 4749b39b88b3bedfd09c63fd332ece2b35c1ad3e (patch) | |
tree | fb07f6fb61bdeb76996fb7bcd9665693f2915657 /helix-term/src/ui | |
parent | 47e282804d4206050a24ce3d1bfa18086b755265 (diff) |
.
Diffstat (limited to 'helix-term/src/ui')
-rw-r--r-- | helix-term/src/ui/editor.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 996e182f..35ef0c40 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -227,7 +227,9 @@ impl EditorView { surface.set_string(1, viewport.y, mode, text_color); if let Some(path) = view.doc.relative_path() { - surface.set_string(6, viewport.y, path.to_string_lossy(), text_color); + let path = path.to_string_lossy(); + surface.set_string(6, viewport.y, path, text_color); + // TODO: append [+] if modified } surface.set_string( |