Split a line of text with a cursor at the given position.
(self, line, cursor_pos=None)
| 557 | self._delim_expr = expr |
| 558 | |
| 559 | def split_line(self, line, cursor_pos=None): |
| 560 | """Split a line of text with a cursor at the given position. |
| 561 | """ |
| 562 | l = line if cursor_pos is None else line[:cursor_pos] |
| 563 | return self._delim_re.split(l)[-1] |
| 564 | |
| 565 | |
| 566 |
no outgoing calls