<p>This patch adds \n if it's missing at the EOF before line operations<br>
like yank, delete or paste are parformed to make sure these operations<br>
always work the same way. If added, the extra \n is removed from the<br>
file when the operation is completed.</p>
<p>Fixes the part of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="799926189" data-permission-text="Title is private" data-url="https://github.com/geany/geany-plugins/issues/1060" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/1060/hovercard" href="https://github.com/geany/geany-plugins/issues/1060">#1060</a> related to line yanking.</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/1103'>https://github.com/geany/geany-plugins/pull/1103</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>vimode: fix line operation problems when NL is missing at EOF</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/1103/files#diff-e87eb7179a983bf3e1ad44e04293ed51fa9926d9b7a6e33effb1b425d9e49336">vimode/src/cmds/edit.c</a>
    (45)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/1103.patch'>https://github.com/geany/geany-plugins/pull/1103.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/1103.diff'>https://github.com/geany/geany-plugins/pull/1103.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/1103">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6VTJUGDGGFC6C5ZTTT7YVBRANCNFSM5DGQYHUQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ6MN4UIEIL3B5Z34Q3T7YVBRA5CNFSM5DGQYHU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4OVYSC5Q.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/1103",
"url": "https://github.com/geany/geany-plugins/pull/1103",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>