##// END OF EJS Templates
Only track unique history of commands
Jamshed Vesuna -
Show More
@@ -138,7 +138,7 b' class TerminalInteractiveShell(InteractiveShell):'
138 138 highlighting: \n %s""" % ', '.join(get_all_styles())
139 139 ).tag(config=True)
140 140
141
141
142 142 @observe('highlighting_style')
143 143 @observe('colors')
144 144 def _highlighting_style_changed(self, change):
@@ -183,7 +183,7 b' class TerminalInteractiveShell(InteractiveShell):'
183 183 help="Automatically set the terminal title"
184 184 ).tag(config=True)
185 185
186 display_completions = Enum(('column', 'multicolumn','readlinelike'),
186 display_completions = Enum(('column', 'multicolumn','readlinelike'),
187 187 help= ( "Options for displaying tab completions, 'column', 'multicolumn', and "
188 188 "'readlinelike'. These options are for `prompt_toolkit`, see "
189 189 "`prompt_toolkit` documentation for more information."
@@ -230,6 +230,7 b' class TerminalInteractiveShell(InteractiveShell):'
230 230 cell = cell.rstrip()
231 231 if cell and (cell != last_cell):
232 232 history.append(cell)
233 last_cell = cell
233 234
234 235 self._style = self._make_style_from_name_or_cls(self.highlighting_style)
235 236 style = DynamicStyle(lambda: self._style)
@@ -255,7 +256,7 b' class TerminalInteractiveShell(InteractiveShell):'
255 256 """
256 257 Small wrapper that make an IPython compatible style from a style name
257 258
258 We need that to add style for prompt ... etc.
259 We need that to add style for prompt ... etc.
259 260 """
260 261 style_overrides = {}
261 262 if name_or_cls == 'legacy':
General Comments 0
You need to be logged in to leave comments. Login now