shared/shell: Fix history display with no saved prompt 16/204916/1
authorSzymon Janc <szymon.janc@codecoup.pl>
Tue, 20 Feb 2018 11:09:40 +0000 (12:09 +0100)
committerAmit Purwar <amit.purwar@samsung.com>
Mon, 15 Apr 2019 03:31:11 +0000 (09:01 +0530)
commit467a0297daa372e44f7108bdc0cb56399b87f59f
tree9adfd9ccdc81deac926e563623da87ccd1394a2f
parent4e351025d57428958b8a2415e72d702789923316
shared/shell: Fix history display with no saved prompt

Prompt needs to be restored always since default prompt is provided.
This fix issues with history line being clobbered by offset of prompt
length.

[bluetooth]# connect 9C:5C:F9:AB:C5:82
Attempting to connect to 9C:5C:F9:AB:C5:82
[bluetooth]# disconnect 9C:5C:F9:AB:C5:82
Attempting to disconnect from 9C:5C:F9:AB:C5:82
Failed to connect: org.bluez.Error.Failed
Successful disconnected
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 5C:E0:C5:34:AE:1C Discoverable: yes
[bluetooth]# disconnect discoverable on

after pressing up-down
[bluetooth]# disconnect dis5C:F9:AB:C5:82

Change-Id: I83d4d5e15cb67f51256359d7e73c19a840c85a34
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
src/shared/shell.c