Hello,
I fixed the bug reported in Bugzilla as "Bug 105 cursor jumps when typing
multiline messages"
I'm new with git (I use svn), I followed the tutorial [1], but I have an
error when I try to send to server these corrections that I made (git push).
This is the error that I got:
---------------------------------
[~/centerim]$ git push
updating 'refs/heads/master'
from 24932da60ad359e5363d306345cff01de86f76f3
to 3cfa572224b716ac05f6cc4951b97467c09944a2
Generating pack...
Done counting 9 objects.
Result has 5 objects.
Deltifying 5 objects.
100% (5/5) done
Writing 5 objects.
100% (5/5) done
Total 5, written 5 (delta 4), reused 0 (delta 0)
The mob user can push only to the 'mob' branch, sorry
error: hooks/update exited with error code 1
error: hook declined to update refs/heads/master
ng refs/heads/master hook declined
---------------------------------
Here is my "commit description":
This commit fix the bug reported in Bugzilla as "Bug 105 cursor jumps when
typing multiline messages".
The problem happen when the texteditor try to merge a line 'cause some
caracter are excluded in one line (diferent of the last line) of a multiline
message .
There is only one file changed (kkconsui/src/texteditor.cc), here is the
diff:
--------------------------------
@@ -40,6 +40,7 @@
* 10.07.2000 undo() implemented
* 25.07.2000 tab support improved
* 06.09.2000 blocks handling improved, shiftmarkedblock method added
+* 31.10.2008 mergeline() minor bug fixed
*
*/
@@ -2224,20 +2225,24 @@
anext[able] = 0;
if(asub = strpbrk(anext, WORD_DELIM)) {
+ int pxdeltamerge;
for(; atsub = strpbrk(asub+1, WORD_DELIM); asub = atsub);
char *newline = new char[strlen(p)+asub-anext+2];
strcpy(newline, p);
if ((ln==(py-1)) && (px<(asub-anext+1))) { // move to
previous line
px += strlen(newline);
+ pxdeltamerge = px; //accepting that change px even if
the line is merged
py--;
}
else {
- px -= (asub-anext+1); // move back
+ //px -= (asub-anext+1); // move back
+ pxdeltamerge = px - (asub-anext+1); //px can't be
changed even if the line is merged
}
strncat(newline, next, asub-anext+1);
strcut(next, 0, asub-anext+1);
curfile->lines->replace(ln, newline);
- mergeline(ln+1, false, px, py); // we've merged something
from the next line - try to merge it too
+ //mergeline(ln+1, false, px, py); // we've merged something
from the next line - try to merge it too
+ mergeline(ln+1, false, pxdeltamerge, py); // we've merged
something from the next line - try to merge it too
}
free(anext);
--------------------------------
Someone can help me with the git, or add the corrections, please?
thanks
Max
[1] http://www.centerim.org/index.php/Contribute_Code
--
_______________________________________________
Centerim-devel mailing list
[email protected]
http://centerim.org/mailman/listinfo/centerim-devel
http://www.centerim.org/