diff --git a/4ed.cpp b/4ed.cpp index d97bf848..4aae7e0e 100644 --- a/4ed.cpp +++ b/4ed.cpp @@ -2708,6 +2708,7 @@ App_Step_Sig(app_step){ "Newest features:\n" "-A scratch buffer is now opened with 4coder automatically\n" "-A new mouse suppression mode toggled by \n" + "-Hinting is disabled by default, a -h flag on the command line enables it\n" "-New 4coder_API.html documentation file included for the custom layer API\n" "-Experimental new work-flow for building and jumping to errors\n" " (only available in power for this build)\n" diff --git a/4ed_api_implementation.cpp b/4ed_api_implementation.cpp index 65561af2..127ccd8c 100644 --- a/4ed_api_implementation.cpp +++ b/4ed_api_implementation.cpp @@ -853,12 +853,12 @@ DOC_SEE(Buffer_Create_Flag) } else{ loading = system->file_load_begin(filename_string.str); - if (loading.exists){ + if (!loading.exists){ do_new_file = true; } } - if (do_new_file){ + if (!do_new_file){ b32 in_general_mem = false; char *buffer = push_array(part, char, loading.size); diff --git a/4ed_file_view.cpp b/4ed_file_view.cpp index ab46bcbe..8b989e99 100644 --- a/4ed_file_view.cpp +++ b/4ed_file_view.cpp @@ -1732,6 +1732,7 @@ view_set_file(View *view, Editing_File *file, Models *models){ if (file_is_ready(file)){ view_measure_wraps(&models->mem.general, view); + view->edit_pos->scroll.max_y = view_compute_max_target_y(view); } } } diff --git a/build_all.bat b/build_all.bat index 02e95c8d..f0cc8bbb 100644 --- a/build_all.bat +++ b/build_all.bat @@ -19,21 +19,23 @@ popd pushd ..\code "..\meta\metagen" if %ERRORLEVEL% neq 0 (set FirstError=1) + +set CODE_DIR=%CD% popd - pushd ..\build -REM call "..\code\buildsuper.bat" ..\code\4coder_default_bindings.cpp -call "..\code\buildsuper.bat" ..\code\power\4coder_experiments.cpp -REM call "..\code\buildsuper.bat" ..\code\power\4coder_casey.cpp -REM call "..\code\buildsuper.bat" ..\4vim\4coder_chronal.cpp + +REM call "%CODE_DIR%\buildsuper.bat" ..\code\4coder_default_bindings.cpp +call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_experiments.cpp +REM call "%CODE_DIR%\buildsuper.bat" ..\code\power\4coder_casey.cpp +REM call "%CODE_DIR%\buildsuper.bat" ..\4vim\4coder_chronal.cpp if %ERRORLEVEL% neq 0 (set FirstError=1) set EXPORTS=/EXPORT:app_get_functions -cl %OPTS% %INCLUDES% %DEFINES% ..\code\4ed_app_target.cpp %* /Fe4ed_app /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS% +cl %OPTS% %INCLUDES% %DEFINES% %CODE_DIR%\4ed_app_target.cpp %* /Fe4ed_app /LD /link /INCREMENTAL:NO /OPT:REF %EXPORTS% if %ERRORLEVEL% neq 0 (set FirstError=1) -cl %OPTS% %INCLUDES% %DEFINES% ..\code\win32_4ed.cpp %LIBS% %ICON% %* /Fe4ed /link /NODEFAULTLIB:library +cl %OPTS% %INCLUDES% %DEFINES% %CODE_DIR%\win32_4ed.cpp %LIBS% %ICON% %* /Fe4ed /link /NODEFAULTLIB:library if %ERRORLEVEL% neq 0 (set FirstError=1) call "print_size.bat" 4ed_app.dll diff --git a/win32_4ed.cpp b/win32_4ed.cpp index 3f41fdc0..aceb2aa5 100644 --- a/win32_4ed.cpp +++ b/win32_4ed.cpp @@ -530,7 +530,7 @@ Win32AllocCoroutine(){ return(result); } -internal void +nternal void Win32FreeCoroutine(Win32_Coroutine *data){ data->next = win32vars.coroutine_free; win32vars.coroutine_free = data;