Frank Wunderlich:

> I've found the following bug in folding:
> if a fold-keyword is commented out it will be closed but not opened.
>
> example (taken from SciTEIO.cxx:350):
>
> [-] bool SciTEBase::Open(FilePath file, OpenFlags of) {
>   |     InitialiseBuffers();
>   |
>   |     //if (!file.IsSet()) {
>   |     //      SString msg = LocaliseMessage("Bad file.");
>   |     //      WindowMessageBox(wSciTE, msg, MB_OK | MB_ICONWARNING);
>   |     //  return false;
>   +----- //}
>
> normally it must open a new fold at the beginning if the comment-lines (
> because the opening bracket for the bracket in last listed line is
> there) or folding for such comments ist totally off, so fold must not be
> end on line with "//}"

   I should have used the normal SciTE comment out marker "//~ ". If
you don't like the explicit fold markers, they can be turned off with
fold.comment=0.

   Neil

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to