core.snippet: fix insertion with multiple cursor