From e2e0f69aa8ffcc41256a21cd43a49fdda2ece84d Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Tue, 29 Aug 2023 15:11:27 +0200 Subject: [PATCH] allow direct access to column pattern --- src/pattern.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pattern.rs b/src/pattern.rs index 71f0700..fb17d6a 100644 --- a/src/pattern.rs +++ b/src/pattern.rs @@ -64,6 +64,10 @@ impl MultiPattern { self.cols[column].0.reparse(new_text, case_matching); } + pub fn column_pattern(&self, column: usize) -> &Pattern { + &self.cols[column].0 + } + pub(crate) fn status(&self) -> Status { self.cols .iter()