diff options
author | rsc <devnull@localhost> | 2005-12-16 15:27:18 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-12-16 15:27:18 +0000 |
commit | 22d10fe65586f5b0a5b212950a4caff776b6288a (patch) | |
tree | a45c3d9b42bc54d9da353c50293d186a5b00fe6e /src | |
parent | f8dea3c178590517e6f8833a2953c10c31ddbffc (diff) | |
download | plan9port-22d10fe65586f5b0a5b212950a4caff776b6288a.tar.gz plan9port-22d10fe65586f5b0a5b212950a4caff776b6288a.tar.bz2 plan9port-22d10fe65586f5b0a5b212950a4caff776b6288a.zip |
auto-insert second line for expand
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/acme/wind.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cmd/acme/wind.c b/src/cmd/acme/wind.c index 05384601..ceca319d 100644 --- a/src/cmd/acme/wind.c +++ b/src/cmd/acme/wind.c @@ -122,6 +122,12 @@ wintaglines(Window *w, Rectangle r) if(n < w->taglines) n = w->taglines; + /* on initial expansion, create an extra line */ + if(n < 2){ + rune = '\n'; + textinsert(&w->tag, w->tag.file->b.nc, &rune, 1, TRUE); + n = 2; + } return n; } |