Improvements/Fixes to autopairing

also fixed a bug affecting the cursor/mouse color on dark backgrounds