Skip to content

Commit 6f319c9

Browse files
committed
resize upon font change; backspace for chrome
1 parent 099cb98 commit 6f319c9

File tree

6 files changed

+132
-106
lines changed

6 files changed

+132
-106
lines changed

src/gui_browser.c

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,24 @@ gui_mch_new_colors(void)
9797
}
9898

9999
/*
100-
* Open the GUI window which was created by a call to gui_mch_init().
100+
* Recalculate Rows and Columns
101+
* Keep the text area fully occupied
101102
*/
102-
int
103-
gui_mch_open(void)
103+
void
104+
gui_browser_resize(void)
104105
{
105106
int w, h;
106107
gui_mch_get_screen_dimensions(&w, &h);
107108
gui_resize_shell(w, h);
109+
}
110+
111+
/*
112+
* Open the GUI window which was created by a call to gui_mch_init().
113+
*/
114+
int
115+
gui_mch_open(void)
116+
{
117+
gui_browser_resize();
108118
return OK;
109119
}
110120

@@ -170,6 +180,8 @@ gui_mch_init_font(char_u *font_name, int fontset)
170180
gui.char_width = vimjs_get_char_width();
171181
gui.char_height = vimjs_get_char_height();
172182

183+
gui_browser_resize();
184+
173185
return OK;
174186
}
175187

web/externs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
* Copyright (c) 2013 Lu Wang <[email protected]>
55
*/
66

7-
var KeyEvent = {};
7+
function KeyEvent() {}

web/hotfix/get_json_array.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env python
2+
# Get JSON array representation of a file
3+
# Necessary for hotfixes
4+
#
5+
# Copyright (c) 2013 Lu Wang <[email protected]>
6+
7+
import json
8+
import sys
9+
10+
print json.dumps(map(ord,open(sys.argv[1]).read())).replace(' ','')

web/usr/local/share/vim/vimrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set guifont=12px\ monospace
1010
colorscheme Darkside
1111

1212
" To save you from some warning messages
13-
" (I don't why swap files are not working)
13+
" (I don't know why swap files are not working)
1414
set noswapfile
1515

1616
" Obviously

0 commit comments

Comments
 (0)