Error in Dired and Global-visible-mark-mode when using Dired+
I get this error:
Error in post-command-hook (visible-mark-move-overlays): (wrong-type-argument overlayp nil) [2 times]
I get this error whenever enabling global-visible-mark-mode and going into a Dired buffer. Maybe because I use dired+ which modifies all the styles and colors of various files. Might cause conflicts with visible-mark-mode.
Is there a way to not enable visible-mark-mode in certain modes when enabling globally?
If not, I will add visible-mark-mode to command hooks. I want it all modes except where I get this error, which is just Dired buffers as far as I know.
Or another solution would be to not turn off visible-mark-mode in all buffers when an error occurs. It doesn't say global-visible-mark-mode is disabled but it seems to turn it off in every buffer whenever an error occurs. Just turning off visible-mark-mode in the buffer that the error occurs or any buffer with the same major-mode might help.
Update: I realized if new buffers are opened after an error occurs, it activates visible-mark-mode in the new buffers correctly. Just when an error occurs, all the current buffers it gets deactivated so has to be turned off and on to get it working.