atom in the default regex string for quotestr, according to
ASCII. Changes to main(), nano.1, nanorc.5, and
nanorc.sample. (DLR)
+- chars.c:
+ mbstrchr()
+ - Make parameter c const. (DLR)
- winio.c:
edit_scroll()
- Redraw the lines before and after the scrolled region even if
* chars.c *
* *
* Copyright (C) 2001-2004 Chris Allegretta *
- * Copyright (C) 2005 David Lawrence Ramsey *
+ * Copyright (C) 2005-2006 David Lawrence Ramsey *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
#ifndef DISABLE_JUSTIFY
/* This function is equivalent to strchr() for multibyte strings. */
-char *mbstrchr(const char *s, char *c)
+char *mbstrchr(const char *s, const char *c)
{
assert(s != NULL && c != NULL);
* proto.h *
* *
* Copyright (C) 1999-2004 Chris Allegretta *
- * Copyright (C) 2005 David Lawrence Ramsey *
+ * Copyright (C) 2005-2006 David Lawrence Ramsey *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2, or (at your option) *
*rev_start);
#endif
#ifndef DISABLE_JUSTIFY
-char *mbstrchr(const char *s, char *c);
+char *mbstrchr(const char *s, const char *c);
#ifdef ENABLE_NANORC
bool has_blank_chars(const char *s);
bool has_blank_mbchars(const char *s);