get open and jump to line working again

This commit is contained in:
Allen Webster 2016-07-03 19:07:31 -04:00
parent 6599cac5e9
commit 8bcda623a8
5 changed files with 14 additions and 10 deletions

View File

@ -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 <F2>\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"

View File

@ -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);

View File

@ -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);
}
}
}

View File

@ -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

View File

@ -530,7 +530,7 @@ Win32AllocCoroutine(){
return(result);
}
internal void
nternal void
Win32FreeCoroutine(Win32_Coroutine *data){
data->next = win32vars.coroutine_free;
win32vars.coroutine_free = data;