Fix bug in TextMate bundle when using the see or help commands on the first word on a line

db4
Joe Groff 2008-02-03 10:24:28 -08:00
parent 4e4e4ee157
commit c60338df7e
2 changed files with 1 additions and 2 deletions

View File

@ -111,4 +111,3 @@ M: bunny-buffers dispose
"1.5" { "GL_ARB_vertex_buffer_object" }
has-gl-version-or-extensions?
[ <bunny-buffers> ] [ <bunny-dlist> ] if ;

View File

@ -33,6 +33,6 @@ def doc_using_statements(document)
end
def line_current_word(line, point)
left = line.rindex(/\s|^/, point - 1) + 1; right = line.index(/\s|$/, point) - 1
left = line.rindex(/\s/, point - 1) || 0; right = line.index(/\s/, point) || line.length
line[left..right]
end