Skip to content

Commit

Permalink
Fixed regex matches being displayed off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
SoptikHa2 committed Apr 21, 2020
1 parent 3b73e4d commit a13ed22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ readme = "README.md"
license-file = "LICENSE"
keywords = ["awk", "debugger", "debugging", "tui"]
categories = ["command-line-utilities", "development-tools", "development-tools::debugging"]
version = "1.1.0"
version = "1.1.1"
authors = ["Petr Šťastný <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/ui/tui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl Tui {
} else {
for (i, m) in regex_space.iter().enumerate() {
text.push(Text::styled(
format!("\n\\{} ", (i + 1)),
format!("\n\\{} ", i),
Style::default().fg(Color::DarkGray),
));
text.push(Text::raw(m));
Expand Down

0 comments on commit a13ed22

Please sign in to comment.