Add (undocumented) wholeLineUpdateBefore option

Issue #1972
Issue #1967