We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e41492a commit 69ffc4eCopy full SHA for 69ffc4e
src/render/chunk.rs
@@ -48,6 +48,9 @@ pub fn calc_offsets(
48
)
49
}
50
51
+/// Ensures a string has a minimum number of characters in it by
52
+/// appending spaces to the beginging of the string if its characters
53
+/// are too few. This is used for formatting the spacing of line_nums.
54
fn ensure_width(str: String, width: u32) -> String {
55
let spaces_to_add = width as usize - str.len();
56
let mut spaces = String::new();
0 commit comments