diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2022-12-13 00:34:57 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2022-12-16 16:30:18 +0100 |
commit | b4a4932f1fc53d75d88d8f54906acadfb3651a97 (patch) | |
tree | fc412637e1337738a749ce556c2e5dacb229bdca /ScreensPanel.h | |
parent | 2ca75625ee5c2ac0ef1571e6918d7c94f3aa011c (diff) |
ScreenPanel: handle quitting panel while renaming
During renaming the ScreenPanel takes ownership of the text value of the
screen entries ListItem (via its saved member) and replaces the pointer
in the ListItem with a pointer to the ScreenPanel's static text buffer.
Restore the ownership, similar to how it's done on ESC.
Fixes: #1147
Diffstat (limited to 'ScreensPanel.h')
-rw-r--r-- | ScreensPanel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ScreensPanel.h b/ScreensPanel.h index 1f82395a..88d85b5c 100644 --- a/ScreensPanel.h +++ b/ScreensPanel.h @@ -31,7 +31,7 @@ typedef struct ScreensPanel_ { char* saved; int cursor; bool moving; - bool renaming; + ListItem *renamingItem; } ScreensPanel; typedef struct ScreenListItem_ { |