Relayout paragraph on caret position and/or selection change.

Fixes #70.