Reloading page with markup misplaces cursor

Reported by Joel Pettersson on 2012-11-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Low
Unassigned

Bug Description

1. Enter the following text (excluding <cursor>) into a page:

Zim //markup// <cursor>feature is great.

2. Place cursor at the position indicated by <cursor>, that is, just before the word "feature".

3. Reload page.

Expected result: The word "markup" is in italic, the two pairs of "//" are gone, AND the cursor is still positioned just before "feature".

Actual result: The word "markup" is in italic, the two pairs of "//" are gone, BUT the cursor is *not* positioned before "feature", but instead in the middle of "feature".

It seems that the removed characters used for markup are not accounted for when positioning the cursor after a page reload.

I am running Zim 0.56 on Ubuntu 12.10:

INFO: This is zim 0.56
DEBUG: Python version is sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)
DEBUG: Platform is posix
DEBUG: Zim revision is:
  branch: pyzim-trunk
  revision: 533 <email address hidden>
  date: 2012-04-02 22:07:22 +0200
DEBUG: Gtk version is (2, 24, 13)
DEBUG: Pygtk version is (2, 24, 0)

description: updated

Will keep the report open, but afraid this will be a "Won't Fix" for a long time. Reason is that in the pageview we do not have information from the parser, so we are not aware that the characters disappeared.

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

Other bug subscribers