diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-02-10 23:13:40 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-02-10 23:13:40 +0000 |
commit | 110bc6bc91ccb10b20103a6d4a1c17e07fda1fb5 (patch) | |
tree | 96c54597cc73d47971ac74184f135189284fb281 | |
parent | 06b5db9397293068dbb39c552ab47616b1f66211 (diff) | |
download | vim-git-110bc6bc91ccb10b20103a6d4a1c17e07fda1fb5.tar.gz |
updated for version 7.0196
-rw-r--r-- | runtime/doc/cmdline.txt | 1 | ||||
-rw-r--r-- | src/gui.c | 14 |
2 files changed, 9 insertions, 6 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 65cdcb3cd..7a860a77f 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -479,6 +479,7 @@ followed by another command: :global :help :helpfind + :lcscope :make :normal :perl @@ -3055,7 +3055,7 @@ gui_xy2colrow(x, y, colp) gui_menu_cb(menu) vimmenu_T *menu; { - char_u bytes[3 + sizeof(long_u)]; + char_u bytes[sizeof(long_u)]; /* Don't put events in the input queue now. */ if (hold_gui_events) @@ -3064,8 +3064,9 @@ gui_menu_cb(menu) bytes[0] = CSI; bytes[1] = KS_MENU; bytes[2] = KE_FILLER; - add_long_to_buf((long_u)menu, bytes + 3); - add_to_input_buf(bytes, 3 + sizeof(long_u)); + add_to_input_buf(bytes, 3); + add_long_to_buf((long_u)menu, bytes); + add_to_input_buf_csi(bytes, sizeof(long_u)); } #endif @@ -3358,7 +3359,7 @@ gui_drag_scrollbar(sb, value, still_dragging) int old_topfill = curwin->w_topfill; # endif #else - char_u bytes[4 + sizeof(long_u)]; + char_u bytes[sizeof(long_u)]; int byte_count; #endif @@ -3528,8 +3529,9 @@ gui_drag_scrollbar(sb, value, still_dragging) out_flush(); gui_update_cursor(FALSE, TRUE); #else - add_long_to_buf((long)value, bytes + byte_count); - add_to_input_buf(bytes, byte_count + sizeof(long_u)); + add_to_input_buf(bytes, byte_count); + add_long_to_buf((long_u)value, bytes); + add_to_input_buf_csi(bytes, sizeof(long_u)); #endif } |