Skip to content

Incorrect word wrapping with Unicode quotes #28427

@PeteX

Description

@PeteX
  • VSCode Version: 1.13.0
  • OS Version: Ubuntu 16.04

When word wrapping is enabled, the editor should only break lines at space characters. (More precisely, I suppose it should break lines at any of the Unicode space characters which are not specifically designated as non-breaking.) Unfortunately at the moment it also breaks lines between alphabetic characters and adjacent Unicode quotes. For example, it will not break don't because it only contains an ASCII quote. However, it will break don’t because it contains U+2019, the right single quotation mark.

Steps to Reproduce:

  1. Turn on word wrap in a buffer, with the "editor.wordWrap" configuration option.
  2. Enter a word with a Unicode quote, for example by copying don’t from the paragraph above.
  3. Enter more text to the left of the word don’t until it wraps.
  4. Observe that it first wraps by moving the t onto the next line, leaving the rest of the word behind.

Metadata

Metadata

Assignees

Labels

editor-wrappingEditor line wrapping issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions