~ted/ubuntu/karmic/vim/add-breaks

« back to all changes in this revision

Viewing changes to src/misc2.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2009-01-13 18:39:18 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090113183918-kgq1jzdwsbbex4pq
Tags: 2:7.2.079-1ubuntu1
* Resynchronise with Debian (diversions fix closes LP: #296324). Remaining
  changes:
  - runtime/syntax/debcontrol.vim:
    + Add "metapackages" to the list of valid sections.
  - runtime/syntax/debchangelog.vim:
    + Add "jaunty" to the list of valid suites.
  - Drop vim-lesstif package and lesstif2-dev build-dependency.
  - Enable Python interpreter on basic builds.
  - Create a .pot file for translations.
  - Disable autoindent, line-wrapping, and backup files by default.
  - runtime/syntax/debsources.vim:
    + Add "jaunty" to debsourcesDistrKeyword
  - runtime/syntax/grub.vim:
    + Add Ubuntu-specific 'quiet' keyword.

Show diffs side-by-side

added added

removed removed

Lines of Context:
873
873
            /* 3. check for available memory: call mch_avail_mem() */
874
874
            if (mch_avail_mem(TRUE) < KEEP_ROOM && !releasing)
875
875
            {
876
 
                vim_free((char *)p);    /* System is low... no go! */
 
876
                free((char *)p);        /* System is low... no go! */
877
877
                p = NULL;
878
878
            }
879
879
            else
2561
2561
    int         key;
2562
2562
    int         dlen = 0;
2563
2563
 
2564
 
    key = find_special_key(srcp, &modifiers, keycode);
 
2564
    key = find_special_key(srcp, &modifiers, keycode, FALSE);
2565
2565
    if (key == 0)
2566
2566
        return 0;
2567
2567
 
2597
2597
 * returns 0 if there is no match.
2598
2598
 */
2599
2599
    int
2600
 
find_special_key(srcp, modp, keycode)
 
2600
find_special_key(srcp, modp, keycode, keep_x_key)
2601
2601
    char_u      **srcp;
2602
2602
    int         *modp;
2603
 
    int         keycode; /* prefer key code, e.g. K_DEL instead of DEL */
 
2603
    int         keycode;     /* prefer key code, e.g. K_DEL instead of DEL */
 
2604
    int         keep_x_key;  /* don't translate xHome to Home key */
2604
2605
{
2605
2606
    char_u      *last_dash;
2606
2607
    char_u      *end_of_name;
2668
2669
            else
2669
2670
            {
2670
2671
                key = get_special_key_code(last_dash + 1);
2671
 
                key = handle_x_keys(key);
 
2672
                if (!keep_x_key)
 
2673
                    key = handle_x_keys(key);
2672
2674
            }
2673
2675
 
2674
2676
            /*