<p>For some filetypes (more specifically some Scintilla lexers) it might<br>
happen that an event with modificationType SC_MOD_CHANGEMARKER is<br>
sent and so the current line is added as bookmark again.<br>
To avoid this, check if the current line has already a bookmark and<br>
update it in this case.</p>
<p>Might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="587833254" data-permission-text="Title is private" data-url="https://github.com/geany/geany-plugins/issues/964" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/964/hovercard" href="https://github.com/geany/geany-plugins/issues/964">#964</a>.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/1040'>https://github.com/geany/geany-plugins/pull/1040</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Addons: Bookmarks: Prevent duplicating bookmarks when editing line</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/1040/files#diff-d7da203371a4c7cee5af97af981379f5a6273d7f055c148b99d01bfb0bd29efb">addons/src/ao_bookmarklist.c</a>
    (26)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/1040.patch'>https://github.com/geany/geany-plugins/pull/1040.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/1040.diff'>https://github.com/geany/geany-plugins/pull/1040.diff</a></li>
</ul>

<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-plugins/pull/1040">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6ZGOJNRPSB47OX3E3SSLBYVANCNFSM4UGZUXEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ26CSQALEFZV4SGOQDSSLBYVA5CNFSM4UGZUXEKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LHCKMRA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/1040",
"url": "https://github.com/geany/geany-plugins/pull/1040",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>