Skip to content

Commit c343fb6

Browse files
committed
..
1 parent f6865bd commit c343fb6

File tree

7 files changed

+364995
-7858
lines changed

7 files changed

+364995
-7858
lines changed

TODO

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1+
## emscripten / async transformation
12
some parts may be implemented natively in javascript (e.g. regexp)
23
rewrite some async functions, to make them sync (e.g MSG, EMSG)
34
use cDefine when possible
45

6+
## core
7+
scroll
8+
resize
9+
10+
511
## UI stuffs
612
tabline
713
scrollbar

src/gui_browser.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
* See README.txt for an overview of the Vim source code.
99
*/
1010

11+
/*
12+
* gui_browser.c
13+
* gui functions for vim.js
14+
*
15+
* Copyright (c) 2013 Lu Wang <[email protected]>
16+
*/
17+
1118
#ifdef FEAT_GUI_BROWSER
1219
#include "vim.h"
1320
#include "vimjs.h"
@@ -66,7 +73,6 @@ gui_mch_init(void)
6673
gui.norm_pixel = "#ffffff";
6774
gui.def_back_pixel = "#000000";
6875
gui.def_norm_pixel = "#ffffff";
69-
7076
return OK;
7177
}
7278

@@ -86,6 +92,11 @@ gui_mch_new_colors(void)
8692
int
8793
gui_mch_open(void)
8894
{
95+
/* TODO
96+
int w, h;
97+
gui_mch_get_screen_dimensions(&w, &h);
98+
gui_resize_shell(w, h);
99+
*/
89100
return OK;
90101
}
91102

@@ -324,6 +335,7 @@ gui_mch_draw_part_cursor(int w, int h, guicolor_T color)
324335
void
325336
gui_mch_update(void)
326337
{
338+
vimjs_update();
327339
}
328340

329341
/*

src/vimjs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ int vimjs_wait_for_chars(int);
3333
void vimjs_delete_lines(int, int);
3434
void vimjs_insert_lines(int, int);
3535

36+
void vimjs_update();
37+
3638
/*
3739
* some function pointers may point to async functions, which cannot be automatically detected
3840
* Instead, use these functions to mark the call

0 commit comments

Comments
 (0)