Bug 316332

Summary: Next bullet works only for one iteration
Product: [Applications] kile Reporter: kiniswiss
Component: editorAssignee: Michel Ludwig <michel.ludwig>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 2.1.3   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description kiniswiss 2013-03-07 18:56:48 UTC
%C == where the cursor is

1. \newcommand{%C}[×][×]{×}
2. Next bullet action
3. \newcommand{}[%Cx][×]{×}
4. Next bullet action
5. \newcommand{}[%Cx][×]{×}

Prev Bullet action works properly 
1. \newcommand{}[×][×]{%C×}
2. Prev bullet action
3. \newcommand{}[x][%C×]{×}
4. Prev bullet action
5. \newcommand{}[%Cx][×]{×}

Reproducible: Always

Steps to Reproduce:
Use command completion to obtain command with bullets.

1. \newcommand{%C}[×][×]{×}
2. Next bullet action
3. Next bullet action
Actual Results:  
\newcommand{}[%Cx][×]{×}

Expected Results:  
\newcommand{}[x][%C×]{×}

$ kile -v
Qt: 4.8.1
KDE Development Platform: 4.8.5 (4.8.5)
Kile: 2.1.3
Comment 1 Michel Ludwig 2013-03-07 21:40:29 UTC
Git commit 7b8e0a384c886be7fbd4f353f8f9fdb37fc83185 by Michel Ludwig.
Committed on 07/03/2013 at 22:35.
Pushed by mludwig into branch '2.1'.

Fix the move-to-next-bullet action

If the cursor is positioned at a bullet and the move-to-next-bullet action is
triggered, the cursor will jump to the next bullet if the current bullet hasn't
been 'highlighted' yet.

M  +10   -10   src/editorextension.cpp

http://commits.kde.org/kile/7b8e0a384c886be7fbd4f353f8f9fdb37fc83185
Comment 2 Michel Ludwig 2013-03-07 21:42:58 UTC
Git commit bfd6ba4ac70eb7f89a7dc826a09344e5f8b6489c by Michel Ludwig.
Committed on 07/03/2013 at 22:35.
Pushed by mludwig into branch 'master'.

Fix the move-to-next-bullet action

If the cursor is positioned at a bullet and the move-to-next-bullet action is
triggered, the cursor will jump to the next bullet if the current bullet hasn't
been 'highlighted' yet.

M  +9    -7    src/editorextension.cpp

http://commits.kde.org/kile/bfd6ba4ac70eb7f89a7dc826a09344e5f8b6489c