* The 'p' command now works correctly if the buffer contains a partial line

with multibyte characters.
This commit is contained in:
Gunnar Ritter 2005-03-24 22:58:14 +00:00
parent be3347f5be
commit b0a749c10a
3 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,8 @@
Release ... Release ...
* vi no longer dies with a segmentation fault if a line does not fit on the * vi no longer dies with a segmentation fault if a line does not fit on the
screen after an insertion. screen after an insertion.
* The 'p' command now works correctly if the buffer contains a partial line
with multibyte characters.
Release 2/25/05 Release 2/25/05
* Traditional regular expressions can now be used with multibyte characters. * Traditional regular expressions can now be used with multibyte characters.

View File

@ -70,12 +70,12 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
* Sccsid @(#)ex_version.c 1.130 (gritter) 3/4/05 * Sccsid @(#)ex_version.c 1.131 (gritter) 3/24/05
*/ */
#include "ex.h" #include "ex.h"
static char *versionstring = "@(#)Version 4.0 (gritter) 3/4/05"; static char *versionstring = "@(#)Version 4.0 (gritter) 3/24/05";
void void
printver(void) printver(void)

View File

@ -72,7 +72,7 @@
* *
* from ex_vis.h 7.4 (Berkeley) 5/31/85 * from ex_vis.h 7.4 (Berkeley) 5/31/85
* *
* @(#)ex_vis.h 1.17 (gritter) 1/10/05 * @(#)ex_vis.h 1.18 (gritter) 3/24/05
*/ */
/* /*
@ -288,7 +288,7 @@ var cell lastcmd[5]; /* Chars in last command */
var int lastcnt; /* Count for last command */ var int lastcnt; /* Count for last command */
var cell *lastcp; /* Save current command here to repeat */ var cell *lastcp; /* Save current command here to repeat */
var bool lasthad; /* Last command had a count? */ var bool lasthad; /* Last command had a count? */
var short lastvgk; /* Previous input key, if not from keyboard */ var int lastvgk; /* Previous input key, if not from keyboard */
var short lastreg; /* Register with last command */ var short lastreg; /* Register with last command */
var char *ncols['z'-'a'+2]; /* Cursor positions of marks */ var char *ncols['z'-'a'+2]; /* Cursor positions of marks */
var char *notenam; /* Name to be noted with change count */ var char *notenam; /* Name to be noted with change count */