enriquein/JavaSetterGetter — pull request #3 by bnlucas (2012-11-14 23:28:33+00:00)
Title: Took out redundant second sel() loop

The second call of getLastSelection() is redundant as (insert_count + insert_position) equals the same and we don't need to process the selections a second time.

Also added a line loop if \n is found in a selection.