@@ -927,7 +927,7 @@ def current_line_formatted(self):
927
927
if self .incremental_search_target in self .current_line :
928
928
fs = fmtfuncs .on_magenta (self .incremental_search_target ).join (fs .split (self .incremental_search_target ))
929
929
elif self .rl_history .saved_line and self .rl_history .saved_line in self .current_line :
930
- if self .config .curtsies_right_arrow_completion :
930
+ if self .config .curtsies_right_arrow_completion and self . rl_history . index != 0 :
931
931
fs = fmtfuncs .on_magenta (self .rl_history .saved_line ).join (fs .split (self .rl_history .saved_line ))
932
932
logger .debug ('Display line %r -> %r' , self .current_line , fs )
933
933
else :
@@ -1203,6 +1203,8 @@ def __repr__(self):
1203
1203
def _get_current_line (self ):
1204
1204
return self ._current_line
1205
1205
def _set_current_line (self , line , update_completion = True , reset_rl_history = True , clear_special_mode = True ):
1206
+ if self ._current_line == line :
1207
+ return
1206
1208
self ._current_line = line
1207
1209
if update_completion :
1208
1210
self .update_completion ()
@@ -1214,7 +1216,7 @@ def _set_current_line(self, line, update_completion=True, reset_rl_history=True,
1214
1216
"The current line" )
1215
1217
def _get_cursor_offset (self ):
1216
1218
return self ._cursor_offset
1217
- def _set_cursor_offset (self , offset , update_completion = True , reset_rl_history = True , clear_special_mode = True ):
1219
+ def _set_cursor_offset (self , offset , update_completion = True , reset_rl_history = False , clear_special_mode = True ):
1218
1220
if update_completion :
1219
1221
self .update_completion ()
1220
1222
if reset_rl_history :
0 commit comments