diff options
author | Blaž Hrastnik | 2022-10-19 04:51:13 +0000 |
---|---|---|
committer | GitHub | 2022-10-19 04:51:13 +0000 |
commit | 418a622db9d957d09e10ccbc3897d8ac9268dc8e (patch) | |
tree | 6e69857287580ab24c1e60ac199138ac23dc37df /helix-view/src/gutter.rs | |
parent | faf0c521d15c314f411cc6178024c5d3310212da (diff) | |
parent | 66a49080bc7e492c37f9cd10ed36a696de1787a3 (diff) |
Merge pull request #4061 from pascalkuthe/undercurl-modifier
Support different kinds of underline rendering (updated)
Diffstat (limited to 'helix-view/src/gutter.rs')
-rw-r--r-- | helix-view/src/gutter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-view/src/gutter.rs b/helix-view/src/gutter.rs index ab0e2986..2c207d27 100644 --- a/helix-view/src/gutter.rs +++ b/helix-view/src/gutter.rs @@ -1,7 +1,7 @@ use std::fmt::Write; use crate::{ - graphics::{Color, Modifier, Style}, + graphics::{Color, Style, UnderlineStyle}, Document, Editor, Theme, View, }; @@ -147,7 +147,7 @@ pub fn breakpoints<'doc>( .find(|breakpoint| breakpoint.line == line)?; let mut style = if breakpoint.condition.is_some() && breakpoint.log_message.is_some() { - error.add_modifier(Modifier::UNDERLINED) + error.underline_style(UnderlineStyle::Line) } else if breakpoint.condition.is_some() { error } else if breakpoint.log_message.is_some() { |