google-code-export / notepad2-mod

Automatically exported from code.google.com/p/notepad2-mod
Other
2 stars 1 forks source link

IDM_EDIT_STREAMCOMMENT improvements #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Personally, I find it wrong that one can add a stream comment even if nothing 
is selected.

I found that the easiest way to do this is to add a check in 
EditEncloseSelection: if (iSelEnd - iSelStart != 0)

But the above would require that EditEncloseSelectionDlgProc and 
EditInsertTagDlgProc should check for this too.

al.lekov, what's your opinion on this? Maybe any suggestion for properly doing 
this without duplicate code?

Original issue reported on code.google.com by XhmikosR on 13 Dec 2011 at 3:01