Changeset da466e0


Ignore:
Timestamp:
Aug 22, 2008, 9:48:20 PM (12 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
147d880
Parents:
cdc6ff1
Message:
At broder/ccpost's suggestion, add a typewindelta variable that lets you
expand the typewin on small screens when it is active, and keep it small by
default.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r9f4e3f8 rda466e0  
    310310
    311311void owl_global_set_typwin_active(owl_global *g) {
     312  int d = owl_global_get_typewindelta(g);
     313  if (d > 0)
     314      owl_function_resize_typwin(owl_global_get_typwin_lines(g) + d);
     315
    312316  g->typwinactive=1;
    313317}
    314318
    315319void owl_global_set_typwin_inactive(owl_global *g) {
     320  int d = owl_global_get_typewindelta(g);
     321  if (d > 0)
     322      owl_function_resize_typwin(owl_global_get_typwin_lines(g) - d);
     323
    316324  g->typwinactive=0;
    317325}
  • variable.c

    r719c699 rda466e0  
    312312                   NULL /* use default for get */
    313313                   ),
     314
     315  OWLVAR_INT( "typewindelta" /* %OwlVarStub */, 0,
     316                  "number of lines to add to the typing window when in use",
     317                   "On small screens you may want the typing window to\n"
     318                   "auto-hide when not entering a command or message.\n"
     319                   "This variable is the number of lines to add to the\n"
     320           "typing window when it is in use; you can then set\n"
     321           "typewinsize to 1.\n\n"
     322           "This works a lot better with a non-default scrollmode;\n"
     323           "try :set scrollmode pagedcenter.\n"),
    314324
    315325  OWLVAR_ENUM( "scrollmode" /* %OwlVarStub */, OWL_SCROLLMODE_NORMAL,
Note: See TracChangeset for help on using the changeset viewer.