<p>When "Document -> Line Breaking" is turned on, and user types cyrillic symbols and words and reaches assumed end of line (72 chars by default), Geany breaks the line, but not at the last word. While typing english symbols and words, line breaking works perfectly.<br>
Screenshot with bug (cyrillic words)<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/6756060/45754463-31d2fe80-bc35-11e8-84f9-1781e0ecce74.PNG"><img src="https://user-images.githubusercontent.com/6756060/45754463-31d2fe80-bc35-11e8-84f9-1781e0ecce74.PNG" alt="geany_bug_cyrillic" style="max-width:100%;"></a></p>
<p>Screenshot without bug (english words)<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/6756060/45754522-4f07cd00-bc35-11e8-8e4c-8839e267839c.PNG"><img src="https://user-images.githubusercontent.com/6756060/45754522-4f07cd00-bc35-11e8-8e4c-8839e267839c.PNG" alt="geany_no_bug_english" style="max-width:100%;"></a></p>
<p>This bug reproduces in Geany 1.33 on Windows 7 and Geany 1.28 on Debian 8 Jessie.</p>
<p>geany 1.28 ((собрано 2016-11-01 или позднее)GTK 2.24.25, GLib 2.42.1)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1958">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ1oCj3eHV7GjeEn3s-Wr0qtqf3Epks5uckFfgaJpZM4WwIJZ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ4tJ1LADIHBceNhIj8gGjB0em0g8ks5uckFfgaJpZM4WwIJZ.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Document line breaking works incorrect with cyrillic text (#1958)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1958"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1958",
"url": "https://github.com/geany/geany/issues/1958",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Document line breaking works incorrect with cyrillic text (#1958)",
"sections": [
{
"text": "",
"activityTitle": "**Bernhardt Mark**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@wrgcpp",
"facts": [
{
"name": "Repository: ",
"value": "geany/geany"
},
{
"name": "Issue #: ",
"value": 1958
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1958,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"geany/geany\",\n\"issueId\": 1958\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1958"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 381715033\n}"
}
],
"themeColor": "26292E"
}
]</script>