aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/state.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-19 02:55:15 +0000
committerBlaž Hrastnik2020-09-19 02:58:08 +0000
commit3859f6963dfad2d2d09c979a8e6bb283bc5e2cb3 (patch)
treee5203866fa9974ad22f6f191eb272ecda28c202f /helix-core/src/state.rs
parenteb477ec44276572497c121cb0d91eb56ac58cf26 (diff)
More work on the UI.
Diffstat (limited to 'helix-core/src/state.rs')
-rw-r--r--helix-core/src/state.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/helix-core/src/state.rs b/helix-core/src/state.rs
index 150874b1..55ac5095 100644
--- a/helix-core/src/state.rs
+++ b/helix-core/src/state.rs
@@ -102,6 +102,11 @@ impl State {
self.mode
}
+ #[inline]
+ pub fn path(&self) -> Option<&PathBuf> {
+ self.path.as_ref()
+ }
+
// pub fn doc<R>(&self, range: R) -> RopeSlice
// where
// R: std::ops::RangeBounds<usize>,