<p>Currently, with line-wrap disabled, when the typed characters reach the right-hand-side margin of the window, the window view jumps / scrolls to a position a bit more than half the width of the window.<br>
(What character was previously seen at about half window position in the line, now gets moved left to begin of window view).<br>
That is too much of a jump; would it be possible to make it smaller, ideally the size of the set indentation, or just the (average) width of a character? Maybe as an option for the user to set (though I don't see how it would harm others).</p>
<p>Notepad++, for example, sets the auto-scroll to 4 char-widths (at least when using monospaced); which is better, although no option to change that.</p>
<p>Looking at <a href="https://www.scintilla.org/ScintillaDoc.html#ScrollingAndAutomaticScrolling" rel="nofollow">https://www.scintilla.org/ScintillaDoc.html#ScrollingAndAutomaticScrolling</a> , it seems it would be possible?... Particularly <code>SCI_GETXOFFSET</code> and/or <code>SCI_LINESCROLL(int columns, int lines)</code>.</p>
<p>I will illustrate why this is desirable; bellow <code>|</code> represents window margins<br>
Say you type one line, press "enter", then type a second after an indentation:</p>
<pre><code>|Aaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaa |
|        Caaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaa|
</code></pre>
<p>Now when I type one more character... whoa Nelly, too big jump!<br>
I see this (too bad font  here is not monospaced, at least in code blocks)</p>
<pre><code>|baaaaaaaaaaaaaaaaaaaa                        |
|daaaaaaaaaaaaaaaaaaaaa                       |
</code></pre>
<p>If it were to jump by at most an indentation size, you would see this:</p>
<pre><code>|aaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaa      |
|Caaaaaaaaaaaaadaaaaaaaaaaaaaaaaaaaaa         |
</code></pre>
<p>which is better, as you still see the whole line you are editing.</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/1952">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ6VzG4Ieyq7ycF_uNCaPs5oVLtBwks5ubBTHgaJpZM4Wp66o">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ6Kfuq4vSW1iZBDF800jwu5W0Xmaks5ubBTHgaJpZM4Wp66o.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":"Smaller horizontal auto-scroll jump when typing (#1952)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1952"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1952",
"url": "https://github.com/geany/geany/issues/1952",
"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": "Smaller horizontal auto-scroll jump when typing (#1952)",
"sections": [
{
"text": "",
"activityTitle": "**VictorelPetrovich**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@VictorelPetrovich",
"facts": [
{
"name": "Repository: ",
"value": "geany/geany"
},
{
"name": "Issue #: ",
"value": 1952
}
]
}
],
"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\": 1952,\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\": 1952\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/geany/geany/issues/1952"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 380087976\n}"
}
],
"themeColor": "26292E"
}
]</script>