def find_line_text_object(view, s):
"""Implement the line object."""
line = view.line(s)
line_content = view.substr(line)
begin = line.begin()
end = line.end()
whitespace_match = re.match("\s+", line_content)
if whitespace_match:
begin = begin + len(whitespace_match.group(0))
return (begin, end)
# TODO: Move this to units.py.
评论列表
文章目录