mirror of
https://github.com/vim/vim.git
synced 2025-09-10 22:33:40 -04:00
updated for version 7.0060
This commit is contained in:
parent
e2cc9702a6
commit
fb26980c31
@ -1,4 +1,4 @@
|
|||||||
*version7.txt* For Vim version 7.0aa. Last change: 2005 Mar 11
|
*version7.txt* For Vim version 7.0aa. Last change: 2005 Mar 15
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@ -332,6 +332,7 @@ New functions: ~
|
|||||||
|split()| split a String into a List
|
|split()| split a String into a List
|
||||||
|string()| String representation of a List or Dictionary
|
|string()| String representation of a List or Dictionary
|
||||||
|system()| Filters {input} through a shell command.
|
|system()| Filters {input} through a shell command.
|
||||||
|
|taglist()| Get list of matching tags. (Yegappan Lakshmanan)
|
||||||
|tr()| Translate characters. (Ron Aaron)
|
|tr()| Translate characters. (Ron Aaron)
|
||||||
|values()| get List of Dictionary values
|
|values()| get List of Dictionary values
|
||||||
|writefile()| write a list of lines into a file
|
|writefile()| write a list of lines into a file
|
||||||
@ -959,4 +960,14 @@ When setting 'ttymouse' to "dec" in an xterm that supports the DEC mouse
|
|||||||
locator it doesn't work. Now switch off the mouse before selecting another
|
locator it doesn't work. Now switch off the mouse before selecting another
|
||||||
mouse model.
|
mouse model.
|
||||||
|
|
||||||
|
When the CursorHold event is triggered and the commands peek for typed
|
||||||
|
characters the typeahead buffer may be messed up, e.g., when a mouse-up event
|
||||||
|
is received. Avoid invoking the autocommands from the function waiting for a
|
||||||
|
character, let it put K_CURSORHOLD in the input buffer.
|
||||||
|
|
||||||
|
Removed the "COUNT" flag from ":argadd", to avoid ":argadd 1*" to be used like
|
||||||
|
":1argadd *".
|
||||||
|
|
||||||
|
Avoid that $LANG is used for the menus when LC_MESSAGES is "en_US".
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
@ -121,6 +121,7 @@ static int fontset_ascent __ARGS((XFontSet fs));
|
|||||||
|
|
||||||
static guicolor_T prev_fg_color = INVALCOLOR;
|
static guicolor_T prev_fg_color = INVALCOLOR;
|
||||||
static guicolor_T prev_bg_color = INVALCOLOR;
|
static guicolor_T prev_bg_color = INVALCOLOR;
|
||||||
|
static guicolor_T prev_sp_color = INVALCOLOR;
|
||||||
|
|
||||||
#if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
|
#if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
|
||||||
static XButtonPressedEvent last_mouse_event;
|
static XButtonPressedEvent last_mouse_event;
|
||||||
@ -145,6 +146,7 @@ static void gui_x11_send_event_handler __ARGS((Widget, XtPointer, XEvent *, Bool
|
|||||||
static void gui_x11_wm_protocol_handler __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
static void gui_x11_wm_protocol_handler __ARGS((Widget, XtPointer, XEvent *, Boolean *));
|
||||||
static void gui_x11_blink_cb __ARGS((XtPointer timed_out, XtIntervalId *interval_id));
|
static void gui_x11_blink_cb __ARGS((XtPointer timed_out, XtIntervalId *interval_id));
|
||||||
static Cursor gui_x11_create_blank_mouse __ARGS((void));
|
static Cursor gui_x11_create_blank_mouse __ARGS((void));
|
||||||
|
static void draw_curl __ARGS((int row, int col, int cells));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2431,6 +2433,9 @@ find_closest_color(colormap, colorPtr)
|
|||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the current text foreground color.
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
gui_mch_set_fg_color(color)
|
gui_mch_set_fg_color(color)
|
||||||
guicolor_T color;
|
guicolor_T color;
|
||||||
@ -2456,6 +2461,16 @@ gui_mch_set_bg_color(color)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set the current text special color.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
gui_mch_set_sp_color(color)
|
||||||
|
guicolor_T color;
|
||||||
|
{
|
||||||
|
prev_sp_color = color;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* create a mouse pointer that is blank
|
* create a mouse pointer that is blank
|
||||||
*/
|
*/
|
||||||
@ -2470,6 +2485,29 @@ gui_x11_create_blank_mouse()
|
|||||||
(XColor*)&gui.norm_pixel, (XColor*)&gui.norm_pixel, 0, 0);
|
(XColor*)&gui.norm_pixel, (XColor*)&gui.norm_pixel, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Draw a curled line at the bottom of the character cell.
|
||||||
|
*/
|
||||||
|
static void
|
||||||
|
draw_curl(row, col, cells)
|
||||||
|
int row;
|
||||||
|
int col;
|
||||||
|
int cells;
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int offset;
|
||||||
|
const static int val[8] = {1, 0, 0, 0, 1, 2, 2, 2 };
|
||||||
|
|
||||||
|
XSetForeground(gui.dpy, gui.text_gc, prev_sp_color);
|
||||||
|
for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
|
||||||
|
{
|
||||||
|
offset = val[i % 8];
|
||||||
|
XDrawPoint(gui.dpy, gui.wid, gui.text_gc, i,
|
||||||
|
FILL_Y(row + 1) - 1 - offset);
|
||||||
|
}
|
||||||
|
XSetForeground(gui.dpy, gui.text_gc, prev_fg_color);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
gui_mch_draw_string(row, col, s, len, flags)
|
gui_mch_draw_string(row, col, s, len, flags)
|
||||||
int row;
|
int row;
|
||||||
@ -2561,6 +2599,7 @@ gui_mch_draw_string(row, col, s, len, flags)
|
|||||||
XFillRectangle(gui.dpy, gui.wid, gui.text_gc, FILL_X(col),
|
XFillRectangle(gui.dpy, gui.wid, gui.text_gc, FILL_X(col),
|
||||||
FILL_Y(row), gui.char_width * cells, gui.char_height);
|
FILL_Y(row), gui.char_width * cells, gui.char_height);
|
||||||
XSetForeground(gui.dpy, gui.text_gc, prev_fg_color);
|
XSetForeground(gui.dpy, gui.text_gc, prev_fg_color);
|
||||||
|
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
if (enc_utf8)
|
if (enc_utf8)
|
||||||
XDrawString16(gui.dpy, gui.wid, gui.text_gc, TEXT_X(col),
|
XDrawString16(gui.dpy, gui.wid, gui.text_gc, TEXT_X(col),
|
||||||
@ -2596,10 +2635,22 @@ gui_mch_draw_string(row, col, s, len, flags)
|
|||||||
TEXT_Y(row), (char *)s, len);
|
TEXT_Y(row), (char *)s, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Undercurl: draw curl at the bottom of the character cell. */
|
||||||
|
if (flags & DRAW_UNDERC)
|
||||||
|
draw_curl(row, col, cells);
|
||||||
|
|
||||||
/* Underline: draw a line at the bottom of the character cell. */
|
/* Underline: draw a line at the bottom of the character cell. */
|
||||||
if (flags & DRAW_UNDERL)
|
if (flags & DRAW_UNDERL)
|
||||||
|
{
|
||||||
|
int y = FILL_Y(row + 1) - 1;
|
||||||
|
|
||||||
|
/* When p_linespace is 0, overwrite the bottom row of pixels.
|
||||||
|
* Otherwise put the line just below the character. */
|
||||||
|
if (p_linespace > 1)
|
||||||
|
y -= p_linespace - 1;
|
||||||
XDrawLine(gui.dpy, gui.wid, gui.text_gc, FILL_X(col),
|
XDrawLine(gui.dpy, gui.wid, gui.text_gc, FILL_X(col),
|
||||||
FILL_Y(row + 1) - 1, FILL_X(col + cells) - 1, FILL_Y(row + 1) - 1);
|
y, FILL_X(col + cells) - 1, y);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef FEAT_XFONTSET
|
#ifdef FEAT_XFONTSET
|
||||||
if (current_fontset != NULL)
|
if (current_fontset != NULL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user