29 Commits

Author SHA1 Message Date
Ingo Karkat
ed53ce9b33 Cosmetics: Fix typo in revision history dates 2017-05-26 22:14:22 +02:00
Ingo Karkat
24668aa871 2017-05-26 17:55:02 +02:00
Ingo Karkat
0381aae7c0 FIX: Correct delegation in ingo#buffer#temp#Execute(); wrong recursive call was used (after 1.027)
ENH: Add optional a:isSilent argument to ingo#buffer#temp#Execute().
2017-05-26 17:54:58 +02:00
Ingo Karkat
e3bba666c6 2017-05-26 17:51:03 +02:00
Ingo Karkat
a3f5c5c9ac Also prefer current / previous window in other tab pages 2017-05-26 17:51:00 +02:00
Ingo Karkat
6eb42d517e file creation 2017-05-26 17:51:00 +02:00
Ingo Karkat
9537eacb2a 2017-05-26 17:50:54 +02:00
Ingo Karkat
33716e8bc7 FIX: Correct delegation in ingo#buffer#temp#Execute(); wrong recursive call was used (after 1.027)
Add ingo#buffer#temp#ExecuteWithText() and ingo#buffer#temp#CallWithText() variants that pre-initialize the buffer (a common use case).
2017-05-26 17:50:50 +02:00
Ingo Karkat
055f09649b 2017-05-26 17:49:55 +02:00
Ingo Karkat
9cdc62e5ee FIX: Temporarily reset 'switchbuf' in ingo#buffer#visible#Execute(), to avoid that "usetab" switched to another tab page 2017-05-26 17:47:51 +02:00
Ingo Karkat
12ea200cb8 ENH: Add optional a:isReturnAsList flag to ingo#buffer#temp#Execute() and ingo#buffer#temp#Call() 2017-05-26 17:47:46 +02:00
Ingo Karkat
8640585a2a ingo#buffer#visible#Execute(): Restore the window layout when the buffer is visible but in a window with 0 height / width
And restore the previous window when the buffer isn't visible yet. Add a check that the command hasn't switched to another window (and go back if true) before closing the split window.
2017-05-26 17:47:44 +02:00
Ingo Karkat
88605e1568 Simplify ingo#buffer#temprange#Execute() by using changenr()
Keep using ingo#undo#GetChangeNumber() because we need to create a new no-op change when there was a previous :undo.
2017-05-26 17:36:21 +02:00
Ingo Karkat
f5dbbe9821 BUG: ingo#buffer#scratch#Create() with existing scratch buffer yields "E95: Buffer with this name already exists" instead of reusing the buffer
Use new a:isFile flag to ingo#escape#file#bufnameescape() and set a:isFullMatch to 1 instead of emulating the full-match for non-existing scratch buffers.
Keep current cursor position when ingo#buffer#scratch#Create() removes the first empty line in the scratch buffer.
2017-05-26 17:36:08 +02:00
Ingo Karkat
b3723b93fd 2017-05-26 17:33:59 +02:00
Ingo Karkat
2b20b89684 BUG: ingo#buffer#scratch#Create() with existing scratch buffer yields "E95: Buffer with this name already exists" instead of reusing the buffer
Use new a:isFile flag to ingo#escape#file#bufnameescape() and set a:isFullMatch to 1 instead of emulating the full-match for non-existing scratch buffers.
2017-05-26 17:33:43 +02:00
Ingo Karkat
2944addc49 2017-05-26 17:33:14 +02:00
Ingo Karkat
0b601c39d9 Use :close! in ingo#buffer#visible#Execute() to handle modified buffers when :set nohidden, too
ENH: Keep previous (last accessed) window on ingo#buffer#visible#Execute().
2017-05-26 17:33:08 +02:00
Ingo Karkat
118c07b929 file creation 2017-05-26 17:32:55 +02:00
Ingo Karkat
0fc8cb1b89 Name the temp buffer for ingo#buffer#temp#Execute() and re-use previous instances to avoid increasing the buffer numbers and output of :ls! 2017-05-26 17:32:15 +02:00
Ingo Karkat
bde794cb99 ingo#buffer#temprange#Execute(): Replace ingo#undo#GetChangeNumber() with the built-in changenr() 2017-05-26 17:30:02 +02:00
Ingo Karkat
9635e918ac Factor out ingo#undo#GetChangeNumber() 2017-05-26 17:29:58 +02:00
Ingo Karkat
dcca859af7 2017-05-26 17:28:33 +02:00
Ingo Karkat
2bc89c09c9 Add optional a:undoCnt argument 2017-05-26 17:28:26 +02:00
Ingo Karkat
e504d8db0c 2017-05-26 17:28:26 +02:00
Ingo Karkat
023ae549f2 file creation 2017-05-26 17:28:26 +02:00
Ingo Karkat
3265c58299 Move escapings.vim into ingo-library 2017-05-26 17:27:24 +02:00
Ingo Karkat
ea4b082502 file creation 2017-05-26 17:25:50 +02:00
Ingo Karkat
ba1259d6de file creation 2017-05-26 17:25:20 +02:00