nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] memory leak


From: brand999
Subject: [Nano-devel] memory leak
Date: Fri, 5 Sep 2003 14:44:12 -0600

nano is leaking memory or just doing too much allocation when modifying
highlighted files. Pasting the perl definition from the nanorc.sample
file caused nano to grow from 2952 1932 to 70696 69592 and it got slower
with every pasted character.

The ChangeLog and BUGS files in cvs don't mention this problem so it
probably still exists. Should I start digging through the source or is
this already being worked on?

I've modified the nanorc syntax to handle the "color
foreground,background" and some other tweaks. My nanorc definition isn't
the problem, it also happens with the default definition.

And nano treats "foreground,(bright)background" as
"(bright)foreground,background". It should generate an error when bright
is used on the background.

And why does Alt-E no longer toggle regular expression searches?

-------------------------------------------------------------------

nano 1.2.1 on Gentoo Linux
Compiled options: --disable-nls --enable-color --enable-multibuffer
--enable-nanorc
nano 1.2.2 on Gentoo Linux
Compiled options: --disable-nls --disable-justify --enable-color
--enable-multibuffer --enable-nanorc

-------------------------------------------------------------------

syntax "nanorc" "(\.|/)?nanorc$"
color brightwhite "^ *(set|unset|syntax|color).*$"
color cyan "^ *(set|unset)
(autoindent|backup|const|cut|fill|historylog|multibuffer|noconvert|nofo
llow|nohelp|nowrap|operatingdir|preserve|quotestr|rebinddelete|regexp|s
mooth|speller|suspend|tabsize|tempfile|view)"
color green "^ *(set|unset|syntax)\>"
color yellow "^ *color
(bright)?(white|black|red|blue|green|yellow|magenta|cyan)(,(white|black
|red|blue|green|yellow|magenta|cyan))?\>"
color magenta "^ *color\>" "\<(start|end)="
color white "\"(\\.|[^\"])*\""
color blue "^ *#.*$"


-- 
Brand Huntsman -- http://www.qzx.com
Linux 2.4.21 (i686 451MHz) up 39 days 9:16 hours, 1186114 procs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]