editor: Fix inline diagnostics min column inaccuracy (#36501)
Closes https://github.com/zed-industries/zed/issues/33346 Release Notes: - Fixed `diagnostic.inline.min_column` being inaccurate
This commit is contained in:
parent
013eaaeadd
commit
d1cabef2bf
1 changed files with 7 additions and 5 deletions
|
@ -2173,11 +2173,13 @@ impl EditorElement {
|
|||
};
|
||||
|
||||
let padding = ProjectSettings::get_global(cx).diagnostics.inline.padding as f32 * em_width;
|
||||
let min_x = ProjectSettings::get_global(cx)
|
||||
.diagnostics
|
||||
.inline
|
||||
.min_column as f32
|
||||
* em_width;
|
||||
let min_x = self.column_pixels(
|
||||
ProjectSettings::get_global(cx)
|
||||
.diagnostics
|
||||
.inline
|
||||
.min_column as usize,
|
||||
window,
|
||||
);
|
||||
|
||||
let mut elements = HashMap::default();
|
||||
for (row, mut diagnostics) in diagnostics_by_rows {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue