File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -3503,11 +3503,13 @@ def _initialize_history(self, hist_file):
35033503 if rl_type != RlType .NONE :
35043504 last = None
35053505 for item in history :
3506- # readline only adds a single entry for multiple sequential identical commands
3507- # so we emulate that behavior here
3508- if item .raw != last :
3509- readline .add_history (item .raw )
3510- last = item .raw
3506+ # Break the command into its individual lines
3507+ for line in item .raw .splitlines ():
3508+ # readline only adds a single entry for multiple sequential identical lines
3509+ # so we emulate that behavior here
3510+ if line != last :
3511+ readline .add_history (line )
3512+ last = line
35113513
35123514 # register a function to write history at save
35133515 # if the history file is in plain text format from 0.9.12 or lower
You can’t perform that action at this time.
0 commit comments