prevent E315 error (ml_get: invalid lnum)
prevent accidentally to reset modified flag for the original buffer
Make sure, cursor is in the correct window, before setting highlight match