##// END OF EJS Templates
rst fixes
Matthias Bussonnier -
Show More
@@ -406,7 +406,7 b' def rectify_completions(text: str, completions: _IC, *, _debug=False)->_IC:'
406 406
407 407 :any:`jedi.api.classes.Completion` s returned by Jedi may not have the same start and end, though
408 408 the Jupyter Protocol requires them to behave like so. This will readjust
409 the completion to have the same ``start`` and ``end` by padding both
409 the completion to have the same ``start`` and ``end`` by padding both
410 410 extremities with surrounding text.
411 411
412 412 During stabilisation should support a ``_debug`` option to log which
@@ -744,8 +744,8 b' def cursor_to_position(text:int, line:int, column:int)->int:'
744 744 Convert the (line,column) position of the cursor in text to an offset in a
745 745 string.
746 746
747 Parameter
748 ---------
747 Parameters
748 ----------
749 749
750 750 text : str
751 751 The text in which to calculate the cursor offset
@@ -775,8 +775,8 b' def position_to_cursor(text:str, offset:int)->(int, int):'
775 775
776 776 Position should be a valid position in ``text``.
777 777
778 Parameter
779 ---------
778 Parameters
779 ----------
780 780
781 781 text : str
782 782 The text in which to calculate the cursor offset
@@ -21,6 +21,7 b' from prompt_toolkit.key_binding.bindings.completion import display_completions_l'
21 21
22 22 from IPython.utils.decorators import undoc
23 23
24 @undoc
24 25 @Condition
25 26 def cursor_in_leading_ws(cli):
26 27 before = cli.application.buffer.document.current_line_before_cursor
General Comments 0
You need to be logged in to leave comments. Login now