mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-24 17:28:40 +00:00
Count chars
This commit is contained in:
parent
f68f9f37ab
commit
7f3d937938
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ impl FeedbackEditor {
|
|||
_: ModelHandle<Project>,
|
||||
cx: &mut ViewContext<Self>,
|
||||
) -> Task<anyhow::Result<()>> {
|
||||
let feedback_char_count = self.editor.read(cx).buffer().read(cx).len(cx);
|
||||
let feedback_char_count = self.editor.read(cx).text(cx).chars().count();
|
||||
|
||||
let error = if feedback_char_count < *FEEDBACK_CHAR_LIMIT.start() {
|
||||
Some(format!(
|
||||
|
|
Loading…
Reference in a new issue