~ubuntu-branches/ubuntu/maverick/vim/maverick

« back to all changes in this revision

Viewing changes to src/message.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-05-04 11:13:42 UTC
  • mfrom: (1.1.8 upstream) (0.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090504111342-60miqybsixdpc345
Tags: 2:7.2.148-2ubuntu1
* Merge from Debian unstable, remaining changes:
  - debian/runtime/vimrc: "syntax on" is a sane default for non-tiny vim.
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Disable autoindent, line-wrapping, and backup files by default.
* Dropped changes, merged in Debian:
  - Add jaunty, karmic to the list of valid suites.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - Create a .pot file for translations.
* Drop gutsy from the list of valid distro series, it's been EOLed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
976
976
                    }
977
977
                }
978
978
                else if (msg_scrolled > Rows - 2
979
 
                                     && (c == 'j' || c == K_DOWN || c == 'd'))
 
979
                         && (c == 'j' || c == K_DOWN || c == 'd' || c == 'f'))
980
980
                    c = K_IGNORE;
981
981
            }
982
982
        } while ((had_got_int && c == Ctrl_C)
2504
2504
            break;
2505
2505
 
2506
2506
        case 'u':               /* Up half a page */
2507
 
        case K_PAGEUP:
2508
2507
            scroll = -(Rows / 2);
2509
2508
            break;
2510
2509
 
2513
2512
            break;
2514
2513
 
2515
2514
        case 'b':               /* one page back */
 
2515
        case K_PAGEUP:
2516
2516
            scroll = -(Rows - 1);
2517
2517
            break;
2518
2518
 
2519
2519
        case ' ':               /* one extra page */
 
2520
        case 'f':
2520
2521
        case K_PAGEDOWN:
2521
2522
        case K_LEFTMOUSE:
2522
2523
            scroll = Rows - 1;
2552
2553
            {
2553
2554
                /* Jump to the choices of the dialog. */
2554
2555
                retval = TRUE;
2555
 
                lines_left = Rows - 1;
2556
2556
            }
2557
2557
            else
2558
2558
#endif
2560
2560
                got_int = TRUE;
2561
2561
                quit_more = TRUE;
2562
2562
            }
 
2563
            /* When there is some more output (wrapping line) display that
 
2564
             * without another prompt. */
 
2565
            lines_left = Rows - 1;
2563
2566
            break;
2564
2567
 
2565
2568
#ifdef FEAT_CLIPBOARD
3309
3312
    {
3310
3313
        c = gui_mch_dialog(type, title, message, buttons, dfltbutton,
3311
3314
                                                                   textfield);
3312
 
        msg_end_prompt();
 
3315
        /* avoid a hit-enter prompt without clearing the cmdline */
 
3316
        need_wait_return = FALSE;
 
3317
        emsg_on_display = FALSE;
 
3318
        cmdline_row = msg_row;
3313
3319
 
3314
3320
        /* Flush output to avoid that further messages and redrawing is done
3315
3321
         * in the wrong order. */
4556
4562
                        remove_trailing_zeroes = TRUE;
4557
4563
                    }
4558
4564
 
4559
 
                    if (fmt_spec == 'f' && abs_f > 1.0e307)
 
4565
                    if (fmt_spec == 'f' &&
 
4566
#ifdef VAX
 
4567
                            abs_f > 1.0e38
 
4568
#else
 
4569
                            abs_f > 1.0e307
 
4570
#endif
 
4571
                            )
4560
4572
                    {
4561
4573
                        /* Avoid a buffer overflow */
4562
4574
                        strcpy(tmp, "inf");