• Jeffrey Lee's avatar
    Fix null pointer dereferences in keyboard shortcut handling. Fix Ctrl-R... · c5d2c65d
    Jeffrey Lee authored
    Fix null pointer dereferences in keyboard shortcut handling. Fix Ctrl-R renaming not always working.
    
    Detail:
      s/Redraw - Introduce always_create_rename_writeable, as a variation of create_rename_writeable. This new version ignores the mouse position and positions the caret at the end of the filename.
      s/KeyPress - Fix delete shortcut handling to do nothing if nothing selected (avoids null pointer dereference in Filer_Action). Fix null pointer dereference in 'open parent' shortcut handling if parent already open. Change rename handling to use always_create_rename_writeable instead of trying to generate a fake mouse position (old code only worked for some filer view modes). Fix comments for next/prev dir shortcuts to match reality, and wrap rename code in AltRenaming switch to match the implementation in s/Redraw.
    Admin:
      Tested on Pandaboard
      Fixes null pointer dereferences reported on forums:
      https://www.riscosopen.org/forum/forums/4/topics/3447
    
    
    Version 2.41. Tagged as 'Filer-2_41'
    c5d2c65d
Redraw 64 KB