<blockquote>
<p>if the cursor does not always return to the original place after two gotos then it is an unacceptable change as far as I'm concerned.</p>
</blockquote>
<p>I am not certain about the meaning of "the original place".<br>
If you mean the original brace than the proposed approach always returns to the same brace after two gotos. If you mean the original column position, I am afraid there is no straightforward way to do it.<br>
Let's take a matching pair: brace 1 and brace 2.<br>
When the cursor is on the "wrong" side of the brace 1, where should "goto" place the cursor?<br>
I believe it should be the correct ("not wrong") side of the matching brace 2. Otherwise we have the same problem when two gotoes return to the wrong brace.<br>
Now, the cursor is on the "not wrong" side of the brace 2. We do another goto. As I understand, you suggest to place the cursor to the the "wrong" side of the brace 1 to return to the original column position.<br>
Then we need to keep track of user actions. If there are two consecutive goes we should move to the "wrong" side, if there is another sequence of operations, we will move to "not wrong" side. Is it what you suggest?</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/1998#issuecomment-473707202">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ8npY5mRNxcFWBGGF6gFGwOTlHCRks5vXpkQgaJpZM4YziNa">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ3izL4D0naXfgt1vYxF0TAespMkZks5vXpkQgaJpZM4YziNa.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://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@dyura in #1998: \u003e  if the cursor does not always return to the original place after two gotos then it is an unacceptable change as far as I'm concerned.\r\n\r\nI am not certain about the meaning of \"the original place\".\r\nIf you mean the original brace than the proposed approach always returns to the same brace after two gotos. If you mean the original column position, I am afraid there is no straightforward way to do it.\r\nLet's take a matching pair: brace 1 and brace 2. \r\nWhen the cursor is on the \"wrong\" side of the brace 1, where should \"goto\" place the cursor?\r\n I believe it should be the correct (\"not wrong\") side of the matching brace 2. Otherwise we have the same problem when two gotoes return to the wrong brace. \r\nNow, the cursor is on the \"not wrong\" side of the brace 2. We do another goto. As I understand, you suggest to place the cursor to the the \"wrong\" side of the brace 1 to return to the original column position.  \r\nThen we need to keep track of user actions. If there are two consecutive goes we should move to the \"wrong\" side, if there is another sequence of operations, we will move to \"not wrong\" side. Is it what you suggest?\r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1998#issuecomment-473707202"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1998#issuecomment-473707202",
"url": "https://github.com/geany/geany/issues/1998#issuecomment-473707202",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>