[PyKDE] subtle bug in eric3 editor
Andreas Pakulat
apaku at gmx.de
Sat Jul 8 12:27:11 BST 2006
On 08.07.06 12:11:04, Phil Thompson wrote:
> On Saturday 08 July 2006 11:23 am, Andreas Pakulat wrote:
> > On 08.07.06 10:58:42, Detlev Offenbach wrote:
> > > On Friday 07 July 2006 23:07, Andreas Pakulat wrote:
> > > > I think there's a bug in either eric3's "usage" of QScintilla or
> > > > QScintilla itself: When a : is put into a line, an enter on that line
> > > > will go to the next line _and_ eric3 indents the next line. This is
> > > > only the correct behaviour if the line where I press enter contains
> > > > for, def, class, if (and what else I forgot) and if there's nothing
> > > > after the : except whitespace or #.
> > > >
> > > > Or am I wrong at that?
> > > >
> > > > I stumbled upon this with:
> > > > data = self.doc.xpath(self.search_xpath,
> > > > {'moviedbns':'http://localhost/moviedb'})
> > > >
> > > > where eric3 indents the next line when I press enter at the end of that
> > > > line.
> > >
> > > that is a Scintilla "feature". I don't use the "Autoindent after ':'"
> > > feature. (see configuration dialog -> Editor -> Properties page).
> >
> > Hmm, am I right that QScintilla is a Qt wrapper around Scintilla? Then
> > I'll complain to the scintilla developers. This is definetly not a
> > feature.
>
> It's more than a wrapper. Scintilla doesn't implement any policy - that's left
> to, for example, SciTE. QScintilla also implements policy, including
> auto-indenting, in it's higher level API.
>
> This is a QScintilla bug, not a Scintilla bug.
Whoops, just saw that the bugreport I found is for SCitE.
Any chance to fix this for QScintilla for Qt3?
Andreas
--
Make a wish, it might come true.
More information about the PyQt
mailing list