Commit 7e901a17 authored by Joanmarie Diggs's avatar Joanmarie Diggs

Advance caret context to first non-list-item-marker position

parent 6b815e95
......@@ -4176,6 +4176,13 @@ class Utilities(script_utilities.Utilities):
debug.println(debug.LEVEL_INFO, msg, True)
return self.findFirstCaretContext(obj[0], 0)
if self.isListItemMarker(obj):
nextObj, nextOffset = obj, offset
while nextObj and self.isListItemMarker(nextObj):
nextObj, nextOffset = self.nextContext(nextObj, nextOffset)
if nextObj:
obj, offset = nextObj, nextOffset
text = self.queryNonEmptyText(obj)
if not text:
if self._advanceCaretInEmptyObject(obj) \
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment