mirror of git://git.sv.gnu.org/nano.git
per Mike Frysinger's patch, in move_mbleft(), fix assert to reference
the proper variable, so that nano builds with DEBUG defined again git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2422 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
bc6a36e40d
commit
263b447323
|
@ -3,6 +3,11 @@ CVS code -
|
|||
- After (re)initializing the terminal, make sure the cursor is
|
||||
always turned on. Changes to do_alt_speller(),
|
||||
handle_sigwinch(), and main(). (DLR)
|
||||
- chars.c:
|
||||
move_mbleft()
|
||||
- Fix assert to reference the proper variable, so that nano
|
||||
builds with DEBUG defined again. (Mike Frysinger, found by
|
||||
Dmitri Vassilenko)
|
||||
- files.c:
|
||||
do_browser()
|
||||
- Rename variable lineno to fileline to avoid confusion. (DLR)
|
||||
|
|
|
@ -455,7 +455,7 @@ size_t move_mbleft(const char *buf, size_t pos)
|
|||
{
|
||||
size_t pos_prev = pos;
|
||||
|
||||
assert(str != NULL && pos <= strlen(buf));
|
||||
assert(buf != NULL && pos <= strlen(buf));
|
||||
|
||||
/* There is no library function to move backward one multibyte
|
||||
* character. Here is the naive, O(pos) way to do it. */
|
||||
|
|
Loading…
Reference in New Issue