Skip to content

Commit ed736dc

Browse files
dependabot[bot]Copilotjtran
authored
Bump ratatui from 0.26.3 to 0.29.0 (#1439)
* Bump ratatui from 0.26.3 to 0.29.0 Bumps [ratatui](https://github.com/ratatui/ratatui) from 0.26.3 to 0.29.0. - [Release notes](https://github.com/ratatui/ratatui/releases) - [Changelog](https://github.com/ratatui/ratatui/blob/main/CHANGELOG.md) - [Commits](ratatui/ratatui@v0.26.3...v0.29.0) --- updated-dependencies: - dependency-name: ratatui dependency-version: 0.29.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Migrate to ratatui 0.29.0 (#1456) * Bump ratatui from 0.26.3 to 0.29.0 Bumps [ratatui](https://github.com/ratatui/ratatui) from 0.26.3 to 0.29.0. - [Release notes](https://github.com/ratatui/ratatui/releases) - [Changelog](https://github.com/ratatui/ratatui/blob/main/CHANGELOG.md) - [Commits](ratatui/ratatui@v0.26.3...v0.29.0) --- updated-dependencies: - dependency-name: ratatui dependency-version: 0.29.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Initial plan * Fix ratatui 0.29.0 deprecation warnings Co-authored-by: jtran <10803+jtran@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jtran <10803+jtran@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: jtran <10803+jtran@users.noreply.github.com>
1 parent 32c03a6 commit ed736dc

File tree

3 files changed

+91
-38
lines changed

3 files changed

+91
-38
lines changed

Cargo.lock

Lines changed: 76 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ open = "5.3.3"
5959
parse-display = "0.10.0"
6060
pulldown-cmark = "0.9.2"
6161
pulldown-cmark-to-cmark = "11.0.2"
62-
ratatui = { version = "0.26", default-features = false, features = [
62+
ratatui = { version = "0.29", default-features = false, features = [
6363
"crossterm",
6464
] }
6565
regex = "1"

src/ml/copilot/ui.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ fn render_markdown_to_lines(md: &str) -> Vec<String> {
146146
}
147147

148148
pub fn draw(frame: &mut Frame, app: &App) {
149-
let size = frame.size();
149+
let size = frame.area();
150150
let chunks = Layout::default()
151151
.direction(Direction::Vertical)
152152
.constraints([
@@ -333,7 +333,7 @@ mod tests {
333333
for y in 0..screen.height {
334334
let mut line = String::new();
335335
for x in 0..screen.width {
336-
line.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
336+
line.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
337337
}
338338
content.push_str(&line);
339339
content.push('\n');
@@ -357,7 +357,7 @@ mod tests {
357357
let mut content = String::new();
358358
for y in 0..area.height {
359359
for x in 0..area.width {
360-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
360+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
361361
}
362362
content.push('\n');
363363
}
@@ -373,7 +373,7 @@ mod tests {
373373
let mut content2 = String::new();
374374
for y in 0..area.height {
375375
for x in 0..area.width {
376-
content2.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
376+
content2.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
377377
}
378378
content2.push('\n');
379379
}
@@ -398,7 +398,7 @@ mod tests {
398398
let mut content = String::new();
399399
for y in 0..area.height {
400400
for x in 0..area.width {
401-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
401+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
402402
}
403403
content.push('\n');
404404
}
@@ -423,7 +423,7 @@ mod tests {
423423
let mut content = String::new();
424424
for y in 0..area.height {
425425
for x in 0..area.width {
426-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
426+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
427427
}
428428
content.push('\n');
429429
}
@@ -441,7 +441,7 @@ mod tests {
441441
let mut s = String::new();
442442
for y in 0..area.height {
443443
for x in 0..area.width {
444-
s.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
444+
s.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
445445
}
446446
s.push('\n');
447447
}
@@ -454,7 +454,7 @@ mod tests {
454454
let mut s = String::new();
455455
for y in 0..area.height {
456456
for x in 0..area.width {
457-
s.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
457+
s.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
458458
}
459459
s.push('\n');
460460
}
@@ -489,7 +489,7 @@ mod tests {
489489
let area = buf.area;
490490
let mut row0 = String::new();
491491
for x in 0..area.width {
492-
row0.push(buf.get(x, 0).symbol().chars().next().unwrap_or(' '));
492+
row0.push(buf[(x, 0)].symbol().chars().next().unwrap_or(' '));
493493
}
494494
// Debug note: this row should contain the header when scroll == 0
495495
assert!(row0.contains("Proposed Changes"));
@@ -499,7 +499,7 @@ mod tests {
499499
let buf2 = terminal.backend().buffer();
500500
let mut row0b = String::new();
501501
for x in 0..area.width {
502-
row0b.push(buf2.get(x, 0).symbol().chars().next().unwrap_or(' '));
502+
row0b.push(buf2[(x, 0)].symbol().chars().next().unwrap_or(' '));
503503
}
504504
assert!(!row0b.contains("Proposed Changes"));
505505
}
@@ -535,7 +535,7 @@ mod tests {
535535
let mut content = String::new();
536536
for y in 0..area.height {
537537
for x in 0..area.width {
538-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
538+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
539539
}
540540
content.push('\n');
541541
}
@@ -561,7 +561,7 @@ mod tests {
561561
let mut content = String::new();
562562
for y in 0..area.height {
563563
for x in 0..area.width {
564-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
564+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
565565
}
566566
content.push('\n');
567567
}
@@ -593,7 +593,7 @@ mod tests {
593593
let mut content = String::new();
594594
for y in 0..area.height {
595595
for x in 0..area.width {
596-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
596+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
597597
}
598598
content.push('\n');
599599
}
@@ -633,7 +633,7 @@ mod tests {
633633
let mut content = String::new();
634634
for y in 0..area.height {
635635
for x in 0..area.width {
636-
content.push(buf.get(x, y).symbol().chars().next().unwrap_or(' '));
636+
content.push(buf[(x, y)].symbol().chars().next().unwrap_or(' '));
637637
}
638638
content.push('\n');
639639
}

0 commit comments

Comments
 (0)