uhhh what? thought I didn't change anything weird

This commit is contained in:
Allen Webster 2016-07-08 11:24:07 -04:00
parent 3ec19cfae3
commit a9c5bef61e
2 changed files with 122 additions and 124 deletions

View File

@ -1591,9 +1591,6 @@ CUSTOM_COMMAND_SIG(toggle_line_wrap){
Buffer_Summary buffer = app->get_buffer(app, view.buffer_id, AccessProtected); Buffer_Summary buffer = app->get_buffer(app, view.buffer_id, AccessProtected);
bool32 unwrapped = view.unwrapped_lines; bool32 unwrapped = view.unwrapped_lines;
if (buffer.exists){
unwrapped = buffer.unwrapped_lines;
}
app->view_set_setting(app, &view, ViewSetting_WrapLine, unwrapped); app->view_set_setting(app, &view, ViewSetting_WrapLine, unwrapped);
app->buffer_set_setting(app, &buffer, BufferSetting_WrapLine, unwrapped); app->buffer_set_setting(app, &buffer, BufferSetting_WrapLine, unwrapped);

View File

@ -1426,9 +1426,9 @@ Win32Callback(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
}break; }break;
default: default:
b8 previous_state, current_state; {
previous_state = ((lParam & Bit_30)?(1):(0)); b8 previous_state = ((lParam & Bit_30)?(1):(0));
current_state = ((lParam & Bit_31)?(0):(1)); b8 current_state = ((lParam & Bit_31)?(0):(1));
if (current_state){ if (current_state){
u8 key = keycode_lookup_table[(u8)wParam]; u8 key = keycode_lookup_table[(u8)wParam];
@ -1456,7 +1456,7 @@ Win32Callback(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
BYTE state[256]; BYTE state[256];
BYTE control_state = 0; BYTE control_state = 0;
WORD x1 = 0, x2 = 0, x = 0, junk_x; WORD x1 = 0, x2 = 0, x = 0, junk_x;
int result1 = 0, result2 = 0, result = 0; i32 result1 = 0, result2 = 0, result = 0;
GetKeyboardState(state); GetKeyboardState(state);
x1 = 0; x1 = 0;
@ -1551,7 +1551,8 @@ Win32Callback(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
} }
result = DefWindowProc(hwnd, uMsg, wParam, lParam); result = DefWindowProc(hwnd, uMsg, wParam, lParam);
} }break;
}/* switch */
}break; }break;
case WM_MOUSEMOVE: case WM_MOUSEMOVE: