clear selection when resizing window

This commit is contained in:
cy384 2021-01-23 12:45:51 -05:00
parent df1e5769e9
commit 97b5bd1453
2 changed files with 4 additions and 0 deletions

View File

@ -22,3 +22,5 @@ void mouse_click(Point p, int click);
void update_console_colors(void);
size_t get_selection(char** selection);
void clear_selection(void);

View File

@ -441,6 +441,8 @@ int process_menu_select(int32_t result)
void resize_con_window(WindowPtr eventWin, EventRecord event)
{
clear_selection();
// TODO: put this somewhere else
// limits on window size
// top = min vertical