]> git.eshelyaron.com Git - emacs.git/commit
* src/minibuf.c (read_minibuf): Change multibyte more safely
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Apr 2021 12:51:44 +0000 (08:51 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Apr 2021 12:52:04 +0000 (08:52 -0400)
commitefbc07ab57c403bb20958132c63f44dad91f55a0
treefd527834252808f60fd2d3bdb2cfdf656caf9f25
parent4da7b2dfeec82ad0fac987d2628048e85f222258
* src/minibuf.c (read_minibuf): Change multibyte more safely

We used to `bset_enable_multibyte_characters` while the buffer is not
empty, putting the buffer temporarily in an inconsistent state.

Further simplifications along the way: Prefer re-using local var `histvar`
and let `insert` do the unibyte<->multibyte conversion if needed.
src/minibuf.c