Update placeholder visibility when setting a buffer
If we set the placeholder text before setting a buffer, we end up with both the placeholder and the buffer's contents visible at the same time.
Fixes: #4376 (closed)
If we set the placeholder text before setting a buffer, we end up with both the placeholder and the buffer's contents visible at the same time.
Fixes: #4376 (closed)