deadpixi / sam

An updated version of the sam text editor.
Other
430 stars 46 forks source link

Sam and non-opened files #107

Open aksr opened 4 years ago

aksr commented 4 years ago
  1. Open a non-existing file, e.g.: sam nonexistingfile.
  2. Execute, for example, q or w.
  3. Cursor changes and it's impossible to quit (etc.) without opening the window of the file first.

(It could be related to the previous bug: #77)

Edit: It doesn't matter if the file exists or not; when the file exists, executing X w doesn't work. This implies the problem is a some kind of race condition: executing q or X w etc. triggers a message (or an error) which isn't shown until the file is opened.

I think #77 has to be solved in a more general way.

I'll try to investigate this further.