Skip to content

Commit

Permalink
clear selection when resizing window
Browse files Browse the repository at this point in the history
  • Loading branch information
cy384 committed Jan 23, 2021
1 parent df1e576 commit 97b5bd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ssheven-console.h
Expand Up @@ -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);
2 changes: 2 additions & 0 deletions ssheven.c
Expand Up @@ -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
Expand Down

0 comments on commit 97b5bd1

Please sign in to comment.