[gnome-builder] buffer: sync buffer before calling symbol locators



commit fa042feb2197a3733c53237846eb0f4708382e66
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jun 11 17:29:00 2018 -0700

    buffer: sync buffer before calling symbol locators
    
    This saves us from having to force it in the particular consumers.

 src/libide/buffers/ide-buffer.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/libide/buffers/ide-buffer.c b/src/libide/buffers/ide-buffer.c
index 92d0a1b6d..09d881b2d 100644
--- a/src/libide/buffers/ide-buffer.c
+++ b/src/libide/buffers/ide-buffer.c
@@ -2850,6 +2850,8 @@ ide_buffer_get_symbol_at_location_async (IdeBuffer           *self,
       return;
     }
 
+  ide_buffer_sync_to_unsaved_files (self);
+
   line = gtk_text_iter_get_line (location);
   line_offset = gtk_text_iter_get_line_offset (location);
   offset = gtk_text_iter_get_offset (location);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]