Commits

Ali Gholami Rudi  committed af62c57

lisputils: moving to the beginning of the buffer in create_buffer

  • Participants
  • Parent commits 0b3bb0f

Comments (0)

Files changed (1)

File ropemacs/lisputils.py

             else:
                 lisp.switch_to_buffer_other_window(new_buffer)
         elif window == 'other':
-            lisp.display_buffer(new_buffer)
-        lisp.goto_line(1)
+            new_window = lisp.display_buffer(new_buffer)
+            lisp.set_window_point(new_window, lisp.point_min())
+        lisp.goto_char(lisp.point_min())
     return new_buffer