diff --git a/IPython/core/completer.py b/IPython/core/completer.py index d8fcc0d..57bca0e 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -406,7 +406,7 @@ def rectify_completions(text: str, completions: _IC, *, _debug=False)->_IC: :any:`jedi.api.classes.Completion` s returned by Jedi may not have the same start and end, though the Jupyter Protocol requires them to behave like so. This will readjust - the completion to have the same ``start`` and ``end` by padding both + the completion to have the same ``start`` and ``end`` by padding both extremities with surrounding text. During stabilisation should support a ``_debug`` option to log which @@ -744,8 +744,8 @@ def cursor_to_position(text:int, line:int, column:int)->int: Convert the (line,column) position of the cursor in text to an offset in a string. - Parameter - --------- + Parameters + ---------- text : str The text in which to calculate the cursor offset @@ -775,8 +775,8 @@ def position_to_cursor(text:str, offset:int)->(int, int): Position should be a valid position in ``text``. - Parameter - --------- + Parameters + ---------- text : str The text in which to calculate the cursor offset diff --git a/IPython/terminal/shortcuts.py b/IPython/terminal/shortcuts.py index 22ad111..e626ccf 100644 --- a/IPython/terminal/shortcuts.py +++ b/IPython/terminal/shortcuts.py @@ -21,6 +21,7 @@ from prompt_toolkit.key_binding.bindings.completion import display_completions_l from IPython.utils.decorators import undoc +@undoc @Condition def cursor_in_leading_ws(cli): before = cli.application.buffer.document.current_line_before_cursor