[PATCH 5.10 305/317] kdb: Fix console handling when editing and tab-completing commands