Page MenuHomePhabricator

VisualEditor: Can't paste into a selection covering the end of the document
Closed, ResolvedPublic

Description

  1. Copy some plain text
  2. Make a selection in the document up to the end of it (e.g. select all)
  3. Paste
  4. Exception time!

Problem is in ve.dm.Surface line 376:

rightAnnotations = dataModelData.getAnnotationsFromOffset( right );

with right = -1 (out of bounds)


Version: unspecified
Severity: normal

Details

Reference
bz49551

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:47 AM
bzimport set Reference to bz49551.

Related URL: https://gerrit.wikimedia.org/r/68629 (Gerrit Change I7497b5195961e46718c7382409a66b7eec1162a9)

Merged and will go out with wmf8 from Thursday 20 June.

Change 131717 had a related patch set uploaded (by Liangent):
LanguageConverter fix of empty and numeric strings

https://gerrit.wikimedia.org/r/131717