Skip to content

Commit 5c69165

Browse files
committed
update changelog
1 parent 8e0d24d commit 5c69165

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*If you're reading this because you try make sense of some new API or a breaking change, you might also be interested in coming to the chat for explanations or guidance.*
22

3+
### next
4+
- input_field#display returns the curstor position if it's rendered - experimental - Thanks @xubaiwang
5+
36
<a name="v0.30.0"></a>
47
### v0.30.0 - 2024-08-12
58
- upgrade crossterm to 0.28

src/views/input_field.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ impl InputField {
666666
}
667667

668668
/// render the input field on stdout
669+
///
670+
/// Return the input field position if the cursor is displayed
669671
pub fn display(&self) -> Result<Option<(u16, u16)>, Error> {
670672
let mut w = std::io::stdout();
671673
let pos = self.display_on(&mut w)?;

0 commit comments

Comments
 (0)