Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Don't give the file editing message" flag in shortmess option. Add the UI tests by @fmoralesc Fix the changes for Vim 7.4.1570
- Loading branch information
Showing
6 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ static char *features[] = { | |
|
||
// clang-format off | ||
static int included_patches[] = { | ||
1570, | ||
1511, | ||
1366, | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
local helpers = require('test.functional.helpers') | ||
local Screen = require('test.functional.ui.screen') | ||
local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute | ||
|
||
describe("'shortmess'", function() | ||
local screen | ||
|
||
before_each(function() | ||
clear() | ||
screen = Screen.new(25, 5) | ||
screen:attach() | ||
execute('set shortmess&') | ||
end) | ||
|
||
after_each(function() | ||
screen:detach() | ||
end) | ||
|
||
describe("=F", function() | ||
it(':hides messages about the files read', function() | ||
execute('e test') | ||
screen:expect([[ | ||
^ | | ||
~ | | ||
~ | | ||
~ | | ||
"test" is a directory | | ||
]]) | ||
execute('set shortmess=F') | ||
execute('e test') | ||
screen:expect([[ | ||
^ | | ||
~ | | ||
~ | | ||
~ | | ||
:e test | | ||
]]) | ||
end) | ||
end) | ||
end) |
77a7ca4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Shougo