fix selection detection of colornotes plugin
fix warning, unused variable
fix #32166
Merge pull request #1276 from heuchi/heuchi-fixColornotesPlugin

fix selection detection of colornotes plugin