node/lib/metasm/metasm/gui/debug.rb
def rightclick(x, y)
		y -= height % @font_height
		y = y.to_i / @font_height
		hc = height / @font_height
		x /= @font_width
		if y >= hc - 2
			keypress_ctrl ?v
		else
			txt = @log.reverse[@log_offset + hc - y - 3].to_s
			word = txt[0...x].to_s[/\w*$/] << txt[x..-1].to_s[/^\w*/]
			clipboard_copy(word)
		end
	end
# copy/paste word under cursor (paste when on last line)
copy/paste word under cursor (paste when on last line)
copy / paste word under cursor ( paste when on last line )
def rightclick(x, y)
		y -= height % @font_height
		y = y.to_i / @font_height
		hc = height / @font_height
		x /= @font_width
		if y >= hc - 2
			keypress_ctrl ?v
		else
			txt = @log.reverse[@log_offset + hc - y - 3].to_s
			word = txt[0...x].to_s[/\w*$/] << txt[x..-1].to_s[/^\w*/]
			clipboard_copy(word)
		end
	end
def rightclick ( x , y ) y -= height % @font_height y = y . to_i / @font_height hc = height / @font_height x /= @font_width if y >= hc - 2 keypress_ctrl ?v else txt = @log . reverse [ @log_offset + hc - y - 3 ] . to_s word = txt [ 0 ... x ] . to_s [ / \w *$ / ] << txt [ x .. - 1 ] . to_s [ / ^ \w * / ] clipboard_copy ( word ) end end
copy/paste word under cursor (paste when on last line)
copy / paste word under cursor ( paste when on last line )
x
y