Commit Graph

28 Commits

Author SHA1 Message Date
tnozaki
10248e78d8 use ARG_CHAR_T instead of CHAR_T for integer promotion. 2011-11-23 19:25:27 +00:00
tnozaki
87c8bc2121 use e_key_t instead of u_int. 2011-11-23 19:18:53 +00:00
tnozaki
3392bf8c1a don't use L prefix directly, for --disable-widechar. 2011-11-23 14:14:43 +00:00
christos
112264be37 fix raw string formats 2011-08-17 12:56:55 +00:00
mrg
3cdf6fedc7 initialise from_cs[1] instead of from_cs[0] twice. from GCC 4.5.3. 2011-06-22 03:57:46 +00:00
tnozaki
80356df9b8 1. fix PR/44455, nonprintable character doesn't show hex-visual
under big endian.
2. ":set octal" with nonprintable character causes nbwcurses move error.
3. moving (big)words by wW/eE/bB can't handle non-ascii characters.
4. toggle uppercase/lowercase by ~ can't handle non-ascii characters.
5. don't feed CHAR_T(=wchar_t) to is* function directly.
   is* funcs with over UCHAR_MAX value may cause undefined behavior.
   some ctype implementation(such as FreeBSD) return unexpected
   result(same result as isw* func).
6. using non-ascii digit character with count/line number of ex/vi
   command may causes unexpeced result.
2011-03-21 14:53:02 +00:00
tnozaki
50eb6aadde cast isblank(3)'s argument to unsigned char. 2010-05-13 17:52:11 +00:00
mlelstv
c96a848326 Use wide char versions of tolower/toupper/islower/isupper where
appropriate. Fixes ~ command on big-endian architectures.
2009-12-23 12:44:21 +00:00
tnozaki
b95326704e don't use pathname directly as msgq()'s first argument of format string. 2009-11-24 13:12:01 +00:00
dsl
b87a655a0d Fix all formats for 64bit builds 2009-11-15 18:43:28 +00:00
christos
55e651517c one more printf like function, and fix the lossage. 2009-11-14 23:40:11 +00:00
christos
1070653ee5 Add a gcc printf attribute to the printf functions and fix the lossage caught. 2009-11-14 23:31:37 +00:00
dsl
f4f40b1fe1 Save command in :w !<command> for later :w !!
Fixes PR/8169
2009-10-31 14:30:55 +00:00
aymeric
46545ebf5c bump to nb5:
. :ESC works again
. #+ and #- work again
2009-08-11 21:42:03 +00:00
lukem
86814cdb3c Crank version to nb4 2009-08-07 16:32:43 +00:00
lukem
ddff3f7108 Rename "expandtabs" to "expandtab" to match documentation (and vim,
where I got the idea from).
Actually implement the "et" abbreviation for expandtab.
2009-08-07 16:19:53 +00:00
lukem
cadac39416 fix -Wsign-compare issues 2009-01-18 03:43:45 +00:00
christos
c06deb4e8c PR/40386: M. Levinson: vi(1) filename completion no longer works, fix bug
introduced by shadow variable fix.
2009-01-13 15:43:27 +00:00
tsutsui
593ae76032 Suppress false -Wuninitialized warning on gcc -O1. 2008-12-13 09:17:48 +00:00
lukem
e7617fb9ab Bump the version to ""nvi-1.81.6nb1" for NetBSD changes:
expandtab
	gtagsmode
	matchchars
	WARNS=4

Per discussion with Christos.
2008-12-12 23:05:36 +00:00
lukem
534002bc26 Implement "expandtab" option:
expandtab, et [off]
          Prevent the use of <tab> characters in leading whitespace when
          shifting text, autoindenting, indenting with <control-T>, or
          outdenting with <control-D>.
2008-12-12 22:55:55 +00:00
christos
448e9aef12 more compilation issues on amd64, where size_t != unsigned int. 2008-12-06 18:39:20 +00:00
christos
ba7207e4b2 WARNS=4 2008-12-05 22:51:42 +00:00
christos
e2e2aa5d82 make gtags work for real. 2008-10-29 19:57:27 +00:00
christos
a987b491ab put back gtagsmode (untested) apb should test. 2008-10-29 17:50:49 +00:00
aymeric
a3887e9573 . include <sys/stropts.h> only if !defined(__NetBSD__)
. use I_PUSH only if it is defined as a preprocessor macro because we
  don't have it
2008-05-20 17:55:05 +00:00
aymeric
96bc64d20f Re-import nvi sources, this time based on the distributed tar ball, after
going through the new nvi2netbsd script
2008-05-18 14:29:31 +00:00
aymeric
4d6922cd09 import nvi 1.81.6 verbatim, untouched from the git tree 2008-05-16 18:03:01 +00:00