uhhh what? thought I didn't change anything weird
This commit is contained in:
parent
3ec19cfae3
commit
a9c5bef61e
|
@ -1591,9 +1591,6 @@ CUSTOM_COMMAND_SIG(toggle_line_wrap){
|
|||
Buffer_Summary buffer = app->get_buffer(app, view.buffer_id, AccessProtected);
|
||||
|
||||
bool32 unwrapped = view.unwrapped_lines;
|
||||
if (buffer.exists){
|
||||
unwrapped = buffer.unwrapped_lines;
|
||||
}
|
||||
|
||||
app->view_set_setting(app, &view, ViewSetting_WrapLine, unwrapped);
|
||||
app->buffer_set_setting(app, &buffer, BufferSetting_WrapLine, unwrapped);
|
||||
|
|
|
@ -1426,9 +1426,9 @@ Win32Callback(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
|||
}break;
|
||||
|
||||
default:
|
||||
b8 previous_state, current_state;
|
||||
previous_state = ((lParam & Bit_30)?(1):(0));
|
||||
current_state = ((lParam & Bit_31)?(0):(1));
|
||||
{
|
||||
b8 previous_state = ((lParam & Bit_30)?(1):(0));
|
||||
b8 current_state = ((lParam & Bit_31)?(0):(1));
|
||||
|
||||
if (current_state){
|
||||
u8 key = keycode_lookup_table[(u8)wParam];
|
||||
|
@ -1456,7 +1456,7 @@ Win32Callback(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
|||
BYTE state[256];
|
||||
BYTE control_state = 0;
|
||||
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);
|
||||
x1 = 0;
|
||||
|
@ -1551,7 +1551,8 @@ Win32Callback(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam){
|
|||
}
|
||||
|
||||
result = DefWindowProc(hwnd, uMsg, wParam, lParam);
|
||||
}
|
||||
}break;
|
||||
}/* switch */
|
||||
}break;
|
||||
|
||||
case WM_MOUSEMOVE:
|
||||
|
|
Loading…
Reference in New Issue