]> git.eshelyaron.com Git - emacs.git/commit
Fix byte-counting error in ‘format’
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Nov 2019 22:42:39 +0000 (14:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 14 Nov 2019 22:44:42 +0000 (14:44 -0800)
commitc2cd8e6265b78a5f0be3335ea6d8868e80814db0
tree0934435db848e080e14d46fa823456145616506b
parent2241f7ca7adb8aa7d785174dec0280a07cd16479
Fix byte-counting error in ‘format’

Problem reported by Paul Pogonyshev (Bug#38191).
* src/editfns.c (styled_format): When checking for adjacent
%-sequences, use byte position rather than character position.
* test/src/editfns-tests.el (format-properties): Test for fix.
src/editfns.c
test/src/editfns-tests.el