node/lib/metasm/metasm/gui/dasm_opcodes.rb
def update_caret
		if update_hl_word(@line_text[@caret_y], @caret_x) or @caret_y != @oldcaret_y
			redraw
		elsif @oldcaret_x != @caret_x
			invalidate_caret(@oldcaret_x, @oldcaret_y)
			invalidate_caret(@caret_x, @caret_y)
		end

		@oldcaret_x, @oldcaret_y = @caret_x, @caret_y
	end
# hint that the caret moved
# redraws the caret, change the hilighted word, redraw if needed
hint that the caret moved
redraws the caret, change the hilighted word, redraw if needed
hint that the caret moved redraws the caret change the hilighted word redraw if needed
def update_caret
		if update_hl_word(@line_text[@caret_y], @caret_x) or @caret_y != @oldcaret_y
			redraw
		elsif @oldcaret_x != @caret_x
			invalidate_caret(@oldcaret_x, @oldcaret_y)
			invalidate_caret(@caret_x, @caret_y)
		end
		@oldcaret_x, @oldcaret_y = @caret_x, @caret_y
	end
def update_caret if update_hl_word ( @line_text [ @caret_y ] , @caret_x ) or @caret_y != @oldcaret_y redraw elsif @oldcaret_x != @caret_x invalidate_caret ( @oldcaret_x , @oldcaret_y ) invalidate_caret ( @caret_x , @caret_y ) end @oldcaret_x , @oldcaret_y = @caret_x , @caret_y end
hint that the caret moved
redraws the caret, change the hilighted word, redraw if needed
hint that the caret moved redraws the caret change the hilighted word redraw if needed