On Tue, Aug 28, 2012 at 09:45:22PM +0200, Bram Moolenaar wrote: > Sean Estabrooks wrote: > > This removes the need for older code that avoided a crash > > but meant that output wasn't displayed. > > Thanks. I would appreciate a few people trying this out and verifying it > works in different configurations.
This patch looks correct to me and testing confirms that it behaves correctly. As described in Python's API docs[0], if the PY_SSIZE_T_CLEAN macro is defined before including Python.h (which Vim does), then the length argument when parsing "es#" will be of type Py_ssize_t instead of int. [0]: http://docs.python.org/c-api/arg.html Cheers, -- James GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>
signature.asc
Description: Digital signature
