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
This includes:
- Wrap function implementations
- Pointer alignment for function signatures
- Pointer alignment for variable declarations
- Whitespace after keywords
- Whitespace after comma
- Whitespace around initializers
- Whitespace around operators
- Code indentation
- Line break for single line statements
- Misleading alignment
In the situation where the currently displayed screen is
removed we could end up with an invalid ss pointer (and
associated index) in the global Settings structure. Any
subsequent access to these fields would make an invalid
pointer dereference.
Fixes: #1053