diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-05-04 21:47:50 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-05-04 21:47:50 +0000 |
commit | a9587610f1ae882c7a96d80cc9d9e49752911e0e (patch) | |
tree | 075aafd3f0d8dfffe434c3e50e2d5b78850886a1 | |
parent | 3fb9eda7c93b6d7daac466f3d5ffdf0fad9474cb (diff) | |
download | vim-a9587610f1ae882c7a96d80cc9d9e49752911e0e.zip |
updated for version 7.0g03
-rw-r--r-- | runtime/doc/gui.txt | 12 | ||||
-rw-r--r-- | src/ex_docmd.c | 7 |
2 files changed, 10 insertions, 9 deletions
diff --git a/runtime/doc/gui.txt b/runtime/doc/gui.txt index 56a1ff5c0..282e813b0 100644 --- a/runtime/doc/gui.txt +++ b/runtime/doc/gui.txt @@ -1,4 +1,4 @@ -*gui.txt* For Vim version 7.0g. Last change: 2006 May 03 +*gui.txt* For Vim version 7.0g. Last change: 2006 May 04 VIM REFERENCE MANUAL by Bram Moolenaar @@ -102,7 +102,7 @@ There are a number of options which only have meaning in the GUI version of Vim. These are 'guicursor', 'guifont', 'guipty' and 'guioptions'. They are documented in |options.txt| with all the other options. -If using the Motif or Athena version of the GUI (but not for the KDE, GTK+ or +If using the Motif or Athena version of the GUI (but not for the GTK+ or Win32 version), a number of X resources are available. See |gui-resources|. Another way to set the colors for different occasions is with highlight @@ -487,7 +487,7 @@ a menu entry. Hit <Enter> to execute it. Hit <Esc> if you want to cancel. This does require the |+menu| feature enabled at compile time. *tear-off-menus* -KDE, GTK+ and Motif support Tear-off menus. These are sort of sticky menus or +GTK+ and Motif support Tear-off menus. These are sort of sticky menus or pop-up menus that are present all the time. If the resizing does not work correctly, this may be caused by using something like "Vim*geometry" in the defaults. Use "Vim.geometry" instead. @@ -666,7 +666,7 @@ simple. *gui-toolbar* The toolbar is currently available in the Win32, Athena, Motif, GTK+ (X11), -KDE and Photon GUI. It should turn up in other GUIs in due course. The +and Photon GUI. It should turn up in other GUIs in due course. The default toolbar is setup in menu.vim. The display of the toolbar is controlled by the 'guioptions' letter 'T'. You can thus have menu & toolbar together, or either on its own, or neither. @@ -754,7 +754,7 @@ from the main menu bar. You must then use the |:popup| or |:tearoff| command to display it. *popup-menu* -In the Win32, KDE, GTK+, Motif, Athena and Photon GUI, you can define the +In the Win32, GTK+, Motif, Athena and Photon GUI, you can define the special menu "PopUp". This is the menu that is displayed when the right mouse button is pressed, if 'mousemodel' is set to popup or popup_setpos. @@ -964,8 +964,6 @@ This section describes other features which are related to the GUI. if has("gui_running") if has("gui_gtk2") :set guifont=Luxi\ Mono\ 12 - elseif has("gui_kde") - :set guifont=Luxi\ Mono/12/-1/5/50/0/0/0/1/0 elseif has("x11") " Also for GTK 1 :set guifont=*-lucidatypewriter-medium-r-normal-*-*-180-*-*-m-*-* diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 368d65c77..71ba6d6bc 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2997,11 +2997,14 @@ cmd_exists(name) return (cmdmods[i].name[j] == NUL ? 2 : 1); } - /* Check built-in commands and user defined commands. */ - ea.cmd = name; + /* Check built-in commands and user defined commands. + * For ":2match" and ":3match" we need to skip the number. */ + ea.cmd = (*name == '2' || *name == '3') ? name + 1 : name; ea.cmdidx = (cmdidx_T)0; if (find_command(&ea, &full) == NULL) return 3; + if (vim_isdigit(*name) && ea.cmdidx != CMD_match) + return 0; return (ea.cmdidx == CMD_SIZE ? 0 : (full ? 2 : 1)); } #endif |