mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Merge pull request #17949 from ariasuni/more-agressive-word-wrapping
Make soft-wrap break words before a slash or space and after a dash
This commit is contained in:
@@ -103,7 +103,8 @@ const isWordStart = (previousCharacter, character) =>
|
||||
((character !== ' ') && (character !== '\t'))
|
||||
|
||||
const isWrapBoundary = (previousCharacter, character) =>
|
||||
isWordStart(previousCharacter, character) || isCJKCharacter(character)
|
||||
isWordStart(previousCharacter, character) || isCJKCharacter(character) ||
|
||||
previousCharacter === '-' || character === '/' || character === ' '
|
||||
|
||||
// Does the given string contain at least surrogate pair, variation sequence,
|
||||
// or combined character?
|
||||
|
||||
Reference in New Issue
Block a user