Don't infinite loop when searching CLI history list (#2560)
- The easiest way to clean up the history list when moving an item is to just remove it and reinsert, so use pj_list_erase(). - Also in inserting entry to CLI history list (`insert_history()`): trim string before compare (as history entries are trimmed), replace pj_list_insert_nodes_after() with pj_list_erase(), avoid buffer overflow in string copy, and a bit optimization: only copy string when needed.remotes/origin/support-2.11.1
parent
2eea0ace2b
commit
86f3ea6059
Loading…
Reference in new issue