1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:07:34 +00:00

HexEditor: Created has_selection() method.

Created has_selection() method and fixed a few small issues.
This commit is contained in:
Brandon Scott 2019-10-26 17:41:59 -05:00 committed by Andreas Kling
parent c77fe5161c
commit 98e556fee9
3 changed files with 7 additions and 6 deletions

View file

@ -25,6 +25,7 @@ public:
void fill_selection(u8 fill_byte);
bool write_to_file(const StringView& path);
bool has_selection() const { return !(m_selection_start == -1 || m_selection_end == -1 || (m_selection_end - m_selection_start) < 0 || m_buffer.is_empty()); }
bool copy_selected_text_to_clipboard();
bool copy_selected_hex_to_clipboard();
bool copy_selected_hex_to_clipboard_as_c_code();