aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2017-03-03 00:02:26 -0500
committerKyle Meyer <kyle@kyleam.com>2017-03-03 00:26:30 -0500
commit48ebfc757f713484b5427d0ca775fd1ae62f4775 (patch)
tree2cfd928085d61116c687ab727367edec688f95dc /Makefile
parentf90ba3c0faed5dfd4f50ab2044a86858104ab00e (diff)
downloadorg-link-edit-48ebfc757f713484b5427d0ca775fd1ae62f4775.tar.gz
barf: Fix edge cases where point is beyond link
When a point is on a blank space beyond the link but before the next element, org-element-context considers point to be a part of the link. This leads to incorrect behavior (shown in the added tests) when either barfing backward or forward. Avoid these issues by moving point to the beginning of the link before deleting the old link and inserting a new one. As a bonus, this makes some of the later goto-char calculations unnecessary.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions