ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.248 by sf-exg, Sat May 8 06:16:21 2021 UTC vs.
Revision 1.251 by sf-exg, Wed Jul 14 12:39:57 2021 UTC

377/* but therse are not guaranteed anyway... */ 377/* but therse are not guaranteed anyway... */
378rxvt_perl_interp::~rxvt_perl_interp () 378rxvt_perl_interp::~rxvt_perl_interp ()
379{ 379{
380 if (perl) 380 if (perl)
381 { 381 {
382 localise_env set_environ (perl_environ);
382 perl_destruct (perl); 383 perl_destruct (perl);
383 perl_free (perl); 384 perl_free (perl);
384 PERL_SYS_TERM (); 385 PERL_SYS_TERM ();
385 } 386 }
386} 387}
1566rxvt_term::view_start (int newval = 1) 1567rxvt_term::view_start (int newval = 1)
1567 PROTOTYPE: $;$ 1568 PROTOTYPE: $;$
1568 CODE: 1569 CODE:
1569{ 1570{
1570 RETVAL = THIS->view_start; 1571 RETVAL = THIS->view_start;
1571 1572 if (items > 1)
1572 if (newval <= 0)
1573 THIS->scr_changeview (max (newval, THIS->top_row)); 1573 THIS->scr_changeview (newval);
1574} 1574}
1575 OUTPUT: 1575 OUTPUT:
1576 RETVAL 1576 RETVAL
1577 1577
1578void 1578void
1788 // find length 1788 // find length
1789 for (wchar_t *s = wstr; *s; s++) 1789 for (wchar_t *s = wstr; *s; s++)
1790 if (*s == NOCHAR) 1790 if (*s == NOCHAR)
1791 ; 1791 ;
1792 else if (IS_COMPOSE (*s)) 1792 else if (IS_COMPOSE (*s))
1793 dlen += rxvt_composite.expand (*s, 0); 1793 dlen += rxvt_composite.expand (*s);
1794 else 1794 else
1795 dlen++; 1795 dlen++;
1796 1796
1797 wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen); 1797 wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen);
1798 1798

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines