Skip to content

Commit 0bf852f

Browse files
committed
strip newline when setting line from history in fwd()
This will fix issue #10.
1 parent 00b0196 commit 0bf852f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ def fwd(self):
913913

914914
if self.h_i > 1:
915915
self.h_i -= 1
916-
self.s = self.rl_hist[-self.h_i]
916+
self.s = self.rl_hist[-self.h_i].rstrip('\n')
917917
else:
918918
self.h_i = 0
919919
self.s = self.ts

0 commit comments

Comments
 (0)