auto-insert second line for expand
This commit is contained in:
parent
f8dea3c178
commit
22d10fe655
1 changed files with 6 additions and 0 deletions
|
|
@ -122,6 +122,12 @@ wintaglines(Window *w, Rectangle r)
|
||||||
if(n < w->taglines)
|
if(n < w->taglines)
|
||||||
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;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue