aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-18 08:18:11 +0000
committerBlaž Hrastnik2020-12-18 08:18:11 +0000
commit0b63e838e0ffe9a36a2cb51790f464d634b843af (patch)
treeedf96947ab44f5fbc791c9a6d8416876ff4535cb /helix-term/src/ui/editor.rs
parent8b263ef04b8a1399727c41b4e2f4017fc0be9316 (diff)
Port over Doc::relative_path.
Diffstat (limited to 'helix-term/src/ui/editor.rs')
-rw-r--r--helix-term/src/ui/editor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs
index ceb5a442..996e182f 100644
--- a/helix-term/src/ui/editor.rs
+++ b/helix-term/src/ui/editor.rs
@@ -226,7 +226,7 @@ impl EditorView {
);
surface.set_string(1, viewport.y, mode, text_color);
- if let Some(path) = view.doc.path() {
+ if let Some(path) = view.doc.relative_path() {
surface.set_string(6, viewport.y, path.to_string_lossy(), text_color);
}