aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/history.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-core/src/history.rs')
-rw-r--r--helix-core/src/history.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/history.rs b/helix-core/src/history.rs
index c92c2a89..13a2a020 100644
--- a/helix-core/src/history.rs
+++ b/helix-core/src/history.rs
@@ -53,7 +53,7 @@ impl History {
}
#[inline]
- pub fn at_root(&self) -> bool {
+ pub const fn at_root(&self) -> bool {
self.cursor == 0
}