joostkremers / ebib

A BibTeX database manager for Emacs.
https://joostkremers.github.io/ebib/
BSD 3-Clause "New" or "Revised" License
275 stars 37 forks source link

ebib--redisplay-field: don't move point when inserting #257

Closed Hugo-Heagren closed 2 years ago

Hugo-Heagren commented 2 years ago

Fix #256.

As far as I can see, this is a very simple fix -- just don't let point move when inserting text. That way, even if the text is multi-line, point can't be left on the last line.

Hugo-Heagren commented 2 years ago

I just checked that this works with the current master file completion. It does, but an interesting difference from the completion I'm working on is that with the current version, every line of the field is highlighted (so, multiple lines if there are multiple files). This is a bit weird/unexpected maybe, but not problematic. I can't find any other differences or problems.

joostkremers commented 2 years ago

Thanks, that does indeed seem to fix the issue.