1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:37:44 +00:00

TextEditor: Use FileSystemAccessClient::try_* APIs

This commit is contained in:
Mustafa Quraish 2022-01-16 22:43:40 -05:00 committed by Andreas Kling
parent effb19f996
commit f674102447
5 changed files with 33 additions and 71 deletions

View file

@ -123,7 +123,7 @@ public:
void insert_at_cursor_or_replace_selection(StringView);
bool write_to_file(String const& path);
bool write_to_file_and_close(int fd);
bool write_to_file(Core::File&);
bool has_selection() const { return m_selection.is_valid(); }
String selected_text() const;
size_t number_of_words() const;