Fix bug in TextMate bundle when using the see or help commands on the first word on a line
parent
4e4e4ee157
commit
c60338df7e
|
@ -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 ;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue