Skip to content

Commit

Permalink
feat: add_empty_line (#1)
Browse files Browse the repository at this point in the history
* feat: `add_empty_line`

* increase pref

---------

Co-authored-by: nyx <nnyyxxxx@protonmail.com>
  • Loading branch information
adamperkowski and nnyyxxxx authored Oct 13, 2024
1 parent 38742fe commit 0515989
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ impl HyprlandConfig {
}
}

pub fn add_empty_line(&mut self) {
self.content.push(String::new());
}

fn update_sections(&mut self, pos: usize, offset: usize) {
for (start, end) in self.sections.values_mut() {
if *start >= pos {
Expand Down

0 comments on commit 0515989

Please sign in to comment.