Zim

Numbered list indentation and cursor position

Bug #1293034 reported by Harshad Srinivasan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Fix Committed
Low
Unassigned

Bug Description

When tab or shift+tab is used to indent or deindent a numbered list, the cursor position after the indent or deindent is before the number (or letter) instead of after.

For example:

1. abc
2. def
3. | <- pressing tab here gives

1. abc
2. def
        | a.

instead of

1. abc
2. def
          a. |

where '|' represents the cursor.

This can be solved by moving the cursor to the end (of the) line every time an indent or dedent is issued. There might be a more elegant solution, though.

This is with Zim .60 installed on Arch through the AUR

Edit:

I'm running KDE (though I doubt that matters)

On inspection of the code, it appears that this function is carried out by iter_forward_past_bullet

This is not being executed / is failing on indentation of numbered lists (but is executed and succeeding on indentation of bullet lists)

Thanks

Tags: pageview
description: updated
description: updated
description: updated
Changed in zim:
assignee: nobody → Harshad Srinivasan (harshad1)
Changed in zim:
assignee: Harshad Srinivasan (harshad1) → nobody
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Will take along when refactoring this widget.

No high prio for now since as soon as you start typing the cursor jumps to the right place.

Regards,

Jaap

Changed in zim:
status: New → Confirmed
importance: Undecided → Low
tags: added: pageview
Changed in zim:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.