node/lib/metasm/metasm/gui/dasm_graph.rb
def update_caret(update_hlword = true)
		return if not b = @caret_box or not @caret_x or not l = @caret_box[:line_text_col][@caret_y]

		if update_hlword
			l = l.map { |s, c| s }.join
			@parent_widget.focus_changed_callback[] if @parent_widget and @parent_widget.focus_changed_callback and @oldcaret_y != @caret_y
			update_hl_word(l, @caret_x)
		end

		focus_xy(b.x + @caret_x*@font_width, b.y + @caret_y*@font_height)

		redraw
	end
# hint that the caret moved
# redraw, change the hilighted word
hint that the caret moved
redraw, change the hilighted word
hint that the caret moved redraw change the hilighted word
def update_caret(update_hlword = true)
		return if not b = @caret_box or not @caret_x or not l = @caret_box[:line_text_col][@caret_y]
		if update_hlword
			l = l.map { |s, c| s }.join
			@parent_widget.focus_changed_callback[] if @parent_widget and @parent_widget.focus_changed_callback and @oldcaret_y != @caret_y
			update_hl_word(l, @caret_x)
		end
		focus_xy(b.x + @caret_x*@font_width, b.y + @caret_y*@font_height)
		redraw
	end
def update_caret ( update_hlword = true ) return if not b = @caret_box or not @caret_x or not l = @caret_box [ :line_text_col ] [ @caret_y ] if update_hlword l = l . map { | s , c | s } . join @parent_widget . focus_changed_callback [ ] if @parent_widget and @parent_widget . focus_changed_callback and @oldcaret_y != @caret_y update_hl_word ( l , @caret_x ) end focus_xy ( b . x + @caret_x * @font_width , b . y + @caret_y * @font_height ) redraw end
hint that the caret moved
redraw, change the hilighted word
hint that the caret moved redraw change the hilighted word
update_hlword