[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: BUG: open brace indicator
From: August =?iso-8859-1?Q?H=F6randl?= <august.hoerandl () gmx ! at>
Date: 2002-03-11 23:57:33
[Download RAW message or body]
August Hörandl wrote:
>
> newest Kdevelop from cvs on kde2/qt2
>
> the open brace indicator (underlined open brace) isn't updated
> on character insert
>
> try this:
> (()
> ^ move cursor after the ), open ( gets _
> insert a )
> (())
> ^ cursor here, _ doesn't move, second ( has the _ -- BUG
> move cursur left and right, first ( is underlined -- ok
> insert ; -- first ( keeps the _ -- BUG
so if nobody takes my seriosly ;-)
i did a little research and came up with the following patch
(update brackets mark after insertChar() ):
*** kwview.cpp 2002/03/04 22:56:50 1.9.2.19.2.46.2.10
--- kwview.cpp 2002/03/11 23:31:06
*************** X : cut
*** 1075,1080 ****
--- 1075,1082 ----
}
// insert the character at the current cursor.
kWriteDoc->insertChar(this,c,e->ascii());
+ if (c.flags & cfHighlightBrackets)
+ kWriteDoc->newBracketMark(c.cursor, bm);
} else {
if (e->state() & ShiftButton) c.flags |= cfMark;
could anybody comment on this - otherwise i will commit it ;-)
Gustl
--
August Hörandl august.hoerandl@gmx.at
~/.signature: No such file or directory
_______________________________________________
Kdevelop-devel mailing list
Kdevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic